WordPress.org

Making WordPress.org


Ignore:
Timestamp:
05/24/2020 07:27:02 PM (19 months ago)
Author:
ocean90
Message:

Breathe Theme: Append date of last update to handbook pages.

Fixes #5222.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-breathe/single-handbook.php

    r7917 r9908  
    3232            </header><!-- .handbook-header -->
    3333
    34             <?php the_content(); ?>
     34            <?php
     35            the_content();
    3536
    36             <?php \WPorg_Handbook_Navigation::show_nav_links(); ?>
     37            printf(
     38                /* translators: %s: Date of last update. */
     39                '<p class="handbook-last-updated">' . __( 'Last updated: %s', 'wporg' ) . '</p>',
     40                sprintf(
     41                    '<time datetime="%s">%s</time>',
     42                    esc_attr( get_the_modified_date( DATE_W3C ) ),
     43                    esc_html( get_the_modified_date() )
     44                )
     45            );
     46
     47            \WPorg_Handbook_Navigation::show_nav_links();
     48            ?>
    3749
    3850        <?php endwhile; // end of the loop. ?>
Note: See TracChangeset for help on using the changeset viewer.