/
home
/
techb158
/
primomovers.ca
/
wp-content
/
themes
/
Divi
/
includes
/
builder
/
plugin-compat
/
/home/techb158/primomovers.ca/wp-content/themes/Divi/includes/builder/plugin-compat
mkdir
upload
Name
Size
Mode
Actions
scripts/
-
0755
rm
styles/
-
0755
rm
advanced-custom-fields-pro.php
168
0644
edit
dl
rm
advanced-custom-fields.php
9369
0644
edit
dl
rm
amazon-s3-and-cloudfront-pro.php
1035
0644
edit
dl
rm
amazon-s3-and-cloudfront.php
3193
0644
edit
dl
rm
autoptimize.php
1133
0644
edit
dl
rm
caldera-forms.php
1265
0644
edit
dl
rm
cartflows.php
1922
0644
edit
dl
rm
cdn-enabler.php
1472
0644
edit
dl
rm
coursepress.php
1094
0644
edit
dl
rm
divi-filterable-blog-module.php
1061
0644
edit
dl
rm
divi-module-code-snippet.php
1588
0644
edit
dl
rm
divi-testimonial-slider.php
1303
0644
edit
dl
rm
divi_layout_injector.php
3093
0644
edit
dl
rm
divi_woo_layout_injector.php
1402
0644
edit
dl
rm
dk-pdf.php
1941
0644
edit
dl
rm
ds-divi-rocket.php
1081
0644
edit
dl
rm
easy-digital-downloads.php
4522
0644
edit
dl
rm
eventon.php
3269
0644
edit
dl
rm
events-manager.php
1562
0644
edit
dl
rm
final-tiles-grid-gallery-lite.php
1462
0644
edit
dl
rm
gravityforms.php
732
0644
edit
dl
rm
gravityformssignature.php
1707
0644
edit
dl
rm
ht-knowledge-base.php
1680
0644
edit
dl
rm
imagify.php
3212
0644
edit
dl
rm
insert-pages.php
1450
0644
edit
dl
rm
jucra-acf-google-maps-for-divi.php
1296
0644
edit
dl
rm
kvcore-idx.php
915
0644
edit
dl
rm
landing-pages.php
1017
0644
edit
dl
rm
m-chart.php
1310
0644
edit
dl
rm
mappress-google-maps-for-wordpress.php
1744
0644
edit
dl
rm
megamenu.php
1640
0644
edit
dl
rm
modern-events-calendar-lite.php
1186
0644
edit
dl
rm
nex-forms-express-wp-form-builder.php
1350
0644
edit
dl
rm
paid-memberships-pro.php
1388
0644
edit
dl
rm
photo-gallery.php
1404
0644
edit
dl
rm
pilotpress.php
1581
0644
edit
dl
rm
popup-maker.php
5544
0644
edit
dl
rm
relevanssi-premium.php
247
0644
edit
dl
rm
relevanssi.php
1895
0644
edit
dl
rm
sellsy.php
1087
0644
edit
dl
rm
seo-by-rank-math.php
5972
0644
edit
dl
rm
sfwd-lms.php
4616
0644
edit
dl
rm
sg-cachepress.php
2668
0644
edit
dl
rm
siteorigin-panels.php
1466
0644
edit
dl
rm
sitepress-multilingual-cms.php
9747
0644
edit
dl
rm
table-of-contents-plus.php
1044
0644
edit
dl
rm
the-events-calendar-community-events.php
1352
0644
edit
dl
rm
the-events-calendar.php
7548
0644
edit
dl
rm
toolbar-publish-button.php
1039
0644
edit
dl
rm
woo-paypalplus.php
1348
0644
edit
dl
rm
woocommerce.php
11120
0644
edit
dl
rm
wordpress-mu-domain-mapping.php
1571
0644
edit
dl
rm
wordpress-seo.php
2549
0644
edit
dl
rm
wp-job-manager.php
1930
0644
edit
dl
rm
wp-responsive-table.php
1218
0644
edit
dl
rm
wp-rocket.php
1375
0644
edit
dl
rm
wp-smush-pro.php
156
0644
edit
dl
rm
wp-smushit.php
5050
0644
edit
dl
rm
wp-views.php
3298
0644
edit
dl
rm
wp3d-models.php
1106
0644
edit
dl
rm
wpml-sticky-links.php
1432
0644
edit
dl
rm
yith-woocommerce-dynamic-pricing-and-discounts-premium.php
2102
0644
edit
dl
rm
Edit:
/home/techb158/primomovers.ca/wp-content/themes/Divi/includes/builder/plugin-compat/popup-maker.php
(5544B)
<?php /** * ET_Builder_Plugin_Compat_Popup_Maker class file. * * @class ET_Builder_Plugin_Compat_Popup_Maker * @package Builder */ if ( ! defined( 'ABSPATH' ) ) { // Exit if accessed directly. exit; } /** * Compatibility for Popup Maker plugin. * * @since 4.13.0 * * @link https://wordpress.org/plugins/popup-maker/ */ class ET_Builder_Plugin_Compat_Popup_Maker extends ET_Builder_Plugin_Compat_Base { /** * Constructor. * * @since 4.13.0 */ public function __construct() { $this->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();
Save
cmd:
run