*/ get_header('livingston'); ?> <?php include_once 'helpers.php'; //Here we are grabing special content that we will need in this template, including news, alerts, and library items //@rdarling42 $alerts = get_posts(array('category_name' => 'alert')); $news = get_posts(array('category_name' => 'news')); $libs = get_posts(array('post_type' => 'library')); $content_blocks = get_posts(array('post_type' => 'homepage_fcb', 'posts_per_page' => 200)); $sorted_content_blocks = sort_homepage_featured_content_blocks($content_blocks); $hero = get_posts(array('post_type' => 'hero_content', 'posts_per_page' => 200)); $hero_content = sort_hero_content($hero); $random_livingston_hero_content = random_hero_content($hero_content, 'Livingston Awards'); $slides = get_posts(array('post_type' => 'slider_content', 'posts_per_page' => -1)); $sorted_slides = sort_slider_content($slides); //twitter integration $twitter_username = '******'; include_once 'twitter_feed.php'; //$tweets var is set here ?> <?php if (!empty($random_livingston_hero_content)) { ?> <?php $background_image = turn_img_tag_to_url($random_livingston_hero_content['image']); ?>
* @package knight_wallace */ get_header(); ?> <?php include_once 'helpers.php'; //grab our junk $alerts = get_posts(array('category_name' => 'alert')); $news = get_posts(array('category_name' => 'news')); $libs = get_posts(array('post_type' => 'library')); $content_blocks = get_posts(array('post_type' => 'homepage_fcb', 'posts_per_page' => 200)); $sorted_content_blocks = sort_homepage_featured_content_blocks($content_blocks); $hero = get_posts(array('post_type' => 'hero_content', 'posts_per_page' => 200)); $hero_content = sort_hero_content($hero); $random_hero_content = random_hero_content($hero_content, 'Wallace House'); ?> <?php if (!empty($random_hero_content)) { $background_image = turn_img_tag_to_url($random_hero_content['image']); ?> <style> #hero_image { background: url(<?php echo $background_image; ?> ) no-repeat scroll center center / cover; } </style> <section id="hero_image">
* @package knight_wallace */ get_header('fellows'); ?> <?php include_once 'helpers.php'; //grab our junk $alerts = get_posts(array('category_name' => 'alert')); $news = get_posts(array('category_name' => 'news')); $libs = get_posts(array('post_type' => 'library')); $content_blocks = get_posts(array('post_type' => 'homepage_fcb', 'posts_per_page' => 200)); $sorted_content_blocks = sort_homepage_featured_content_blocks($content_blocks); $hero = get_posts(array('post_type' => 'hero_content', 'posts_per_page' => 200)); $hero_content = sort_hero_content($hero); $random_hero_content = random_hero_content($hero_content, 'Knight-Wallace Fellowships'); $slides = get_posts(array('post_type' => 'slider_content', 'posts_per_page' => -1)); $sorted_slides = sort_slider_content($slides); //twitter integration $twitter_username = '******'; include_once 'twitter_feed.php'; //$tweets var is set here ?> <?php if (!empty($random_hero_content)) { $background_image = turn_img_tag_to_url($random_hero_content['image']); ?> <style> #hero_image { background: url(<?php