function wptouch_get_theme_classes($extra_classes = array()) { $classes = explode(' ', $extra_classes); if (wptouch_is_theme_active()) { $classes[] = 'active'; } if (wptouch_is_theme_custom()) { $classes[] = 'custom'; } if (wptouch_has_theme_tags()) { $tags = wptouch_get_theme_tags(); foreach ($tags as $tag) { $classes[] = $tag; } } return $classes; }
function wptouch_get_theme_classes($extra_classes = array()) { $classes = $extra_classes; if (wptouch_is_theme_active()) { $classes[] = 'active'; } if (wptouch_is_theme_in_cloud()) { $classes[] = 'cloud'; } if (wptouch_is_theme_custom()) { $classes[] = 'custom'; } if (wptouch_has_theme_tags()) { $tags = wptouch_get_theme_tags(); foreach ($tags as $tag) { $classes[] = $tag; } } $classes[] = 'name-' . wptouch_convert_to_class_name(wptouch_get_theme_title()); return $classes; }
<?php if (!defined('WPTOUCH_IS_FREE')) { ?> <li><a class="button-secondary" href="<?php wtouch_the_theme_copy_link_url(); ?> "><?php _e('Copy', 'wptouch-pro'); ?> </a></li> <?php } ?> <?php if (wptouch_is_theme_custom() && !wptouch_is_theme_active() && !defined('WPTOUCH_IS_FREE')) { ?> <li><a class="button-secondary" class="delete-theme ajax-button" href="<?php wptouch_the_theme_delete_link_url(); ?> "><?php _e('Delete', 'wptouch-pro'); ?> </a></li> <?php } ?> <?php } ?>
wptouch_the_theme_description(); ?> </p> <?php if (wptouch_theme_has_features()) { ?> <p class="wptouch-theme-features"><?php echo sprintf(__('Features: %s', 'wptouch-pro'), implode(wptouch_get_theme_features(), ', ')); ?> </p> <?php } ?> <?php if (wptouch_is_theme_custom()) { ?> <p class="location"><?php echo sprintf(__('Theme Location (relative to wp-content):<br />%s', 'wptouch-pro'), wptouch_get_theme_location()); ?> </p> <?php } ?> </div> <br class="clearer" /> </div> <?php } } else { ?>