Hijri
3 years ago
Processors
1 year ago
QuranADay
1 year ago
StartTime
1 year ago
design
1 year ago
AdminMenu.php
2 years ago
AssetsLoader.php
1 year ago
CustomPluginSettings.php
4 years ago
DPTAjaxHandler.php
4 years ago
DPTHelper.php
1 year ago
DSTemplateLoader.php
2 years ago
DailyShortCode.php
1 year ago
DigitalScreen.php
1 year ago
HijriDate.php
3 years ago
Init.php
4 years ago
MonthlyShortCode.php
2 years ago
MonthlyTimeTable.php
3 years ago
Shortcodes.php
2 years ago
Translator.php
4 years ago
UpdateStyles.php
1 year ago
Validator.php
3 years ago
db.php
1 year ago
dptWidget.php
4 years ago
Shortcodes.php
44 lines
| 1 | <?php |
| 2 | class Shortcodes |
| 3 | { |
| 4 | public function __construct() |
| 5 | { |
| 6 | $this->addMonthlyShortCodes(); |
| 7 | $this->addDailyShortCodes(); |
| 8 | } |
| 9 | |
| 10 | public function addMonthlyShortCodes() |
| 11 | { |
| 12 | $monthlyShortcode = new MonthlyShortCode(); |
| 13 | add_shortcode( 'monthlytable', array($monthlyShortcode, 'printMonthlyTimeTable') ); |
| 14 | } |
| 15 | |
| 16 | public function addDailyShortCodes() |
| 17 | { |
| 18 | $dailyShortCode = new DailyShortCode(); |
| 19 | add_shortcode( 'dailytable_vertical', array($dailyShortCode, 'verticalTime') ); |
| 20 | add_shortcode( 'dailytable_horizontal', array($dailyShortCode, 'horizontalTime') ); |
| 21 | |
| 22 | add_shortcode( 'display_ramadan_time', array($dailyShortCode, 'scRamadanTime') ); |
| 23 | add_shortcode( 'daily_next_prayer', array($dailyShortCode, 'scNextPrayer') ); |
| 24 | |
| 25 | add_shortcode( 'fajr_prayer', array($dailyShortCode, 'scFajr') ); |
| 26 | add_shortcode( 'sunrise', array($dailyShortCode, 'scSunrise') ); |
| 27 | add_shortcode( 'zawal', array($dailyShortCode, 'scZawal') ); |
| 28 | add_shortcode( 'zuhr_prayer', array($dailyShortCode, 'scZuhr') ); |
| 29 | add_shortcode( 'asr_prayer', array($dailyShortCode, 'scAsr') ); |
| 30 | add_shortcode( 'maghrib_prayer', array($dailyShortCode, 'scMaghrib') ); |
| 31 | add_shortcode( 'isha_prayer', array($dailyShortCode, 'scIsha') ); |
| 32 | add_shortcode( 'fajr_start', array($dailyShortCode, 'scFajrStart') ); |
| 33 | add_shortcode( 'zuhr_start', array($dailyShortCode, 'scZuhrStart') ); |
| 34 | add_shortcode( 'asr_start', array($dailyShortCode, 'scAsrStart') ); |
| 35 | add_shortcode( 'maghrib_start', array($dailyShortCode, 'scMaghribStart') ); |
| 36 | add_shortcode( 'isha_start', array($dailyShortCode, 'scIshaStart') ); |
| 37 | add_shortcode( 'jummah_prayer', array($dailyShortCode, 'scJummahPrayer') ); |
| 38 | |
| 39 | add_shortcode( 'display_iqamah_update', array($dailyShortCode, 'scIqamahUpdate') ); |
| 40 | add_shortcode( 'digital_screen', array($dailyShortCode, 'scDigitalScreen') ); |
| 41 | add_shortcode( 'quran_verse', array($dailyShortCode, 'scQuranVarse') ); |
| 42 | add_shortcode( 'hijri_date', array($dailyShortCode, 'scHijriDate') ); |
| 43 | } |
| 44 | } |