/var/www/html_us/wp-content/plugins/elementor/includes/editor-templates/templates.php


1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
<?php
namespace Elementor;

if ( ! 
defined'ABSPATH' ) ) {
    exit; 
// Exit if accessed directly.
}
?>
<script type="text/template" id="tmpl-elementor-template-library-header-actions">
    <?php if ( User::is_current_user_can_upload_json() ) { ?>
        <div id="elementor-template-library-header-import" class="elementor-templates-modal__header__item">
            <i class="eicon-upload-circle-o" aria-hidden="true" title="<?php esc_attr_e'Import Template''elementor' ); ?>"></i>
            <span class="elementor-screen-only"><?php echo esc_html__'Import Template''elementor' ); ?></span>
        </div>
    <?php ?>
    <div id="elementor-template-library-header-sync" class="elementor-templates-modal__header__item">
        <i class="eicon-sync" aria-hidden="true" title="<?php esc_attr_e'Sync Library''elementor' ); ?>"></i>
        <span class="elementor-screen-only"><?php echo esc_html__'Sync Library''elementor' ); ?></span>
    </div>
    <div id="elementor-template-library-header-save" class="elementor-templates-modal__header__item">
        <i class="eicon-save-o" aria-hidden="true" title="<?php esc_attr_e'Save''elementor' ); ?>"></i>
        <span class="elementor-screen-only"><?php echo esc_html__'Save''elementor' ); ?></span>
    </div>
</script>

<script type="text/template" id="tmpl-elementor-template-library-header-menu">
    <# jQuery.each( tabs, ( tab, args ) => { #>
        <div class="elementor-component-tab elementor-template-library-menu-item" data-tab="{{{ tab }}}">{{{ args.title }}}</div>
    <# } ); #>
</script>

<script type="text/template" id="tmpl-elementor-template-library-header-preview">
    <div id="elementor-template-library-header-preview-insert-wrapper" class="elementor-templates-modal__header__item">
        {{{ elementor.templates.layout.getTemplateActionButton( obj ) }}}
    </div>
</script>

<script type="text/template" id="tmpl-elementor-template-library-header-back">
    <i class="eicon-" aria-hidden="true"></i>
    <span><?php echo esc_html__'Back to Library''elementor' ); ?></span>
</script>

<script type="text/template" id="tmpl-elementor-template-library-loading">
    <div class="elementor-loader-wrapper">
        <div class="elementor-loader">
            <div class="elementor-loader-boxes">
                <div class="elementor-loader-box"></div>
                <div class="elementor-loader-box"></div>
                <div class="elementor-loader-box"></div>
                <div class="elementor-loader-box"></div>
            </div>
        </div>
        <div class="elementor-loading-title"><?php echo esc_html__'Loading''elementor' ); ?></div>
    </div>
</script>

