<?php $websites = get_website_data(); ?> <div class="wrapper text"> <?php site_breadcrumbs(); ?> <h1>Showcase Website Preview</h1> <p>The <a href="<?php echo path('theme-showcase/'); ?> ">theme showcase</a> websites can change theme. This page gives me a quick and easy way to tell which ones have changed and so need to be removed.</p> </div> <div class="wrapper block-wrapper theme-wrapper"> <?php $count = 0; foreach ($websites as $key => $site) { ?> <div class="block showcase-website"> <a href="<?php echo $site['url']; ?> " target="_blank" rel="nofollow"> <img src="<?php echo $site['image-preview']; ?> " width="400" alt="<?php
/** * Get a list of all the website themes * @return array List of themes that have showcase websites assigned to them */ function website_themes() { $websites = get_website_data(); $themes = array(); foreach ($websites as $site) { $themes[] = $site['theme']; } return array_unique($themes); }