Hijri
3 years ago
Processors
1 month ago
QuranADay
2 months ago
StartTime
1 year ago
design
1 month ago
AdminMenu.php
2 years ago
AssetsLoader.php
1 year ago
CustomPluginSettings.php
4 years ago
DPTAjaxHandler.php
4 years ago
DPTHelper.php
1 month ago
DSTemplateLoader.php
2 years ago
DailyShortCode.php
2 months ago
DigitalScreen.php
1 month ago
HijriDate.php
3 years ago
Init.php
4 years ago
MonthlyShortCode.php
2 years ago
MonthlyTimeTable.php
3 years ago
Shortcodes.php
2 months ago
Translator.php
4 years ago
UpdateStyles.php
1 month ago
Validator.php
3 years ago
db.php
2 months ago
dptWidget.php
4 years ago
dptWidget.php
43 lines
| 1 | <?php |
| 2 | |
| 3 | $timeTable = new DailyShortCode(); |
| 4 | |
| 5 | if (! empty($instance['announcement']) && ! empty($instance['announcementDay']) ) { |
| 6 | $timeTable->setAnnouncement($instance['announcement'], $instance['announcementDay'] ); |
| 7 | } |
| 8 | |
| 9 | if (! empty($instance['hideRamadan'])) { |
| 10 | $timeTable->hideRamadan(); |
| 11 | } |
| 12 | |
| 13 | if (! empty($instance['hideTimeRemaining'])) { |
| 14 | $timeTable->hideTimeRemaining(); |
| 15 | } |
| 16 | |
| 17 | $hijriCheckbox = get_option('hijri-chbox'); |
| 18 | if (! empty($hijriCheckbox)) { |
| 19 | $timeTable->displayHijriDate(); |
| 20 | } |
| 21 | |
| 22 | if ($instance['azanIqamah'] == 'jamahOnly') { |
| 23 | $timeTable->setJamahOnly(); |
| 24 | } |
| 25 | |
| 26 | if ($instance['azanIqamah'] == 'azanOnly') { |
| 27 | $timeTable->setAzanOnly(); |
| 28 | } |
| 29 | |
| 30 | if (! empty($instance['hanafiAsr'])) { |
| 31 | $timeTable->setHanafiAsr(); |
| 32 | } |
| 33 | |
| 34 | if (! empty($instance['title'])) { |
| 35 | $timeTable->setTitle($instance['title']); |
| 36 | } |
| 37 | |
| 38 | if (isset($instance['choice']) && $instance['choice'] === 'horizontal') { |
| 39 | echo wp_kses($timeTable->horizontalTime(), 'post'); |
| 40 | } else { |
| 41 | echo wp_kses($timeTable->verticalTime(), 'post'); |
| 42 | } |
| 43 |