<script type="text/template" id="tmpl-elementor-template-library-templates">
    <#
        var activeSource = elementor.templates.getFilter('source');
        /**
        * Filter template source.
        *
        * @param bool   isRemote     - If `true` the source is a remote source.
        * @param string activeSource - The current template source.
        */
        const isRemote = elementor.hooks.applyFilters( 'templates/source/is-remote', activeSource !== 'local', activeSource );
    #>
    <div id="elementor-template-library-toolbar">
        <# if ( isRemote ) {
            var activeType = elementor.templates.getFilter('type');
            #>
            <div id="elementor-template-library-filter-toolbar-remote" class="elementor-template-library-filter-toolbar">
                <# if ( 'page' === activeType ) { #>
                    <div id="elementor-template-library-order">
                        <input type="radio" id="elementor-template-library-order-new" class="elementor-template-library-order-input" name="elementor-template-library-order" value="date">
                        <label for="elementor-template-library-order-new" class="elementor-template-library-order-label"><?php echo esc_html__'New''elementor' ); ?></label>
                        <input type="radio" id="elementor-template-library-order-trend" class="elementor-template-library-order-input" name="elementor-template-library-order" value="trendIndex">
                        <label for="elementor-template-library-order-trend" class="elementor-template-library-order-label"><?php echo esc_html__'Trend''elementor' ); ?></label>
                        <input type="radio" id="elementor-template-library-order-popular" class="elementor-template-library-order-input" name="elementor-template-library-order" value="popularityIndex">
                        <label for="elementor-template-library-order-popular" class="elementor-template-library-order-label"><?php echo esc_html__'Popular''elementor' ); ?></label>
                    </div>
                <# } else if ( 'lb' !== activeType ) {
                    var config = elementor.templates.getConfig( activeType );
                    if ( config.categories ) { #>
                        <div id="elementor-template-library-filter">
                            <select id="elementor-template-library-filter-subtype" class="elementor-template-library-filter-select" data-elementor-filter="subtype">
                                <option></option>
                                <# config.categories.forEach( function( category ) {
                                    var selected = category === elementor.templates.getFilter( 'subtype' ) ? ' selected' : '';
                                    #>
                                    <option value="{{ category }}"{{{ selected }}}>{{{ category }}}</option>
                                <# } ); #>
                            </select>
                        </div>
                    <# }
                } #>
                <div id="elementor-template-library-my-favorites">
                    <# var checked = elementor.templates.getFilter( 'favorite' ) ? ' checked' : ''; #>
                    <input id="elementor-template-library-filter-my-favorites" type="checkbox"{{{ checked }}}>
                    <label id="elementor-template-library-filter-my-favorites-label" for="elementor-template-library-filter-my-favorites">
                        <i class="eicon" aria-hidden="true"></i>
                        <?php echo esc_html__'My Favorites''elementor' ); ?>
                    </label>
                </div>
            </div>
        <# } else { #>
            <div id="elementor-template-library-filter-toolbar-local" class="elementor-template-library-filter-toolbar"></div>
        <# } #>
        <div id="elementor-template-library-filter-text-wrapper">
            <label for="elementor-template-library-filter-text" class="elementor-screen-only"><?php echo esc_html__'Search Templates:''elementor' ); ?></label>
            <input id="elementor-template-library-filter-text" placeholder="<?php echo esc_attr__'Search''elementor' ); ?>">
            <i class="eicon-search"></i>
        </div>
    </div>
    <# if ( 'local' === activeSource ) { #>
        <div id="elementor-template-library-order-toolbar-local">
            <div class="elementor-template-library-local-column-1">
                <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">
                <label for="elementor-template-library-order-local-title" class="elementor-template-library-order-label"><?php echo esc_html__'Name''elementor' ); ?></label>
            </div>
            <div class="elementor-template-library-local-column-2">
                <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">
                <label for="elementor-template-library-order-local-type" class="elementor-template-library-order-label"><?php echo esc_html__'Type''elementor' ); ?></label>
            </div>
            <div class="elementor-template-library-local-column-3">
                <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">
                <label for="elementor-template-library-order-local-author" class="elementor-template-library-order-label"><?php echo esc_html__'Created By''elementor' ); ?></label>
            </div>
            <div class="elementor-template-library-local-column-4">
                <input type="radio" id="elementor-template-library-order-local-date" class="elementor-template-library-order-input" name="elementor-template-library-order-local" value="date">
                <label for="elementor-template-library-order-local-date" class="elementor-template-library-order-label"><?php echo esc_html__'Creation Date''elementor' ); ?></label>
            </div>
            <div class="elementor-template-library-local-column-5">
                <div class="elementor-template-library-order-label"><?php echo esc_html__'Actions''elementor' ); ?></div>
            </div>
        </div>
    <# } #>
    <div id="elementor-template-library-templates-container"></div>
    <# if ( isRemote ) { #>
        <div id="elementor-template-library-footer-banner">
            <img class="elementor-nerd-box-icon" src="<?php
                Utils
::print_unescaped_internal_stringELEMENTOR_ASSETS_URL 'images/information.svg' );
            
?>" loading="lazy" alt="<?php echo esc_attr__'Elementor''elementor' ); ?>" />
            <div class="elementor-excerpt"><?php echo esc_html__'Stay tuned! More awesome templates coming real soon.''elementor' ); ?></div>
        </div>
    <# } #>
</script>

<script type="text/template" id="tmpl-elementor-template-library-template-remote">
    <div class="elementor-template-library-template-body">
        <?php // 'lp' stands for Landing Pages Library type. ?>
        <# if ( 'page' === type || 'lp' === type ) { #>
            <div class="elementor-template-library-template-screenshot" style="background-image: url({{ thumbnail }});"></div>
        <# } else { #>
            <img src="{{ thumbnail }}" loading="lazy">
        <# } #>
        <div class="elementor-template-library-template-preview">
            <i class="eicon-zoom-in-bold" aria-hidden="true"></i>
        </div>
    </div>
    <div class="elementor-template-library-template-footer">
        {{{ elementor.templates.layout.getTemplateActionButton( obj ) }}}
        <div class="elementor-template-library-template-name">{{{ title }}} - {{{ type }}}</div>
        <div class="elementor-template-library-favorite">
            <input id="elementor-template-library-template-{{ template_id }}-favorite-input" class="elementor-template-library-template-favorite-input" type="checkbox"{{ favorite ? " checked" : "" }}>
            <label for="elementor-template-library-template-{{ template_id }}-favorite-input" class="elementor-template-library-template-favorite-label">
                <i class="eicon-heart-o" aria-hidden="true"></i>
                <span class="elementor-screen-only"><?php echo esc_html__'Favorite''elementor' ); ?></span>
            </label>
        </div>
    </div>
