File: //home/lenf4658/www/wp-content/themes/wpmedia/page-fullwidth.php
<?php
/**
* Template Name: Fullwidth
*
* @package wpmedia
*/
/* Exit if accessed directly */
if ( ! defined( 'ABSPATH' ) ) {
exit;
}
get_header();
?>
<main id="primary" class="site-main col-md-8 col-md-offset-2">
<?php
while ( have_posts() ) :
the_post();
get_template_part( 'template-parts/content', 'page' );
// If comments are open or we have at least one comment, load up the comment template.
if ( comments_open() || get_comments_number() ) :
if ( wpmedia_is_amp() ) {
/* Add Non AMP Version using <div id="site-version-switcher"> and id="version-switch-link" */
$nonamp_link = amp_remove_endpoint( amp_get_current_url() );
echo '<div class="text-center"><div id="site-version-switcher"><a id="version-switch-link" class="button" href="' . esc_url( $nonamp_link ) . '#comments" class="amp-wp-canonical-link" title="' . esc_html__( 'Add Comment', 'wpmedia' ) . '" rel="noamphtml nofollow">' . esc_attr__( 'Add Comment', 'wpmedia' ) . '</a></div></div>';
} else {
comments_template();
}
endif;
endwhile; // End of the loop.
?>
</main><!-- #main -->
<?php
get_footer();