<?php
_ex( 'Block Themes', 'themes'
); ?></a></li>
<li><a href="#" data-sort="favorites"><?php
_ex( 'Favorites', 'themes'
); ?></a></li>
</ul>
<button type="button" class="button drawer-toggle" aria-expanded="false"><?php
_e( 'Feature Filter'
); ?></button>
<form class="search-form"></form>
<div class="favorites-form">
<?php
$action = 'save_wporg_username_' .
get_current_user_id();
if ( isset( $_GET['_wpnonce'
] ) &&
wp_verify_nonce( wp_unslash( $_GET['_wpnonce'
] ),
$action ) ) { $user =
isset( $_GET['user'
] ) ?
wp_unslash( $_GET['user'
] ) :
get_user_option( 'wporg_favorites'
);
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="