Edit File by line
/home/barbar84/www/wp-conte.../themes/Divi/includes/builder
File: functions.php
et_core_intentionally_unescaped( $disable_sort_logic, 'fixed_string' ),
[6500] Fix | Delete
et_core_intentionally_unescaped( $disable_global_sort_logic, 'fixed_string' ),
[6501] Fix | Delete
et_core_esc_previously( $insert_first_row_button )
[6502] Fix | Delete
);
[6503] Fix | Delete
[6504] Fix | Delete
$row_settings_button = sprintf(
[6505] Fix | Delete
'<%% if ( ( typeof et_pb_template_type === \'undefined\' || et_pb_template_type !== \'module\' )%3$s ) { %%>
[6506] Fix | Delete
<a href="#" class="et-pb-settings et-pb-settings-row" title="%1$s"><span>%2$s</span></a>
[6507] Fix | Delete
<%% } %%>',
[6508] Fix | Delete
esc_attr__( 'Settings', 'et_builder' ),
[6509] Fix | Delete
esc_html__( 'Settings', 'et_builder' ),
[6510] Fix | Delete
! et_pb_is_allowed( 'edit_global_library' ) ? ' && ( typeof et_pb_global_module === "undefined" || "" === et_pb_global_module ) && ( typeof et_pb_global_parent === "undefined" || "" === et_pb_global_parent )' : '' // do not display settings button on global rows if not allowed for current user.
[6511] Fix | Delete
);
[6512] Fix | Delete
$row_clone_button = sprintf(
[6513] Fix | Delete
'%3$s
[6514] Fix | Delete
<a href="#" class="et-pb-clone et-pb-clone-row" title="%1$s"><span>%2$s</span></a>
[6515] Fix | Delete
%4$s',
[6516] Fix | Delete
esc_attr__( 'Clone Row', 'et_builder' ),
[6517] Fix | Delete
esc_html__( 'Clone Row', 'et_builder' ),
[6518] Fix | Delete
! et_pb_is_allowed( 'edit_global_library' ) ? '<% if ( ( typeof et_pb_global_parent === "undefined" || "" === et_pb_global_parent ) && ' . $builder_button_ab_testing_conditional . ' ) { %>' : '<% if ( ' . $builder_button_ab_testing_conditional . ' ) { %>', // do not display clone button on rows within global sections if not allowed for current user.
[6519] Fix | Delete
'<% } %>'
[6520] Fix | Delete
);
[6521] Fix | Delete
$row_remove_button = sprintf(
[6522] Fix | Delete
'%3$s
[6523] Fix | Delete
<a href="#" class="et-pb-remove et-pb-remove-row" title="%1$s"><span>%2$s</span></a>
[6524] Fix | Delete
%4$s',
[6525] Fix | Delete
esc_attr__( 'Delete Row', 'et_builder' ),
[6526] Fix | Delete
esc_html__( 'Delete Row', 'et_builder' ),
[6527] Fix | Delete
! et_pb_is_allowed( 'edit_global_library' ) ? '<% if ( ( typeof et_pb_global_parent === "undefined" || "" === et_pb_global_parent ) && ' . $builder_button_ab_testing_conditional . ') { %>' : '<% if ( ' . $builder_button_ab_testing_conditional . ' ) { %>', // do not display clone button on rows within global sections if not allowed for current user.
[6528] Fix | Delete
'<% } %>'
[6529] Fix | Delete
);
[6530] Fix | Delete
$row_change_structure_button = sprintf(
[6531] Fix | Delete
'%3$s
[6532] Fix | Delete
<a href="#" class="et-pb-change-structure" title="%1$s"><span>%2$s</span></a>
[6533] Fix | Delete
%4$s',
[6534] Fix | Delete
esc_attr__( 'Change Structure', 'et_builder' ),
[6535] Fix | Delete
esc_html__( 'Change Structure', 'et_builder' ),
[6536] Fix | Delete
! et_pb_is_allowed( 'edit_global_library' ) ? '<% if ( ( typeof et_pb_global_module === "undefined" || "" === et_pb_global_module ) && ( typeof et_pb_global_parent === "undefined" || "" === et_pb_global_parent ) ) { %>' : '', // do not display change structure button on global rows if not allowed for current user.
[6537] Fix | Delete
! et_pb_is_allowed( 'edit_global_library' ) ? '<% } %>' : ''
[6538] Fix | Delete
);
[6539] Fix | Delete
$row_unlock_button = sprintf(
[6540] Fix | Delete
'<a href="#" class="et-pb-unlock" title="%1$s"><span>%2$s</span></a>',
[6541] Fix | Delete
esc_attr__( 'Unlock Row', 'et_builder' ),
[6542] Fix | Delete
esc_html__( 'Unlock Row', 'et_builder' )
[6543] Fix | Delete
);
[6544] Fix | Delete
// Row Template.
[6545] Fix | Delete
$settings = sprintf(
[6546] Fix | Delete
'<div class="et-pb-controls">
[6547] Fix | Delete
%1$s
[6548] Fix | Delete
<%% if ( typeof et_pb_template_type === \'undefined\' || \'section\' === et_pb_template_type ) { %%>
[6549] Fix | Delete
%2$s
[6550] Fix | Delete
<%% }
[6551] Fix | Delete
[6552] Fix | Delete
if ( typeof et_pb_template_type === \'undefined\' || et_pb_template_type !== \'module\' ) { %%>
[6553] Fix | Delete
%4$s
[6554] Fix | Delete
<%% }
[6555] Fix | Delete
[6556] Fix | Delete
if ( typeof et_pb_template_type === \'undefined\' || \'section\' === et_pb_template_type ) { %%>
[6557] Fix | Delete
%3$s
[6558] Fix | Delete
<%% } %%>
[6559] Fix | Delete
[6560] Fix | Delete
<a href="#" class="et-pb-expand" title="%5$s"><span>%6$s</span></a>
[6561] Fix | Delete
%7$s
[6562] Fix | Delete
</div>',
[6563] Fix | Delete
et_pb_is_allowed( 'edit_module' ) && ( et_pb_is_allowed( 'general_settings' ) || et_pb_is_allowed( 'advanced_settings' ) || et_pb_is_allowed( 'custom_css_settings' ) ) ? $row_settings_button : '',
[6564] Fix | Delete
et_pb_is_allowed( 'add_module' ) ? $row_clone_button : '',
[6565] Fix | Delete
et_pb_is_allowed( 'add_module' ) ? $row_remove_button : '',
[6566] Fix | Delete
et_pb_is_allowed( 'edit_module' ) && ( et_pb_is_allowed( 'general_settings' ) || et_pb_is_allowed( 'advanced_settings' ) || et_pb_is_allowed( 'custom_css_settings' ) ) ? $row_change_structure_button : '',
[6567] Fix | Delete
esc_attr__( 'Expand Row', 'et_builder' ),
[6568] Fix | Delete
esc_html__( 'Expand Row', 'et_builder' ),
[6569] Fix | Delete
et_pb_is_allowed( 'lock_module' ) ? $row_unlock_button : ''
[6570] Fix | Delete
);
[6571] Fix | Delete
$settings = apply_filters( 'et_builder_row_settings_controls', $settings );
[6572] Fix | Delete
[6573] Fix | Delete
$row_class = sprintf(
[6574] Fix | Delete
'class="et-pb-row-content et-pb-data-cid%1$s%2$s <%%= typeof et_pb_template_type !== \'undefined\' && \'module\' === et_pb_template_type ? \' et_pb_hide_insert\' : \'\' %%>"',
[6575] Fix | Delete
! et_pb_is_allowed( 'move_module' ) ? ' et-pb-disable-sort' : '',
[6576] Fix | Delete
! et_pb_is_allowed( 'edit_global_library' )
[6577] Fix | Delete
? sprintf( '<%%= typeof et_pb_global_parent !== \'undefined\' || typeof et_pb_global_module !== \'undefined\' ? \' et-pb-disable-sort\' : \'\' %%>' )
[6578] Fix | Delete
: ''
[6579] Fix | Delete
);
[6580] Fix | Delete
[6581] Fix | Delete
$data_skip = 'data-skip="<%= typeof( et_pb_skip_module ) === \'undefined\' ? \'false\' : \'true\' %>"';
[6582] Fix | Delete
[6583] Fix | Delete
$add_row_button = et_pb_is_allowed( 'add_module' ) ? sprintf(
[6584] Fix | Delete
'<%% if ( ( typeof et_pb_template_type === \'undefined\' || \'section\' === et_pb_template_type )%2$s ) { %%>
[6585] Fix | Delete
<a href="#" class="et-pb-row-add">
[6586] Fix | Delete
<span>%1$s</span>
[6587] Fix | Delete
</a>
[6588] Fix | Delete
<%% } %%>',
[6589] Fix | Delete
esc_html__( 'Add Row', 'et_builder' ),
[6590] Fix | Delete
! et_pb_is_allowed( 'edit_global_library' ) ? ' && typeof et_pb_global_parent === "undefined"' : '' // do not display add row buton on global sections if not allowed for current user.
[6591] Fix | Delete
) : '';
[6592] Fix | Delete
[6593] Fix | Delete
$insert_column_button = et_pb_is_allowed( 'add_module' ) ? sprintf(
[6594] Fix | Delete
'<a href="#" class="et-pb-insert-column">
[6595] Fix | Delete
<span>%1$s</span>
[6596] Fix | Delete
</a>',
[6597] Fix | Delete
esc_html__( 'Insert Column(s)', 'et_builder' )
[6598] Fix | Delete
) : '';
[6599] Fix | Delete
[6600] Fix | Delete
printf(
[6601] Fix | Delete
'<script type="text/template" id="et-builder-row-template">
[6602] Fix | Delete
<div class="et-pb-right-click-trigger-overlay"></div>
[6603] Fix | Delete
%1$s
[6604] Fix | Delete
<div data-cid="<%%= cid %%>" %2$s %3$s>
[6605] Fix | Delete
<div class="et-pb-row-container"></div>
[6606] Fix | Delete
%4$s
[6607] Fix | Delete
</div>
[6608] Fix | Delete
%5$s
[6609] Fix | Delete
<div class="et-pb-locked-overlay et-pb-locked-overlay-row"></div>
[6610] Fix | Delete
<span class="et-pb-row-title"><%%= admin_label.replace( /%%22/g, "&quot;" ).replace( /%%91/g, "&#91;" ).replace( /%%93/g, "&#93;" ) %%></span>
[6611] Fix | Delete
</script>',
[6612] Fix | Delete
et_core_esc_previously( $settings ),
[6613] Fix | Delete
et_core_intentionally_unescaped( $row_class, 'fixed_string' ),
[6614] Fix | Delete
et_core_intentionally_unescaped( $data_skip, 'fixed_string' ),
[6615] Fix | Delete
et_core_esc_previously( $insert_column_button ),
[6616] Fix | Delete
et_core_esc_previously( $add_row_button )
[6617] Fix | Delete
);
[6618] Fix | Delete
[6619] Fix | Delete
// Module Block Template.
[6620] Fix | Delete
$clone_button = et_pb_is_allowed( 'add_module' ) ? sprintf(
[6621] Fix | Delete
'<%% if ( ( typeof et_pb_template_type === \'undefined\' || et_pb_template_type !== \'module\' )%3$s && _.contains(%4$s, module_type) && ' . $builder_button_ab_testing_conditional . ' ) { %%>
[6622] Fix | Delete
<a href="#" class="et-pb-clone et-pb-clone-module" title="%1$s">
[6623] Fix | Delete
<span>%2$s</span>
[6624] Fix | Delete
</a>
[6625] Fix | Delete
<%% } %%>',
[6626] Fix | Delete
esc_attr__( 'Clone Module', 'et_builder' ),
[6627] Fix | Delete
esc_html__( 'Clone Module', 'et_builder' ),
[6628] Fix | Delete
! et_pb_is_allowed( 'edit_global_library' ) ? ' && ( typeof et_pb_global_parent === "undefined" || "" === et_pb_global_parent )' : '',
[6629] Fix | Delete
et_pb_allowed_modules_list()
[6630] Fix | Delete
) : '';
[6631] Fix | Delete
$remove_button = et_pb_is_allowed( 'add_module' ) ? sprintf(
[6632] Fix | Delete
'<%% if ( ( typeof et_pb_template_type === \'undefined\' || et_pb_template_type !== \'module\' )%3$s && (_.contains(%4$s, module_type) || "removed" === component_status) && ' . $builder_button_ab_testing_conditional . ' ) { %%>
[6633] Fix | Delete
<a href="#" class="et-pb-remove et-pb-remove-module" title="%1$s">
[6634] Fix | Delete
<span>%2$s</span>
[6635] Fix | Delete
</a>
[6636] Fix | Delete
<%% } %%>',
[6637] Fix | Delete
esc_attr__( 'Remove Module', 'et_builder' ),
[6638] Fix | Delete
esc_html__( 'Remove Module', 'et_builder' ),
[6639] Fix | Delete
! et_pb_is_allowed( 'edit_global_library' ) ? ' && ( typeof et_pb_global_parent === "undefined" || "" === et_pb_global_parent )' : '',
[6640] Fix | Delete
et_pb_allowed_modules_list()
[6641] Fix | Delete
) : '';
[6642] Fix | Delete
$unlock_button = et_pb_is_allowed( 'lock_module' ) ? sprintf(
[6643] Fix | Delete
'<%% if ( typeof et_pb_template_type === \'undefined\' || et_pb_template_type !== \'module\' ) { %%>
[6644] Fix | Delete
<a href="#" class="et-pb-unlock" title="%1$s">
[6645] Fix | Delete
<span>%2$s</span>
[6646] Fix | Delete
</a>
[6647] Fix | Delete
<%% } %%>',
[6648] Fix | Delete
esc_html__( 'Unlock Module', 'et_builder' ),
[6649] Fix | Delete
esc_attr__( 'Unlock Module', 'et_builder' )
[6650] Fix | Delete
) : '';
[6651] Fix | Delete
$settings_button = et_pb_is_allowed( 'edit_module' ) && ( et_pb_is_allowed( 'general_settings' ) || et_pb_is_allowed( 'advanced_settings' ) || et_pb_is_allowed( 'custom_css_settings' ) ) ? sprintf(
[6652] Fix | Delete
'<%% if (%3$s _.contains( %4$s, module_type ) ) { %%>
[6653] Fix | Delete
<a href="#" class="et-pb-settings" title="%1$s">
[6654] Fix | Delete
<span>%2$s</span>
[6655] Fix | Delete
</a>
[6656] Fix | Delete
<%% } %%>',
[6657] Fix | Delete
esc_attr__( 'Module Settings', 'et_builder' ),
[6658] Fix | Delete
esc_html__( 'Module Settings', 'et_builder' ),
[6659] Fix | Delete
! et_pb_is_allowed( 'edit_global_library' ) ? ' ( typeof et_pb_global_parent === "undefined" || "" === et_pb_global_parent ) && ( typeof et_pb_global_module === "undefined" || "" === et_pb_global_module ) &&' : '',
[6660] Fix | Delete
et_pb_allowed_modules_list()
[6661] Fix | Delete
) : '';
[6662] Fix | Delete
[6663] Fix | Delete
printf(
[6664] Fix | Delete
'<script type="text/template" id="et-builder-block-module-template">
[6665] Fix | Delete
%1$s
[6666] Fix | Delete
%2$s
[6667] Fix | Delete
%3$s
[6668] Fix | Delete
%4$s
[6669] Fix | Delete
<span class="et-pb-module-title"><%%= admin_label.replace( /%%22/g, "&quot;" ).replace( /%%91/g, "&#91;" ).replace( /%%93/g, "&#93;" ) %%></span>
[6670] Fix | Delete
</script>',
[6671] Fix | Delete
et_core_esc_previously( $settings_button ),
[6672] Fix | Delete
et_core_esc_previously( $clone_button ),
[6673] Fix | Delete
et_core_esc_previously( $remove_button ),
[6674] Fix | Delete
et_core_esc_previously( $unlock_button )
[6675] Fix | Delete
);
[6676] Fix | Delete
[6677] Fix | Delete
// Modal Template.
[6678] Fix | Delete
[6679] Fix | Delete
$can_edit_or_has_modal_view_tab = et_pb_is_allowed( 'edit_module' ) && ( et_pb_is_allowed( 'general_settings' ) || et_pb_is_allowed( 'advanced_settings' ) || et_pb_is_allowed( 'custom_css_settings' ) );
[6680] Fix | Delete
[6681] Fix | Delete
$save_exit_button = $can_edit_or_has_modal_view_tab ? sprintf(
[6682] Fix | Delete
'<a href="#" class="et-pb-modal-save button button-primary">
[6683] Fix | Delete
<span>%1$s</span>
[6684] Fix | Delete
</a>',
[6685] Fix | Delete
esc_html__( 'Save & Exit', 'et_builder' )
[6686] Fix | Delete
) : '';
[6687] Fix | Delete
[6688] Fix | Delete
$save_template_button = et_pb_is_allowed( 'divi_library' ) && et_pb_is_allowed( 'save_library' ) ? sprintf(
[6689] Fix | Delete
'<%% if ( typeof et_pb_template_type === \'undefined\' || \'\' === et_pb_template_type ) { %%>
[6690] Fix | Delete
<a href="#" class="et-pb-modal-save-template button">
[6691] Fix | Delete
<span>%1$s</span>
[6692] Fix | Delete
</a>
[6693] Fix | Delete
<%% } %%>',
[6694] Fix | Delete
esc_html__( 'Save & Add To Library', 'et_builder' )
[6695] Fix | Delete
) : '';
[6696] Fix | Delete
[6697] Fix | Delete
$preview_template_button = sprintf(
[6698] Fix | Delete
'<a href="#" class="et-pb-modal-preview-template button">
[6699] Fix | Delete
<span class="icon"></span>
[6700] Fix | Delete
<span class="label">%1$s</span>
[6701] Fix | Delete
</a>',
[6702] Fix | Delete
esc_html__( 'Preview', 'et_builder' )
[6703] Fix | Delete
);
[6704] Fix | Delete
[6705] Fix | Delete
$single_button_class = ! et_pb_is_allowed( 'divi_library' ) || ! et_pb_is_allowed( 'save_library' ) ? ' et_pb_single_button' : '';
[6706] Fix | Delete
[6707] Fix | Delete
$no_editing_class = $can_edit_or_has_modal_view_tab ? '' : ' et_pb_no_editing';
[6708] Fix | Delete
[6709] Fix | Delete
printf(
[6710] Fix | Delete
'<script type="text/template" id="et-builder-modal-template">
[6711] Fix | Delete
<div class="et-pb-modal-container%6$s">
[6712] Fix | Delete
[6713] Fix | Delete
<a href="#" class="et-pb-modal-close">
[6714] Fix | Delete
<span>%1$s</span>
[6715] Fix | Delete
</a>
[6716] Fix | Delete
[6717] Fix | Delete
<%% if ( ! ( typeof open_view !== \'undefined\' && open_view === \'column_specialty_settings\' ) && typeof type !== \'undefined\' && ( type === \'module\' || type === \'section\' || type === \'row_inner\' || ( type === \'row\' && typeof open_view === \'undefined\' ) ) ) { %%>
[6718] Fix | Delete
<div class="et-pb-modal-bottom-container%4$s">
[6719] Fix | Delete
%2$s
[6720] Fix | Delete
%5$s
[6721] Fix | Delete
%3$s
[6722] Fix | Delete
</div>
[6723] Fix | Delete
<%% } %%>
[6724] Fix | Delete
[6725] Fix | Delete
</div>
[6726] Fix | Delete
</script>',
[6727] Fix | Delete
et_builder_i18n( 'Cancel' ),
[6728] Fix | Delete
et_core_esc_previously( $save_template_button ),
[6729] Fix | Delete
et_core_esc_previously( $save_exit_button ),
[6730] Fix | Delete
et_core_intentionally_unescaped( $single_button_class, 'fixed_string' ),
[6731] Fix | Delete
et_core_esc_previously( $preview_template_button ),
[6732] Fix | Delete
et_core_intentionally_unescaped( $no_editing_class, 'fixed_string' )
[6733] Fix | Delete
);
[6734] Fix | Delete
[6735] Fix | Delete
// Column Settings Template.
[6736] Fix | Delete
$columns_number =
[6737] Fix | Delete
'<% if ( view.model.attributes.specialty_columns === 3 ) { %>
[6738] Fix | Delete
3
[6739] Fix | Delete
<% } else { %>
[6740] Fix | Delete
2
[6741] Fix | Delete
<% } %>';
[6742] Fix | Delete
[6743] Fix | Delete
$data_specialty_columns = sprintf(
[6744] Fix | Delete
'<%% if ( typeof view !== \'undefined\' && typeof view.model.attributes.specialty_columns !== \'undefined\' ) { %%>
[6745] Fix | Delete
data-specialty_columns="%1$s"
[6746] Fix | Delete
<%% } %%>',
[6747] Fix | Delete
$columns_number
[6748] Fix | Delete
);
[6749] Fix | Delete
[6750] Fix | Delete
$saved_row_tab = et_pb_is_allowed( 'divi_library' ) && et_pb_is_allowed( 'add_library' ) ? sprintf(
[6751] Fix | Delete
'<li class="et-pb-saved-module" data-open_tab="et-pb-saved-modules-tab">
[6752] Fix | Delete
<a href="#">%1$s</a>
[6753] Fix | Delete
</li>',
[6754] Fix | Delete
esc_html__( 'Add From Library', 'et_builder' )
[6755] Fix | Delete
) : '';
[6756] Fix | Delete
[6757] Fix | Delete
$saved_row_container = et_pb_is_allowed( 'divi_library' ) && et_pb_is_allowed( 'add_library' )
[6758] Fix | Delete
? '<% if ( ( typeof change_structure === \'undefined\' || \'true\' !== change_structure ) && ( typeof et_pb_specialty === \'undefined\' || et_pb_specialty !== \'on\' ) ) { %>
[6759] Fix | Delete
<div class="et-pb-main-settings et-pb-main-settings-full et-pb-saved-modules-tab"></div>
[6760] Fix | Delete
<% } %>'
[6761] Fix | Delete
: '';
[6762] Fix | Delete
[6763] Fix | Delete
printf(
[6764] Fix | Delete
'<script type="text/template" id="et-builder-column-settings-template">
[6765] Fix | Delete
[6766] Fix | Delete
<h3 class="et-pb-settings-heading" data-current_row="<%%= cid %%>">%1$s</h3>
[6767] Fix | Delete
[6768] Fix | Delete
<%% if ( ( typeof change_structure === \'undefined\' || \'true\' !== change_structure ) && ( typeof et_pb_specialty === \'undefined\' || et_pb_specialty !== \'on\' ) ) { %%>
[6769] Fix | Delete
<ul class="et-pb-options-tabs-links et-pb-saved-modules-switcher" %2$s>
[6770] Fix | Delete
<li class="et-pb-saved-module et-pb-options-tabs-links-active" data-open_tab="et-pb-new-modules-tab" data-content_loaded="true">
[6771] Fix | Delete
<a href="#">%3$s</a>
[6772] Fix | Delete
</li>
[6773] Fix | Delete
%4$s
[6774] Fix | Delete
</ul>
[6775] Fix | Delete
<%% } %%>
[6776] Fix | Delete
[6777] Fix | Delete
<div class="et-pb-main-settings et-pb-main-settings-full et-pb-new-modules-tab active-container">
[6778] Fix | Delete
<ul class="et-pb-column-layouts">
[6779] Fix | Delete
%5$s
[6780] Fix | Delete
</ul>
[6781] Fix | Delete
</div>
[6782] Fix | Delete
[6783] Fix | Delete
%6$s
[6784] Fix | Delete
[6785] Fix | Delete
</script>',
[6786] Fix | Delete
esc_html__( 'Insert Columns', 'et_builder' ),
[6787] Fix | Delete
et_core_intentionally_unescaped( $data_specialty_columns, 'fixed_string' ),
[6788] Fix | Delete
esc_html__( 'New Row', 'et_builder' ),
[6789] Fix | Delete
et_core_esc_previously( $saved_row_tab ),
[6790] Fix | Delete
et_core_intentionally_unescaped( et_builder_get_columns_layout(), 'fixed_string' ),
[6791] Fix | Delete
et_core_intentionally_unescaped( $saved_row_container, 'fixed_string' )
[6792] Fix | Delete
);
[6793] Fix | Delete
[6794] Fix | Delete
// "Add Module" Template
[6795] Fix | Delete
$fullwidth_class =
[6796] Fix | Delete
'<% if ( typeof module.fullwidth_only !== \'undefined\' && module.fullwidth_only === \'on\' ) { %> et_pb_fullwidth_only_module<% } %>';
[6797] Fix | Delete
[6798] Fix | Delete
$saved_modules_tab = et_pb_is_allowed( 'divi_library' ) && et_pb_is_allowed( 'add_library' ) ? sprintf(
[6799] Fix | Delete
'<li class="et-pb-saved-module" data-open_tab="et-pb-saved-modules-tab">
[6800] Fix | Delete
<a href="#">%1$s</a>
[6801] Fix | Delete
</li>',
[6802] Fix | Delete
esc_html__( 'Add From Library', 'et_builder' )
[6803] Fix | Delete
) : '';
[6804] Fix | Delete
[6805] Fix | Delete
$saved_modules_container = et_pb_is_allowed( 'divi_library' ) && et_pb_is_allowed( 'add_library' )
[6806] Fix | Delete
? '<div class="et-pb-main-settings et-pb-main-settings-full et-pb-saved-modules-tab"></div>'
[6807] Fix | Delete
: '';
[6808] Fix | Delete
[6809] Fix | Delete
printf(
[6810] Fix | Delete
'<script type="text/template" id="et-builder-modules-template">
[6811] Fix | Delete
<h3 class="et-pb-settings-heading">%1$s</h3>
[6812] Fix | Delete
[6813] Fix | Delete
<ul class="et-pb-options-tabs-links et-pb-saved-modules-switcher">
[6814] Fix | Delete
<li class="et-pb-new-module et-pb-options-tabs-links-active" data-open_tab="et-pb-all-modules-tab">
[6815] Fix | Delete
<a href="#">%2$s</a>
[6816] Fix | Delete
</li>
[6817] Fix | Delete
[6818] Fix | Delete
%3$s
[6819] Fix | Delete
</ul>
[6820] Fix | Delete
[6821] Fix | Delete
<div class="et-pb-main-settings et-pb-main-settings-full et-pb-all-modules-tab active-container">
[6822] Fix | Delete
<ul class="et-pb-all-modules">
[6823] Fix | Delete
<%% _.each(modules, function(module) { %%>
[6824] Fix | Delete
<%% if ( "et_pb_row" !== module.label && "et_pb_section" !== module.label && "et_pb_column" !== module.label && "et_pb_row_inner" !== module.label && _.contains(%6$s, module.label ) ) { %%>
[6825] Fix | Delete
<li class="<%%= module.label %%>%4$s">
[6826] Fix | Delete
<span class="et_module_title"><%%= module.title %%></span>
[6827] Fix | Delete
</li>
[6828] Fix | Delete
<%% } %%>
[6829] Fix | Delete
<%% }); %%>
[6830] Fix | Delete
</ul>
[6831] Fix | Delete
</div>
[6832] Fix | Delete
[6833] Fix | Delete
%5$s
[6834] Fix | Delete
</script>',
[6835] Fix | Delete
esc_html__( 'Insert Module', 'et_builder' ),
[6836] Fix | Delete
esc_html__( 'New Module', 'et_builder' ),
[6837] Fix | Delete
et_core_esc_previously( $saved_modules_tab ),
[6838] Fix | Delete
et_core_intentionally_unescaped( $fullwidth_class, 'fixed_string' ),
[6839] Fix | Delete
et_core_intentionally_unescaped( $saved_modules_container, 'fixed_string' ),
[6840] Fix | Delete
et_core_esc_previously( et_pb_allowed_modules_list() )
[6841] Fix | Delete
);
[6842] Fix | Delete
[6843] Fix | Delete
// Load Layout Template.
[6844] Fix | Delete
printf(
[6845] Fix | Delete
'<script type="text/template" id="et-builder-load_layout-template">
[6846] Fix | Delete
<h3 class="et-pb-settings-heading">%1$s</h3>
[6847] Fix | Delete
[6848] Fix | Delete
<%% if ( typeof display_switcher !== \'undefined\' && display_switcher === \'on\' ) { %%>
[6849] Fix | Delete
<ul class="et-pb-options-tabs-links et-pb-saved-modules-switcher">
[6850] Fix | Delete
<li class="et-pb-new-module et-pb-options-tabs-links-active" data-open_tab="et-pb-all-modules-tab">
[6851] Fix | Delete
<a href="#">%2$s</a>
[6852] Fix | Delete
</li>
[6853] Fix | Delete
<li class="et-pb-saved-module" data-open_tab="et-pb-saved-modules-tab">
[6854] Fix | Delete
<a href="#">%3$s</a>
[6855] Fix | Delete
</li>
[6856] Fix | Delete
<%% if (!_.isEmpty(et_pb_options.library_custom_tabs)) { %%>
[6857] Fix | Delete
<%% _.each(et_pb_options.library_custom_tabs, function(tab_name, tab_id) { %%>
[6858] Fix | Delete
<li class="et-pb-saved-module" data-open_tab="et-pb-<%%= tab_id %%>-tab" data-custom_tab_id="<%%= tab_id %%>">
[6859] Fix | Delete
<a href="#"><%%= tab_name %%></a>
[6860] Fix | Delete
</li>
[6861] Fix | Delete
<%% }) %%>
[6862] Fix | Delete
<%% } %%>
[6863] Fix | Delete
</ul>
[6864] Fix | Delete
<%% } %%>
[6865] Fix | Delete
[6866] Fix | Delete
<%% if ( typeof display_switcher !== \'undefined\' && display_switcher === \'on\' ) { %%>
[6867] Fix | Delete
<div class="et-pb-main-settings et-pb-main-settings-full et-pb-all-modules-tab active-container"></div>
[6868] Fix | Delete
<div class="et-pb-main-settings et-pb-main-settings-full et-pb-saved-modules-tab" style="display: none;"></div>
[6869] Fix | Delete
<%% if (!_.isEmpty(et_pb_options.library_custom_tabs)) { %%>
[6870] Fix | Delete
<%% _.each(et_pb_options.library_custom_tabs, function(tab_name, tab_id) { %%>
[6871] Fix | Delete
<div class="et-pb-main-settings et-pb-main-settings-full et-pb-<%%= tab_id %%>-tab" style="display: none;"></div>
[6872] Fix | Delete
<%% }) %%>
[6873] Fix | Delete
<%% } %%>
[6874] Fix | Delete
<%% } else { %%>
[6875] Fix | Delete
<div class="et-pb-main-settings et-pb-main-settings-full et-pb-saved-modules-tab active-container"></div>
[6876] Fix | Delete
<%% } %%>
[6877] Fix | Delete
</script>',
[6878] Fix | Delete
esc_html__( 'Load Layout', 'et_builder' ),
[6879] Fix | Delete
esc_html__( 'Premade Layouts', 'et_builder' ),
[6880] Fix | Delete
esc_html__( 'Your Saved Layouts', 'et_builder' )
[6881] Fix | Delete
);
[6882] Fix | Delete
[6883] Fix | Delete
// Library Account Status Error.
[6884] Fix | Delete
$library_i18n = require ET_BUILDER_DIR . 'frontend-builder/i18n/library.php';
[6885] Fix | Delete
[6886] Fix | Delete
printf(
[6887] Fix | Delete
'
[6888] Fix | Delete
<script type="text/template" id="et-builder-library-account-status-error-template">
[6889] Fix | Delete
<div class="et-pb-library-account-status-error">
[6890] Fix | Delete
<%% if ( expired ) { %%>
[6891] Fix | Delete
<h2>%1$s</h2>
[6892] Fix | Delete
<p>%2$s</p>
[6893] Fix | Delete
<%% } else { %%>
[6894] Fix | Delete
<h2>%3$s</h2>
[6895] Fix | Delete
<p>%4$s</p>
[6896] Fix | Delete
<div class="et-pb-option et-pb-option--text">
[6897] Fix | Delete
<label for="et_username">%5$s</label>
[6898] Fix | Delete
<div class="et-pb-option-container et-pb-option-container--text">
[6899] Fix | Delete
<input id="et_username" type="text" class="regular-text" value="" />
[6900] Fix | Delete
<p class="description">%6$s</p>
[6901] Fix | Delete
</div>
[6902] Fix | Delete
</div>
[6903] Fix | Delete
<div class="et-pb-option et-pb-option--text">
[6904] Fix | Delete
<label for="et_api_key">%7$s</label>
[6905] Fix | Delete
<div class="et-pb-option-container et-pb-option-container--text">
[6906] Fix | Delete
<input id="et_api_key" type="text" class="regular-text" value="" />
[6907] Fix | Delete
<p class="description">%8$s</p>
[6908] Fix | Delete
</div>
[6909] Fix | Delete
</div>
[6910] Fix | Delete
<div class="et-pb-option-container">
[6911] Fix | Delete
<a href="#" class="button">%9$s</a>
[6912] Fix | Delete
</div>
[6913] Fix | Delete
<%% } %%>
[6914] Fix | Delete
</div>
[6915] Fix | Delete
</script>',
[6916] Fix | Delete
et_core_esc_previously( $library_i18n['Uh Oh!'] ),
[6917] Fix | Delete
et_core_esc_previously( $library_i18n['$expiredAccount'] ),
[6918] Fix | Delete
et_core_esc_previously( $library_i18n['Authentication Required'] ),
[6919] Fix | Delete
et_core_esc_previously( $library_i18n['$noAccount'] ),
[6920] Fix | Delete
et_core_esc_previously( $library_i18n['Username'] ),
[6921] Fix | Delete
et_core_esc_previously( $library_i18n['$usernameHelp'] ),
[6922] Fix | Delete
et_core_esc_previously( $library_i18n['API Key'] ),
[6923] Fix | Delete
et_core_esc_previously( $library_i18n['$apiKeyHelp'] ),
[6924] Fix | Delete
et_core_esc_previously( $library_i18n['Submit'] )
[6925] Fix | Delete
);
[6926] Fix | Delete
[6927] Fix | Delete
// Library Back Button.
[6928] Fix | Delete
echo '
[6929] Fix | Delete
<script type="text/template" id="et-builder-library-back-button-template">
[6930] Fix | Delete
<div class="et-pb-library-back-button" aria-role="button" aria-label="Back To Layouts List">
[6931] Fix | Delete
<svg viewBox="0 0 28 28" preserveAspectRatio="xMidYMid meet"shapeRendering="geometricPrecision">
[6932] Fix | Delete
<g>
[6933] Fix | Delete
<path d="M14.988 10.963h-3v-2.52a.393.393 0 0 0-.63-.361l-5.2 4.5a.491.491 0 0 0 0 .72l5.2 4.5a.393.393 0 0 0 .63-.36v-2.52h2.99a2.992 2.992 0 0 1 2.99 2.972v1.287a.7.7 0 0 0 .7.694h2.59a.7.7 0 0 0 .7-.694v-1.3a6.948 6.948 0 0 0-6.97-6.918z" fillRule="evenodd" />
[6934] Fix | Delete
</g>
[6935] Fix | Delete
</svg>
[6936] Fix | Delete
</div>
[6937] Fix | Delete
</script>
[6938] Fix | Delete
';
[6939] Fix | Delete
[6940] Fix | Delete
$insert_module_button = et_pb_is_allowed( 'add_module' ) ? sprintf(
[6941] Fix | Delete
'%2$s
[6942] Fix | Delete
<a href="#" class="et-pb-insert-module<%%= typeof et_pb_template_type === \'undefined\' || \'module\' !== et_pb_template_type ? \'\' : \' et_pb_hidden_button\' %%>">
[6943] Fix | Delete
<span>%1$s</span>
[6944] Fix | Delete
</a>
[6945] Fix | Delete
%3$s',
[6946] Fix | Delete
esc_html__( 'Insert Module(s)', 'et_builder' ),
[6947] Fix | Delete
! et_pb_is_allowed( 'edit_global_library' ) ? '<% if ( typeof et_pb_global_parent === "undefined" ) { %>' : '',
[6948] Fix | Delete
! et_pb_is_allowed( 'edit_global_library' ) ? '<% } %>' : ''
[6949] Fix | Delete
) : '';
[6950] Fix | Delete
[6951] Fix | Delete
// Column Template.
[6952] Fix | Delete
printf(
[6953] Fix | Delete
'<script type="text/template" id="et-builder-column-template">
[6954] Fix | Delete
%1$s
[6955] Fix | Delete
</script>',
[6956] Fix | Delete
et_core_esc_previously( $insert_module_button )
[6957] Fix | Delete
);
[6958] Fix | Delete
[6959] Fix | Delete
// Insert Row(s).
[6960] Fix | Delete
$insert_row_button = et_pb_is_allowed( 'add_module' ) ? sprintf(
[6961] Fix | Delete
'<a href="#" class="et-pb-insert-row">
[6962] Fix | Delete
<span>%1$s</span>
[6963] Fix | Delete
</a>',
[6964] Fix | Delete
esc_html__( 'Insert Row(s)', 'et_builder' )
[6965] Fix | Delete
) : '';
[6966] Fix | Delete
[6967] Fix | Delete
// Insert Row Template.
[6968] Fix | Delete
printf(
[6969] Fix | Delete
'<script type="text/template" id="et-builder-specialty-column-template">
[6970] Fix | Delete
%1$s
[6971] Fix | Delete
</script>',
[6972] Fix | Delete
et_core_esc_previously( $insert_row_button )
[6973] Fix | Delete
);
[6974] Fix | Delete
[6975] Fix | Delete
// Advanced Settings Buttons Module.
[6976] Fix | Delete
printf(
[6977] Fix | Delete
'<script type="text/template" id="et-builder-advanced-setting">
[6978] Fix | Delete
<%% if ( \'et_pb_column\' !== module_type && \'et_pb_column_inner\' !== module_type ) { %%>
[6979] Fix | Delete
<a href="#" class="et-pb-advanced-setting-remove">
[6980] Fix | Delete
<span>%1$s</span>
[6981] Fix | Delete
</a>
[6982] Fix | Delete
<%% } %%>
[6983] Fix | Delete
[6984] Fix | Delete
<a href="#" class="et-pb-advanced-setting-options">
[6985] Fix | Delete
<span>%2$s</span>
[6986] Fix | Delete
</a>
[6987] Fix | Delete
[6988] Fix | Delete
<%% if ( \'et_pb_column\' !== module_type && \'et_pb_column_inner\' !== module_type ) { %%>
[6989] Fix | Delete
<a href="#" class="et-pb-clone et-pb-advanced-setting-clone">
[6990] Fix | Delete
<span>%3$s</span>
[6991] Fix | Delete
</a>
[6992] Fix | Delete
<%% } %%>
[6993] Fix | Delete
</script>',
[6994] Fix | Delete
esc_html__( 'Delete', 'et_builder' ),
[6995] Fix | Delete
esc_html__( 'Settings', 'et_builder' ),
[6996] Fix | Delete
esc_html__( 'Clone Module', 'et_builder' )
[6997] Fix | Delete
);
[6998] Fix | Delete
[6999] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function