install_themes_dashboard

Definition:
function install_themes_dashboard() {}

Display tags filter for themes.

Source code

function install_themes_dashboard() {

	install_theme_search_form();

?>

<h4><?php _e('Feature Filter') ?></h4>

<form method="post" action="<?php echo self_admin_url( 'theme-install.php?tab=search' ); ?>">

<p class="install-help"><?php _e('Find a theme based on specific features') ?></p>

	<?php

	$feature_list = get_theme_feature_list( );

	echo '<div class="feature-filter">';



	foreach ( (array) $feature_list as $feature_name => $features ) {

		$feature_name = esc_html( $feature_name );

		echo '<div class="feature-name">' . $feature_name . '</div>';



		echo '<ol class="feature-group">';

		foreach ( $features as $feature => $feature_name ) {

			$feature_name = esc_html( $feature_name );

			$feature = esc_attr($feature);

?>



<li>

	<input type="checkbox" name="features[<?php echo $feature; ?>]" id="feature-id-<?php echo $feature; ?>" value="<?php echo $feature; ?>" />

	<label for="feature-id-<?php echo $feature; ?>"><?php echo $feature_name; ?></label>

</li>



<?php	} ?>

</ol>

<br class="clear" />

<?php

	} ?>



</div>

<br class="clear" />

<?php submit_button( __( 'Find Themes' ), 'button', 'search' ); ?>

</form>

<?php

}

2051

No comments yet... Be the first to leave a reply!

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

%d bloggers like this: