| @@ -1,19 +1,15 @@ | ||
| 1 | 1 | <?php |
| 2 | 2 | namespace Elementor; |
| 3 | 3 | |
| 4 | -use Elementor\Core\Utils\Promotions\Filtered_Promotions_Manager; | |
| 5 | - | |
| 6 | 4 | if ( ! defined( 'ABSPATH' ) ) { |
| 7 | 5 | exit; // Exit if accessed directly. |
| 8 | 6 | } |
| 9 | 7 | |
| 10 | 8 | $document = Plugin::$instance->documents->get( Plugin::$instance->editor->get_post_id() ); |
| 11 | - | |
| 12 | -$show_editing_panel_sticky_promotion = ! Utils::has_pro() && Plugin::$instance->experiments->is_feature_active( 'e_panel_promotions' ); | |
| 13 | -$editing_panel_sticky_promotion = $show_editing_panel_sticky_promotion ? Filtered_Promotions_Manager::get_editor_panel_sticky_promotion() : []; | |
| 14 | 9 | ?> |
| 15 | 10 | <script type="text/template" id="tmpl-elementor-panel"> |
| 11 | + <div id="elementor-mode-switcher"></div> | |
| 16 | 12 | <div id="elementor-panel-state-loading"> |
| 17 | 13 | <i class="eicon-loading eicon-animation-spin"></i> |
| 18 | 14 | </div> |
| 19 | 15 | <header id="elementor-panel-header-wrapper"></header> |
| @@ -20,9 +16,8 @@ | ||
| 20 | 16 | <main id="elementor-panel-content-wrapper"></main> |
| 21 | 17 | <footer id="elementor-panel-footer"> |
| 22 | 18 | <div class="elementor-panel-container"></div> |
| 23 | 19 | </footer> |
| 24 | - <div id="elementor-mode-switcher"></div> | |
| 25 | 20 | </script> |
| 26 | 21 | |
| 27 | 22 | <script type="text/template" id="tmpl-elementor-panel-menu"> |
| 28 | 23 | <div id="elementor-panel-page-menu-content"></div> |
| @@ -28,10 +23,10 @@ | ||
| 28 | 23 | <div id="elementor-panel-page-menu-content"></div> |
| 29 | 24 | <# if ( elementor.config.document.panel.needHelpUrl ) { #> |
| 30 | 25 | <div id="elementor-panel__editor__help"> |
| 31 | 26 | <a id="elementor-panel__editor__help__link" href="{{{ elementor.config.document.panel.needHelpUrl }}}" target="_blank"> |
| 32 | - <?php echo esc_html__( 'Need Help', 'elementor' ); ?> | |
| 33 | - <i class="eicon-help-o" aria-hidden="true"></i> | |
| 27 | + <?php echo __( 'Need Help', 'elementor' ); ?> | |
| 28 | + <i class="eicon-help-o"></i> | |
| 34 | 29 | </a> |
| 35 | 30 | </div> |
| 36 | 31 | <# } #> |
| 37 | 32 | </script> |
| @@ -53,71 +48,59 @@ | ||
| 53 | 48 | <a href="{{ link }}" target="{{ target }}"><div class="elementor-panel-menu-item-title">{{{ title }}}</div></a> |
| 54 | 49 | <# } #> |
| 55 | 50 | </script> |
| 56 | 51 | |
| 57 | -<script type="text/template" id="tmpl-elementor-exit-dialog"> | |
| 58 | - <div><?php echo esc_html__( 'Now you can choose where you want to go on the site from the following options', 'elementor' ); ?></div> | |
| 59 | - <div> | |
| 60 | - <?php printf( | |
| 61 | - /* translators: 1: Opening HTML <a> tag, 2: closing HTML <a> tag. */ | |
| 62 | - esc_html__( 'Any time you can change the settings in %1$sUser Preferences%2$s', 'elementor' ), | |
| 63 | - '<a id="user-preferences">', | |
| 64 | - '</a>' | |
| 65 | - ); ?> | |
| 52 | +<script type="text/template" id="tmpl-elementor-panel-header"> | |
| 53 | + <div id="elementor-panel-header-menu-button" class="elementor-header-button"> | |
| 54 | + <i class="elementor-icon eicon-menu-bar tooltip-target" aria-hidden="true" data-tooltip="<?php esc_attr_e( 'Menu', 'elementor' ); ?>"></i> | |
| 55 | + <span class="elementor-screen-only"><?php echo __( 'Menu', 'elementor' ); ?></span> | |
| 66 | 56 | </div> |
| 67 | - <select id="exit-to-preferences"></select> <!-- Adding options by JS --> | |
| 57 | + <div id="elementor-panel-header-title"></div> | |
| 58 | + <div id="elementor-panel-header-add-button" class="elementor-header-button"> | |
| 59 | + <i class="elementor-icon eicon-apps tooltip-target" aria-hidden="true" data-tooltip="<?php esc_attr_e( 'Widgets Panel', 'elementor' ); ?>"></i> | |
| 60 | + <span class="elementor-screen-only"><?php echo __( 'Widgets Panel', 'elementor' ); ?></span> | |
| 61 | + </div> | |
| 68 | 62 | </script> |
| 69 | 63 | |
| 70 | -<script type="text/template" id="tmpl-elementor-panel-header"> | |
| 71 | - <button id="elementor-panel-header-menu-button" class="elementor-header-button" aria-label="<?php echo esc_attr__( 'Menu', 'elementor' ); ?>"> | |
| 72 | - <i class="elementor-icon eicon-menu-bar tooltip-target" aria-hidden="true" data-tooltip="<?php echo esc_attr__( 'Menu', 'elementor' ); ?>"></i> | |
| 73 | - </button> | |
| 74 | - <h2 id="elementor-panel-header-title"></h2> | |
| 75 | - <# const extraClass = $e.components.get( 'document/elements' ).utils.allowAddingWidgets() ? '' : 'elementor-visibility-hidden'; #> | |
| 76 | - <button id="elementor-panel-header-add-button" class="elementor-header-button {{{ extraClass }}}" aria-label="<?php echo esc_attr__( 'Widgets Panel', 'elementor' ); ?>"> | |
| 77 | - <i class="elementor-icon eicon-apps tooltip-target" aria-hidden="true" data-tooltip="<?php echo esc_attr__( 'Widgets Panel', 'elementor' ); ?>"></i> | |
| 78 | - </button> | |
| 79 | -</script> | |
| 80 | - | |
| 81 | 64 | <script type="text/template" id="tmpl-elementor-panel-footer-content"> |
| 82 | - <button id="elementor-panel-footer-settings" class="elementor-panel-footer-tool elementor-leave-open tooltip-target" data-tooltip="<?php echo esc_attr__( 'Settings', 'elementor' ); ?>" aria-label="<?php | |
| 83 | - printf( | |
| 84 | - /* translators: %s: Document title. */ | |
| 85 | - esc_attr__( '%s Settings', 'elementor' ), | |
| 86 | - esc_attr( $document::get_title() ) | |
| 87 | - ); ?>"> | |
| 65 | + <div id="elementor-panel-footer-settings" class="elementor-panel-footer-tool elementor-leave-open tooltip-target" data-tooltip="<?php esc_attr_e( 'Settings', 'elementor' ); ?>"> | |
| 88 | 66 | <i class="eicon-cog" aria-hidden="true"></i> |
| 89 | - </button> | |
| 90 | - <# if ( $e.components.get( 'document/elements' ).utils.showNavigator() ) { #> | |
| 91 | - <button id="elementor-panel-footer-navigator" class="elementor-panel-footer-tool tooltip-target" data-tooltip="<?php echo esc_attr__( 'Structure', 'elementor' ); ?>" aria-label="<?php echo esc_attr__( 'Structure', 'elementor' ); ?>"> | |
| 67 | + <span class="elementor-screen-only"><?php printf( __( '%s Settings', 'elementor' ), $document::get_title() ); ?></span> | |
| 68 | + </div> | |
| 69 | + <div id="elementor-panel-footer-navigator" class="elementor-panel-footer-tool tooltip-target" data-tooltip="<?php esc_attr_e( 'Navigator', 'elementor' ); ?>"> | |
| 92 | 70 | <i class="eicon-navigator" aria-hidden="true"></i> |
| 93 | - </button> | |
| 94 | - <# } #> | |
| 95 | - <button id="elementor-panel-footer-history" class="elementor-panel-footer-tool elementor-leave-open tooltip-target" data-tooltip="<?php echo esc_attr__( 'History', 'elementor' ); ?>" aria-label="<?php echo esc_attr__( 'History', 'elementor' ); ?>"> | |
| 71 | + <span class="elementor-screen-only"><?php echo __( 'Navigator', 'elementor' ); ?></span> | |
| 72 | + </div> | |
| 73 | + <div id="elementor-panel-footer-history" class="elementor-panel-footer-tool elementor-leave-open tooltip-target" data-tooltip="<?php esc_attr_e( 'History', 'elementor' ); ?>"> | |
| 96 | 74 | <i class="eicon-history" aria-hidden="true"></i> |
| 97 | - </button> | |
| 98 | - <button id="elementor-panel-footer-responsive" class="elementor-panel-footer-tool elementor-toggle-state tooltip-target" data-tooltip="<?php echo esc_attr__( 'Responsive Mode', 'elementor' ); ?>" aria-label="<?php echo esc_attr__( 'Responsive Mode', 'elementor' ); ?>"> | |
| 99 | - <i class="eicon-device-responsive" aria-hidden="true"></i> | |
| 100 | - </button> | |
| 101 | - <button id="elementor-panel-footer-saver-preview" class="elementor-panel-footer-tool tooltip-target" data-tooltip="<?php echo esc_attr__( 'Preview Changes', 'elementor' ); ?>" aria-label="<?php echo esc_attr__( 'Preview Changes', 'elementor' ); ?>"> | |
| 75 | + <span class="elementor-screen-only"><?php echo __( 'History', 'elementor' ); ?></span> | |
| 76 | + </div> | |
| 77 | + <div id="elementor-panel-footer-responsive" class="elementor-panel-footer-tool elementor-toggle-state"> | |
| 78 | + <i class="eicon-device-responsive tooltip-target" aria-hidden="true" data-tooltip="<?php esc_attr_e( 'Responsive Mode', 'elementor' ); ?>"></i> | |
| 79 | + <span class="elementor-screen-only"> | |
| 80 | + <?php echo __( 'Responsive Mode', 'elementor' ); ?> | |
| 81 | + </span> | |
| 82 | + </div> | |
| 83 | + <div id="elementor-panel-footer-saver-preview" class="elementor-panel-footer-tool tooltip-target" data-tooltip="<?php esc_attr_e( 'Preview Changes', 'elementor' ); ?>"> | |
| 102 | 84 | <span id="elementor-panel-footer-saver-preview-label"> |
| 103 | 85 | <i class="eicon-preview-medium" aria-hidden="true"></i> |
| 86 | + <span class="elementor-screen-only"><?php echo __( 'Preview Changes', 'elementor' ); ?></span> | |
| 104 | 87 | </span> |
| 105 | - </button> | |
| 88 | + </div> | |
| 106 | 89 | <div id="elementor-panel-footer-saver-publish" class="elementor-panel-footer-tool"> |
| 107 | - <# const publishTitle = $e.components.get( 'document/elements' ).utils.getTitleForPublishButton(); #> | |
| 108 | - <button id="elementor-panel-saver-button-publish" class="elementor-button e-primary elementor-disabled" title="{{{ publishTitle }}}"> | |
| 90 | + <button id="elementor-panel-saver-button-publish" class="elementor-button elementor-button-success elementor-disabled"> | |
| 109 | 91 | <span class="elementor-state-icon"> |
| 110 | 92 | <i class="eicon-loading eicon-animation-spin" aria-hidden="true"></i> |
| 111 | 93 | </span> |
| 112 | 94 | <span id="elementor-panel-saver-button-publish-label"> |
| 113 | - <?php echo esc_html__( 'Publish', 'elementor' ); ?> | |
| 95 | + <?php echo __( 'Publish', 'elementor' ); ?> | |
| 114 | 96 | </span> |
| 115 | 97 | </button> |
| 116 | 98 | </div> |
| 117 | 99 | <div id="elementor-panel-footer-saver-options" class="elementor-panel-footer-tool elementor-toggle-state"> |
| 118 | - <button id="elementor-panel-saver-button-save-options" class="elementor-button e-primary tooltip-target elementor-disabled" data-tooltip="<?php echo esc_attr__( 'Save Options', 'elementor' ); ?>" data-tooltip-offset="7" aria-label="<?php echo esc_attr__( 'Save Options', 'elementor' ); ?>"> | |
| 119 | - <i class="eicon-chevron-right" aria-hidden="true"></i> | |
| 100 | + <button id="elementor-panel-saver-button-save-options" class="elementor-button elementor-button-success tooltip-target elementor-disabled" data-tooltip="<?php esc_attr_e( 'Save Options', 'elementor' ); ?>" data-tooltip-offset="7"> | |
| 101 | + <i class="eicon-caret-up" aria-hidden="true"></i> | |
| 102 | + <span class="elementor-screen-only"><?php echo __( 'Save Options', 'elementor' ); ?></span> | |
| 120 | 103 | </button> |
| 121 | 104 | <div class="elementor-panel-footer-sub-menu-wrapper"> |
| 122 | 105 | <p class="elementor-last-edited-wrapper"> |
| 123 | 106 | <span class="elementor-state-icon"> |
| @@ -128,20 +111,14 @@ | ||
| 128 | 111 | </p> |
| 129 | 112 | <div class="elementor-panel-footer-sub-menu"> |
| 130 | 113 | <div id="elementor-panel-footer-sub-menu-item-save-draft" class="elementor-panel-footer-sub-menu-item elementor-disabled"> |
| 131 | 114 | <i class="elementor-icon eicon-save" aria-hidden="true"></i> |
| 132 | - <span class="elementor-title"><?php echo esc_html__( 'Save Draft', 'elementor' ); ?></span> | |
| 115 | + <span class="elementor-title"><?php echo __( 'Save Draft', 'elementor' ); ?></span> | |
| 133 | 116 | </div> |
| 134 | 117 | <div id="elementor-panel-footer-sub-menu-item-save-template" class="elementor-panel-footer-sub-menu-item"> |
| 135 | 118 | <i class="elementor-icon eicon-folder" aria-hidden="true"></i> |
| 136 | - <span class="elementor-title"><?php echo esc_html__( 'Save as Template', 'elementor' ); ?></span> | |
| 119 | + <span class="elementor-title"><?php echo __( 'Save as Template', 'elementor' ); ?></span> | |
| 137 | 120 | </div> |
| 138 | - <# if ( $e.components.get( 'document/elements' ).utils.showCopyAndShareButton() ) { #> | |
| 139 | - <div id="elementor-panel-footer-sub-menu-item-copy-share-link" class="elementor-panel-footer-sub-menu-item"> | |
| 140 | - <i class="elementor-icon eicon-link" aria-hidden="true"></i> | |
| 141 | - <span class="elementor-title"><?php echo esc_html__( 'Copy and Share Link', 'elementor' ); ?></span> | |
| 142 | - </div> | |
| 143 | - <# } #> | |
| 144 | 121 | </div> |
| 145 | 122 | </div> |
| 146 | 123 | </div> |
| 147 | 124 | </script> |
| @@ -146,13 +123,13 @@ | ||
| 146 | 123 | </div> |
| 147 | 124 | </script> |
| 148 | 125 | |
| 149 | 126 | <script type="text/template" id="tmpl-elementor-mode-switcher-content"> |
| 150 | - <label for="elementor-mode-switcher-preview-input" id="elementor-mode-switcher-preview" title="<?php echo esc_attr__( 'Hide Panel', 'elementor' ); ?>"> | |
| 151 | - <i class="eicon eicon-angle-left" aria-hidden="true" tabindex="0"></i> | |
| 152 | - <span class="elementor-screen-only"><?php echo esc_html__( 'Hide Panel', 'elementor' ); ?></span> | |
| 127 | + <input id="elementor-mode-switcher-preview-input" type="checkbox"> | |
| 128 | + <label for="elementor-mode-switcher-preview-input" id="elementor-mode-switcher-preview"> | |
| 129 | + <i class="eicon" aria-hidden="true" title="<?php esc_attr_e( 'Hide Panel', 'elementor' ); ?>"></i> | |
| 130 | + <span class="elementor-screen-only"><?php echo __( 'Hide Panel', 'elementor' ); ?></span> | |
| 153 | 131 | </label> |
| 154 | - <input id="elementor-mode-switcher-preview-input" type="checkbox"> | |
| 155 | 132 | </script> |
| 156 | 133 | |
| 157 | 134 | <script type="text/template" id="tmpl-editor-content"> |
| 158 | 135 | <div class="elementor-panel-navigation"> |
| @@ -161,18 +138,18 @@ | ||
| 161 | 138 | return; |
| 162 | 139 | } |
| 163 | 140 | $e.bc.ensureTab( 'panel/editor', tabSlug ); |
| 164 | 141 | #> |
| 165 | - <button class="elementor-component-tab elementor-panel-navigation-tab elementor-tab-control-{{ tabSlug }}" data-tab="{{ tabSlug }}"> | |
| 166 | - <span>{{{ tabTitle }}}</span> | |
| 167 | - </button> | |
| 142 | + <div class="elementor-component-tab elementor-panel-navigation-tab elementor-tab-control-{{ tabSlug }}" data-tab="{{ tabSlug }}"> | |
| 143 | + <a href="#">{{{ tabTitle }}}</a> | |
| 144 | + </div> | |
| 168 | 145 | <# } ); #> |
| 169 | 146 | </div> |
| 170 | 147 | <# if ( elementData.reload_preview ) { #> |
| 171 | 148 | <div class="elementor-update-preview"> |
| 172 | - <div class="elementor-update-preview-title"><?php echo esc_html__( 'Update changes to page', 'elementor' ); ?></div> | |
| 149 | + <div class="elementor-update-preview-title"><?php echo __( 'Update changes to page', 'elementor' ); ?></div> | |
| 173 | 150 | <div class="elementor-update-preview-button-wrapper"> |
| 174 | - <button class="elementor-update-preview-button elementor-button"><?php echo esc_html__( 'Apply', 'elementor' ); ?></button> | |
| 151 | + <button class="elementor-update-preview-button elementor-button elementor-button-success"><?php echo __( 'Apply', 'elementor' ); ?></button> | |
| 175 | 152 | </div> |
| 176 | 153 | </div> |
| 177 | 154 | <# } #> |
| 178 | 155 | <div id="elementor-controls"></div> |
| @@ -178,51 +155,19 @@ | ||
| 178 | 155 | <div id="elementor-controls"></div> |
| 179 | 156 | <# if ( elementData.help_url ) { #> |
| 180 | 157 | <div id="elementor-panel__editor__help"> |
| 181 | 158 | <a id="elementor-panel__editor__help__link" href="{{ elementData.help_url }}" target="_blank"> |
| 182 | - <?php echo esc_html__( 'Need Help', 'elementor' ); ?> | |
| 183 | - <i class="eicon-help-o" aria-hidden="true"></i> | |
| 159 | + <?php echo __( 'Need Help', 'elementor' ); ?> | |
| 160 | + <i class="eicon-help-o"></i> | |
| 184 | 161 | </a> |
| 185 | 162 | </div> |
| 186 | 163 | <# } #> |
| 187 | - | |
| 188 | - <# if ( elementData.upsale_data && elementData.upsale_data.condition ) { #> | |
| 189 | - <div class="elementor-nerd-box elementor-nerd-box--upsale"> | |
| 190 | - <# if ( elementData.upsale_data.image ) { #> | |
| 191 | - <img class="elementor-nerd-box-icon" src="{{ elementData.upsale_data.image }}" loading="lazy" alt="{{ elementData.upsale_data.image_alt }}" /> | |
| 192 | - <# } #> | |
| 193 | - <# if ( elementData.upsale_data.title ) { #> | |
| 194 | - <div class="elementor-nerd-box-title">{{{ elementData.upsale_data.title }}}</div> | |
| 195 | - <# } #> | |
| 196 | - <# if ( elementData.upsale_data.description ) { #> | |
| 197 | - <div class="elementor-nerd-box-message">{{{ elementData.upsale_data.description }}}</div> | |
| 198 | - <# } #> | |
| 199 | - <# if ( elementData.upsale_data.upgrade_url && elementData.upsale_data.upgrade_text ) { #> | |
| 200 | - <a class="elementor-button go-pro" href="{{ elementData.upsale_data.upgrade_url }}" target="_blank">{{{ elementData.upsale_data.upgrade_text }}}</a> | |
| 201 | - <# } #> | |
| 202 | - </div> | |
| 203 | - <# } #> | |
| 204 | - <?php if ( $show_editing_panel_sticky_promotion ) : ?> | |
| 205 | - <div class="elementor-panel-editor-sticky-promotion"> | |
| 206 | - <div class="elementor-get-pro-sticky-message"> | |
| 207 | - <?php echo esc_html( $editing_panel_sticky_promotion['message'] ); ?> | |
| 208 | - <a target="_blank" href="<?php echo esc_url( $editing_panel_sticky_promotion['url'] ); ?>"><?php echo esc_html( $editing_panel_sticky_promotion['button_text'] ); ?></a> | |
| 209 | - </div> | |
| 210 | - </div> | |
| 211 | - <?php endif; ?> | |
| 212 | 164 | </script> |
| 213 | 165 | |
| 214 | 166 | <script type="text/template" id="tmpl-elementor-panel-schemes-disabled"> |
| 215 | - <img class="elementor-nerd-box-icon" src="<?php Utils::print_unescaped_internal_string( ELEMENTOR_ASSETS_URL . 'images/information.svg' ); ?>" loading="lazy" alt="<?php echo esc_attr__( 'Elementor', 'elementor' ); ?>" /> | |
| 216 | - <div class="elementor-nerd-box-title">{{{ '<?php echo esc_html__( '%s are disabled', 'elementor' ); // phpcs:ignore WordPress.WP.I18n.MissingTranslatorsComment ?>'.replace( '%s', disabledTitle ) }}}</div> | |
| 217 | - <div class="elementor-nerd-box-message"><?php | |
| 218 | - printf( | |
| 219 | - /* translators: %1$s Link open tag, %2$s: Link close tag. */ | |
| 220 | - esc_html__( 'You can enable it from the %1$sElementor settings page%2$s.', 'elementor' ), | |
| 221 | - '<a href="' . esc_url( Settings::get_url() ) . '" target="_blank">', | |
| 222 | - '</a>' | |
| 223 | - ); | |
| 224 | - ?></div> | |
| 167 | + <img class="elementor-nerd-box-icon" src="<?php echo ELEMENTOR_ASSETS_URL . 'images/information.svg'; ?>" /> | |
| 168 | + <div class="elementor-nerd-box-title">{{{ '<?php echo __( '%s are disabled', 'elementor' ); ?>'.replace( '%s', disabledTitle ) }}}</div> | |
| 169 | + <div class="elementor-nerd-box-message"><?php printf( __( 'You can enable it from the <a href="%s" target="_blank">Elementor settings page</a>.', 'elementor' ), Settings::get_url() ); ?></div> | |
| 225 | 170 | </script> |
| 226 | 171 | |
| 227 | 172 | <script type="text/template" id="tmpl-elementor-panel-scheme-color-item"> |
| 228 | 173 | <div class="elementor-panel-scheme-color-picker-placeholder"></div> |
| @@ -231,9 +176,9 @@ | ||
| 231 | 176 | |
| 232 | 177 | <script type="text/template" id="tmpl-elementor-panel-scheme-typography-item"> |
| 233 | 178 | <div class="elementor-panel-heading"> |
| 234 | 179 | <div class="elementor-panel-heading-toggle"> |
| 235 | - <i class="eicon-caret-right" aria-hidden="true"></i> | |
| 180 | + <i class="eicon" aria-hidden="true"></i> | |
| 236 | 181 | </div> |
| 237 | 182 | <div class="elementor-panel-heading-title">{{{ title }}}</div> |
| 238 | 183 | </div> |
| 239 | 184 | <div class="elementor-panel-scheme-typography-items elementor-panel-box-content"> |
| @@ -247,23 +192,23 @@ | ||
| 247 | 192 | |
| 248 | 193 | foreach ( $scheme_fields as $option_name => $option ) : |
| 249 | 194 | ?> |
| 250 | 195 | <div class="elementor-panel-scheme-typography-item elementor-control elementor-control-type-select"> |
| 251 | - <div class="elementor-panel-scheme-item-title elementor-control-title"><?php echo esc_html( $option['label'] ); ?></div> | |
| 196 | + <div class="elementor-panel-scheme-item-title elementor-control-title"><?php echo $option['label']; ?></div> | |
| 252 | 197 | <div class="elementor-panel-scheme-typography-item-value elementor-control-input-wrapper"> |
| 253 | 198 | <?php if ( 'select' === $option['type'] ) : ?> |
| 254 | 199 | <select name="<?php echo esc_attr( $option_name ); ?>" class="elementor-panel-scheme-typography-item-field"> |
| 255 | 200 | <?php foreach ( $option['options'] as $field_key => $field_value ) : ?> |
| 256 | - <option value="<?php echo esc_attr( $field_key ); ?>"><?php echo esc_html( $field_value ); ?></option> | |
| 201 | + <option value="<?php echo esc_attr( $field_key ); ?>"><?php echo $field_value; ?></option> | |
| 257 | 202 | <?php endforeach; ?> |
| 258 | 203 | </select> |
| 259 | 204 | <?php elseif ( 'font' === $option['type'] ) : ?> |
| 260 | 205 | <select name="<?php echo esc_attr( $option_name ); ?>" class="elementor-panel-scheme-typography-item-field"> |
| 261 | - <option value=""><?php echo esc_html__( 'Default', 'elementor' ); ?></option> | |
| 206 | + <option value=""><?php echo __( 'Default', 'elementor' ); ?></option> | |
| 262 | 207 | <?php foreach ( Fonts::get_font_groups() as $group_type => $group_label ) : ?> |
| 263 | 208 | <optgroup label="<?php echo esc_attr( $group_label ); ?>"> |
| 264 | 209 | <?php foreach ( Fonts::get_fonts_by_groups( [ $group_type ] ) as $font_title => $font_type ) : ?> |
| 265 | - <option value="<?php echo esc_attr( $font_title ); ?>"><?php echo esc_html( $font_title ); ?></option> | |
| 210 | + <option value="<?php echo esc_attr( $font_title ); ?>"><?php echo $font_title; ?></option> | |
| 266 | 211 | <?php endforeach; ?> |
| 267 | 212 | </optgroup> |
| 268 | 213 | <?php endforeach; ?> |
| 269 | 214 | </select> |
| @@ -279,21 +224,17 @@ | ||
| 279 | 224 | <script type="text/template" id="tmpl-elementor-control-responsive-switchers"> |
| 280 | 225 | <div class="elementor-control-responsive-switchers"> |
| 281 | 226 | <div class="elementor-control-responsive-switchers__holder"> |
| 282 | 227 | <# |
| 283 | - const activeBreakpoints = elementor.config.responsive.activeBreakpoints, | |
| 284 | - devicesForDisplay = elementor.breakpoints.getActiveBreakpointsList( { largeToSmall: true, withDesktop: true } ); | |
| 228 | + var devices = responsive.devices || [ 'desktop', 'tablet', 'mobile' ]; | |
| 285 | 229 | |
| 286 | - var devices = responsive.devices || devicesForDisplay; | |
| 287 | - | |
| 288 | 230 | _.each( devices, function( device ) { |
| 289 | - // The 'Desktop' label is made accessible via the global config because it needs to be translated. | |
| 290 | - var deviceLabel = 'desktop' === device ? '<?php esc_html_e( 'Desktop', 'elementor' ); ?>' : activeBreakpoints[ device ].label, | |
| 231 | + var deviceLabel = device.charAt(0).toUpperCase() + device.slice(1), | |
| 291 | 232 | tooltipDir = "<?php echo is_rtl() ? 'e' : 'w'; ?>"; |
| 292 | 233 | #> |
| 293 | - <button class="elementor-responsive-switcher tooltip-target elementor-responsive-switcher-{{ device }}" data-device="{{ device }}" data-tooltip="{{ deviceLabel }}" data-tooltip-pos="{{ tooltipDir }}" aria-label="{{ deviceLabel }}"> | |
| 294 | - <i class="{{ elementor.config.responsive.icons_map[ device ] }}" aria-hidden="true"></i> | |
| 295 | - </button> | |
| 234 | + <a class="elementor-responsive-switcher tooltip-target elementor-responsive-switcher-{{ device }}" data-device="{{ device }}" data-tooltip="{{ deviceLabel }}" data-tooltip-pos="{{ tooltipDir }}"> | |
| 235 | + <i class="eicon-device-{{ device }}"></i> | |
| 236 | + </a> | |
| 296 | 237 | <# } ); |
| 297 | 238 | #> |
| 298 | 239 | </div> |
| 299 | 240 | </div> |
| @@ -299,19 +240,13 @@ | ||
| 299 | 240 | </div> |
| 300 | 241 | </script> |
| 301 | 242 | |
| 302 | 243 | <script type="text/template" id="tmpl-elementor-control-dynamic-switcher"> |
| 303 | - <button class="elementor-control-dynamic-switcher elementor-control-unit-1" data-tooltip="<?php echo esc_attr__( 'Dynamic Tags', 'elementor' ); ?>" aria-label="<?php echo esc_attr__( 'Dynamic Tags', 'elementor' ); ?>"> | |
| 304 | - <i class="eicon-database" aria-hidden="true"></i> | |
| 305 | - </button> | |
| 244 | + <div class="elementor-control-dynamic-switcher elementor-control-unit-1" data-tooltip="<?php echo __( 'Dynamic Tags', 'elementor' ); ?>"> | |
| 245 | + <i class="eicon-database"></i> | |
| 246 | + </div> | |
| 306 | 247 | </script> |
| 307 | 248 | |
| 308 | -<script type="text/template" id="tmpl-elementor-control-element-color-picker"> | |
| 309 | - <button class="elementor-control-element-color-picker e-control-tool" data-tooltip="<?php echo esc_attr__( 'Color Sampler', 'elementor' ); ?>" aria-label="<?php echo esc_attr__( 'Color Sampler', 'elementor' ); ?>"> | |
| 310 | - <i class="eicon-eyedropper" aria-hidden="true"></i> | |
| 311 | - </button> | |
| 312 | -</script> | |
| 313 | - | |
| 314 | 249 | <script type="text/template" id="tmpl-elementor-control-dynamic-cover"> |
| 315 | 250 | <div class="elementor-dynamic-cover__settings"> |
| 316 | 251 | <i class="eicon-{{ hasSettings ? 'wrench' : 'database' }}"></i> |
| 317 | 252 | </div> |
| @@ -325,15 +260,15 @@ | ||
| 325 | 260 | |
| 326 | 261 | <script type="text/template" id="tmpl-elementor-dynamic-tags-promo"> |
| 327 | 262 | <div class="elementor-tags-list__teaser"> |
| 328 | 263 | <div class="elementor-tags-list__group-title elementor-tags-list__teaser-title"> |
| 329 | - <i class="eicon-info-circle"></i><?php echo esc_html__( 'Elementor Dynamic Content', 'elementor' ); ?> | |
| 264 | + <i class="eicon-info-circle"></i><?php echo __( 'Elementor Dynamic Content', 'elementor' ); ?> | |
| 330 | 265 | </div> |
| 331 | 266 | <div class="elementor-tags-list__teaser-text"> |
| 332 | - <?php echo esc_html__( 'You’re missing out!', 'elementor' ); ?><br /> | |
| 333 | - <?php echo esc_html__( 'Get more dynamic capabilities by incorporating dozens of Elementor\'s native dynamic tags.', 'elementor' ); ?> | |
| 334 | - <a href="{{{ promotionUrl }}}" class="elementor-tags-list__teaser-link" target="_blank"> | |
| 335 | - <?php echo esc_html__( 'Upgrade', 'elementor' ); ?> | |
| 267 | + <?php echo __( 'You’re missing out!', 'elementor' ); ?><br /> | |
| 268 | + <?php echo __( 'Get more dynamic capabilities by incorporating dozens of Elementor\'s native dynamic tags.', 'elementor' ); ?> | |
| 269 | + <a href="{{{ elementor.config.dynamicPromotionURL }}}" class="elementor-tags-list__teaser-link" target="_blank"> | |
| 270 | + <?php echo __( 'See it in action', 'elementor' ); ?> | |
| 336 | 271 | </a> |
| 337 | 272 | </div> |
| 338 | 273 | </div> |
| 339 | 274 | </script> |