row-advanced
4 years ago
row-colors
5 years ago
row-customize-elements
5 years ago
row-typography
5 years ago
rows
5 years ago
device-desktop.php
5 years ago
device-mobiles.php
5 years ago
device-mobiles.php
81 lines
| 1 | <?php |
| 2 | /** |
| 3 | * Mobiles appearance settings. |
| 4 | * |
| 5 | * @uses ./../../../global/sui-components/sui-notice |
| 6 | * @uses ./rows/customize-elements |
| 7 | * @uses ./rows/advanced |
| 8 | * |
| 9 | * @package Hustle |
| 10 | * @since 4.3.0 |
| 11 | */ |
| 12 | |
| 13 | $device = 'mobile'; |
| 14 | |
| 15 | $notice = array( |
| 16 | 'alert' => false, |
| 17 | 'type' => 'info', |
| 18 | 'message' => esc_html__( 'Layout, Color Palette, Font Family from Typography settings, Vanilla Theme, and Custom CSS options are inherited from the Desktop settings.', 'hustle' ), |
| 19 | ); |
| 20 | |
| 21 | $vanilla_notice = array( |
| 22 | 'alert' => false, |
| 23 | 'message' => esc_html__( 'There are no mobile settings available as you have enabled the "Vanilla theme" option under the desktop settings.', 'hustle' ), |
| 24 | ); |
| 25 | ?> |
| 26 | |
| 27 | <div id="hustle-wizard-appearance-mobiles"> |
| 28 | |
| 29 | <?php // ROW: Top notice. ?> |
| 30 | |
| 31 | <div data-toggle-content="use-vanilla"> |
| 32 | <?php $this->render( 'admin/global/sui-components/sui-notice', $notice ); ?> |
| 33 | |
| 34 | <hr aria-hidden="true" /> |
| 35 | </div> |
| 36 | |
| 37 | <?php |
| 38 | // ROW: Customize Elements. |
| 39 | $this->render( |
| 40 | 'admin/commons/sui-wizard/tab-appearance/rows/customize-elements', |
| 41 | array( |
| 42 | 'settings' => $settings, |
| 43 | 'is_optin' => $is_optin, |
| 44 | 'device' => $device, |
| 45 | 'smallcaps_singular' => $smallcaps_singular, |
| 46 | ) |
| 47 | ); |
| 48 | ?> |
| 49 | |
| 50 | <div data-toggle-content="not-use-vanilla"> |
| 51 | <?php $this->render( 'admin/global/sui-components/sui-notice', $vanilla_notice ); ?> |
| 52 | </div> |
| 53 | |
| 54 | <?php |
| 55 | // ROW: Typography. |
| 56 | $this->render( |
| 57 | 'admin/commons/sui-wizard/tab-appearance/rows/typography', |
| 58 | array( |
| 59 | 'settings' => $settings, |
| 60 | 'is_optin' => $is_optin, |
| 61 | 'device' => $device, |
| 62 | 'smallcaps_singular' => $smallcaps_singular, |
| 63 | 'capitalize_singular' => $capitalize_singular, |
| 64 | ) |
| 65 | ); |
| 66 | |
| 67 | // ROW: Advanced. |
| 68 | $this->render( |
| 69 | 'admin/commons/sui-wizard/tab-appearance/rows/advanced', |
| 70 | array( |
| 71 | 'settings' => $settings, |
| 72 | 'is_optin' => $is_optin, |
| 73 | 'device' => $device, |
| 74 | 'smallcaps_singular' => $smallcaps_singular, |
| 75 | 'capitalize_singular' => $capitalize_singular, |
| 76 | ) |
| 77 | ); |
| 78 | ?> |
| 79 | |
| 80 | </div> |
| 81 |