SettingsRepository.php
16 lines
| 1 | <?php namespace NestedPages\Config; |
| 2 | |
| 3 | class SettingsRepository { |
| 4 | |
| 5 | /** |
| 6 | * Is the Datepicker UI option enabled |
| 7 | * @return boolean |
| 8 | */ |
| 9 | public function datepickerEnabled() |
| 10 | { |
| 11 | $option = get_option('nestedpages_ui', false); |
| 12 | if ( $option && isset($option['datepicker']) && $option['datepicker'] == 'true' ) return true; |
| 13 | return false; |
| 14 | } |
| 15 | |
| 16 | } |