Skip to content

Commit

Permalink
#4442 Added in D123
Browse files Browse the repository at this point in the history
  • Loading branch information
Zabi09 committed May 12, 2020
1 parent 380907b commit 0db3199
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 @@ -16,9 +16,12 @@
</style>
<?php do_action('ampforwp_last_head', $this); ?>
</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 @@ -17,7 +17,12 @@
</style>
<?php do_action('ampforwp_last_head', $this); ?>
</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 @@ -17,8 +17,12 @@
</style>
<?php do_action('ampforwp_last_head', $this); ?>
</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 0db3199

Please sign in to comment.