Making WordPress.org


Ignore:
Timestamp:
10/09/2024 08:48:37 PM (2 years ago)
Author:
coffee2code
Message:

Photo Directory: Add template and support and styles for user favorites.

Props nilovelez, coffee2code.
Fixes #7513.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-photos/template-parts/photo-single.php

    r13257 r14102  
    99
    1010namespace WordPressdotorg\Photo_Directory\Theme;
     11use WordPressdotorg\Photo_Directory\Favorites;
    1112use WordPressdotorg\Photo_Directory\Random;
    1213use WordPressdotorg\Photo_Directory\Template_Tags;
     
    2930                        ?></div>
    3031                <?php endif; ?>
     32                <div class="photo-author">
    3133                <?php printf(
    32                         '<a href="%s" class="photo-author">%s</a>',
     34                        '<a href="%s" class="photo-author-link" text="%s">%s</a>',
    3335                        esc_url( get_author_posts_url( get_the_author_meta( 'ID' ) ) ),
     36                        esc_attr__( 'View contributor&#39;s photos' ),
    3437                        get_avatar( get_the_author_meta( 'ID' ), 32 ) . get_the_author_meta( 'display_name' )
    3538                );
    3639                ?>
     40                </div>
     41                <?php Favorites::get_photo_favorites_markup(); ?>
    3742                <div class="photos-download">
    3843                        <button type="button" class="download-title download-button button button-large" aria-expanded="false" aria-controls="downloads-dropdown">
     
    8994                                sprintf(
    9095                                        /* translators: %s: The alternative text for the photo. */
    91                                         'View larger photo: %s',
     96                                        __( 'View larger photo: %s', 'wporg-photos' ),
    9297                                        esc_attr( $alt_text )
    9398                                )
Note: See TracChangeset for help on using the changeset viewer.