updated theme GeneratePress
version 3.0.2
This commit is contained in:
@ -27,32 +27,30 @@ get_header(); ?>
|
||||
*/
|
||||
do_action( 'generate_before_main_content' );
|
||||
|
||||
if ( have_posts() ) :
|
||||
if ( generate_has_default_loop() ) {
|
||||
if ( have_posts() ) :
|
||||
|
||||
while ( have_posts() ) : the_post();
|
||||
while ( have_posts() ) :
|
||||
|
||||
/* Include the Post-Format-specific template for the content.
|
||||
* If you want to override this in a child theme, then include a file
|
||||
* called content-___.php (where ___ is the Post Format name) and that will be used instead.
|
||||
the_post();
|
||||
|
||||
generate_do_template_part( 'index' );
|
||||
|
||||
endwhile;
|
||||
|
||||
/**
|
||||
* generate_after_loop hook.
|
||||
*
|
||||
* @since 2.3
|
||||
*/
|
||||
get_template_part( 'content', get_post_format() );
|
||||
do_action( 'generate_after_loop', 'index' );
|
||||
|
||||
endwhile;
|
||||
else :
|
||||
|
||||
/**
|
||||
* generate_after_loop hook.
|
||||
*
|
||||
* @since 2.3
|
||||
*/
|
||||
do_action( 'generate_after_loop' );
|
||||
generate_do_template_part( 'none' );
|
||||
|
||||
generate_content_nav( 'nav-below' );
|
||||
|
||||
else :
|
||||
|
||||
get_template_part( 'no-results', 'index' );
|
||||
|
||||
endif;
|
||||
endif;
|
||||
}
|
||||
|
||||
/**
|
||||
* generate_after_main_content hook.
|
||||
@ -61,8 +59,8 @@ get_header(); ?>
|
||||
*/
|
||||
do_action( 'generate_after_main_content' );
|
||||
?>
|
||||
</main><!-- #main -->
|
||||
</div><!-- #primary -->
|
||||
</main>
|
||||
</div>
|
||||
|
||||
<?php
|
||||
/**
|
||||
@ -74,4 +72,4 @@ get_header(); ?>
|
||||
|
||||
generate_construct_sidebars();
|
||||
|
||||
get_footer();
|
||||
get_footer();
|
||||
|
Reference in New Issue
Block a user