Skip to content

Instantly share code, notes, and snippets.

@FinalDestiny
Created January 11, 2019 17:55
Show Gist options
  • Save FinalDestiny/67eb9711a3af9be7c06cb1cb1cbae936 to your computer and use it in GitHub Desktop.
Save FinalDestiny/67eb9711a3af9be7c06cb1cb1cbae936 to your computer and use it in GitHub Desktop.
<?php get_header(); ?>
<div id="main-content">
<div class="container">
<div id="content-area" class="<?php extra_sidebar_class(); ?> clearfix">
<div class="et_pb_extra_column_main">
<?php
if ( have_posts() ) :
while ( have_posts() ) : the_post(); ?>
<?php
$et_pb_has_comments_module = has_shortcode( get_the_content(), 'et_pb_comments' );
$additional_class = $et_pb_has_comments_module ? ' et_pb_no_comments_section' : '';
?>
<article id="post-<?php the_ID(); ?>" <?php post_class( $additional_class ); ?>>
<div class="post-wrap">
<?php if ( is_post_extra_title_meta_enabled() ) { ?>
<br><h1 class="entry-title"><?php the_title(); ?></h1>
<?php } ?>
<div class="post-content entry-content">
<?php the_content(); ?>
<?php
if ( ! extra_is_builder_built() ) {
wp_link_pages( array(
'before' => '<div class="page-links">' . esc_html__( 'Pages:', 'extra' ),
'after' => '</div>',
) );
}
?>
</div>
</div><!-- /.post-wrap -->
</article>
<?php
endwhile;
else :
?>
<img src="http://shuttermuse.com/assets/images/404_shuttermuse.gif" width="800px"/><br /><br />
<h3> Wait! Don't leave empty handed, why not grab a free eBook first?</h3>
<div align="center"><img class="aligncenter" src="http://shuttermuse.com/assets/images/store/book4/10-tools-460.png" /><br /><br /></div>
<a href="#" class="manual-optin-trigger" data-optin-slug="jtnporo4vsejrmfp">
<img class="aligncenter" src="http://shuttermuse.com/assets/images/store/book4/ebook_button.gif" /><br /><br /></a>
<br /><br /><h3>Or You Can Search For What You Were Looking For?</h3>
<?php get_search_form(); ?><br>
<?php
endif;
wp_reset_query();
?>
<?php
if ( comments_open() && 'on' == et_get_option( 'extra_show_pagescomments', 'on' ) && ! $et_pb_has_comments_module ) {
comments_template( '', true );
}
?>
</div><!-- /.et_pb_extra_column.et_pb_extra_column_main -->
<?php get_sidebar(); ?>
</div> <!-- #content-area -->
</div> <!-- .container -->
</div> <!-- #main-content -->
<?php get_footer();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment