PluginProbe
Elementor Website Builder – more than just a page builder / 3.1.1
Elementor Website Builder – more than just a page builder v3.1.1
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.1.1, at includes/editor-templates/templates.php

288 lines 16.6 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-get-pro-button">
203 <a class="elementor-template-library-template-action elementor-button elementor-go-pro" href="<?php echo Utils::get_pro_link( 'https://elementor.com/pro/?utm_source=panel-library&utm_campaign=gopro&utm_medium=wp-dash' ); ?>" target="_blank">
204 <i class="eicon-external-link-square" aria-hidden="true"></i>
205 <span class="elementor-button-title"><?php echo __( 'Go Pro', 'elementor' ); ?></span>
206 </a>
207 </script>
208
209 <script type="text/template" id="tmpl-elementor-template-library-save-template">
210 <div class="elementor-template-library-blank-icon">
211 <i class="eicon-library-save" aria-hidden="true"></i>
212 <span class="elementor-screen-only"><?php echo __( 'Save', 'elementor' ); ?></span>
213 </div>
214 <div class="elementor-template-library-blank-title">{{{ title }}}</div>
215 <div class="elementor-template-library-blank-message">{{{ description }}}</div>
216 <form id="elementor-template-library-save-template-form">
217 <input type="hidden" name="post_id" value="<?php echo get_the_ID(); ?>">
218 <input id="elementor-template-library-save-template-name" name="title" placeholder="<?php echo esc_attr__( 'Enter Template Name', 'elementor' ); ?>" required>
219 <button id="elementor-template-library-save-template-submit" class="elementor-button elementor-button-success">
220 <span class="elementor-state-icon">
221 <i class="eicon-loading eicon-animation-spin" aria-hidden="true"></i>
222 </span>
223 <?php echo __( 'Save', 'elementor' ); ?>
224 </button>
225 </form>
226 <div class="elementor-template-library-blank-footer">
227 <?php echo __( 'Want to learn more about the Elementor library?', 'elementor' ); ?>
228 <a class="elementor-template-library-blank-footer-link" href="https://go.elementor.com/docs-library/" target="_blank"><?php echo __( 'Click here', 'elementor' ); ?></a>
229 </div>
230 </script>
231
232 <script type="text/template" id="tmpl-elementor-template-library-import">
233 <form id="elementor-template-library-import-form">
234 <div class="elementor-template-library-blank-icon">
235 <i class="eicon-library-upload" aria-hidden="true"></i>
236 </div>
237 <div class="elementor-template-library-blank-title"><?php echo __( 'Import Template to Your Library', 'elementor' ); ?></div>
238 <div class="elementor-template-library-blank-message"><?php echo __( 'Drag & drop your .JSON or .zip template file', 'elementor' ); ?></div>
239 <div id="elementor-template-library-import-form-or"><?php echo __( 'or', 'elementor' ); ?></div>
240 <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>
241 <input id="elementor-template-library-import-form-input" type="file" name="file" accept=".json,.zip" required/>
242 <div class="elementor-template-library-blank-footer">
243 <?php echo __( 'Want to learn more about the Elementor library?', 'elementor' ); ?>
244 <a class="elementor-template-library-blank-footer-link" href="https://go.elementor.com/docs-library/" target="_blank"><?php echo __( 'Click here', 'elementor' ); ?></a>
245 </div>
246 </form>
247 </script>
248
249 <script type="text/template" id="tmpl-elementor-template-library-templates-empty">
250 <div class="elementor-template-library-blank-icon">
251 <img src="<?php echo ELEMENTOR_ASSETS_URL . 'images/no-search-results.svg'; ?>" class="elementor-template-library-no-results" />
252 </div>
253 <div class="elementor-template-library-blank-title"></div>
254 <div class="elementor-template-library-blank-message"></div>
255 <div class="elementor-template-library-blank-footer">
256 <?php echo __( 'Want to learn more about the Elementor library?', 'elementor' ); ?>
257 <a class="elementor-template-library-blank-footer-link" href="https://go.elementor.com/docs-library/" target="_blank"><?php echo __( 'Click here', 'elementor' ); ?></a>
258 </div>
259 </script>
260
261 <script type="text/template" id="tmpl-elementor-template-library-preview">
262 <iframe></iframe>
263 </script>
264
265 <script type="text/template" id="tmpl-elementor-template-library-connect">
266 <div id="elementor-template-library-connect-logo" class="e-logo-wrapper">
267 <i class="eicon-elementor" aria-hidden="true"></i>
268 </div>
269 <div class="elementor-template-library-blank-title">
270 {{{ title }}}
271 </div>
272 <div class="elementor-template-library-blank-message">
273 {{{ message }}}
274 </div>
275 <?php $url = Plugin::$instance->common->get_component( 'connect' )->get_app( 'library' )->get_admin_url( 'authorize' ); ?>
276 <a id="elementor-template-library-connect__button" class="elementor-button elementor-button-success" href="<?php echo esc_attr( $url ); ?>">
277 {{{ button }}}
278 </a>
279 <?php
280 $base_images_url = $this->get_assets_base_url() . '/assets/images/library-connect/';
281
282 $images = [ 'left-1', 'left-2', 'right-1', 'right-2' ];
283
284 foreach ( $images as $image ) : ?>
285 <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"/>
286 <?php endforeach; ?>
287 </script>
288