Skip to content

Commit

Permalink
#4442 lightbox issue fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
Zabi09 committed May 7, 2020
1 parent 0f94baa commit 73e0682
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion components/components-core.php
Original file line number Diff line number Diff line change
Expand Up @@ -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';
}
?><!doctype html>
<html <?php echo esc_attr(ampforwp_amp_nonamp_convert('amp ')); ?><?php echo AMP_HTML_Utils::build_attributes_string( $thisTemplate->get( 'html_tag_attributes' ) ); ?>>
Expand Down Expand Up @@ -391,7 +395,7 @@ function ampforwp_sanitize_archive_desc(){
<?php do_action('ampforwp_before_head', $thisTemplate); ?>
<?php do_action('ampforwp_last_head', $thisTemplate); ?>
</head>
<body <?php ampforwp_body_class($bodyClass); ?>>
<body <?php echo $lightbox; ?> <?php ampforwp_body_class($bodyClass); ?>>
<?php do_action('amp_start', $thisTemplate); ?>
<?php do_action('ampforwp_body_beginning', $thisTemplate);
}
Expand Down

0 comments on commit 73e0682

Please sign in to comment.