<?php disallow_direct_load('page.php'); get_header(); the_post(); the_content(); get_footer();
<?php disallow_direct_load('single.php'); get_header(); the_post(); ?> <div class="page-content person-profile"> <div class="row"> <div class="span2 details"> <?php $title = get_post_meta($post->ID, 'person_jobtitle', True); $image_url = get_featured_image_url($post->ID); $email = get_post_meta($post->ID, 'person_email', True); $phones = Person::get_phones($post); ?> <img src="<?php echo $image_url ? $image_url : get_bloginfo('stylesheet_directory') . '/static/img/no-photo.jpg'; ?> "> <?php if (count($phones)) { ?> <ul class="phones unstyled"> <?php foreach ($phones as $phone) { ?> <li><?php echo $phone; ?> </li> <?php
<?php @header("HTTP/1.1 404 Not found", true, 404); disallow_direct_load('404.php'); ?> <?php get_header(); the_post(); ?> <div class="row page-content" id="page-not-found"> <div class="span9"> <article> <h1>Page Not Found</h1> <?php $page = get_page_by_title('404'); if ($page) { $content = $page->post_content; $content = apply_filters('the_content', $content); $content = str_replace(']]>', ']]>', $content); } ?> <?php if ($content) { ?> <?php echo $content; ?> <?php } else { ?>
<?php disallow_direct_load('home.php'); get_header(); the_post(); ?> <article> <div class="container"> <div class="row page-wrap"> <div class="col-md-6 col-sm-6 col-xs-12"> <h2><?php echo the_title(); ?> </h2> <div class="content"> <?php $message = get_field('homepage_message'); echo apply_filters('the_content', $message); ?> </div> </div> <div class="col-md-4 col-md-offset-1 col-sm-6 col-xs-12"> <?php $spotlight = get_field('homepage_spotlight'); if ($spotlight) { $spotlight = get_post($spotlight); echo Spotlight::toHTML($spotlight); } ?> </div> </div>
<?php if (function_exists('disallow_direct_load')) { disallow_direct_load('index.php'); get_header(); ?> <div class="page-content" id="post-list"> <div class="span9"> <?php while (have_posts()) { the_post(); ?> <article class="<?php echo $post->post_status; ?> "> <h1><a href="<?php the_permalink(); ?> "><?php the_title(); ?> </a></h1> <div class="meta"> <span class="date"><?php the_time("F j, Y"); ?> </span> <span class="author">by <?php the_author_posts_link(); ?>
<?php disallow_direct_load('sidebar.php'); ?> <?php if (!function_exists('dynamic_sidebar') or !dynamic_sidebar('Sidebar')) { }
<?php disallow_direct_load('single-story.php'); get_header(); the_post(); the_content(); get_footer();
<?php disallow_direct_load('search.php'); get_header(); ?> <h1>Search Results</h1> <?php if (get_theme_mod_or_default('enable_google')) { ?> <?php $domain = get_theme_mod_or_default('search_domain'); $limit = intval(get_theme_mod_or_default('search_per_page')); $start = isset($_GET['start']) && is_numeric($_GET['start']) ? (int) $_GET['start'] : 0; $results = get_search_results($_GET['s'], $start, $limit, $domain); ?> <?php if (count($results['items'])) { ?> <ul class="result-list"> <?php foreach ($results['items'] as $result) { ?> <li class="item"> <article> <h2> <a class="<?php echo mimetype_to_application($result['mime'] ? $result['mime'] : 'text/html');