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/index.php

    r1520 r1770  
    2626                <li><a href="<?php echo esc_url( home_url( 'browse/popular/' ) ); ?>" data-sort="popular" <?php if ( 'popular' == get_query_var('browse') ) { echo 'class="current"'; } ?>><?php _ex( 'Popular', 'themes', 'wporg-themes' ); ?></a></li>
    2727                <li><a href="<?php echo esc_url( home_url( 'browse/new/' ) ); ?>" data-sort="new" <?php if ( 'new' == get_query_var('browse') ) { echo 'class="current"'; } ?>><?php _ex( 'Latest', 'themes', 'wporg-themes' ); ?></a></li>
     28                <?php if ( is_user_logged_in() ) { ?>
     29                    <li><a href="<?php echo esc_url( home_url( 'browse/favorites/' ) ); ?>" data-sort="favorites" <?php if ( 'favorites' == get_query_var('browse') ) { echo 'class="current"'; } ?>><?php _ex( 'My Favorites', 'themes', 'wporg-themes' ); ?></a></li>
     30                <?php } ?>
    2831            </ul>
    2932
Note: See TracChangeset for help on using the changeset viewer.