if (!($plugins = plugins_get_by_tag($tag))) { Flight::notFound(); } Flight::render($view, array('tag' => $tag, 'plugins' => $plugins)); }); /** * 404 */ Flight::map('notFound', function () { site_title('404 - not found :('); $request = Flight::request(); // see if a page exists if ($page_info = page_exists($request->url)) { site_title($page_info['title']); if (null !== $page_info['description']) { site_description($page_info['description']); } Flight::render($page_info['view']); die; } // see if there's a valid permanent redirect, and if there is send the user to the new location if ($redirect_url = redirect_destination($request->url)) { Flight::redirect($redirect_url, 301); die; } header('HTTP/1.0 404 Not Found'); site_header_title('404 :('); site_description('<a href="' . path() . '">Visit the homepage <i class="fa fa-arrow-right"></i></a>'); Flight::render('404.php'); die; });
<div class="wrapper"> <<?php echo $h; ?> class="site-title"> <a href="<?php echo path(); ?> "> <!-- <img src="<?php echo image_path('website/logo.png'); ?> " alt="Pro Theme Design Logo" style="height:3rem; margin-right:0.1em;" /> --> <?php site_header_title(); ?> </a> </<?php echo $h; ?> > <!-- <p class="animated fadeInUp site-description"><?php site_description(); ?> </p> --> </div> <?php
?> " content="<?php echo $value; ?> " /> <?php } } } } /** * Check if Gumroad is enabled and if it is then add the Gumroad script */ function site_enable_purchase() { if (!DISABLE_GUMROAD) { site_script('https://gumroad.com/js/gumroad.js', true); } } // Set Defaults // default site description site_description('Designing <strong>Professional WordPress Themes</strong> since 2007.'); // default site title site_title('Pro Theme Design - WordPress Themes and Plugins'); // default site page header title site_header_title('Pro Theme Design'); // default site og:type site_meta('og:type', 'website'); // default site scripts site_script('https://cdnjs.cloudflare.com/ajax/libs/jquery/2.1.4/jquery.min.js'); site_script(js_path('main.min.js'));