Example #1
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;
}
Example #2
0
    wptouch_the_theme_title();
    ?>
" id="<?php 
    echo wptouch_convert_to_class_name(wptouch_get_theme_title());
    ?>
" />
			</div><!-- image-wrapper -->
			<?php 
}
?>
			<h2>
				<?php 
wptouch_the_theme_title();
?>
				<?php 
if (!wptouch_is_theme_in_cloud() && is_network_admin() && wptouch_is_controlled_network()) {
    ?>
					<span class="installed"><?php 
    _e('Installed', 'wptouch-pro');
    ?>
</span>
				<?php 
}
?>
			</h2>

			<p class="desc">
				<?php 
wptouch_the_theme_description();
?>
			</p>
		<?php 
    echo sprintf(__('Theme location: %s', 'wptouch-pro'), wptouch_get_theme_location());
    ?>
			<i class="wptouch-tooltip icon-info-sign" title="<?php 
    _e('Relative to your WordPress wp-content directory.', 'wptouch-pro');
    ?>
"></i>
			<br />
		<?php 
}
?>
		</p>
	</div>
	<ul class="item-actions">
		<?php 
if (wptouch_is_theme_in_cloud()) {
    ?>
			<?php 
    if (wptouch_get_theme_buy_url()) {
        ?>
				<li>
					<?php 
        if (wptouch_theme_type() == 'WITHLICENSE') {
            ?>
						<?php 
            if (defined('WPTOUCH_IS_FREE')) {
                ?>
							<?php 
                if (wptouch_theme_info_url()) {
                    ?>
							<a class="button-secondary" href="<?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();
                ?>
">
								<?php 
                _e('Download', 'wptouch-pro');
                ?>
							</a>
						<?php 
            }
            ?>

					<?php 
        }