Theme tagging from andy. fixes #5545
git-svn-id: http://svn.automattic.com/wordpress/trunk@6530 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
@@ -40,6 +40,9 @@ $ct = current_theme_info();
|
||||
<?php } else { ?>
|
||||
<p><?php printf(__('All of this theme’s files are located in <code>%2$s</code>.'), $ct->title, $ct->template_dir, $ct->stylesheet_dir); ?></p>
|
||||
<?php } ?>
|
||||
<?php if ( $ct->tags ) : ?>
|
||||
<p><?php _e('Tags:'); ?> <?php echo join(', ', $ct->tags); ?></p>
|
||||
<?php endif; ?>
|
||||
</div>
|
||||
|
||||
<h2><?php _e('Available Themes'); ?></h2>
|
||||
@@ -62,6 +65,7 @@ foreach ($theme_names as $theme_name) {
|
||||
$author = $themes[$theme_name]['Author'];
|
||||
$screenshot = $themes[$theme_name]['Screenshot'];
|
||||
$stylesheet_dir = $themes[$theme_name]['Stylesheet Dir'];
|
||||
$tags = $themes[$theme_name]['Tags'];
|
||||
$activate_link = wp_nonce_url("themes.php?action=activate&template=".urlencode($template)."&stylesheet=".urlencode($stylesheet), 'switch-theme_' . $template);
|
||||
?>
|
||||
<div class="available-theme">
|
||||
@@ -74,6 +78,9 @@ foreach ($theme_names as $theme_name) {
|
||||
</a>
|
||||
|
||||
<p><?php echo $description; ?></p>
|
||||
<?php if ( $tags ) : ?>
|
||||
<p><?php _e('Tags:'); ?> <?php echo join(', ', $tags); ?></p>
|
||||
<?php endif; ?>
|
||||
</div>
|
||||
<?php } // end foreach theme_names ?>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user