=== Daily Prayer Time ===
Contributors: mmrs151, yasin84
Donate link: https://donate.uwt.org/Account/Index.aspx
Tags: prayer time, salah time, salat, namaz, Quran verse
Requires at least: 4.5
Requires PHP: 7.2
Tested up to: 6.9
Stable tag: 2026.04.28.1
License: GPLv2
License URI: http://www.gnu.org/licenses/gpl-2.0.html

Display prayer time in any screen, in any language and many more.

== Description ==
For video tutorial please follow these links:
- (Latest) How to tutorial [youtube https://youtu.be/ka5WxQfkFww]

Alhamdulillah that you can display Yearly and Monthly prayer time with ajax month selector using shortcode [timetable]
Daily prayer time can be displayed vertically or horizontally in your preferable widget area. Designed for any Mosque or Islamic institutes.

**You need to upload your masjid's timetable from plugin admin section.**

= PULL REQUEST =
[GITHUB https://github.com/mmrs151/daily-prayer-time/pulls]
Add your commit and make a pull request. Please describe your feature, I will add it to the core.

[IMPORTANT]
If you don't see any update of this plugin for over a year, I might have departed.
Please feel free to copy the whole code and relase in a different name, so the masajid can be served. 
My sole intention is to support the ummah.
So I have absolutely no complain as long as you have the same intention, Fi Sabilillah.

Mustafiz.

= Features =
Once the installation above is done, this will allow the **Admin/Editor**

- To display prayer start and jamah time

- To display ramadan timetable for daily or full month

- To display next prayer and IQAMAH notifications

- To display prayer time either vertical or horizontal widget.

- To display 'Jamah time' only if you chose.

- To chose from three different themes

- To chose Asr salah start method

- Display monthly and yearly timetable using shortcode [timetable] from any page or post

- Display Khutbah time announcement on Friday

- Display Iqamah time only for monthly timetable using shortcode

- Upload any number of days, weeks, months or a full year.

- Support all language that are readable on the web

- Use custom css using the class dptUserStyles to decorate your element table elements.

- Use span class dpt_jamah and dpt_start along with [next_xxxx_prayer] and design your view however you want.

- Display Iqamah update for next day

- Display prayer time on big monitors in the masjid

- Display Quran verse in a shortcode

= shortcodes =
1. **[monthlytable]** - Display Yearly and Monthly prayer time with ajax month selector
2. **[dailytable_horizontal]** - Display daily timetable horizontally
3. **[dailytable_horizontal asr=hanafi]** - Display daily timetable horizontally with Hanafi Asr start method
4. **[dailytable_vertical]** - Display daily timetable vertically
5. **[dailytable_vertical asr=hanafi]** - Display daily timetable vertically with Hanafi Asr start method
6. **[dailytable_horizontal asr=hanafi friday_alert="First Khutbah: 1:15. Second Khutbah: 1:45"]** - Display Friday announcement
7. **[monthlytable display=iqamah_only]** - Display Iqamah only for Yearly and Monthly prayer time with ajax month selector
8. **[monthlytable display=azan_only]** - Display Azan only for Yearly and Monthly prayer time with ajax month selector
9. **[monthlytable heading="Månedlige Tidsplan"]** - Display monthly time table heading in any language, default is 'Monthly Time Table for'
10. **[digital_screen]** - Display prayer time on big monitors in the masjid
11. **[quran_verse]** - Display a random verse from the Holy Quran 
12. **[disable_overnight_dim] - disable overnight dimming of the digital screen
... and more. Check the 'helps-and-tips' page in plugin settings once you install it.

== Installation ==
1. Download the plugin
2. Simply go under the Plugins page, then click on Add new and select the plugin's .zip file
3. Alternatively you can extract the contents of the zip file directly to your wp-content/plugins/ folder
4. Finally, just go under Plugins and activate the plugin

= Comprehensive setup =

**Please upload your mosque's timetable in .csv format from the plugin setting page.**

== Frequently Asked Questions ==

= Why my time table is showing all zeros(0)? =
You will need to  import your mosque's timetable csv from settings section.

= Why my date is showing '1, Jan 1970' =
Because you have not imported your mosque's timetable or your date format is not valid mysql format, which is (YYYY-MM-DD)

= How to display ramadan time =
Simply put '1' for the last column(is_ramadan) in the sample csv for the days belongs to ramadan before upload

= Why does it not show minutes remaining for next IQAMAH
Please check/update your timezone settings in Settings > General

= What other features coming in the next updates
Please look at https://trello.com/b/6Re5Dga7/salah-time-wordpress-plugin

== Screenshots ==
1. Masjid and Mobile display
2. Display time remaining for next prayer
3. Random Quran verse
4. Add hadith or your own message
5. Design anyway you like
6. Design anyway you like
7. Design anyway you like
8. Default Website daily view
9. Default Website monthly view
10. Settings page
11. Sample 1
12. Sample 2

== Changelog ==

= 2026.04.28.1 =
* Fix: Add horizontal scroll wrapper to monthly table for mobile display

= 2026.04.28 =
* Feat: Add Ishraq time feature with admin toggle in settings
* Feat: Redesign Helps & Tips page with accordion layout and click-to-copy shortcodes
* Feat: Redesign Language Settings page with accordion layout and language presets
* Fix: Correct isIshraqTimeNext logic - check if now is between Fajr and Ishraq
* Fix: Handle ishraq in daily timetable - merge into sunrise row
* Fix: Remove ishraq/zawal from getAzanTime array to prevent errors
* Fix: Add CSV row validation in QuranDB import
* Fix: Various bug fixes and improvements

= 2026.04.26 =
* Feat: show detailed CSV upload results - inserted and updated rows in accordion
* Fix: change Hijri date to update after Maghrib (sunset) instead of midnight
* Feat: add iqamahTime and azanTime to next_prayer API response

= 2025.10.26 =
* Fix: Fix JS bug

== Upgrade Notice ==

= 2026.04.28.1 =
* Fix: Monthly table mobile display - now scrolls horizontally on small screens

= 2026.04.28 =
* New: Ishraq time feature - display calculated Ishraq time in timetable
* New: Improved Helps & Tips page with copyable shortcodes
* New: Improved Language Settings with presets for common languages

= 2026.04.26 =
* Improvements: CSV upload results display, Hijri date calculation, and API enhancements

= 2025.10.26 =
* Fix: Fix JS bug