form-01--form-container.php
3 years ago
form-02--form-fields.php
3 years ago
form-03--input.php
3 years ago
form-04--select2.php
3 years ago
form-05--select2-dropdown.php
3 years ago
form-06--timepicker-dropdown.php
3 years ago
form-07--radio.php
3 years ago
form-08--checkbox.php
3 years ago
form-09--calendar.php
3 years ago
form-10--submit.php
3 years ago
form-11--options-container.php
3 years ago
form-12--options-title.php
3 years ago
form-13--gdpr.php
3 years ago
form-14--error-message.php
3 years ago
form-15--success-message.php
2 years ago
form-16--recaptcha.php
3 years ago
general-01--module-container.php
3 years ago
general-02--main-layout.php
3 years ago
general-03--layout-header.php
3 years ago
general-04--layout-content.php
3 years ago
general-05--layout-footer.php
3 years ago
general-06--image-size.php
3 years ago
general-07--image-fitting.php
3 years ago
general-08--image-position.php
3 years ago
general-09--content-wrapper.php
3 years ago
general-10--title.php
3 years ago
general-11--subtitle.php
3 years ago
general-12--content.php
9 months ago
general-13--cta-container.php
3 years ago
general-14--cta-button.php
3 years ago
general-15--cta-alignment.php
3 years ago
general-16--nsa-link.php
3 years ago
general-17--close-button.php
3 years ago
general-18--popup-mask.php
3 years ago
general-19--cta-helper-text.php
3 years ago
module-size-embed.php
3 years ago
module-size-popup.php
3 years ago
module-size-slidein.php
3 years ago
form-06--timepicker-dropdown.php
48 lines
| 1 | <?php |
| 2 | /** |
| 3 | * Select Dropdown. |
| 4 | * |
| 5 | * @package Hustle |
| 6 | * @since 4.3.0 |
| 7 | */ |
| 8 | |
| 9 | $container = '.hustle-timepicker .ui-timepicker'; |
| 10 | $component = $container . ' .ui-timepicker-viewport a'; |
| 11 | |
| 12 | // SETTINGS: Colors. |
| 13 | $container_background = $colors['optin_dropdown_background']; |
| 14 | |
| 15 | $option_color_default = $colors['optin_dropdown_option_color']; |
| 16 | $option_color_hover = $colors['optin_dropdown_option_color_hover']; |
| 17 | |
| 18 | $option_background_default = 'transparent'; |
| 19 | $option_background_hover = $colors['optin_dropdown_option_bg_hover']; |
| 20 | |
| 21 | // Check if module is an opt-in. |
| 22 | if ( $is_optin ) { |
| 23 | |
| 24 | // Check if vanilla theme is not enabled. |
| 25 | if ( ! $is_vanilla ) { |
| 26 | |
| 27 | $style .= ''; |
| 28 | |
| 29 | // STATE: Default. |
| 30 | $style .= $prefix_mobile . $container . ' {'; |
| 31 | $style .= 'background-color: ' . $container_background . ';'; |
| 32 | $style .= '}'; |
| 33 | |
| 34 | $style .= $prefix_mobile . $component . ' {'; |
| 35 | $style .= 'color: ' . $option_color_default . ';'; |
| 36 | $style .= 'background-color: ' . $option_background_default . ';'; |
| 37 | $style .= '}'; |
| 38 | |
| 39 | // STATE: Hover. |
| 40 | $style .= $prefix_mobile . $component . ':hover,'; |
| 41 | $style .= $prefix_mobile . $component . ':focus {'; |
| 42 | $style .= 'color: ' . $option_color_hover . ';'; |
| 43 | $style .= 'background-color: ' . $option_background_hover . ';'; |
| 44 | $style .= '}'; |
| 45 | |
| 46 | } |
| 47 | } |
| 48 |