Example #1
0
        $counter++;
        include 'theme-browser-item.php';
    }
}
if ($counter > 0) {
    echo '</ul>';
} else {
    ?>
			<div class="none-available">
				<center>
					<i class="icon-theme-browser"></i>
					<p><?php 
    _e('No themes available', 'wptouch-pro');
    ?>
</p>
				</center>
			</div>
		<?php 
}
?>
	</div>

	<?php 
while (wptouch_has_themes(true)) {
    wptouch_the_theme();
    if (wptouch_get_theme_title() != 'Foundation' && (!is_multisite() || wptouch_is_network_available('theme') || is_network_admin())) {
        include 'theme-browser-item-detail.php';
    }
}
?>
</div>
Example #2
0
					<p><?php 
    _e('No extensions available', 'wptouch-pro');
    ?>
</p>
				</center>
			</div>
		<?php 
}
?>
	</div>
	<!-- the inner-views for extensions -->
	<?php 
while (wptouch_has_addons(true)) {
    ?>
		<?php 
    wptouch_the_addon();
    ?>
		<?php 
    if (!is_multisite() || wptouch_is_network_available('extension') || is_network_admin()) {
        ?>
		<?php 
        include 'extension-browser-item-detail.php';
        ?>
		<?php 
    }
    ?>
	<?php 
}
?>
</div>
Example #3
0
				<h2><?php 
        _e('Choose a Theme', 'wptouch-pro');
        ?>
</h2>
				<p><?php 
        echo sprintf(__('Select a theme which best suits your website. %s Themes are flexible— colors, fonts, layout and more can be changed for each theme.', 'wptouch-pro'), '<br />');
        ?>
</p>
				<ul>
					<?php 
        $themes = $wptouch_pro->get_available_themes(wptouch_can_cloud_install());
        $current_theme = $wptouch_pro->get_current_theme_info();
        foreach ($themes as $theme) {
            ?>
						<?php 
            if ($theme->name != 'Foundation' && !isset($theme->buy_url) && wptouch_is_network_available('theme', $theme)) {
                ?>
							<li class="one-theme <?php 
                if ($current_theme && $current_theme->name == $theme->name || count($themes) == 2) {
                    echo 'active';
                }
                ?>
">
								<?php 
                if (isset($theme->screenshot)) {
                    ?>
<img src="<?php 
                    echo $theme->screenshot;
                    ?>
"><?php 
                }