Changeset 43571 for trunk/src/wp-content/themes/twentyeleven/content.php
- Timestamp:
- 08/17/2018 01:50:26 AM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-content/themes/twentyeleven/content.php
r42343 r43571 47 47 ) 48 48 ); 49 ?>49 ?> 50 50 </div><!-- .entry-content --> 51 51 <?php endif; ?> … … 54 54 <?php $show_sep = false; ?> 55 55 <?php if ( is_object_in_taxonomy( get_post_type(), 'category' ) ) : // Hide category text when not supported ?> 56 <?php56 <?php 57 57 /* translators: used between list items, there is a space after the comma */ 58 58 $categories_list = get_the_category_list( __( ', ', 'twentyeleven' ) ); 59 if ( $categories_list ) :60 ?>59 if ( $categories_list ) : 60 ?> 61 61 <span class="cat-links"> 62 <?php63 printf( __( '<span class="%1$s">Posted in</span> %2$s', 'twentyeleven' ), 'entry-utility-prep entry-utility-prep-cat-links', $categories_list );64 $show_sep = true;65 ?>62 <?php 63 printf( __( '<span class="%1$s">Posted in</span> %2$s', 'twentyeleven' ), 'entry-utility-prep entry-utility-prep-cat-links', $categories_list ); 64 $show_sep = true; 65 ?> 66 66 </span> 67 <?php endif; // End if categories ?>67 <?php endif; // End if categories ?> 68 68 <?php endif; // End if is_object_in_taxonomy( get_post_type(), 'category' ) ?> 69 69 <?php if ( is_object_in_taxonomy( get_post_type(), 'post_tag' ) ) : // Hide tag text when not supported ?> 70 <?php70 <?php 71 71 /* translators: used between list items, there is a space after the comma */ 72 72 $tags_list = get_the_tag_list( '', __( ', ', 'twentyeleven' ) ); 73 if ( $tags_list ) :74 if ( $show_sep ) :75 ?>73 if ( $tags_list ) : 74 if ( $show_sep ) : 75 ?> 76 76 <span class="sep"> | </span> 77 <?php endif; // End if $show_sep ?>77 <?php endif; // End if $show_sep ?> 78 78 <span class="tag-links"> 79 <?php80 printf( __( '<span class="%1$s">Tagged</span> %2$s', 'twentyeleven' ), 'entry-utility-prep entry-utility-prep-tag-links', $tags_list );81 $show_sep = true;82 ?>79 <?php 80 printf( __( '<span class="%1$s">Tagged</span> %2$s', 'twentyeleven' ), 'entry-utility-prep entry-utility-prep-tag-links', $tags_list ); 81 $show_sep = true; 82 ?> 83 83 </span> 84 <?php endif; // End if $tags_list ?>84 <?php endif; // End if $tags_list ?> 85 85 <?php endif; // End if is_object_in_taxonomy( get_post_type(), 'post_tag' ) ?> 86 86 87 87 <?php if ( comments_open() ) : ?> 88 <?php if ( $show_sep ) : ?>88 <?php if ( $show_sep ) : ?> 89 89 <span class="sep"> | </span> 90 90 <?php endif; // End if $show_sep ?>
Note: See TracChangeset
for help on using the changeset viewer.