?> </footer> </div> </section> </div> <?php if (site_include_exists('_themes/' . $theme_name . '.php')) { site_include_view('_themes/' . $theme_name . '.php'); site_include_view('_partials/theme-purchase-buttons.php', array('theme' => $theme)); } ?> <!-- Showcase Websites --> <?php $websites = website_get_by_tag($theme_name, 3); if ($websites) { ?> <div class="wrapper block-wrapper showcase-wrapper"> <header class="block-header"> <h2> Examples of <?php echo $theme['name']; ?> in Use <small><a href="<?php echo $theme['url-showcase']; ?> ">View More <i class="fa fa-arrow-right" aria-hidden="true"></i></a></small> </h2> </header>
/** * Theme Showcase */ Flight::route('/theme-showcase/(@tag)/', function ($tag = '') { $title = 'WordPress Themes Showcase'; $websites = array(); site_page_nav_add('Recent', 'theme-showcase/'); site_page_nav_add('Featured', 'theme-showcase/featured/'); site_page_nav_add('Puzzle', 'theme-showcase/puzzle/'); site_page_nav_add('Monet', 'theme-showcase/monet/'); site_page_nav_add('Romero', 'theme-showcase/romero/'); site_page_nav_add('Chronicle', 'theme-showcase/chronicle/'); site_page_nav_add('Broadsheet', 'theme-showcase/broadsheet/'); site_page_nav_add('Opti', 'theme-showcase/opti/'); if (website_tag_exists($tag)) { $websites = website_get_by_tag($tag); if (!empty($tag)) { $title = sprintf('%s Themes: WordPress Themes Showcase', ucwords($tag)); } } else { Flight::notFound(); } site_title($title); site_description('A selection of the <strong>thousands of awesome sites</strong> our customers have built!'); site_enable_purchase(); Flight::render('showcase.php', array('websites' => $websites, 'tag' => $tag)); }); /** * Feedback */ Flight::route('/feedback/(@type)/', function ($type = '') {