Exemplo n.º 1
0
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;
}
Exemplo n.º 2
0
function wptouch_get_theme_classes($extra_classes = array())
{
    $classes = $extra_classes;
    if (!is_network_admin() && wptouch_is_theme_active()) {
        $classes[] = 'active';
    }
    if (wptouch_is_theme_in_cloud()) {
        $classes[] = 'cloud';
    }
    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;
}
Exemplo n.º 3
0
			<?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 
}
?>
        ?>
" />
					
			<div class="wptouch-theme-left-wrap round-3">
				<img src="<?php 
        wptouch_the_theme_screenshot();
        ?>
" alt="<?php 
        echo sprintf(__('%s Theme Image', 'wptouch-pro'), wptouch_get_theme_title());
        ?>
" />
			</div>
			<div class="wptouch-theme-right-wrap">
				<ul class="option-list">
				<?php 
        if (!wptouch_is_theme_active()) {
            ?>
					
					<li><a href="#" class="activate-theme ajax-button"><?php 
            _e('Activate', 'wptouch-pro');
            ?>
</a></li>
				<?php 
        }
        ?>
				<?php 
        if (!wptouch_is_theme_custom()) {
            ?>
				<?php 
            if (!wptouch_is_theme_child()) {
                ?>
Exemplo n.º 5
0
						<?php 
            if (!is_multisite() || is_network_admin()) {
                ?>
							<a class="button buynow" href="<?php 
                wptouch_the_theme_buy_url();
                ?>
">
								<?php 
                _e('Add to License', 'wptouch-pro');
                ?>
							</a>
						<?php 
            }
            ?>
					<?php 
        } elseif (!wptouch_is_theme_active() && !is_network_admin() || wptouch_is_theme_in_cloud()) {
            ?>
						<a class="button activate" href="<?php 
            echo wptouch_check_url_ssl(wptouch_get_theme_activate_link_url());
            ?>
">
							<?php 
            echo $activate_label;
            ?>
						</a>

						<?php 
            if (!wptouch_can_cloud_install() && wptouch_is_theme_in_cloud() && wptouch_get_theme_download_url() && !wptouch_get_theme_buy_url() && (!wptouch_is_controlled_network() || is_network_admin())) {
                ?>
							<a class="button download theme" href="<?php 
                wptouch_the_theme_download_url();