Skip to content

Commit

Permalink
#4442 Added in 1.0.50
Browse files Browse the repository at this point in the history
  • Loading branch information
Zabi09 committed May 15, 2020
1 parent 00c552c commit ba601d8
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 6 deletions.
9 changes: 6 additions & 3 deletions templates/design-manager/design-1/single.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,12 @@
<?php do_action( 'amp_post_template_css', $this ); ?>
</style>
</head>


<body <?php ampforwp_body_class('single-post design_1_wrapper');?>>
<?php
$lightbox = '';
if( false == ampforwp_get_setting('ampforwp-amp-img-lightbox') ){
$lightbox = 'data-amp-auto-lightbox-disable ';
}?>
<body <?php echo esc_attr($lightbox); ?><?php ampforwp_body_class('single-post design_1_wrapper');?>>
<?php do_action('ampforwp_body_beginning', $this); ?>
<?php $this->load_parts( array( 'header-bar' ) ); ?>
<?php do_action( 'below_the_header_design_1', $this ); ?>
Expand Down
7 changes: 6 additions & 1 deletion templates/design-manager/design-2/single.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,12 @@
<?php do_action( 'amp_post_template_css', $this ); ?>
</style>
</head>
<body <?php ampforwp_body_class('single-post design_2_wrapper');?> >
<?php
$lightbox = '';
if( false == ampforwp_get_setting('ampforwp-amp-img-lightbox') ){
$lightbox = 'data-amp-auto-lightbox-disable ';
}?>
<body <?php echo esc_attr($lightbox); ?><?php ampforwp_body_class('single-post design_2_wrapper');?> >
<?php do_action('ampforwp_body_beginning', $this); ?>
<?php $this->load_parts( array( 'header-bar' ) ); ?>

Expand Down
8 changes: 6 additions & 2 deletions templates/design-manager/design-3/single.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,12 @@
<?php do_action( 'amp_post_template_css', $this ); ?>
</style>
</head>

<body <?php ampforwp_body_class('design_3_wrapper');?> >
<?php
$lightbox = '';
if( false == ampforwp_get_setting('ampforwp-amp-img-lightbox') ){
$lightbox = 'data-amp-auto-lightbox-disable ';
}?>
<body <?php echo esc_attr($lightbox); ?><?php ampforwp_body_class('design_3_wrapper');?> >
<?php do_action('ampforwp_body_beginning', $this); ?>
<?php $this->load_parts( array( 'header-bar' ) ); ?>

Expand Down

0 comments on commit ba601d8

Please sign in to comment.