WordPress.org

Making WordPress.org


Ignore:
Timestamp:
07/22/2015 04:00:32 AM (6 years ago)
Author:
dd32
Message:

WordPress.org Themes: Add the ability to favorite themes.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-themes/view-templates/theme-single.php

    r1489 r1770  
    1818                <h3 class="theme-name entry-title" itemprop="name">{{{ data.name }}}</h3>
    1919                <h4 class="theme-author"><?php printf( _x( 'By %s', 'theme author', 'wporg-themes' ), '<a href="{{{ data.path }}}author/{{ data.author.user_nicename }}/"><span class="author" itemprop="author">{{{ data.author.display_name }}}</span></a>' ); ?></h4>
     20                <# if ( data.show_favorites && data.is_favorited ) { #>
     21                    <span class="dashicons dashicons-heart favorite favorited"></span>
     22                <# } else if ( data.show_favorites ) { #>
     23                    <span class="dashicons dashicons-heart favorite"></span>
     24                <# } #>
    2025            </div>
    2126
Note: See TracChangeset for help on using the changeset viewer.