update_user_meta( get_current_user_id(), 'wporg_favorites',
$user );
} else { $user =
get_user_option( 'wporg_favorites'
);
} ?>
<p class="install-help"><?php
_e( 'If you have marked themes as favorites on WordPress.org, you can browse them here.'
); ?></p>
<p>
<label for="wporg-username-input"><?php
_e( 'Your WordPress.org username:'
); ?></label>
<input type="hidden" id="wporg-username-nonce" name="_wpnonce" value="<?php
echo esc_attr( wp_create_nonce( $action ) ); ?>" />
<input type="search" id="wporg-username-input" value="<?php
echo esc_attr( $user ); ?>" />
<input type="button" class="button favorites-form-submit" value="<?php
esc_attr_e( 'Get Favorites'
); ?>" />
</p>
</div>
<div class="filter-drawer">
<div class="buttons">
<button type="button" class="apply-filters button"><?php
_e( 'Apply Filters'
); ?><span></span></button>
<button type="button" class="clear-filters button" aria-label="<?php
esc_attr_e( 'Clear current filters'
); ?>"><?php
_e( 'Clear'
); ?></button>
</div>
<?php
// Use the core list, rather than the .org API, due to inconsistencies
// and to ensure tags are translated.