Tabs
5 years ago
DSTemplate.php
6 years ago
DailyTimetablePrinter.php
5 years ago
HelpsAndTips.php
5 years ago
MonthlyTimetablePrinter.php
6 years ago
TimetablePrinter.php
5 years ago
dptWidgetForm.php
7 years ago
horizontal-div.php
9 years ago
widget-admin.php
5 years ago
dptWidgetForm.php
66 lines
| 1 | <div xmlns="http://www.w3.org/1999/html"> |
| 2 | <span> |
| 3 | </br></br> |
| 4 | |
| 5 | Title Before Date <input |
| 6 | name="<?php echo $this->get_field_name( 'title' ); ?>" |
| 7 | type="text" |
| 8 | value="<?php echo $instance["title"] ?>" |
| 9 | /></br></br> |
| 10 | |
| 11 | Select Azan/Iqamah settings |
| 12 | <select name="<?php echo $this->get_field_name( 'azanIqamah' ); ?>"> |
| 13 | <option value="" <?php if($instance["azanIqamah"] === ''){ echo 'selected="selected"'; } ?>>Default</option> |
| 14 | <option value="jamahOnly" <?php if($instance["azanIqamah"] === 'jamahOnly'){ echo 'selected="selected"'; } ?>>Iqamah Only</option> |
| 15 | <option value="azanOnly" <?php if($instance["azanIqamah"] === 'azanOnly'){ echo 'selected="selected"'; } ?>>Azan Only</option> |
| 16 | </select></br></br> |
| 17 | |
| 18 | <input |
| 19 | type="checkbox" |
| 20 | name="<?php echo $this->get_field_name( 'hanafiAsr' ); ?>" |
| 21 | value="hanafiAsr" |
| 22 | <?php if($instance["hanafiAsr"] === 'hanafiAsr'){ echo 'checked="checked"'; } ?> |
| 23 | /> Display Asr start time according to Hanafi school</br></br> |
| 24 | |
| 25 | <input |
| 26 | type="checkbox" |
| 27 | name="<?php echo $this->get_field_name( 'choice' ); ?>" |
| 28 | value="horizontal" |
| 29 | <?php if($instance["choice"] === 'horizontal'){ echo 'checked="checked"'; } ?> |
| 30 | /> Display prayer time horizontally</br></br> |
| 31 | |
| 32 | <input |
| 33 | type="checkbox" |
| 34 | name="<?php echo $this->get_field_name( 'hideTimeRemaining' ); ?>" |
| 35 | value="hideTimeRemaining" |
| 36 | <?php if($instance["hideTimeRemaining"] === 'hideTimeRemaining'){ echo 'checked="checked"'; } ?> |
| 37 | /> Hide time remaining for next IQAMAH</br></br> |
| 38 | |
| 39 | <?php if (get_option('ramadan-chbox')) { ?> |
| 40 | <input |
| 41 | type="checkbox" |
| 42 | name="<?php echo $this->get_field_name( 'hideRamadan' ); ?>" |
| 43 | value="hideRamadan" |
| 44 | <?php if($instance["hideRamadan"] === 'hideRamadan'){ echo 'checked="checked"'; } ?> |
| 45 | /> Hide Ramadan time</br></br> |
| 46 | <?php } ?> |
| 47 | |
| 48 | Announcement |
| 49 | <select name="<?php echo $this->get_field_name( 'announcementDay' ); ?>"> |
| 50 | <?php |
| 51 | $days = array('everyday','friday','saturday','sunday','monday','tuesday','wednesday','thursday'); |
| 52 | |
| 53 | foreach ($days as $day) { ?> |
| 54 | <option value="<?= $day?>" <?php if($instance["announcementDay"] === $day){ echo 'selected="selected"'; } ?>><?= ucfirst($day); ?></option> |
| 55 | <?php } |
| 56 | ?> |
| 57 | </select> |
| 58 | </br> |
| 59 | |
| 60 | <textarea rows="4" cols="30" maxlength="140" |
| 61 | name="<?php echo $this->get_field_name( 'announcement' ); ?>" |
| 62 | placeholder="Display announcement on your given day or everyday" |
| 63 | ><?php echo $instance['announcement']?></textarea></br></br> |
| 64 | </span> |
| 65 | </div> |
| 66 |