From 73e06821f3c6ee2f4fd1b4021c77ddf9ac0d5753 Mon Sep 17 00:00:00 2001 From: Syed Zabiuddin <32957211+Zabi09@users.noreply.github.com> Date: Thu, 7 May 2020 12:04:20 +0530 Subject: [PATCH] #4442 lightbox issue fixed --- components/components-core.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/components/components-core.php b/components/components-core.php index 5b8a2ede6..0b777fb7a 100644 --- a/components/components-core.php +++ b/components/components-core.php @@ -360,6 +360,10 @@ function ampforwp_sanitize_archive_desc(){ } if( true == ampforwp_get_setting('amp-rtl-select-option') ){ $bodyClass .= ' rtl '; + } + $lightbox = ''; + if( false == ampforwp_get_setting('ampforwp-amp-img-lightbox') ){ + $lightbox = 'data-amp-auto-lightbox-disable'; } ?> get( 'html_tag_attributes' ) ); ?>> @@ -391,7 +395,7 @@ function ampforwp_sanitize_archive_desc(){ - > + >