Changeset 46357 for trunk/src/wp-content/themes/twentytwenty/index.php
- Timestamp:
- 09/30/2019 05:40:14 PM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-content/themes/twentytwenty/index.php
r46271 r46357 42 42 } elseif ( ! is_home() ) { 43 43 $archive_title = get_the_archive_title(); 44 $archive_subtitle = get_the_archive_description( '<div>', '</div>');44 $archive_subtitle = get_the_archive_description(); 45 45 } 46 46 … … 64 64 </header><!-- .archive-header --> 65 65 66 <?php } ?> 66 <?php 67 } 67 68 68 <div class="posts"> 69 if ( have_posts() ) { 70 71 $i = 0; 72 73 while ( have_posts() ) { 74 $i++; 75 if ( $i > 1 ) { 76 echo '<hr class="post-separator styled-separator is-style-wide section-inner" aria-hidden="true" />'; 77 } 78 the_post(); 79 80 get_template_part( 'template-parts/content', get_post_type() ); 81 82 } 83 } elseif ( is_search() ) { 84 ?> 85 86 <div class="no-search-results-form section-inner thin"> 87 88 <?php 89 get_search_form( 90 array( 91 'label' => _x( 'search again', 'Label', 'twentytwenty' ), 92 ) 93 ); 94 ?> 95 96 </div><!-- .no-search-results --> 69 97 70 98 <?php 71 if ( have_posts() ) { 72 73 $i = 0; 74 75 while ( have_posts() ) { 76 $i++; 77 if ( $i > 1 ) { 78 echo '<hr class="post-separator is-style-wide section-inner" aria-hidden="true" />'; 79 } 80 the_post(); 81 82 get_template_part( 'template-parts/content', get_post_type() ); 83 84 } 85 } elseif ( is_search() ) { 86 ?> 87 88 <div class="no-search-results-form section-inner thin"> 89 90 <?php 91 get_search_form( 92 array( 93 'label' => __( 'search again', 'twentytwenty' ), 94 ) 95 ); 96 ?> 97 98 </div><!-- .no-search-results --> 99 100 <?php 101 } 102 ?> 103 104 </div><!-- .posts --> 99 } 100 ?> 105 101 106 102 <?php get_template_part( 'template-parts/pagination' ); ?> 103 <?php get_template_part( 'template-parts/footer-menus-widgets' ); ?> 107 104 108 105 </main><!-- #site-content -->
Note: See TracChangeset
for help on using the changeset viewer.