</script>

<script type="text/template" id="tmpl-elementor-template-library-template-local">
    <div class="elementor-template-library-template-name elementor-template-library-local-column-1">{{ title }}</div>
    <div class="elementor-template-library-template-meta elementor-template-library-template-type elementor-template-library-local-column-2">{{{ elementor.translate( type ) }}}</div>
    <div class="elementor-template-library-template-meta elementor-template-library-template-author elementor-template-library-local-column-3">{{{ author }}}</div>
    <div class="elementor-template-library-template-meta elementor-template-library-template-date elementor-template-library-local-column-4">{{{ human_date }}}</div>
    <div class="elementor-template-library-template-controls elementor-template-library-local-column-5">
        <div class="elementor-template-library-template-preview elementor-button e-btn-txt">
            <i class="eicon-preview-medium" aria-hidden="true"></i>
            <span class="elementor-template-library-template-control-title"><?php echo esc_html__'Preview''elementor' ); ?></span>
        </div>
        <button class="elementor-template-library-template-action elementor-template-library-template-insert elementor-button e-primary e-btn-txt">
            <i class="eicon-file-download" aria-hidden="true"></i>
            <span class="elementor-button-title"><?php echo esc_html__'Insert''elementor' ); ?></span>
        </button>
        <div class="elementor-template-library-template-more-toggle">
            <i class="eicon-ellipsis-h" aria-hidden="true"></i>
            <span class="elementor-screen-only"><?php echo esc_html__'More actions''elementor' ); ?></span>
        </div>
        <div class="elementor-template-library-template-more">
            <div class="elementor-template-library-template-delete">
                <i class="eicon-trash-o" aria-hidden="true"></i>
                <span class="elementor-template-library-template-control-title"><?php echo esc_html__'Delete''elementor' ); ?></span>
            </div>
            <div class="elementor-template-library-template-export">
                <a href="{{ export_link }}">
                    <i class="eicon-sign-out" aria-hidden="true"></i>
                    <span class="elementor-template-library-template-control-title"><?php echo esc_html__'Export''elementor' ); ?></span>
                </a>
            </div>
        </div>
    </div>
</script>

<script type="text/template" id="tmpl-elementor-template-library-insert-button">
    <a class="elementor-template-library-template-action elementor-template-library-template-insert elementor-button e-primary">
        <i class="eicon-file-download" aria-hidden="true"></i>
        <span class="elementor-button-title"><?php echo esc_html__'Insert''elementor' ); ?></span>
    </a>
</script>

<script type="text/template" id="tmpl-elementor-template-library-apply-ai-button">
    <a class="elementor-template-library-template-action elementor-template-library-template-apply-ai elementor-button e-primary">
        <i class="eicon-file-download" aria-hidden="true"></i>
        <span class="elementor-button-title"><?php echo esc_html__'Apply''elementor' ); ?></span>
    </a>
</script>

<script type="text/template" id="tmpl-elementor-template-library-insert-and-ai-variations-buttons">
    <a class="elementor-template-library-template-action elementor-template-library-template-insert elementor-button e-primary">
        <i class="eicon-file-download" aria-hidden="true"></i>
        <span class="elementor-button-title"><?php echo esc_html__'Insert''elementor' ); ?></span>
    </a>
    <a class="elementor-template-library-template-action elementor-template-library-template-generate-variation elementor-button e-btn-txt e-btn-txt-border">
        <i class="eicon-ai" aria-hidden="true"></i>
        <span class="elementor-button-title"><?php echo esc_html__'Generate Variations''elementor' ); ?></span>
    </a>
</script>

<script type="text/template" id="tmpl-elementor-template-library-upgrade-plan-button">
    <a
        class="elementor-template-library-template-action elementor-button go-pro"
        href="{{{ promotionLink }}}"
        target="_blank"
    >
        <span class="elementor-button-title">{{{ promotionText }}}</span>
    </a>
</script>

