hustle-popup-settings.php
37 lines
| 1 | <?php // phpcs:ignore WordPress.Files.FileName.InvalidClassFileName |
| 2 | /** |
| 3 | * Hustle_Popup_Settings class |
| 4 | * |
| 5 | * @package Hustle |
| 6 | */ |
| 7 | |
| 8 | /** |
| 9 | * Class Hustle_Popup_Settings |
| 10 | */ |
| 11 | class Hustle_Popup_Settings extends Hustle_Meta_Base_Settings { |
| 12 | |
| 13 | /** |
| 14 | * Get the default settings. |
| 15 | * |
| 16 | * @return array |
| 17 | */ |
| 18 | public function get_defaults() { |
| 19 | $base = parent::get_defaults(); |
| 20 | |
| 21 | // Specific for popups. |
| 22 | $settings = array_merge( |
| 23 | $base, |
| 24 | array( |
| 25 | 'allow_scroll_page' => '0', |
| 26 | 'close_on_background_click' => '1', |
| 27 | 'auto_hide' => '0', |
| 28 | 'auto_hide_unit' => 'seconds', |
| 29 | 'auto_hide_time' => '5', |
| 30 | ) |
| 31 | ); |
| 32 | |
| 33 | return $settings; |
| 34 | } |
| 35 | |
| 36 | } |
| 37 |