install_plugins_favorites_form()
最后更新于:2021-11-27 07:15:40
install_plugins_favorites_form()Show a username form for the favorites page
源文件
文件: gc-admin/includes/plugin-install.php
function install_plugins_favorites_form() {
$user = get_user_option( 'gcorg_favorites' );
$action = 'save_gcorg_username_' . get_current_user_id();
?>
<p><?php _e( 'If you have marked plugins as favorites on GeChiUI.org, you can browse them here.' ); ?></p>
<form method="get">
<input type="hidden" name="tab" value="favorites" />
<p>
<label for="user"><?php _e( 'Your GeChiUI.org username:' ); ?></label>
<input type="search" id="user" name="user" value="<?php echo esc_attr( $user ); ?>" />
<input type="submit" class="button" value="<?php esc_attr_e( 'Get Favorites' ); ?>" />
<input type="hidden" id="gcorg-username-nonce" name="_gcnonce" value="<?php echo esc_attr( gc_create_nonce( $action ) ); ?>" />
</p>
</form>
<?php
}