Пример #1
0
function wptouch_has_theme_screenshots()
{
    global $wptouch_theme_screenshot_iterator;
    global $wptouch_theme_screenshots;
    if (!$wptouch_theme_screenshot_iterator) {
        $wptouch_theme_screenshots = wptouch_get_theme_screenshots();
        $wptouch_theme_screenshot_iterator = new WPtouchArrayIterator($wptouch_theme_screenshots);
    }
    return $wptouch_theme_screenshot_iterator->have_items();
}
Пример #2
0
            ?>

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

	<?php 
if (wptouch_get_theme_screenshots()) {
    ?>
		<div class="inner-section screenshots">
			<h3><?php 
    _e('Screenshots', 'wptouch-pro');
    ?>
</h3>
			<div class="screenshot-carousel">
				<div class="carousel-inner">
					<?php 
    wptouch_reset_theme_screenshot();
    ?>
					<?php 
    while (wptouch_has_theme_screenshots()) {
        ?>
						<?php