PluginProbe
Elementor Website Builder – more than just a page builder / 3.3.0
Elementor Website Builder – more than just a page builder v3.3.0
4.3.0-beta2 4.3.0-beta1 4.2.4 4.2.3 4.2.2 4.2.1 4.2.0 4.1.5 4.2.0-beta2 4.2.0-dev2 4.2.0-beta1 4.1.4 4.1.3 4.1.2 4.1.1 4.1.0 4.1.0-beta3 4.1.0-dev3 4.0.9 4.1.0-beta2 4.1.0-dev2 4.0.8 4.1.0-beta1 4.1.0-dev1 4.0.7 All 451 releases
elementor / includes / editor-templates / templates.php

templates.php in Elementor Website Builder – more than just a page builder 3.3.0, at includes/editor-templates/templates.php

292 lines 16.5 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 namespace Elementor;
3
4 if ( ! defined( 'ABSPATH' ) ) {
5 exit; // Exit if accessed directly.
6 }
7 ?>
8 <script type="text/template" id="tmpl-elementor-template-library-header-actions">
9 <div id="elementor-template-library-header-import" class="elementor-templates-modal__header__item">
10 <i class="eicon-upload-circle-o" aria-hidden="true" title="<?php esc_attr_e( 'Import Template', 'elementor' ); ?>"></i>
11 <span class="elementor-screen-only"><?php echo __( 'Import Template', 'elementor' ); ?></span>
12 </div>
13 <div id="elementor-template-library-header-sync" class="elementor-templates-modal__header__item">
14 <i class="eicon-sync" aria-hidden="true" title="<?php esc_attr_e( 'Sync Library', 'elementor' ); ?>"></i>
15 <span class="elementor-screen-only"><?php echo __( 'Sync Library', 'elementor' ); ?></span>
16 </div>
17 <div id="elementor-template-library-header-save" class="elementor-templates-modal__header__item">
18 <i class="eicon-save-o" aria-hidden="true" title="<?php esc_attr_e( 'Save', 'elementor' ); ?>"></i>
19 <span class="elementor-screen-only"><?php echo __( 'Save', 'elementor' ); ?></span>
20 </div>
21 </script>
22
23 <script type="text/template" id="tmpl-elementor-template-library-header-menu">
24 <# jQuery.each( tabs, ( tab, args ) => { #>
25 <div class="elementor-component-tab elementor-template-library-menu-item" data-tab="{{{ tab }}}">{{{ args.title }}}</div>
26 <# } ); #>
27 </script>
28
29 <script type="text/template" id="tmpl-elementor-template-library-header-preview">
30 <div id="elementor-template-library-header-preview-insert-wrapper" class="elementor-templates-modal__header__item">
31 {{{ elementor.templates.layout.getTemplateActionButton( obj ) }}}
32 </div>
33 </script>
34
35 <script type="text/template" id="tmpl-elementor-template-library-header-back">
36 <i class="eicon-" aria-hidden="true"></i>
37 <span><?php echo __( 'Back to Library', 'elementor' ); ?></span>
38 </script>
39
40 <script type="text/template" id="tmpl-elementor-template-library-loading">
41 <div class="elementor-loader-wrapper">
42 <div class="elementor-loader">
43 <div class="elementor-loader-boxes">
44 <div class="elementor-loader-box"></div>
45 <div class="elementor-loader-box"></div>
46 <div class="elementor-loader-box"></div>
47 <div class="elementor-loader-box"></div>
48 </div>
49 </div>
50 <div class="elementor-loading-title"><?php echo __( 'Loading', 'elementor' ); ?></div>
51 </div>
52 </script>
53
54 <script type="text/template" id="tmpl-elementor-template-library-templates">
55 <#
56 var activeSource = elementor.templates.getFilter('source');
57 #>
58 <div id="elementor-template-library-toolbar">
59 <# if ( 'remote' === activeSource ) {
60 var activeType = elementor.templates.getFilter('type');
61 #>
62 <div id="elementor-template-library-filter-toolbar-remote" class="elementor-template-library-filter-toolbar">
63 <# if ( 'page' === activeType ) { #>
64 <div id="elementor-template-library-order">
65 <input type="radio" id="elementor-template-library-order-new" class="elementor-template-library-order-input" name="elementor-template-library-order" value="date">
66 <label for="elementor-template-library-order-new" class="elementor-template-library-order-label"><?php echo __( 'New', 'elementor' ); ?></label>
67 <input type="radio" id="elementor-template-library-order-trend" class="elementor-template-library-order-input" name="elementor-template-library-order" value="trendIndex">
68 <label for="elementor-template-library-order-trend" class="elementor-template-library-order-label"><?php echo __( 'Trend', 'elementor' ); ?></label>
69 <input type="radio" id="elementor-template-library-order-popular" class="elementor-template-library-order-input" name="elementor-template-library-order" value="popularityIndex">
70 <label for="elementor-template-library-order-popular" class="elementor-template-library-order-label"><?php echo __( 'Popular', 'elementor' ); ?></label>
71 </div>
72 <# } else {
73 var config = elementor.templates.getConfig( activeType );
74 if ( config.categories ) { #>
75 <div id="elementor-template-library-filter">
76 <select id="elementor-template-library-filter-subtype" class="elementor-template-library-filter-select" data-elementor-filter="subtype">
77 <option></option>
78 <# config.categories.forEach( function( category ) {
79 var selected = category === elementor.templates.getFilter( 'subtype' ) ? ' selected' : '';
80 #>
81 <option value="{{ category }}"{{{ selected }}}>{{{ category }}}</option>
82 <# } ); #>
83 </select>
84 </div>
85 <# }
86 } #>
87 <div id="elementor-template-library-my-favorites">
88 <# var checked = elementor.templates.getFilter( 'favorite' ) ? ' checked' : ''; #>
89 <input id="elementor-template-library-filter-my-favorites" type="checkbox"{{{ checked }}}>
90 <label id="elementor-template-library-filter-my-favorites-label" for="elementor-template-library-filter-my-favorites">
91 <i class="eicon" aria-hidden="true"></i>
92 <?php echo __( 'My Favorites', 'elementor' ); ?>
93 </label>
94 </div>
95 </div>
96 <# } else { #>
97 <div id="elementor-template-library-filter-toolbar-local" class="elementor-template-library-filter-toolbar"></div>
98 <# } #>
99 <div id="elementor-template-library-filter-text-wrapper">
100 <label for="elementor-template-library-filter-text" class="elementor-screen-only"><?php echo __( 'Search Templates:', 'elementor' ); ?></label>
101 <input id="elementor-template-library-filter-text" placeholder="<?php echo esc_attr__( 'Search', 'elementor' ); ?>">
102 <i class="eicon-search"></i>
103 </div>
104 </div>
105 <# if ( 'local' === activeSource ) { #>
106 <div id="elementor-template-library-order-toolbar-local">
107 <div class="elementor-template-library-local-column-1">
108 <input type="radio" id="elementor-template-library-order-local-title" class="elementor-template-library-order-input" name="elementor-template-library-order-local" value="title" data-default-ordering-direction="asc">
109 <label for="elementor-template-library-order-local-title" class="elementor-template-library-order-label"><?php echo __( 'Name', 'elementor' ); ?></label>
110 </div>
111 <div class="elementor-template-library-local-column-2">
112 <input type="radio" id="elementor-template-library-order-local-type" class="elementor-template-library-order-input" name="elementor-template-library-order-local" value="type" data-default-ordering-direction="asc">
113 <label for="elementor-template-library-order-local-type" class="elementor-template-library-order-label"><?php echo __( 'Type', 'elementor' ); ?></label>
114 </div>
115 <div class="elementor-template-library-local-column-3">
116 <input type="radio" id="elementor-template-library-order-local-author" class="elementor-template-library-order-input" name="elementor-template-library-order-local" value="author" data-default-ordering-direction="asc">
117 <label for="elementor-template-library-order-local-author" class="elementor-template-library-order-label"><?php echo __( 'Created By', 'elementor' ); ?></label>
118 </div>
119 <div class="elementor-template-library-local-column-4">
120 <input type="radio" id="elementor-template-library-order-local-date" class="elementor-template-library-order-input" name="elementor-template-library-order-local" value="date">
121 <label for="elementor-template-library-order-local-date" class="elementor-template-library-order-label"><?php echo __( 'Creation Date', 'elementor' ); ?></label>
122 </div>
123 <div class="elementor-template-library-local-column-5">
124 <div class="elementor-template-library-order-label"><?php echo __( 'Actions', 'elementor' ); ?></div>
125 </div>
126 </div>
127 <# } #>
128 <div id="elementor-template-library-templates-container"></div>
129 <# if ( 'remote' === activeSource ) { #>
130 <div id="elementor-template-library-footer-banner">
131 <img class="elementor-nerd-box-icon" src="<?php echo ELEMENTOR_ASSETS_URL . 'images/information.svg'; ?>" />
132 <div class="elementor-excerpt"><?php echo __( 'Stay tuned! More awesome templates coming real soon.', 'elementor' ); ?></div>
133 </div>
134 <# } #>
135 </script>
136
137 <script type="text/template" id="tmpl-elementor-template-library-template-remote">
138 <div class="elementor-template-library-template-body">
139 <?php // 'lp' stands for Landing Pages Library type. ?>
140 <# if ( 'page' === type || 'lp' === type ) { #>
141 <div class="elementor-template-library-template-screenshot" style="background-image: url({{ thumbnail }});"></div>
142 <# } else { #>
143 <img src="{{ thumbnail }}">
144 <# } #>
145 <div class="elementor-template-library-template-preview">
146 <i class="eicon-zoom-in-bold" aria-hidden="true"></i>
147 </div>
148 </div>
149 <div class="elementor-template-library-template-footer">
150 {{{ elementor.templates.layout.getTemplateActionButton( obj ) }}}
151 <div class="elementor-template-library-template-name">{{{ title }}} - {{{ type }}}</div>
152 <div class="elementor-template-library-favorite">
153 <input id="elementor-template-library-template-{{ template_id }}-favorite-input" class="elementor-template-library-template-favorite-input" type="checkbox"{{ favorite ? " checked" : "" }}>
154 <label for="elementor-template-library-template-{{ template_id }}-favorite-input" class="elementor-template-library-template-favorite-label">
155 <i class="eicon-heart-o" aria-hidden="true"></i>
156 <span class="elementor-screen-only"><?php echo __( 'Favorite', 'elementor' ); ?></span>
157 </label>
158 </div>
159 </div>
160 </script>
161
162 <script type="text/template" id="tmpl-elementor-template-library-template-local">
163 <div class="elementor-template-library-template-name elementor-template-library-local-column-1">{{ title }}</div>
164 <div class="elementor-template-library-template-meta elementor-template-library-template-type elementor-template-library-local-column-2">{{{ elementor.translate( type ) }}}</div>
165 <div class="elementor-template-library-template-meta elementor-template-library-template-author elementor-template-library-local-column-3">{{{ author }}}</div>
166 <div class="elementor-template-library-template-meta elementor-template-library-template-date elementor-template-library-local-column-4">{{{ human_date }}}</div>
167 <div class="elementor-template-library-template-controls elementor-template-library-local-column-5">
168 <div class="elementor-template-library-template-preview">
169 <i class="eicon-preview-medium" aria-hidden="true"></i>
170 <span class="elementor-template-library-template-control-title"><?php echo __( 'Preview', 'elementor' ); ?></span>
171 </div>
172 <button class="elementor-template-library-template-action elementor-template-library-template-insert elementor-button elementor-button-success">
173 <i class="eicon-file-download" aria-hidden="true"></i>
174 <span class="elementor-button-title"><?php echo __( 'Insert', 'elementor' ); ?></span>
175 </button>
176 <div class="elementor-template-library-template-more-toggle">
177 <i class="eicon-ellipsis-h" aria-hidden="true"></i>
178 <span class="elementor-screen-only"><?php echo __( 'More actions', 'elementor' ); ?></span>
179 </div>
180 <div class="elementor-template-library-template-more">
181 <div class="elementor-template-library-template-delete">
182 <i class="eicon-trash-o" aria-hidden="true"></i>
183 <span class="elementor-template-library-template-control-title"><?php echo __( 'Delete', 'elementor' ); ?></span>
184 </div>
185 <div class="elementor-template-library-template-export">
186 <a href="{{ export_link }}">
187 <i class="eicon-sign-out" aria-hidden="true"></i>
188 <span class="elementor-template-library-template-control-title"><?php echo __( 'Export', 'elementor' ); ?></span>
189 </a>
190 </div>
191 </div>
192 </div>
193 </script>
194
195 <script type="text/template" id="tmpl-elementor-template-library-insert-button">
196 <a class="elementor-template-library-template-action elementor-template-library-template-insert elementor-button">
197 <i class="eicon-file-download" aria-hidden="true"></i>
198 <span class="elementor-button-title"><?php echo __( 'Insert', 'elementor' ); ?></span>
199 </a>
200 </script>
201
202 <script type="text/template" id="tmpl-elementor-template-library-upgrade-plan-button">
203 <a
204 class="elementor-template-library-template-action elementor-button elementor-go-pro"
205 href="{{{ promotionLink }}}"
206 target="_blank"
207 >
208 <i class="eicon-external-link-square" aria-hidden="true"></i>
209 <span class="elementor-button-title">{{{ promotionText }}}</span>
210 </a>
211 </script>
212
213 <script type="text/template" id="tmpl-elementor-template-library-save-template">
214 <div class="elementor-template-library-blank-icon">
215 <i class="eicon-library-save" aria-hidden="true"></i>
216 <span class="elementor-screen-only"><?php echo __( 'Save', 'elementor' ); ?></span>
217 </div>
218 <div class="elementor-template-library-blank-title">{{{ title }}}</div>
219 <div class="elementor-template-library-blank-message">{{{ description }}}</div>
220 <form id="elementor-template-library-save-template-form">
221 <input type="hidden" name="post_id" value="<?php echo get_the_ID(); ?>">
222 <input id="elementor-template-library-save-template-name" name="title" placeholder="<?php echo esc_attr__( 'Enter Template Name', 'elementor' ); ?>" required>
223 <button id="elementor-template-library-save-template-submit" class="elementor-button elementor-button-success">
224 <span class="elementor-state-icon">
225 <i class="eicon-loading eicon-animation-spin" aria-hidden="true"></i>
226 </span>
227 <?php echo __( 'Save', 'elementor' ); ?>
228 </button>
229 </form>
230 <div class="elementor-template-library-blank-footer">
231 <?php echo __( 'Want to learn more about the Elementor library?', 'elementor' ); ?>
232 <a class="elementor-template-library-blank-footer-link" href="https://go.elementor.com/docs-library/" target="_blank"><?php echo __( 'Click here', 'elementor' ); ?></a>
233 </div>
234 </script>
235
236 <script type="text/template" id="tmpl-elementor-template-library-import">
237 <form id="elementor-template-library-import-form">
238 <div class="elementor-template-library-blank-icon">
239 <i class="eicon-library-upload" aria-hidden="true"></i>
240 </div>
241 <div class="elementor-template-library-blank-title"><?php echo __( 'Import Template to Your Library', 'elementor' ); ?></div>
242 <div class="elementor-template-library-blank-message"><?php echo __( 'Drag & drop your .JSON or .zip template file', 'elementor' ); ?></div>
243 <div id="elementor-template-library-import-form-or"><?php echo __( 'or', 'elementor' ); ?></div>
244 <label for="elementor-template-library-import-form-input" id="elementor-template-library-import-form-label" class="elementor-button elementor-button-success"><?php echo __( 'Select File', 'elementor' ); ?></label>
245 <input id="elementor-template-library-import-form-input" type="file" name="file" accept=".json,.zip" required/>
246 <div class="elementor-template-library-blank-footer">
247 <?php echo __( 'Want to learn more about the Elementor library?', 'elementor' ); ?>
248 <a class="elementor-template-library-blank-footer-link" href="https://go.elementor.com/docs-library/" target="_blank"><?php echo __( 'Click here', 'elementor' ); ?></a>
249 </div>
250 </form>
251 </script>
252
253 <script type="text/template" id="tmpl-elementor-template-library-templates-empty">
254 <div class="elementor-template-library-blank-icon">
255 <img src="<?php echo ELEMENTOR_ASSETS_URL . 'images/no-search-results.svg'; ?>" class="elementor-template-library-no-results" />
256 </div>
257 <div class="elementor-template-library-blank-title"></div>
258 <div class="elementor-template-library-blank-message"></div>
259 <div class="elementor-template-library-blank-footer">
260 <?php echo __( 'Want to learn more about the Elementor library?', 'elementor' ); ?>
261 <a class="elementor-template-library-blank-footer-link" href="https://go.elementor.com/docs-library/" target="_blank"><?php echo __( 'Click here', 'elementor' ); ?></a>
262 </div>
263 </script>
264
265 <script type="text/template" id="tmpl-elementor-template-library-preview">
266 <iframe></iframe>
267 </script>
268
269 <script type="text/template" id="tmpl-elementor-template-library-connect">
270 <div id="elementor-template-library-connect-logo" class="e-logo-wrapper">
271 <i class="eicon-elementor" aria-hidden="true"></i>
272 </div>
273 <div class="elementor-template-library-blank-title">
274 {{{ title }}}
275 </div>
276 <div class="elementor-template-library-blank-message">
277 {{{ message }}}
278 </div>
279 <?php $url = Plugin::$instance->common->get_component( 'connect' )->get_app( 'library' )->get_admin_url( 'authorize' ); ?>
280 <a id="elementor-template-library-connect__button" class="elementor-button elementor-button-success" href="<?php echo esc_attr( $url ); ?>">
281 {{{ button }}}
282 </a>
283 <?php
284 $base_images_url = $this->get_assets_base_url() . '/assets/images/library-connect/';
285
286 $images = [ 'left-1', 'left-2', 'right-1', 'right-2' ];
287
288 foreach ( $images as $image ) : ?>
289 <img id="elementor-template-library-connect__background-image-<?php echo $image; ?>" class="elementor-template-library-connect__background-image" src="<?php echo $base_images_url . $image; ?>.png" draggable="false"/>
290 <?php endforeach; ?>
291 </script>
292