<script type="text/template" id="tmpl-elementor-template-library-save-template">
    <div class="elementor-template-library-blank-icon">
        <i class="eicon-library-upload" aria-hidden="true"></i>
        <span class="elementor-screen-only"><?php echo esc_html__'Save''elementor' ); ?></span>
    </div>
    <div class="elementor-template-library-blank-title">{{{ title }}}</div>
    <div class="elementor-template-library-blank-message">{{{ description }}}</div>
    <form id="elementor-template-library-save-template-form">
        <input type="hidden" name="post_id" value="<?php echo get_the_ID(); ?>">
        <input id="elementor-template-library-save-template-name" name="title" placeholder="<?php echo esc_attr__'Enter Template Name''elementor' ); ?>" required>
        <button id="elementor-template-library-save-template-submit" class="elementor-button e-primary">
            <span class="elementor-state-icon">
                <i class="eicon-loading eicon-animation-spin" aria-hidden="true"></i>
            </span>
            <?php echo esc_html__'Save''elementor' ); ?>
        </button>
    </form>
    <div class="elementor-template-library-blank-footer">
        <?php echo esc_html__'Want to learn more about the Elementor library?''elementor' ); ?>
        <a class="elementor-template-library-blank-footer-link" href="https://go.elementor.com/docs-library/" target="_blank"><?php echo esc_html__'Click here''elementor' ); ?></a>
    </div>
</script>

<script type="text/template" id="tmpl-elementor-template-library-import">
    <form id="elementor-template-library-import-form">
        <div class="elementor-template-library-blank-icon">
            <i class="eicon-library-upload" aria-hidden="true"></i>
        </div>
        <div class="elementor-template-library-blank-title"><?php echo esc_html__'Import Template to Your Library''elementor' ); ?></div>
        <div class="elementor-template-library-blank-message"><?php echo esc_html__'Drag & drop your .JSON or .zip template file''elementor' ); ?></div>
        <div id="elementor-template-library-import-form-or"><?php echo esc_html__'or''elementor' ); ?></div>
        <label for="elementor-template-library-import-form-input" id="elementor-template-library-import-form-label" class="elementor-button e-primary"><?php echo esc_html__'Select File''elementor' ); ?></label>
        <input id="elementor-template-library-import-form-input" type="file" name="file" accept=".json,.zip" required/>
        <div class="elementor-template-library-blank-footer">
            <?php echo esc_html__'Want to learn more about the Elementor library?''elementor' ); ?>
            <a class="elementor-template-library-blank-footer-link" href="https://go.elementor.com/docs-library/" target="_blank"><?php echo esc_html__'Click here''elementor' ); ?></a>
        </div>
    </form>
</script>

<script type="text/template" id="tmpl-elementor-template-library-templates-empty">
    <div class="elementor-template-library-blank-icon">
        <img src="<?php Utils::print_unescaped_internal_stringELEMENTOR_ASSETS_URL 'images/no-search-results.svg' ); ?>" class="elementor-template-library-no-results" loading="lazy" />
    </div>
    <div class="elementor-template-library-blank-title"></div>
    <div class="elementor-template-library-blank-message"></div>
    <div class="elementor-template-library-blank-footer">
        <?php echo esc_html__'Want to learn more about the Elementor library?''elementor' ); ?>
        <a class="elementor-template-library-blank-footer-link" href="https://go.elementor.com/docs-library/" target="_blank"><?php echo esc_html__'Click here''elementor' ); ?></a>
    </div>
</script>

<script type="text/template" id="tmpl-elementor-template-library-preview">
    <iframe></iframe>
</script>

<script type="text/template" id="tmpl-elementor-template-library-connect">
    <div id="elementor-template-library-connect-logo" class="e-logo-wrapper">
        <i class="eicon-elementor" aria-hidden="true"></i>
    </div>
    <div class="elementor-template-library-blank-title">
        {{{ title }}}
    </div>
    <div class="elementor-template-library-blank-message">
        {{{ message }}}
    </div>
        <?php
        $url 
Plugin::$instance->common->get_component'connect' )->get_app'library' )->get_admin_url'authorize', [
            
'utm_source' => 'template-library',
            
'utm_medium' => 'wp-dash',
            
'utm_campaign' => 'library-connect',
            
'utm_content' => '%%template_type%%'// will be replaced in the frontend
        
] );
        
?>
    <a id="elementor-template-library-connect__button" class="elementor-button e-primary" href="<?php echo esc_url$url ); ?>">
        {{{ button }}}
    </a>
    <?php
    $base_images_url 
$this->get_assets_base_url() . '/assets/images/library-connect/';

    
$images = [ 'left-1''left-2''right-1''right-2' ];

    foreach ( 
$images as $image ) : ?>
        <img id="elementor-template-library-connect__background-image-<?php Utils::print_unescaped_internal_string$image ); ?>" class="elementor-template-library-connect__background-image" src="<?php Utils::print_unescaped_internal_string$base_images_url $image ); ?>.png" draggable="false" loading="lazy" />
    <?php endforeach; ?>
</script>