?>
</div>
<?php 
}
?>

<?php 
$cloud_themes = wptouch_get_available_cloud_themes();
foreach ($cloud_themes as $theme => $details) {
    $cloud_themes[$theme] = $theme;
}
?>

<ul class="cloud-browser">
	<?php 
while (wptouch_has_themes(true)) {
    ?>
		<?php 
    wptouch_the_theme();
    ?>
			<?php 
    if (!wptouch_is_theme_in_cloud()) {
        ?>
				<?php 
        include 'theme-browser-item.php';
        ?>
			<?php 
    }
    ?>
	<?php 
}
<?php

if (wptouch_has_themes()) {
    ?>
	<?php 
    while (wptouch_has_themes()) {
        ?>
		<?php 
        wptouch_the_theme();
        ?>
		
		<div class="<?php 
        wptouch_the_theme_classes('theme-wrap round-3');
        ?>
">

			<input type="hidden" class="theme-location" value="<?php 
        wptouch_the_theme_location();
        ?>
" />
			<input type="hidden" class="theme-name" value="<?php 
        wptouch_the_theme_title();
        ?>
" />
					
			<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());