Upgarded to 4.17.4

This commit is contained in:
2022-06-23 13:17:18 +01:00
parent 80f1e87db9
commit a04fb0c7af
404 changed files with 54683 additions and 4417 deletions

View File

@ -241,6 +241,7 @@ function et_fb_enqueue_assets() {
$fb_bundle_dependencies = apply_filters( 'et_fb_bundle_dependencies', $dependencies_list );
if ( et_pb_enqueue_google_maps_script() ) {
add_filter( 'script_loader_tag', 'et_fb_disable_google_maps_script', 10, 3 );
wp_enqueue_script(
'google-maps-api',
esc_url(
@ -294,6 +295,29 @@ function et_fb_enqueue_assets() {
) as $chunk ) {
$additional_bundles[] = "{$app}/build/" . basename( $chunk );
}
if ( defined( 'ET_CLOUD_PLUGIN_DIR' ) ) {
$cloud_build_dir = ET_CLOUD_PLUGIN_DIR . 'build';
$cloud_uri = ET_CLOUD_PLUGIN_URI;
} else {
$cloud_build_dir = get_template_directory() . '/cloud/build';
$cloud_uri = get_template_directory_uri() . '/cloud';
}
// Divi Cloud bundles.
foreach ( array_merge(
glob( $cloud_build_dir . '/*.css' ),
glob( $cloud_build_dir . '/*.js' )
) as $chunk ) {
$additional_bundles[] = "{$cloud_uri}/build/" . basename( $chunk );
}
wp_localize_script(
'et-frontend-builder',
'et_cloud_data',
ET_Cloud_App::get_cloud_helpers()
);
// Pass bundle path and additional bundles to preload
wp_localize_script(
'et-frontend-builder',
@ -323,6 +347,9 @@ function et_fb_enqueue_assets() {
add_action( 'wp_print_footer_scripts', 'et_fb_output_wp_auth_check_html', 5 );
do_action( 'et_fb_enqueue_assets' );
// Skip react loading for the Cloud app ( second param = true ) as we already did it at this point ( @see et_fb_enqueue_react() above ).
ET_Cloud_App::load_js( false, true );
}
function et_fb_app_src( $tag, $handle, $src ) {
@ -341,6 +368,23 @@ function et_fb_app_src( $tag, $handle, $src ) {
// phpcs:enable
}
/**
* Disable google maps api script. Google maps api script dynamically injects scripts in the head
* which will be blocked by Preboot.js while DOM move resources from top window to app window.
* The google maps script will be reenable once the resources has been moved into iframe.
*
* @param string $tag The `<script>` tag for the enqueued script.
* @param string $handle The script's registered handle.
* @param string $src The script's source URL.
*/
function et_fb_disable_google_maps_script( $tag, $handle, $src ) {
if ( 'google-maps-api' !== $handle || ! et_core_is_fb_enabled() || et_builder_bfb_enabled() || et_builder_tb_enabled() ) {
return $tag;
}
return str_replace( "type='text/javascript'", "type='text/tempdisablejs' data-et-type='text/javascript'", $tag );
}
/**
* Disable admin bar styling for HTML in VB. BFB doesn't loaded admin bar and VB loads admin bar
* on top window which makes built-in admin bar styling irrelevant because admin bar is affected by

File diff suppressed because one or more lines are too long

View File

@ -0,0 +1 @@
.et-block{position:relative}.et-block .et-fb-preloader__page-loading{background-color:#fff}.et-block .et-fb-loader-inline{position:relative;min-height:60px;text-align:center}.et-block .et-fb-loader-inline .et-fb-preloader__top-level{position:static}.et-block .et-fb-loader-wrapper{position:absolute;top:50%;left:50%;background:#fff;width:100px;height:100px;border-radius:100px;box-shadow:0 5px 30px rgba(43,135,218,.15);margin:-50px auto auto -50px;animation:et-fb-loader-wrapper ease infinite 1.5s}.et-block .et-fb-loader,.et-block .et-fb-page-preloading:before{content:"";position:absolute;top:50%;left:50%;width:12px;height:12px;border-radius:12px;box-shadow:0 -17px #7e3bd0,17px 0 #7e3bd0,0 17px #7e3bd0,-17px 0 #7e3bd0;margin:-6px auto auto -6px;animation:et-fb-loader ease infinite 3s}.et-block .et-fb-preloader__top-level{z-index:2000000;position:fixed;top:0;right:0;bottom:0;left:0;width:100%}.et-block .et-fb-preloader__top-level .et-fb-loader{top:50%}@keyframes et-fb-loader{0%{box-shadow:0 -17px #7e3bd0,17px 0 #29c4a9,0 17px #7e3bd0,-17px 0 #29c4a9}25%{box-shadow:17px 0 #2b87da,0 17px #29c4a9,-17px 0 #2b87da,0 -17px #29c4a9}50%{box-shadow:0 17px #2b87da,-17px 0 #ff9232,0 -17px #2b87da,17px 0 #ff9232}75%{box-shadow:-17px 0 #7e3bd0,0 -17px #ff9232,17px 0 #7e3bd0,0 17px #ff9232}to{box-shadow:0 -17px #7e3bd0,17px 0 #29c4a9,0 17px #7e3bd0,-17px 0 #29c4a9}}@keyframes et-fb-loader-wrapper{0%,to{width:100px;height:100px;box-shadow:0 5px 30px rgba(43,135,218,.15);margin:-50px auto auto -50px}50%{width:70px;height:70px;box-shadow:0 5px 15px rgba(43,135,218,.3);margin:-35px auto auto -35px}}.et-block .et-focusable-input{position:absolute;bottom:0;right:0;opacity:0;pointer-events:none}.et-block-components-panel--body .et-block-button{display:block}.et-block .components-placeholder{margin:0}body .wp-block[data-type="core/column"] .wp-block.is-reusable[data-type="core/block"] .et-block,body .wp-block[data-type="core/column"] .wp-block[data-type="divi/layout"] .et-block{overflow:hidden}.et-block .et-common-tabs-navigation__button{font-family:Open Sans,Helvetica,Roboto,Arial,sans-serif}.et-block iframe{border:0}.block-editor-block-preview__content-iframe{overflow:hidden}

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -1,6 +0,0 @@
/**
* postmate - A powerful, simple, promise-based postMessage library
* @version 1.1.9
* @link https://github.com/dollarshaveclub/postmate
* @author Jacob Kelley <jakie8@gmail.com>
* @license MIT */

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -1 +1 @@
!function(e,t){for(var n in t)e[n]=t[n]}(window,function(e){var t={};function n(i){if(t[i])return t[i].exports;var r=t[i]={i:i,l:!1,exports:{}};return e[i].call(r.exports,r,r.exports,n),r.l=!0,r.exports}return n.m=e,n.c=t,n.d=function(e,t,i){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:i})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var i=Object.create(null);if(n.r(i),Object.defineProperty(i,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var r in e)n.d(i,r,function(t){return e[t]}.bind(null,r));return i},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="/",n(n.s=1436)}({1436:function(e,t,n){"use strict";(function(e){!function(t){t("body").on("click","a",(function(e){var n=t(this).attr("href"),i=void 0!==n?n.substr(0,1):"";"#"!==i&&""!==i&&(e.preventDefault(),t(".link-disabled").addClass("active"))})),t("body").on("click",".et_pb_prompt_proceed",(function(){t(".link-disabled").removeClass("active")}));window.addEventListener("message",(function(e){var n=t('<form id="preview-data-submission" method="POST" style="display: none;"></form>'),i=e.data,r=document.documentMode;if(e.origin===et_preview_params.preview_origin){if(void 0!==r&&r<10&&(i=JSON.parse(i)),i&&i.et_pb_preview_nonce){for(var o in i){t("<textarea />",{name:o,style:"display: none; "}).val(i[o]).appendTo(n)}n.append('<input type="submit" value="submit" style="display: none;" />'),n.appendTo(".container"),t("#preview-data-submission").trigger("submit")}}else t(".et-pb-preview-loading").replaceWith(t("<h4 />",{style:"text-align: center;"}).html(et_preview_params.alert_origin_not_matched))}),!1),1!==t("#content > .content .et-pb-preview-loading").length&&"undefined"!=typeof parent&&setTimeout((function(){var n={html:t("#content > .content").html(),stylesheets:[]};e.each(window.location.search.substr(1).split("&"),(function(e,t){var i=t.split("=");void 0!==i[0]&&void 0!==i[1]&&"iframe_id"===i[0]&&(n.iframe_id=i[1])})),t('link[rel="stylesheet"]').each((function(e,i){n.stylesheets.push(t(i).attr("href"))})),parent.postMessage(n,window.location.origin)}),2e3)}(e)}).call(this,n(9))},9:function(e,t){e.exports=window.jQuery}}));
!function(e,t){for(var n in t)e[n]=t[n]}(window,function(e){var t={};function n(i){if(t[i])return t[i].exports;var r=t[i]={i:i,l:!1,exports:{}};return e[i].call(r.exports,r,r.exports,n),r.l=!0,r.exports}return n.m=e,n.c=t,n.d=function(e,t,i){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:i})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var i=Object.create(null);if(n.r(i),Object.defineProperty(i,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var r in e)n.d(i,r,function(t){return e[t]}.bind(null,r));return i},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="/",n(n.s=1446)}({1446:function(e,t,n){"use strict";(function(e){!function(t){t("body").on("click","a",(function(e){var n=t(this).attr("href"),i=void 0!==n?n.substr(0,1):"";e.preventDefault(),"#"!==i&&t(".link-disabled").addClass("active")})),t("body").on("click",".et_pb_prompt_proceed",(function(){t(".link-disabled").removeClass("active")}));window.addEventListener("message",(function(e){var n=t('<form id="preview-data-submission" method="POST" style="display: none;"></form>'),i=e.data,r=document.documentMode;if(e.origin===et_preview_params.preview_origin){if(void 0!==r&&r<10&&(i=JSON.parse(i)),i&&i.et_pb_preview_nonce){for(var o in i){t("<textarea />",{name:o,style:"display: none; "}).val(i[o]).appendTo(n)}n.append('<input type="submit" value="submit" style="display: none;" />'),n.appendTo(".container"),t("#preview-data-submission").trigger("submit")}}else t(".et-pb-preview-loading").replaceWith(t("<h4 />",{style:"text-align: center;"}).html(et_preview_params.alert_origin_not_matched))}),!1),1!==t("#content > .content .et-pb-preview-loading").length&&"undefined"!=typeof parent&&setTimeout((function(){var n={html:t("#content > .content").html(),stylesheets:[]};e.each(window.location.search.substr(1).split("&"),(function(e,t){var i=t.split("=");void 0!==i[0]&&void 0!==i[1]&&"iframe_id"===i[0]&&(n.iframe_id=i[1])})),t('link[rel="stylesheet"]').each((function(e,i){n.stylesheets.push(t(i).attr("href"))})),parent.postMessage(n,window.location.origin)}),2e3)}(e)}).call(this,n(9))},9:function(e,t){e.exports=window.jQuery}}));

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because it is too large Load Diff

View File

@ -1,7 +1,12 @@
<?php
// Add strings from i18n directory. Note: We don't handle subdirectories, but we should in the future.
$i18n_files = glob( __DIR__ . '/i18n/*.php' );
$strings = array();
// Library localization has been moved to the Cloud app.
$root_directory = defined( 'ET_BUILDER_PLUGIN_ACTIVE' ) ? ET_BUILDER_PLUGIN_DIR : get_template_directory();
$i18n_library = require $root_directory . '/cloud/i18n/library.php';
$strings = array();
foreach ( $i18n_files as $file ) {
$filename = basename( $file, '.php' );
@ -9,4 +14,6 @@ foreach ( $i18n_files as $file ) {
$strings[ $key ] = require $file;
}
$strings['library'] = $i18n_library;
return $strings;

View File

@ -94,17 +94,11 @@ return array(
'User Role' => esc_html__( 'User Role', 'et_builder' ),
'Display Only If User Role' => esc_html__( 'Display Only If User Role', 'et_builder' ),
'Admin' => esc_html__( 'Admin', 'et_builder' ),
'Author' => esc_html__( 'Author', 'et_builder' ),
'Contributor' => esc_html__( 'Contributor', 'et_builder' ),
'Customer' => esc_html__( 'Customer', 'et_builder' ),
'Editor' => esc_html__( 'Editor', 'et_builder' ),
'Subscriber' => esc_html__( 'Subscriber', 'et_builder' ),
'Pages' => esc_html__( 'Pages', 'et_builder' ),
'Display Only If Page' => esc_html__( 'Display Only If Page', 'et_builder' ),
'Posts' => esc_html__( 'Posts', 'et_builder' ),
'Post Type' => esc_html__( 'Post Type', 'et_builder' ),
'Display Only If Post Type' => esc_html__( 'Display Only If Post Type', 'et_builder' ),
@ -148,4 +142,114 @@ return array(
'Days' => esc_html__( 'Days', 'et_builder' ),
'Minutes' => esc_html__( 'Minutes', 'et_builder' ),
'Hours' => esc_html__( 'Hours', 'et_builder' ),
'Custom Field' => esc_html__( 'Custom Field', 'et_builder' ),
'Manual Custom Field Name' => esc_html__( 'Manual Custom Field Name', 'et_builder' ),
'Manual Custom Field Value' => esc_html__( 'Manual Custom Field Value', 'et_builder' ),
'Custom Field Name' => esc_html__( 'Custom Field Name', 'et_builder' ),
'Contains' => esc_html__( 'Contains', 'et_builder' ),
'Does Not Contain' => esc_html__( 'Does Not Contain', 'et_builder' ),
'Is Any Value' => esc_html__( 'Is Any Value', 'et_builder' ),
'Has No Value' => esc_html__( 'Has No Value', 'et_builder' ),
'Is Greater Than (numeric values only)' => esc_html__( 'Is Greater Than (numeric values only)', 'et_builder' ),
'Is Less Than (numeric values only)' => esc_html__( 'Is Less Than (numeric values only)', 'et_builder' ),
'Custom Field Value' => esc_html__( 'Custom Field Value', 'et_builder' ),
'A Specific URL Parameter' => esc_html__( 'A Specific URL Parameter', 'et_builder' ),
'Any URL Parameter' => esc_html__( 'Any URL Parameter', 'et_builder' ),
'Exist' => esc_html__( 'Exist', 'et_builder' ),
'Does not Exist' => esc_html__( 'Does not Exist', 'et_builder' ),
'Equals' => esc_html__( 'Equals', 'et_builder' ),
'Does not Equal' => esc_html__( 'Does not Equal', 'et_builder' ),
'Contains' => esc_html__( 'Contains', 'et_builder' ),
'Does not Contain' => esc_html__( 'Does not Contain', 'et_builder' ),
'URL Parameter Name' => esc_html__( 'URL Parameter Name', 'et_builder' ),
'URL Parameter Value' => esc_html__( 'URL Parameter Value', 'et_builder' ),
'URL Parameter' => esc_html__( 'URL Parameter', 'et_builder' ),
'Any' => esc_html__( 'Any', 'et_builder' ),
'Product Stock' => esc_html__( 'Product Stock', 'et_builder' ),
'Display Only If a Specific Product' => esc_html__( 'Display Only If a Specific Product', 'et_builder' ),
'Is in stock' => esc_html__( 'Is in stock', 'et_builder' ),
'Is out of stock' => esc_html__( 'Is out of stock', 'et_builder' ),
'Only display if' => esc_html__( 'Only display if', 'et_builder' ),
'products are in stock' => esc_html__( 'products are in stock', 'et_builder' ),
'products are out of stock' => esc_html__( 'products are out of stock', 'et_builder' ),
'product is in stock' => esc_html__( 'product is in stock', 'et_builder' ),
'product is out of stock' => esc_html__( 'product is out of stock', 'et_builder' ),
// Logged In Status Tooltip.
'Only display to logged in visitors' => esc_html__( 'Only display to logged in visitors', 'et_builder' ),
'Only display to logged out visitors' => esc_html__( 'Only display to logged out visitors', 'et_builder' ),
// Post Type and Other Common Tooltips.
'Only display on' => esc_html__( 'Only display on', 'et_builder' ),
"Don't display on" => esc_html__( "Don't display on", 'et_builder' ),
// Author Tooltip.
'Only display on posts authored by' => esc_html__( 'Only display on posts authored by', 'et_builder' ),
"Don't display on posts authored by" => esc_html__( "Don't display on posts authored by", 'et_builder' ),
// User Role and Other Common Tooltips.
'Only display to' => esc_html__( 'Only display to', 'et_builder' ),
"Don't display to" => esc_html__( "Don't display to", 'et_builder' ),
// Date & Time Tooltip.
'Only display after' => esc_html__( 'Only display after', 'et_builder' ),
'Only display before' => esc_html__( 'Only display before', 'et_builder' ),
'Only display on first day of month' => esc_html__( 'Only display on first day of the month', 'et_builder' ),
'Only display on last day of month' => esc_html__( 'Only display on last day of the month', 'et_builder' ),
// Category Page, Tag Page, Page Visit Tooltip.
'Pages' => esc_html__( 'Pages', 'et_builder' ),
// Cart Content Tooltip.
'Cart Contents Has Products' => esc_html__( 'Only display to users with Products in their cart', 'et_builder' ),
'Cart Contents Is Empty' => esc_html__( 'Only display to users with an empty cart', 'et_builder' ),
'Only display to users with' => esc_html__( 'Only display to users with', 'et_builder' ),
'in their cart' => esc_html__( 'in their cart', 'et_builder' ),
'Only display to users without' => esc_html__( 'Only display to users without', 'et_builder' ),
// Cookie Tooltip.
'cookie' => esc_html__( 'cookie', 'et_builder' ),
'cookie with' => esc_html__( 'cookie with', 'et_builder' ),
'value' => esc_html__( 'value', 'et_builder' ),
'Only display to users who have' => esc_html__( 'Only display to users who have', 'et_builder' ),
"Don't display to users who have" => esc_html__( "Don't display to users who have", 'et_builder' ),
// Date Archive Tooltip.
'Only display on date archives after' => esc_html__( 'Only display on date archives after', 'et_builder' ),
'Only display on date archives before' => esc_html__( 'Only display on date archives before', 'et_builder' ),
// Number of Views Tooltip.
'Only display' => esc_html__( 'Only display', 'et_builder' ),
', Reset after' => esc_html__( ', Reset after', 'et_builder' ),
'times' => esc_html__( 'times', 'et_builder' ),
// Page Visit, Post Visit Tooltip.
'Only display to users visited' => esc_html__( 'Only display to users who have visited', 'et_builder' ),
"Don't display to users visited" => esc_html__( "Don't display to users who have visited", 'et_builder' ),
'Posts' => esc_html__( 'Posts', 'et_builder' ),
// Product Purchase Tooltip.
'Only display to users bought product' => esc_html__( 'Only display to users who have bought a product', 'et_builder' ),
"Don't display to users bought product" => esc_html__( "Don't display to users who have bought a product", 'et_builder' ),
'Only Display to users who bought' => esc_html__( 'Only Display to users who have bought', 'et_builder' ),
"Don't display to users who bought" => esc_html__( "Don't display to users who have bought", 'et_builder' ),
// Search Results Tooltip.
'Only display on search results for' => esc_html__( 'Only display on search results for', 'et_builder' ),
"Don't display on search results for" => esc_html__( "Don't display on search results for", 'et_builder' ),
// Custom Field Tooltip.
'Only display on posts where' => esc_html__( 'Only display on posts where', 'et_builder' ),
'custom field' => esc_html__( 'custom field', 'et_builder' ),
'is equal to' => esc_html__( 'is equal to', 'et_builder' ),
'is not equal to' => esc_html__( 'is not equal to', 'et_builder' ),
'contains' => esc_html__( 'custom field', 'et_builder' ),
'does not contain' => esc_html__( 'does not contain', 'et_builder' ),
'is any value' => esc_html__( 'is any value', 'et_builder' ),
'has no value' => esc_html__( 'has no value', 'et_builder' ),
'is greater than' => esc_html__( 'is greater than', 'et_builder' ),
'is less than' => esc_html__( 'is less than', 'et_builder' ),
);

View File

@ -1,71 +0,0 @@
<?php
$sub_directory = dirname( __FILE__ ) . '/library';
return array(
'%s Library' => sprintf( esc_html_x( '%s Library', 'Divi Library', 'et_builder' ), 'Divi' ),
'%d Layout' => esc_html__( '%d Layout', 'et_builder' ),
'%d Layouts' => esc_html__( '%d Layouts', 'et_builder' ),
'%d Page' => esc_html__( '%d Page', 'et_builder' ),
'%d Pages' => esc_html__( '%d Pages', 'et_builder' ),
'%d Layout Pack' => esc_html__( '%d Layout Pack', 'et_builder' ),
'%d Layout Packs' => esc_html__( '%d Layout Packs', 'et_builder' ),
'%d Total Layouts' => esc_html__( '%d Total Layouts', 'et_builder' ),
'Add New Category' => esc_html__( 'Add New Category', 'et_builder' ),
'Add New Layout' => esc_html__( 'Add New Layout', 'et_builder' ),
'Add New Pack' => esc_html__( 'Add New Pack', 'et_builder' ),
'API Key' => esc_html__( 'API Key', 'et_builder' ),
'Authentication Required' => esc_html__( 'Authentication Required', 'et_builder' ),
'Cancel' => et_builder_i18n( 'Cancel' ),
'Categories' => esc_html__( 'Categories', 'et_builder' ),
'Category' => esc_html__( 'Category', 'et_builder' ),
'Failed to load your existing layouts. Please try again later.' => esc_html__( 'Failed to load your existing layouts. Please try again later.', 'et_builder' ),
'Find A Layout' => esc_html__( 'Find A Layout', 'et_builder' ),
'Find A Page' => esc_html__( 'Find A Page', 'et_builder' ),
'Global' => esc_html_x( 'Global', 'Divi Library Global Module', 'et_builder' ),
'Help' => esc_html__( 'Help', 'et_builder' ),
'Layout' => esc_html_x( 'Layout', 'Divi Library Item Type', 'et_builder' ),
'Layout Details' => esc_html_x( 'Layout Details', 'Divi Library Title', 'et_builder' ),
'Layout Pack' => esc_html__( 'Layout Pack', 'et_builder' ),
'Layout View' => esc_html_x( 'Layout View', 'Divi Library View Mode', 'et_builder' ),
'Layouts In This Pack' => esc_html_x( 'Layouts In This Pack', 'Layout Pack', 'et_builder' ),
'Library' => esc_html__( 'Library', 'et_builder' ),
'List View' => esc_html_x( 'List View', 'Divi Library View Mode', 'et_builder' ),
'Load From Library' => esc_html__( 'Load From Library', 'et_builder' ),
'Manage Categories' => esc_html_x( 'Manage Categories', 'Layout Categories', 'et_builder' ),
'Manage Layouts' => esc_html__( 'Manage Layouts', 'et_builder' ),
'Manage Packs' => esc_html_x( 'Manage Packs', 'Layout Packs', 'et_builder' ),
'Module' => esc_html_x( 'Module', 'Divi Library Item Type', 'et_builder' ),
'No Results' => esc_html__( 'No Results', 'et_builder' ),
'No Screenshot' => esc_html__( 'No Screenshot', 'et_builder' ),
'Pack View' => esc_html_x( 'Pack View', 'Divi Library View Mode (Layout Pack)', 'et_builder' ),
'Premade Layouts' => esc_html__( 'Premade Layouts', 'et_builder' ),
'Published' => esc_html__( 'Published', 'et_builder' ),
'Replace existing content' => esc_html__( 'Replace existing content', 'et_builder' ),
'Row' => esc_html_x( 'Row', 'Divi Library Layout Type', 'et_builder' ),
'Search' => esc_html__( 'Search', 'et_builder' ),
'Search Layout Categories' => esc_html__( 'Search For Categories', 'et_builder' ),
'Search Layout Packs' => esc_html__( 'Search For Packs', 'et_builder' ),
'Search Layouts' => esc_html__( 'Search For Layouts', 'et_builder' ),
'Section' => esc_html_x( 'Section', 'Divi Library Layout Type', 'et_builder' ),
'Status' => esc_html__( 'Status', 'et_builder' ),
'Submit' => esc_html__( 'Submit', 'et_builder' ),
'Title' => et_builder_i18n( 'Title' ),
'Use This Layout' => esc_html_x( 'Use This Layout', 'Apply layout to the page', 'et_builder' ),
'Username' => esc_html__( 'Username', 'et_builder' ),
'Uh Oh!' => esc_html__( 'Uh Oh!', 'et_builder' ),
'View Live Demo' => esc_html_x( 'View Live Demo', 'Page layout', 'et_builder' ),
'View Mode' => esc_html_x( 'View Mode', 'Divi Library', 'et_builder' ),
'Your Existing Pages' => esc_html__( 'Your Existing Pages', 'et_builder' ),
'Your Saved Layouts' => esc_html__( 'Your Saved Layouts', 'et_builder' ),
'$apiKeyHelp' => et_get_safe_localization( sprintf( __( 'You can find your API Key <a href="%s" target="_blank">here</a>.', 'et_builder' ), 'https://www.elegantthemes.com/members-area/api/' ) ),
// Translators: %1$s = Elegant Themes; %2$s = Divi; %3$s = URL to member area.
'$expiredAccount' => et_get_safe_localization( sprintf( __( 'Your %1$s subscription has expired. In order to download Premade Layouts from the %2$s Library you must <a href="%3$s" target="_blank">renew your subscription</a>.', 'et_builder' ), 'Elegant Themes', 'Divi', 'https://www.elegantthemes.com/members-area' ) ),
// Translators: %1$s = Divi; %2$s = Elegant Themes; %3$s = URL to member area.
'$noAccount' => sprintf( esc_html__( 'Before you can download Premade Layouts from the %1$s Library you must authenticate your %2$s subscription.', 'et_builder' ), 'Divi', 'Elegant Themes' ),
'$usernameHelp' => esc_html__( 'This is the username that you use to access the Members Area on elegantthemes.com.', 'et_builder' ),
'@categories' => require $sub_directory . '/categories.php',
'@layoutsLong' => require $sub_directory . '/layouts-long.php',
'@layoutsShort' => require $sub_directory . '/layouts-short.php',
'@packs' => require $sub_directory . '/packs.php',
);

View File

@ -1,15 +0,0 @@
<?php
return array(
'Art & Design' => esc_html_x( 'Art & Design', 'Layout Category', 'et_builder' ),
'Business' => esc_html_x( 'Business', 'Layout Category', 'et_builder' ),
'Community & Non-Profit' => esc_html_x( 'Community & Non-Profit', 'Layout Category', 'et_builder' ),
'Education' => esc_html_x( 'Education', 'Layout Category', 'et_builder' ),
'Events' => esc_html_x( 'Events', 'Layout Category', 'et_builder' ),
'Fashion & Beauty' => esc_html_x( 'Fashion & Beauty', 'Layout Category', 'et_builder' ),
'Food & Drink' => esc_html_x( 'Food & Drink', 'Layout Category', 'et_builder' ),
'Health & Fitness' => esc_html_x( 'Health & Fitness', 'Layout Category', 'et_builder' ),
'Online Store' => esc_html_x( 'Online Store', 'Layout Category', 'et_builder' ),
'Services' => esc_html_x( 'Services', 'Layout Category', 'et_builder' ),
'Technology' => esc_html_x( 'Technology', 'Layout Category', 'et_builder' ),
);

View File

@ -1,136 +0,0 @@
<?php
return array(
'Agency About Page' => esc_html__( 'Agency About Page', 'et_builder' ),
'Agency Blog Page' => esc_html__( 'Agency Blog Page', 'et_builder' ),
'Agency Contact Page' => esc_html__( 'Agency Contact Page', 'et_builder' ),
'Agency Home Page' => esc_html__( 'Agency Home Page', 'et_builder' ),
'Agency Landing Page' => esc_html__( 'Agency Landing Page', 'et_builder' ),
'Agency Portfolio Page' => esc_html__( 'Agency Portfolio Page', 'et_builder' ),
'Agency Pricing Page' => esc_html__( 'Agency Pricing Page', 'et_builder' ),
'Coffee Shop About Page' => esc_html__( 'Coffee Shop About Page', 'et_builder' ),
'Coffee Shop Blog Page' => esc_html__( 'Coffee Shop Blog Page', 'et_builder' ),
'Coffee Shop Contact Page' => esc_html__( 'Coffee Shop Contact Page', 'et_builder' ),
'Coffee Shop Footer Page' => esc_html__( 'Coffee Shop Footer Page', 'et_builder' ),
'Coffee Shop Guide Page' => esc_html__( 'Coffee Shop Guide Page', 'et_builder' ),
'Coffee Shop Home Page' => esc_html__( 'Coffee Shop Home Page', 'et_builder' ),
'Coffee Shop Landing Page' => esc_html__( 'Coffee Shop Landing Page', 'et_builder' ),
'Coffee Shop Menu Page' => esc_html__( 'Coffee Shop Menu Page', 'et_builder' ),
'Coffee Shop Shop Page' => esc_html__( 'Coffee Shop Shop Page', 'et_builder' ),
'Copywriter About Page' => esc_html__( 'Copywriter About Page', 'et_builder' ),
'Copywriter Blog Page' => esc_html__( 'Copywriter Blog Page', 'et_builder' ),
'Copywriter Contact Page' => esc_html__( 'Copywriter Contact Page', 'et_builder' ),
'Copywriter FAQ Page' => esc_html__( 'Copywriter FAQ Page', 'et_builder' ),
'Copywriter Home Page' => esc_html__( 'Copywriter Home Page', 'et_builder' ),
'Copywriter Landing Page' => esc_html__( 'Copywriter Landing Page', 'et_builder' ),
'Copywriter Portfolio Page' => esc_html__( 'Copywriter Portfolio Page', 'et_builder' ),
'Copywriter Pricing Page' => esc_html__( 'Copywriter Pricing Page', 'et_builder' ),
'Copywriter Services Page' => esc_html__( 'Copywriter Services Page', 'et_builder' ),
'Design Agency About Page' => esc_html__( 'Design Agency About Page', 'et_builder' ),
'Design Agency Blog Page' => esc_html__( 'Design Agency Blog Page', 'et_builder' ),
'Design Agency Case Study Page' => esc_html__( 'Design Agency Case Study Page', 'et_builder' ),
'Design Agency Contact Page' => esc_html__( 'Design Agency Contact Page', 'et_builder' ),
'Design Agency Home Page' => esc_html__( 'Design Agency Home Page', 'et_builder' ),
'Design Agency Landing Page' => esc_html__( 'Design Agency Landing Page', 'et_builder' ),
'Design Agency Portfolio Page' => esc_html__( 'Design Agency Portfolio Page', 'et_builder' ),
'Design Agency Project Page 1' => esc_html__( 'Design Agency Project Page 1', 'et_builder' ),
'Design Agency Project Page 2' => esc_html__( 'Design Agency Project Page 2', 'et_builder' ),
'Digital Payments About Page' => esc_html__( 'Digital Payments About Page', 'et_builder' ),
'Digital Payments Blog Page' => esc_html__( 'Digital Payments Blog Page', 'et_builder' ),
'Digital Payments Contact Page' => esc_html__( 'Digital Payments Contact Page', 'et_builder' ),
'Digital Payments Features Page' => esc_html__( 'Digital Payments Features Page', 'et_builder' ),
'Digital Payments Home Page' => esc_html__( 'Digital Payments Home Page', 'et_builder' ),
'Digital Payments Landing Page' => esc_html__( 'Digital Payments Landing Page', 'et_builder' ),
'Digital Payments Pricing Page' => esc_html__( 'Digital Payments Pricing Page', 'et_builder' ),
'Digital Payments Sign-Up Page' => esc_html__( 'Digital Payments Sign-Up Page', 'et_builder' ),
'Farmers Market About Page' => esc_html__( 'Farmers Market About Page', 'et_builder' ),
'Farmers Market Blog Page' => esc_html__( 'Farmers Market Blog Page', 'et_builder' ),
'Farmers Market Contact Page' => esc_html__( 'Farmers Market Contact Page', 'et_builder' ),
'Farmers Market Donate Page' => esc_html__( 'Farmers Market Donate Page', 'et_builder' ),
'Farmers Market Events Page' => esc_html__( 'Farmers Market Events Page', 'et_builder' ),
'Farmers Market Home Page' => esc_html__( 'Farmers Market Home Page', 'et_builder' ),
'Farmers Market Landing Page' => esc_html__( 'Farmers Market Landing Page', 'et_builder' ),
'Farmers Market Market Page' => esc_html__( 'Farmers Market Market Page', 'et_builder' ),
'Fashion About Page' => esc_html__( 'Fashion About Page', 'et_builder' ),
'Fashion Blog Page' => esc_html__( 'Fashion Blog Page', 'et_builder' ),
'Fashion Contact Page' => esc_html__( 'Fashion Contact Page', 'et_builder' ),
'Fashion Designer Page' => esc_html__( 'Fashion Designer Page', 'et_builder' ),
'Fashion Gallery Page' => esc_html__( 'Fashion Gallery Page', 'et_builder' ),
'Fashion Home Page' => esc_html__( 'Fashion Home Page', 'et_builder' ),
'Fashion Landing Page' => esc_html__( 'Fashion Landing Page', 'et_builder' ),
'Fashion Shop Page' => esc_html__( 'Fashion Shop Page', 'et_builder' ),
'Florist About Page' => esc_html__( 'Florist About Page', 'et_builder' ),
'Florist Blog Page' => esc_html__( 'Florist Blog Page', 'et_builder' ),
'Florist Contact Page' => esc_html__( 'Florist Contact Page', 'et_builder' ),
'Florist Gallery Page' => esc_html__( 'Florist Gallery Page', 'et_builder' ),
'Florist Home Page' => esc_html__( 'Florist Home Page', 'et_builder' ),
'Florist Landing Page' => esc_html__( 'Florist Landing Page', 'et_builder' ),
'Florist Shop Page' => esc_html__( 'Florist Shop Page', 'et_builder' ),
'Interior Design Company About Page' => esc_html__( 'Interior Design Company About Page', 'et_builder' ),
'Interior Design Company Blog Page' => esc_html__( 'Interior Design Company Blog Page', 'et_builder' ),
'Interior Design Company Contact Page' => esc_html__( 'Interior Design Company Contact Page', 'et_builder' ),
'Interior Design Company Home Page' => esc_html__( 'Interior Design Company Home Page', 'et_builder' ),
'Interior Design Company Landing Page' => esc_html__( 'Interior Design Company Landing Page', 'et_builder' ),
'Interior Design Company Portfolio Page' => esc_html__( 'Interior Design Company Portfolio Page', 'et_builder' ),
'Interior Design Company Services Page' => esc_html__( 'Interior Design Company Services Page', 'et_builder' ),
'Interior Design Company Shop Page' => esc_html__( 'Interior Design Company Shop Page', 'et_builder' ),
'LMS About Page' => esc_html__( 'LMS About Page', 'et_builder' ),
'LMS Blog Page' => esc_html__( 'LMS Blog Page', 'et_builder' ),
'LMS Contact Page' => esc_html__( 'LMS Contact Page', 'et_builder' ),
'LMS Course Page' => esc_html__( 'LMS Course Page', 'et_builder' ),
'LMS Courses Page' => esc_html__( 'LMS Courses Page', 'et_builder' ),
'LMS Home Page' => esc_html__( 'LMS Home Page', 'et_builder' ),
'LMS Landing Page' => esc_html__( 'LMS Landing Page', 'et_builder' ),
'LMS Marketing Page' => esc_html__( 'LMS Marketing Page', 'et_builder' ),
'LMS Pricing Page' => esc_html__( 'LMS Pricing Page', 'et_builder' ),
'Photo Marketplace About Page' => esc_html__( 'Photo Marketplace About Page', 'et_builder' ),
'Photo Marketplace Categories Page' => esc_html__( 'Photo Marketplace Categories Page', 'et_builder' ),
'Photo Marketplace Contact Page' => esc_html__( 'Photo Marketplace Contact Page', 'et_builder' ),
'Photo Marketplace Home Page' => esc_html__( 'Photo Marketplace Home Page', 'et_builder' ),
'Photo Marketplace Landing Page' => esc_html__( 'Photo Marketplace Landing Page', 'et_builder' ),
'Photo Marketplace Pricing Page' => esc_html__( 'Photo Marketplace Pricing Page', 'et_builder' ),
'Photo Marketplace Seller Page' => esc_html__( 'Photo Marketplace Seller Page', 'et_builder' ),
'Restaurant About Page' => esc_html__( 'Restaurant About Page', 'et_builder' ),
'Restaurant Blog Page' => esc_html__( 'Restaurant Blog Page', 'et_builder' ),
'Restaurant Contact Page' => esc_html__( 'Restaurant Contact Page', 'et_builder' ),
'Restaurant Gallery Page' => esc_html__( 'Restaurant Gallery Page', 'et_builder' ),
'Restaurant Home Page' => esc_html__( 'Restaurant Home Page', 'et_builder' ),
'Restaurant Landing Page' => esc_html__( 'Restaurant Landing Page', 'et_builder' ),
'Restaurant Shop Page' => esc_html__( 'Restaurant Shop Page', 'et_builder' ),
'Restaurant Team Page' => esc_html__( 'Restaurant Team Page', 'et_builder' ),
'SaaS Company About Page' => esc_html__( 'SaaS Company About Page', 'et_builder' ),
'SaaS Company Careers Page' => esc_html__( 'SaaS Company Careers Page', 'et_builder' ),
'SaaS Company Contact Page' => esc_html__( 'SaaS Company Contact Page', 'et_builder' ),
'SaaS Company Documentation Page' => esc_html__( 'SaaS Company Documentation Page', 'et_builder' ),
'SaaS Company Features Page' => esc_html__( 'SaaS Company Features Page', 'et_builder' ),
'SaaS Company Landing Page' => esc_html__( 'SaaS Company Landing Page', 'et_builder' ),
'SaaS Company Pricing Page' => esc_html__( 'SaaS Company Pricing Page', 'et_builder' ),
'Travel Agency About Page' => esc_html__( 'Travel Agency About Page', 'et_builder' ),
'Travel Agency Blog Page' => esc_html__( 'Travel Agency Blog Page', 'et_builder' ),
'Travel Agency Contact Page' => esc_html__( 'Travel Agency Contact Page', 'et_builder' ),
'Travel Agency Home Page' => esc_html__( 'Travel Agency Home Page', 'et_builder' ),
'Travel Agency Landing Page' => esc_html__( 'Travel Agency Landing Page', 'et_builder' ),
'Travel Agency Packages Page' => esc_html__( 'Travel Agency Packages Page', 'et_builder' ),
'Travel Agency Shop Page' => esc_html__( 'Travel Agency Shop Page', 'et_builder' ),
'Travel Agency Team Page' => esc_html__( 'Travel Agency Team Page', 'et_builder' ),
'Web Agency Careers Page' => esc_html__( 'Web Agency Careers Page', 'et_builder' ),
'Web Agency Contact Page' => esc_html__( 'Web Agency Contact Page', 'et_builder' ),
'Web Agency Home Page' => esc_html__( 'Web Agency Home Page', 'et_builder' ),
'Web Agency Landing Page' => esc_html__( 'Web Agency Landing Page', 'et_builder' ),
'Web Agency Portfolio Page' => esc_html__( 'Web Agency Portfolio Page', 'et_builder' ),
'Web Agency Pricing Page' => esc_html__( 'Web Agency Pricing Page', 'et_builder' ),
'Web Agency Services Page' => esc_html__( 'Web Agency Services Page', 'et_builder' ),
'Wedding About Page' => esc_html__( 'Wedding About Page', 'et_builder' ),
'Wedding Blog Page' => esc_html__( 'Wedding Blog Page', 'et_builder' ),
'Wedding Contact Page' => esc_html__( 'Wedding Contact Page', 'et_builder' ),
'Wedding Details Page' => esc_html__( 'Wedding Details Page', 'et_builder' ),
'Wedding Gallery Page' => esc_html__( 'Wedding Gallery Page', 'et_builder' ),
'Wedding Home Page' => esc_html__( 'Wedding Home Page', 'et_builder' ),
'Yoga Studio About Page' => esc_html__( 'Yoga Studio About Page', 'et_builder' ),
'Yoga Studio Blog Page' => esc_html__( 'Yoga Studio Blog Page', 'et_builder' ),
'Yoga Studio Classes Page' => esc_html__( 'Yoga Studio Classes Page', 'et_builder' ),
'Yoga Studio Contact Page' => esc_html__( 'Yoga Studio Contact Page', 'et_builder' ),
'Yoga Studio Home Page' => esc_html__( 'Yoga Studio Home Page', 'et_builder' ),
'Yoga Studio Landing Page' => esc_html__( 'Yoga Studio Landing Page', 'et_builder' ),
'Yoga Studio Team Page' => esc_html__( 'Yoga Studio Team Page', 'et_builder' ),
);

View File

@ -1,40 +0,0 @@
<?php
return array(
'About' => esc_html_x( 'About', 'Page', 'et_builder' ),
'Blog' => esc_html_x( 'Blog', 'Page', 'et_builder' ),
'Contact' => esc_html_x( 'Contact', 'Page', 'et_builder' ),
'Careers' => esc_html_x( 'Careers', 'Page', 'et_builder' ),
'Case Study' => esc_html_x( 'Case Study', 'Page', 'et_builder' ),
'Categories' => esc_html_x( 'Categories', 'Page', 'et_builder' ),
'Classes' => esc_html_x( 'Classes', 'Classes Page (Fitness, Training, etc)', 'et_builder' ),
'Course' => esc_html_x( 'Course', 'LMS Page', 'et_builder' ),
'Courses' => esc_html_x( 'Courses', 'LMS Page', 'et_builder' ),
'Designer' => esc_html_x( 'Designer', 'Page', 'et_builder' ),
'Details' => esc_html_x( 'Details', 'Event Details Page', 'et_builder' ),
'Documentation' => esc_html_x( 'Documentation', 'Documentation Page', 'et_builder' ),
'Donate' => esc_html_x( 'Donate', 'Page', 'et_builder' ),
'Events' => esc_html_x( 'Events', 'Page', 'et_builder' ),
'FAQ' => esc_html_x( 'FAQ', 'Page', 'et_builder' ),
'Features' => esc_html_x( 'Features', 'Page', 'et_builder' ),
'Gallery 1' => esc_html_x( 'Gallery 1', 'Page', 'et_builder' ),
'Gallery 2' => esc_html_x( 'Gallery 2', 'Page', 'et_builder' ),
'Gallery 3' => esc_html_x( 'Gallery 3', 'Page', 'et_builder' ),
'Gallery' => esc_html_x( 'Gallery', 'Page', 'et_builder' ),
'Guide' => esc_html_x( 'Guide', 'Page', 'et_builder' ),
'Home' => esc_html_x( 'Home', 'Page', 'et_builder' ),
'Landing' => esc_html_x( 'Landing', 'Page', 'et_builder' ),
'Market' => esc_html_x( 'Market', 'Page', 'et_builder' ),
'Marketing' => esc_html_x( 'Marketing', 'Page', 'et_builder' ),
'Menu' => esc_html_x( 'Menu', 'Restaurant Page', 'et_builder' ),
'Packages' => esc_html_x( 'Packages', 'Services/Plans Page', 'et_builder' ),
'Portfolio' => esc_html_x( 'Portfolio', 'Page', 'et_builder' ),
'Pricing' => esc_html_x( 'Pricing', 'Page', 'et_builder' ),
'Project 1' => esc_html_x( 'Project 1', 'Page', 'et_builder' ),
'Project 2' => esc_html_x( 'Project 2', 'Page', 'et_builder' ),
'Seller' => esc_html_x( 'Seller', 'Marketplace Page', 'et_builder' ),
'Services' => esc_html_x( 'Services', 'Page', 'et_builder' ),
'Shop' => esc_html_x( 'Shop', 'Page', 'et_builder' ),
'Sign-Up' => esc_html_x( 'Shop', 'Page', 'et_builder' ),
'Team' => esc_html_x( 'Team', 'Page', 'et_builder' ),
);

View File

@ -1,25 +0,0 @@
<?php
return array(
'Agency' => esc_html_x( 'Agency', 'Business', 'et_builder' ),
'Author' => esc_html__( 'Author', 'et_builder' ),
'Coffee Shop' => esc_html__( 'Coffee Shop', 'et_builder' ),
'Consultant' => esc_html_x( 'Consultant', 'Business', 'et_builder' ),
'Copywriter' => esc_html__( 'Copywriter', 'et_builder' ),
'Design Agency' => esc_html__( 'Design Agency', 'et_builder' ),
'Digital Payments' => esc_html__( 'Digital Payments', 'et_builder' ),
'Farmers Market' => esc_html__( 'Farmers Market', 'et_builder' ),
'Fashion' => esc_html_x( 'Fashion', 'Layout Pack', 'et_builder' ),
'Florist' => esc_html__( 'Florist', 'et_builder' ),
'Freelancer' => esc_html__( 'Freelancer', 'et_builder' ),
'Interior Design Company' => esc_html__( 'Interior Design Company', 'et_builder' ),
'LMS' => esc_html_x( 'LMS', 'Learning Management System', 'et_builder' ),
'Photographer' => esc_html__( 'Photographer', 'et_builder' ),
'Photo Marketplace' => esc_html__( 'Photo Marketplace', 'et_builder' ),
'Restaurant' => esc_html__( 'Restaurant', 'et_builder' ),
'SaaS Company' => esc_html__( 'SaaS Company', 'et_builder' ),
'Travel Agency' => esc_html__( 'Travel Agency', 'et_builder' ),
'Web Agency' => esc_html__( 'Web Agency', 'et_builder' ),
'Wedding' => esc_html__( 'Wedding', 'et_builder' ),
'Yoga Studio' => esc_html__( 'Yoga Studio', 'et_builder' ),
);

View File

@ -8,7 +8,7 @@
return array(
'Allow import to override existing assignments' => esc_html__( 'Allow import to override existing assignments', 'et_builder' ),
'Import Presets' => esc_html__( 'Import Presets', 'et_builder' ),
'Download backup before importing' => esc_html__( 'Download backup before importing', 'et_builder' ),
'Download Backup Before Importing' => esc_html__( 'Download Backup Before Importing', 'et_builder' ),
'Export' => esc_html__( 'Export', 'et_builder' ),
'Export All Templates' => esc_html__( 'Export All Templates', 'et_builder' ),
// Translators: %s: number of remaining minutes.

View File

@ -121,17 +121,19 @@ if ( ! defined( 'ET_BUILDER_LOAD_ON_AJAX' ) ) {
define( 'ET_BUILDER_LOAD_ON_AJAX', false );
}
// Always load helpers files to prevent errors when 3rd party modules are autosaved.
define( 'ET_FB_URI', ET_BUILDER_URI . '/frontend-builder' );
define( 'ET_FB_ASSETS_URI', ET_FB_URI . '/assets' );
require_once ET_BUILDER_DIR . 'frontend-builder/helpers.php';
// Stop here if the front end builder isn't enabled.
if ( ! ET_FB_ENABLED && ! ET_BUILDER_LOAD_ON_AJAX ) {
return;
}
define( 'ET_FB_URI', ET_BUILDER_URI . '/frontend-builder' );
define( 'ET_FB_ASSETS_URI', ET_FB_URI . '/assets' );
require_once ET_BUILDER_DIR . 'frontend-builder/view.php';
require_once ET_BUILDER_DIR . 'frontend-builder/assets.php';
require_once ET_BUILDER_DIR . 'frontend-builder/helpers.php';
require_once ET_BUILDER_DIR . 'frontend-builder/rtl.php';
do_action( 'et_fb_framework_loaded' );

View File

@ -156,7 +156,6 @@ function et_theme_builder_enqueue_scripts() {
'distPath' => ET_BUILDER_URI . '/frontend-builder/build/',
'api' => admin_url( 'admin-ajax.php' ),
'apiErrors' => ET_Theme_Builder_Api_Errors::getMap(),
'diviLibraryUrl' => ET_BUILDER_DIVI_LIBRARY_URL,
'diviLibraryCustomTabs' => apply_filters( 'et_builder_library_modal_custom_tabs', array(), 'theme-builder' ),
'nonces' => array(
'et_builder_library_get_layouts_data' => wp_create_nonce( 'et_builder_library_get_layouts_data' ),
@ -193,6 +192,11 @@ function et_theme_builder_enqueue_scripts() {
),
)
);
// Load Library and Cloud.
et_builder_load_library();
ET_Cloud_App::load_js();
}
add_action( 'admin_enqueue_scripts', 'et_theme_builder_enqueue_scripts' );

View File

@ -82,7 +82,7 @@ function et_theme_builder_filter_resolve_default_dynamic_content( $content, $nam
$custom_format = $_->array_get( $settings, 'custom_date_format', $def( $post_id, $name, 'custom_date_format' ) );
if ( 'default' === $format ) {
$format = get_option( 'date_format' );
$format = strval( get_option( 'date_format' ) );
}
if ( 'custom' === $format ) {

View File

@ -135,7 +135,7 @@ function et_theme_builder_frontend_enqueue_styles( $layouts ) {
return;
}
if ( ! is_singular() || et_core_is_fb_enabled() ) {
if ( ! is_singular() && ! et_core_is_fb_enabled() ) {
// Create styles managers so they can enqueue styles early enough.
// What styles are created and how they are enqueued:
// - In FE, singular post view:

View File

@ -791,8 +791,9 @@ function et_theme_builder_get_template_settings_options_for_archive_pages() {
* @since 4.3.3
*
* @param boolean $show
* @param object $taxonomy
*/
$show = apply_filters( 'et_theme_builder_template_settings_options_term_pages', $taxonomy->public && $taxonomy->show_ui );
$show = apply_filters( 'et_theme_builder_template_settings_options_term_pages', $taxonomy->public && $taxonomy->show_ui, $taxonomy );
if ( ! $show ) {
continue;
@ -1195,6 +1196,11 @@ function et_theme_builder_get_template_setting_child_options( $parent, $include
function et_theme_builder_get_template_layouts( $request = null, $cache = true, $load_from_cache = true ) {
static $store = array();
// Ignore TB templates when editing cloud items.
if ( isset( $_GET['cloudItem'] ) ) { // phpcs:ignore WordPress.Security.NonceVerification -- This function does not change any state, and is therefore not susceptible to CSRF.
return array();
}
if ( null === $request ) {
if ( is_embed() ) {
// Ignore TB templates when displaying posts intended for embedding.

View File

@ -66,9 +66,11 @@ function et_theme_builder_wc_review_placeholder() {
* @param array $conditional_tags evaluate conditional tags when current request is AJAX request
*/
function et_theme_builder_wc_set_global_objects( $conditional_tags = array() ) {
$is_tb = et_()->array_get( $conditional_tags, 'is_tb', false );
$is_tb = et_()->array_get( $conditional_tags, 'is_tb', false );
$is_use_placeholder = $is_tb || is_et_pb_preview();
// Check if current request is theme builder (direct page / AJAX request)
if ( ! et_builder_tb_enabled() && ! $is_tb ) {
if ( ! et_builder_tb_enabled() && ! $is_use_placeholder ) {
return;
}
@ -101,7 +103,7 @@ function et_theme_builder_wc_set_global_objects( $conditional_tags = array() ) {
// Get placeholders
$placeholders = et_theme_builder_wc_placeholders();
if ( $is_tb ) {
if ( $is_use_placeholder ) {
$placeholder_src = wc_placeholder_img_src( 'full' );
$placeholder_id = attachment_url_to_postid( $placeholder_src );
@ -131,7 +133,9 @@ function et_theme_builder_wc_set_global_objects( $conditional_tags = array() ) {
// Set current post ID as product's ID. `ET_Theme_Builder_Woocommerce_Product_Variable_Placeholder`
// handles all placeholder related value but product ID need to be manually set to match current
// post's ID. This is especially needed when add-ons is used and accessing get_id() method.
$product->set_id( $post->ID );
if ( isset( $post->ID ) ) {
$product->set_id( $post->ID );
}
// Save modified global for later use
$tb_wc_post = $post;
@ -142,9 +146,16 @@ function et_theme_builder_wc_set_global_objects( $conditional_tags = array() ) {
* Reset global objects needed to manipulate `ETBuilderBackend.currentPage.woocommerceComponents`
*
* @since 4.0.1
* @since 4.14.5 Add conditional tags parameter to evaluate AJAX request.
*
* @param array $conditional_tags Evaluate conditional tags when current request is AJAX request.
*/
function et_theme_builder_wc_reset_global_objects() {
if ( ! et_builder_tb_enabled() ) {
function et_theme_builder_wc_reset_global_objects( $conditional_tags = array() ) {
$is_tb = et_()->array_get( $conditional_tags, 'is_tb', false );
$is_use_placeholder = $is_tb || is_et_pb_preview();
// Check if current request is theme builder (direct page / AJAX request).
if ( ! et_builder_tb_enabled() && ! $is_use_placeholder ) {
return;
}

View File

@ -71,6 +71,15 @@ function et_builder_maybe_include_bfb_template( $template ) {
return ET_BUILDER_DIR . 'frontend-builder/bfb-template.php';
}
// Load custom page template when editing Cloud Item.
if ( isset( $_GET['cloudItem'] ) ) { // phpcs:ignore WordPress.Security.NonceVerification -- This function does not change any state, and is therefore not susceptible to CSRF.
if ( current_user_can( 'manage_options' ) || current_user_can( 'editor' ) ) {
wp_admin_bar_render();
}
return ET_BUILDER_DIR . 'templates/block-layout-preview.php';
}
return $template;
}
add_filter( 'template_include', 'et_builder_maybe_include_bfb_template', 99 );
@ -141,6 +150,10 @@ function et_fb_add_body_class( $classes ) {
$classes[] = 'et-tb';
}
if ( isset( $_GET['cloudItem'] ) ) { // phpcs:ignore WordPress.Security.NonceVerification -- This function does not change any state, and is therefore not susceptible to CSRF.
$classes[] = 'et-cloud-item-editor';
}
return $classes;
}
add_filter( 'body_class', 'et_fb_add_body_class' );