/home/techb158/primomovers.ca/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.php59720644editdlrm
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.php50500644editdlrm
wp-views.php32980644editdlrm
wp3d-models.php11060644editdlrm
wpml-sticky-links.php14320644editdlrm
yith-woocommerce-dynamic-pricing-and-discounts-premium.php21020644editdlrm
Edit: /home/techb158/primomovers.ca/wp-content/themes/Divi/includes/builder/plugin-compat/popup-maker.php (5544B)
plugin_id = 'popup-maker/popup-maker.php'; $this->init_hooks(); } /** * Hook methods to WordPress. * * @since 4.13.0 * * @return void */ public function init_hooks() { // Bail if there's no version found. if ( ! $this->get_plugin_version() ) { return; } add_filter( 'all_module_css_selector', array( $this, 'et_builder_maybe_update_module_styles_selector' ), 10, 4 ); add_filter( 'et_pb_set_style_selector', array( $this, 'et_builder_maybe_update_selector' ), 10, 4 ); add_filter( 'et_core_enqueued_style_handle', array( $this, 'et_builder_maybe_update_style_handle' ), 10, 4 ); // Disable Feature: Dynamic Assets. add_filter( 'et_use_dynamic_css', array( $this, 'et_builder_disable_dynamic_features' ), 10, 4 ); add_filter( 'et_should_generate_dynamic_assets', array( $this, 'et_builder_disable_dynamic_features' ), 10, 4 ); // Disable Cache in Feature Manager. add_filter( 'et_builder_post_feature_cache_enabled', array( $this, 'et_builder_disable_dynamic_features' ), 10, 4 ); // Override Waypoint context. add_filter( 'et_builder_waypoints_options', array( $this, 'maybe_override_waypoints_options' ) ); } /** * Return false if Popup Maker is active to disable dynamic assets feature. * * @since 4.13.0 * * @param bool $current_state Current state of the feature. * * @return string */ public function et_builder_disable_dynamic_features( $current_state ) { // Should only be modified for Popup Maker plugin. if ( ! class_exists( 'PUM_Shortcode_Popup' ) ) { return $current_state; } return false; } /** * Update Divi Builder selector for Popup Maker plugin. * The purpose of this update is to make sure custom module styles applied to the content inside Popup Maker which placed outside the main page content and `#page-container` container * * @since 4.13.0 * * @param string $selector Selector to modify. * * @return string */ public function et_builder_maybe_update_module_styles_selector( $selector ) { // Selector should only be modified for Popup Maker plugin. if ( ! class_exists( 'PUM_Shortcode_Popup' ) ) { return $selector; } // Add 'body .pum-container' into selector along with existing 'body #page-container' to target the content inside Popup Maker. if ( false !== strpos( $selector, 'body #page-container' ) ) { // add the prefix for all the selectors in a string. $pum_prefixed_selector = str_replace( 'body #page-container', 'body .pum-container', $selector ); $selector .= ', ' . $pum_prefixed_selector; } return $selector; } /** * Update Divi Builder selector for Popup Maker plugin. * The purpose of this update is to make sure custom module styles applied to the content inside Popup Maker which placed outside the main page content and `#et-boc` container * * @since 4.13.0 * * @param string $selector Selector to modify. * * @return string */ public function et_builder_maybe_update_selector( $selector ) { // Selector should only be modified for Popup Maker plugin. if ( ! class_exists( 'PUM_Shortcode_Popup' ) ) { return $selector; } // Add '.et-db .pum' into selector along with existing '.et-db #et-boc' to target the content inside Popup Maker. if ( false !== strpos( $selector, '.et-db #et-boc' ) ) { // add the prefix for all the selectors in a string. $non_prefixed_selector = str_replace( '.et-db #et-boc', '.et-db .pum', $selector ); $selector .= ', ' . $non_prefixed_selector; } return $selector; } /** * Update divi-style handle when replacing divi main style with the CPT style for Popup Maker plugin. * The purpose of this update is to make sure Divi main style is loaded along with the CPT style * Otherwise Content inside Popup Maker plugin loses styles because it's placed outside the main page content and `#et-boc` container * * @since 4.13.0 * * @param string $handle Handle to modify. * * @return string */ public function et_builder_maybe_update_style_handle( $handle ) { // Handle should only be modified for Popup Maker plugin and when it's `divi-style`. if ( ! class_exists( 'PUM_Shortcode_Popup' ) || 'divi-style' !== $handle ) { return $handle; } // Add suffix to make sure not prefixed divi-style won't be dequeued. return $handle . '-pum'; } /** * Override Waypoints context for modules inside Popup Maker overlay. * * @since 4.15.0 * * @param array $options Waypoints options. * * @return array Filtered Waypoints options. */ public function maybe_override_waypoints_options( $options ) { // Check whether `context` property exists or not. if ( ! isset( $options['context'] ) ) { $options['context'] = array(); } // Make sure the existing `context` is already on array format. Then add Popup Maker // overlay selector to the list. $options['context'] = (array) $options['context']; $options['context'][] = '.pum-overlay'; return $options; } } new ET_Builder_Plugin_Compat_Popup_Maker();