/home/techb158/balacoffee.com/wp-content/themes/Divi/includes/builder/plugin-compat
NameSizeModeActions
scripts/-0755rm
styles/-0755rm
advanced-custom-fields-pro.php1680644editdlrm
advanced-custom-fields.php93690644editdlrm
amazon-s3-and-cloudfront-pro.php10350644editdlrm
amazon-s3-and-cloudfront.php31930644editdlrm
autoptimize.php11330644editdlrm
caldera-forms.php12650644editdlrm
cartflows.php19220644editdlrm
cdn-enabler.php14720644editdlrm
coursepress.php10940644editdlrm
divi-filterable-blog-module.php10610644editdlrm
divi-module-code-snippet.php15880644editdlrm
divi-testimonial-slider.php13030644editdlrm
divi_layout_injector.php30930644editdlrm
divi_woo_layout_injector.php14020644editdlrm
dk-pdf.php19410644editdlrm
ds-divi-rocket.php10810644editdlrm
easy-digital-downloads.php45220644editdlrm
eventon.php32690644editdlrm
events-manager.php15620644editdlrm
final-tiles-grid-gallery-lite.php14620644editdlrm
gravityforms.php7320644editdlrm
gravityformssignature.php17070644editdlrm
ht-knowledge-base.php16800644editdlrm
imagify.php32120644editdlrm
insert-pages.php14500644editdlrm
jucra-acf-google-maps-for-divi.php12960644editdlrm
kvcore-idx.php9150644editdlrm
landing-pages.php10170644editdlrm
m-chart.php13100644editdlrm
mappress-google-maps-for-wordpress.php17440644editdlrm
megamenu.php16400644editdlrm
modern-events-calendar-lite.php11860644editdlrm
nex-forms-express-wp-form-builder.php13500644editdlrm
paid-memberships-pro.php13880644editdlrm
photo-gallery.php14040644editdlrm
pilotpress.php15810644editdlrm
popup-maker.php55440644editdlrm
relevanssi-premium.php2470644editdlrm
relevanssi.php18950644editdlrm
sellsy.php10870644editdlrm
seo-by-rank-math.php18360644editdlrm
sfwd-lms.php46160644editdlrm
sg-cachepress.php26680644editdlrm
siteorigin-panels.php14660644editdlrm
sitepress-multilingual-cms.php97470644editdlrm
table-of-contents-plus.php10440644editdlrm
the-events-calendar-community-events.php13520644editdlrm
the-events-calendar.php75480644editdlrm
toolbar-publish-button.php10390644editdlrm
woo-paypalplus.php13480644editdlrm
woocommerce.php111200644editdlrm
wordpress-mu-domain-mapping.php15710644editdlrm
wordpress-seo.php25490644editdlrm
wp-job-manager.php19300644editdlrm
wp-responsive-table.php12180644editdlrm
wp-rocket.php13750644editdlrm
wp-smush-pro.php1560644editdlrm
wp-smushit.php54730644editdlrm
wp-views.php32980644editdlrm
wp3d-models.php11060644editdlrm
wpml-sticky-links.php14320644editdlrm
yith-woocommerce-dynamic-pricing-and-discounts-premium.php21020644editdlrm
Edit: /home/techb158/balacoffee.com/wp-content/themes/Divi/includes/builder/plugin-compat/sfwd-lms.php (4616B)
plugin_id = 'sfwd-lms/sfwd_lms.php'; $this->init_hooks(); } /** * Hook methods to WordPress. * * @since 4.3.4 * * @return void */ public function init_hooks() { // Bail if there's no version found. if ( ! $this->get_plugin_version() ) { return; } add_action( 'learndash-focus-header-before', array( $this, 'fire_learndash_compatibility_action' ) ); add_action( 'learndash-focus-template-start', array( $this, 'maybe_inject_theme_builder_header' ) ); add_action( 'learndash-focus-template-end', array( $this, 'maybe_inject_theme_builder_footer' ) ); add_action( 'et_theme_builder_template_before_body', array( $this, 'maybe_override_query_before_body' ), 10, 3 ); add_action( 'et_theme_builder_template_after_body', array( $this, 'maybe_override_query_after_body' ), 10, 3 ); add_action( 'wp_enqueue_scripts', array( $this, 'focus_mode_compatibility_script' ), 99 ); } /** * Maybe override `$wp_query` temporarily before TB layout body template. * * @since 4.7.4 * * @param integer $layout_id TB layout post ID (header, body, footer). * @param boolean $layout_enabled Current layout status whether is enabled or not. * @param integer $template_id TB template post ID (parent of TB layout). */ public function maybe_override_query_before_body( $layout_id, $layout_enabled, $template_id ) { if ( ! $layout_enabled || ! function_exists( 'learndash_get_post_types' ) ) { return; } if ( ! in_array( get_post_type(), learndash_get_post_types(), true ) ) { return; } global $wp_query; // Save current value as reference for later usage. $this->_in_the_loop[ $layout_id ] = $wp_query->in_the_loop; // Force the query to be treated as a loop (fake loop). $wp_query->in_the_loop = true; } /** * Maybe restore `$wp_query` after TB layout body template rendered. * * @since 4.7.4 * * @param integer $layout_id TB layout post ID (header, body, footer). * @param boolean $layout_enabled Current layout status whether is enabled or not. * @param integer $template_id TB template post ID (parent of TB layout). */ public function maybe_override_query_after_body( $layout_id, $layout_enabled, $template_id ) { if ( ! $layout_enabled || ! function_exists( 'learndash_get_post_types' ) ) { return; } if ( ! in_array( get_post_type(), learndash_get_post_types(), true ) ) { return; } global $wp_query; // Restore `in_the_loop` property to original state. $wp_query->in_the_loop = et_()->array_get( $this->_in_the_loop, $layout_id, false ); } /** * Disable TB hooks for Divi and Extra. * * @since 4.3.4 */ public function fire_learndash_compatibility_action() { /** * Fires when LearnDash Focus mode is enabled for the current request. * * @since 4.3.4 */ do_action( 'et_theme_builder_compatibility_learndash_focus_mode' ); } /** * Maybe inject the TB header back in. * * @since 4.3.4 */ public function maybe_inject_theme_builder_header() { $layouts = et_theme_builder_get_template_layouts(); if ( empty( $layouts ) ) { return; } et_theme_builder_frontend_render_header( $layouts[ ET_THEME_BUILDER_HEADER_LAYOUT_POST_TYPE ]['id'], $layouts[ ET_THEME_BUILDER_HEADER_LAYOUT_POST_TYPE ]['enabled'], $layouts[ ET_THEME_BUILDER_TEMPLATE_POST_TYPE ] ); } /** * Maybe inject the TB footer back in. * * @since 4.3.4 */ public function maybe_inject_theme_builder_footer() { $layouts = et_theme_builder_get_template_layouts(); if ( empty( $layouts ) ) { return; } et_theme_builder_frontend_render_footer( $layouts[ ET_THEME_BUILDER_FOOTER_LAYOUT_POST_TYPE ]['id'], $layouts[ ET_THEME_BUILDER_FOOTER_LAYOUT_POST_TYPE ]['enabled'], $layouts[ ET_THEME_BUILDER_TEMPLATE_POST_TYPE ] ); } /** * Focus Mode compatibility for global header and footer. */ public function focus_mode_compatibility_script() { wp_enqueue_script( 'et-builder-sfwd-lms-compat-scripts', ET_BUILDER_URI . '/plugin-compat/scripts/sfwd-lms.js', array( 'jquery' ), ET_BUILDER_VERSION, true ); } } new ET_Builder_Plugin_Compat_LearnDash();