/
home
/
techb158
/
balacoffee.com
/
wp-content
/
themes
/
Divi-1
/
includes
/
builder
/
plugin-compat
/
/home/techb158/balacoffee.com/wp-content/themes/Divi-1/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/balacoffee.com/wp-content/themes/Divi-1/includes/builder/plugin-compat/imagify.php
(3212B)
<?php if ( ! defined( 'ABSPATH' ) ) { // Exit if accessed directly. exit; } /** * Compatibility for the Imagify plugin. * * @since 4.4.6 * * @link https://wordpress.org/plugins/imagify/ */ class ET_Builder_Plugin_Compat_Imagify extends ET_Builder_Plugin_Compat_Base { /** * Constructor. * * @since 4.4.6 */ public function __construct() { $this->plugin_id = 'imagify/imagify.php'; $this->init_hooks(); } /** * Hook methods to WordPress. * * @since 4.4.6 * * @return void */ public function init_hooks() { // Bail if there's no version found. if ( ! $this->get_plugin_version() ) { return; } add_action( 'wp_enqueue_scripts', array( $this, 'overrides_main_style' ) ); add_action( 'customize_controls_enqueue_scripts', array( $this, 'overrides_customizer_styles' ) ); } /** * Overrides main style if needed. Please modify it accordingly in the future. * * @since 4.4.6 */ public function overrides_main_style() { if ( ! function_exists( 'get_imagify_option' ) ) { return; } $style = ''; // Logo - Custom style should be applied only when WebP + picture tag is enabled. $is_webp = get_imagify_option( 'display_webp' ); $is_webp_picture = 'picture' === get_imagify_option( 'display_webp_method' ); if ( $is_webp && $is_webp_picture ) { $logo_height = esc_attr( et_get_option( 'logo_height', '54' ) ); $style .= " picture#logo { display: inherit; } picture#logo source, picture#logo img { width: auto; max-height: {$logo_height}%; vertical-align: middle; } @media (min-width: 981px) { .et_vertical_nav #main-header picture#logo source, .et_vertical_nav #main-header picture#logo img { margin-bottom: 28px; } } "; } if ( ! empty( $style ) ) { wp_add_inline_style( 'divi-style', $style ); } } /** * Overrides customizer style if needed. Please modify it accordingly in the future. * * @since 4.4.6 */ function overrides_customizer_styles() { if ( ! function_exists( 'get_imagify_option' ) ) { return; } $scripts = ''; // Logo - Custom style should be applied only when WebP + picture tag is enabled. $is_webp = get_imagify_option( 'display_webp' ); $is_webp_picture = 'picture' === get_imagify_option( 'display_webp_method' ); if ( $is_webp && $is_webp_picture ) { $scripts .= " (function($, api){ var logo_image = ''; function fix_webp_logo_height() { if ('' === logo_image) { var context = frames['customize-' + api.previewer.channel()].document; logo_image = $('picture#logo img, picture#logo source', context); } var logo_height = api.value('et_divi[logo_height]')(); logo_height = 'undefined' === typeof logo_height ? 54 : parseInt(logo_height); logo_image.css('max-height', logo_height + '%'); } api('et_divi[logo_height]', function(value) { value.bind(function(to) { fix_webp_logo_height(); }); }); })(jQuery, wp.customize); "; } if ( ! empty( $scripts ) ) { wp_add_inline_script( 'divi-customizer-controls-js', $scripts ); } } } new ET_Builder_Plugin_Compat_Imagify();
Save
cmd:
run