/
home
/
vianto5
/
.trash
/
cititower.mx
/
wp-content
/
plugins
/
wpforms
/
assets
/
js
/
admin
/
builder
/
/home/vianto5/.trash/cititower.mx/wp-content/plugins/wpforms/assets/js/admin/builder
mkdir
upload
Name
Size
Mode
Actions
fields/
-
0755
rm
admin-builder-providers.js
14947
0644
edit
dl
rm
admin-builder-providers.min.js
7582
0644
edit
dl
rm
admin-builder.js
277649
0644
edit
dl
rm
admin-builder.min.js
131261
0644
edit
dl
rm
context-menu.js
18527
0644
edit
dl
rm
context-menu.min.js
8189
0644
edit
dl
rm
drag-fields.js
20255
0644
edit
dl
rm
drag-fields.min.js
7886
0644
edit
dl
rm
dropdown-list.js
6768
0644
edit
dl
rm
dropdown-list.min.js
2333
0644
edit
dl
rm
email-template.js
5072
0644
edit
dl
rm
email-template.min.js
1456
0644
edit
dl
rm
form-templates.js
19314
0644
edit
dl
rm
form-templates.min.js
8266
0644
edit
dl
rm
help.js
11455
0644
edit
dl
rm
help.min.js
4936
0644
edit
dl
rm
panel-loader.js
5071
0644
edit
dl
rm
panel-loader.min.js
2260
0644
edit
dl
rm
providers.js
28149
0644
edit
dl
rm
providers.min.js
10802
0644
edit
dl
rm
search-fields.js
4671
0644
edit
dl
rm
search-fields.min.js
2529
0644
edit
dl
rm
settings.js
6231
0644
edit
dl
rm
settings.min.js
2844
0644
edit
dl
rm
setup.js
20024
0644
edit
dl
rm
setup.min.js
9720
0644
edit
dl
rm
templates.js
2137
0644
edit
dl
rm
templates.min.js
602
0644
edit
dl
rm
wpforms-choicesjs.js
4003
0644
edit
dl
rm
wpforms-choicesjs.min.js
1229
0644
edit
dl
rm
Edit:
/home/vianto5/.trash/cititower.mx/wp-content/plugins/wpforms/assets/js/admin/builder/templates.js
(2137B)
/* global WPForms, jQuery, Map, wpforms_builder, wpforms_builder_providers, _ */ var WPForms = window.WPForms || {}; WPForms.Admin = WPForms.Admin || {}; WPForms.Admin.Builder = WPForms.Admin.Builder || {}; WPForms.Admin.Builder.Templates = WPForms.Admin.Builder.Templates || ( function( document, window, $ ) { 'use strict'; /** * Private functions and properties. * * @since 1.4.8 * * @type {Object} */ var __private = { /** * All templating functions for providers are stored here in a Map. * Key is a template name, value - Underscore.js templating function. * * @since 1.4.8 * * @type {Map} */ previews: new Map(), }; /** * Public functions and properties. * * @since 1.4.8 * * @type {Object} */ var app = { /** * Start the engine. DOM is not ready yet, use only to init something. * * @since 1.4.8 */ init: function() { // Do that when DOM is ready. $( app.ready ); }, /** * DOM is fully loaded. * * @since 1.4.8 */ ready: function() { $( '#wpforms-panel-providers' ).trigger( 'WPForms.Admin.Builder.Templates.ready' ); }, /** * Register and compile all templates. * All data is saved in a Map. * * @since 1.4.8 * * @param {string[]} templates Array of template names. */ add: function( templates ) { templates.forEach( function( template ) { if ( typeof template === 'string' ) { __private.previews.set( template, wp.template( template ) ); } } ); }, /** * Get a templating function (to compile later with data). * * @since 1.4.8 * * @param {string} template ID of a template to retrieve from a cache. * * @returns {*} A callable that after compiling will always return a string. */ get: function( template ) { var preview = __private.previews.get( template ); if ( typeof preview !== 'undefined' ) { return preview; } return function() { return ''; }; }, }; // Provide access to public functions/properties. return app; } )( document, window, jQuery ); // Initialize. WPForms.Admin.Builder.Templates.init();
Save
cmd:
run