Changeset 13257 for sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-photos/template-parts/photo-single.php
- Timestamp:
- 02/29/2024 11:54:42 PM (22 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-photos/template-parts/photo-single.php
r12864 r13257 9 9 10 10 namespace WordPressdotorg\Photo_Directory\Theme; 11 use WordPressdotorg\Photo_Directory\Random; 11 12 use WordPressdotorg\Photo_Directory\Template_Tags; 12 13 … … 16 17 <article id="post-<?php the_ID(); ?>" <?php post_class(); ?>> 17 18 <header class="entry-header"> 19 <?php if ( Random::was_photo_random() ) : ?> 20 <div class="randomly-chosen-photo"><?php 21 printf( 22 /* translators: %s: Link to load another random photo. */ 23 __( 'This photo was randomly chosen. %s', 'wporg-photos' ), 24 sprintf( 25 '<a href="%s">' . __( 'Load another random photo?', 'wporg-photos' ) . '</a>', 26 home_url( '/' . Random::PATH . '/' ) 27 ) 28 ); 29 ?></div> 30 <?php endif; ?> 18 31 <?php printf( 19 32 '<a href="%s" class="photo-author">%s</a>',
Note: See TracChangeset
for help on using the changeset viewer.