hustle-sshare-content.php
3 years ago
hustle-sshare-design.php
3 years ago
hustle-sshare-display.php
5 months ago
hustle-sshare-display.php
50 lines
| 1 | <?php // phpcs:ignore WordPress.Files.FileName.InvalidClassFileName |
| 2 | /** |
| 3 | * Hustle_SShare_Display class |
| 4 | * |
| 5 | * @package Hustle |
| 6 | */ |
| 7 | |
| 8 | /** |
| 9 | * Class Hustle_SShare_Display |
| 10 | */ |
| 11 | class Hustle_SShare_Display extends Hustle_Meta_Base_Display { |
| 12 | |
| 13 | /** |
| 14 | * Get the defaults for this meta. |
| 15 | * |
| 16 | * @since 4.2.0 |
| 17 | * @return array |
| 18 | */ |
| 19 | public function get_defaults() { |
| 20 | $base = parent::get_defaults(); |
| 21 | |
| 22 | // Specific for slidein. |
| 23 | $settings = array_merge( |
| 24 | $base, |
| 25 | array( |
| 26 | 'inline_align' => 'left', |
| 27 | |
| 28 | 'float_desktop_enabled' => '1', |
| 29 | 'float_desktop_position' => 'right', |
| 30 | 'float_desktop_offset' => 'screen', |
| 31 | 'float_desktop_offset_x' => '0', |
| 32 | 'float_desktop_position_y' => 'top', |
| 33 | 'float_desktop_offset_y' => '0', |
| 34 | 'float_desktop_css_selector' => '', |
| 35 | |
| 36 | 'float_mobile_enabled' => '1', |
| 37 | 'float_mobile_position' => 'left', |
| 38 | 'float_mobile_offset' => 'screen', |
| 39 | 'float_mobile_position_x' => 'left', |
| 40 | 'float_mobile_offset_x' => '0', |
| 41 | 'float_mobile_position_y' => 'top', |
| 42 | 'float_mobile_offset_y' => '0', |
| 43 | 'float_mobile_css_selector' => '', |
| 44 | ) |
| 45 | ); |
| 46 | |
| 47 | return $settings; |
| 48 | } |
| 49 | } |
| 50 |