Making WordPress.org


Ignore:
Timestamp:
07/22/2015 04:00:32 AM (9 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/theme-single.php

    r1577 r1770  
    1818                <h3 class="theme-name entry-title" itemprop="name"><?php echo esc_html( $theme->name ); ?></h3>
    1919                <h4 class="theme-author"><?php printf( _x( 'By %s', 'theme author', 'wporg-themes' ), '<a href="https://wordpress.org/themes/author/' . $theme->author->user_nicename . '/"><span class="author" itemprop="author">' . esc_html( $theme->author->display_name ) . '</span></a>' ); ?></h4>
     20                <?php if ( is_user_logged_in() && wporg_themes_is_favourited( $theme->slug ) ) { ?>
     21                    <span class="dashicons dashicons-heart favorite favorited"></span>
     22                <?php } elseif ( is_user_logged_in() ) { ?>
     23                    <span class="dashicons dashicons-heart favorite"></span>
     24                <?php } ?>
    2025            </div>
    2126
Note: See TracChangeset for help on using the changeset viewer.