Beispiel #1
0
function wptouch_the_theme_buy_url()
{
    echo wptouch_get_theme_buy_url();
}
<li class="<?php 
wptouch_the_theme_classes();
?>
 <?php 
if (wptouch_get_theme_buy_url() && !defined('WPTOUCH_IS_FREE')) {
    echo 'no-license';
}
?>
" data-pushview="#<?php 
echo wptouch_convert_to_class_name(wptouch_get_theme_title());
?>
-container">

		<div class="item-information">
			<?php 
if (wptouch_get_theme_icon()) {
    ?>
			<div class="image-wrapper">
				<img src="<?php 
    wptouch_the_theme_icon();
    ?>
" alt="<?php 
    wptouch_the_theme_title();
    ?>
" id="<?php 
    echo wptouch_convert_to_class_name(wptouch_get_theme_title());
    ?>
" />
			</div><!-- image-wrapper -->
			<?php 
}
			<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 
                    echo wptouch_theme_info_url();
                    ?>
"><?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 
        }