form-01--form-container.php
3 years ago
form-02--form-fields.php
3 years ago
form-03--input.php
5 months ago
form-04--select2.php
5 months ago
form-05--select2-dropdown.php
3 years ago
form-06--timepicker-dropdown.php
3 years ago
form-07--radio.php
5 months ago
form-08--checkbox.php
5 months ago
form-09--calendar.php
3 years ago
form-10--submit.php
5 months ago
form-11--options-container.php
3 years ago
form-12--options-title.php
5 months ago
form-13--gdpr.php
5 months ago
form-14--error-message.php
5 months ago
form-15--success-message.php
2 years ago
form-16--recaptcha.php
5 months ago
general-01--module-container.php
3 years ago
general-02--main-layout.php
1 month 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
5 months ago
general-07--image-fitting.php
3 years ago
general-08--image-position.php
5 months ago
general-09--content-wrapper.php
3 years ago
general-10--title.php
5 months ago
general-11--subtitle.php
5 months ago
general-12--content.php
5 months ago
general-13--cta-container.php
3 years ago
general-14--cta-button.php
5 months ago
general-15--cta-alignment.php
3 years ago
general-16--nsa-link.php
5 months ago
general-17--close-button.php
3 years ago
general-18--popup-mask.php
3 years ago
general-19--cta-helper-text.php
5 months ago
module-size-embed.php
5 months ago
module-size-popup.php
5 months ago
module-size-slidein.php
3 years ago
form-09--calendar.php
82 lines
| 1 | <?php |
| 2 | /** |
| 3 | * Calendar. |
| 4 | * |
| 5 | * @package Hustle |
| 6 | * @since 4.3.0 |
| 7 | */ |
| 8 | |
| 9 | $component = '.hustle-module-' . $this->module->module_id . '.hustle-calendar'; |
| 10 | |
| 11 | // SETTINGS: Colors. |
| 12 | $container_background = $colors['optin_calendar_background']; |
| 13 | $container_title = $colors['optin_calendar_title']; |
| 14 | |
| 15 | $navigation_default = $colors['optin_calendar_arrows']; |
| 16 | $navigation_hover = $colors['optin_calendar_arrows_hover']; |
| 17 | $navigation_focus = $colors['optin_calendar_arrows_active']; |
| 18 | |
| 19 | $cell_title = $colors['optin_calendar_thead']; |
| 20 | |
| 21 | $cell_background_default = $colors['optin_calendar_cell_background']; |
| 22 | $cell_background_hover = $colors['optin_calendar_cell_bg_hover']; |
| 23 | $cell_background_focus = $colors['optin_calendar_cell_bg_active']; |
| 24 | |
| 25 | $cell_color_default = $colors['optin_calendar_cell_color']; |
| 26 | $cell_color_hover = $colors['optin_calendar_cell_color_hover']; |
| 27 | $cell_color_focus = $colors['optin_calendar_cell_color_active']; |
| 28 | |
| 29 | // Check if opt-in is enabled. |
| 30 | if ( $is_optin ) { |
| 31 | |
| 32 | // Check if vanilla theme is disabled. |
| 33 | if ( ! $is_vanilla ) { |
| 34 | |
| 35 | $style .= ''; |
| 36 | |
| 37 | $style .= $component . ':before {'; |
| 38 | $style .= 'background-color: ' . $container_background . ';'; |
| 39 | $style .= '}'; |
| 40 | |
| 41 | $style .= $component . ' .ui-datepicker-header .ui-datepicker-title {'; |
| 42 | $style .= 'color: ' . $container_title . ';'; |
| 43 | $style .= '}'; |
| 44 | |
| 45 | $style .= $component . ' .ui-datepicker-header .ui-corner-all,'; |
| 46 | $style .= $component . ' .ui-datepicker-header .ui-corner-all:visited {'; |
| 47 | $style .= 'color: ' . $navigation_default . ';'; |
| 48 | $style .= '}'; |
| 49 | |
| 50 | $style .= $component . ' .ui-datepicker-header .ui-corner-all:hover {'; |
| 51 | $style .= 'color: ' . $navigation_hover . ';'; |
| 52 | $style .= '}'; |
| 53 | |
| 54 | $style .= $component . ' .ui-datepicker-header .ui-corner-all:focus,'; |
| 55 | $style .= $component . ' .ui-datepicker-header .ui-corner-all:active {'; |
| 56 | $style .= 'color: ' . $navigation_focus . ';'; |
| 57 | $style .= '}'; |
| 58 | |
| 59 | $style .= $component . ' .ui-datepicker-calendar thead th {'; |
| 60 | $style .= 'color: ' . $cell_title . ';'; |
| 61 | $style .= '}'; |
| 62 | |
| 63 | $style .= $component . ' .ui-datepicker-calendar tbody tr td a,'; |
| 64 | $style .= $component . ' .ui-datepicker-calendar tbody tr td a:visited {'; |
| 65 | $style .= 'background-color: ' . $cell_background_default . ';'; |
| 66 | $style .= 'color: ' . $cell_color_default . ';'; |
| 67 | $style .= '}'; |
| 68 | |
| 69 | $style .= $component . ' .ui-datepicker-calendar tbody tr td a:hover {'; |
| 70 | $style .= 'background-color: ' . $cell_background_hover . ';'; |
| 71 | $style .= 'color: ' . $cell_color_hover . ';'; |
| 72 | $style .= '}'; |
| 73 | |
| 74 | $style .= $component . ' .ui-datepicker-calendar tbody tr td a:focus,'; |
| 75 | $style .= $component . ' .ui-datepicker-calendar tbody tr td a:active {'; |
| 76 | $style .= 'background-color: ' . $cell_background_focus . ';'; |
| 77 | $style .= 'color: ' . $cell_color_focus . ';'; |
| 78 | $style .= '}'; |
| 79 | |
| 80 | } |
| 81 | } |
| 82 |