function the_page_color($postId) { $common_content = get_custom_content($postId); if (isset($common_content['page-color'])) { $color = $common_content['page-color']; } else { $color = ''; } if (strlen($color) > 0) { page_color_override($color); } return $color; }
<?php /** * Template Name: Tab 1 Layout */ global $page; // $content = get_custom_content( 107, 'td-layout-1'); $content = get_custom_content($page->ID, array('td-layout-1', 'testimonial-list')); ?> <article class="tab-layout tab1"> <h2><?php print_content($content['alternative-page-title']); ?> </h2> <section class="section-text clearfix"> <div class="left-column"> <?php if ($content['td-layout-1']['left-first-paragraph']) { ?> <p class="paragraph-container"> <?php print_content($content['td-layout-1']['left-first-paragraph']); ?> </p> <?php } ?> <?php if ($content['td-layout-1']['left-second-paragraph']) {
<?php /** * Template Name: Tab 4 Layout */ global $page; $tdLayoutId = 'td-layout-4'; $testimnialListId = 'testimonial-list-td4'; $content = get_custom_content($page->ID, array($tdLayoutId, $testimnialListId)); if (isset($content[$tdLayoutId]['video-list'])) { $videoCategory = $content[$tdLayoutId]['video-list']; } ?> <article class="tab-layout tab4"> <h2><?php print_content($content['alternative-page-title']); ?> </h2> <div class="btn-container" style="font-family:'open sans';font-weight:400;font-size:18px;line-height:1.4;color:#000"> <?php print_content($content[$tdLayoutId]['mid-region']); ?> </div> <section class="section-video video-tabs clearfix"> <article class="video-main clearfix"> <?php the_videos($videoCategory, 'main_video'); ?> </article>
<?php /** * Template Name: Mentoring Page */ wp_enqueue_style('mentoring-css', get_stylesheet_directory_uri() . '/css/pages/mentoring.css'); $content = get_custom_content(get_the_ID(), 'mentoring-custom-content'); get_header(); ?> <div class="container clearfix"> <p class="bold"><?php print_content($content['subtitle-paragraph']); ?> </p> <h2 class="page-title"><?php print_content($content['alternative-page-title']); ?> </h2> <section class="section-text"> <h3><?php print_content($content['main-paragraph']); ?> </h3> <p><?php print_content($content['secondary-paragraph']); ?> </p> </section> <section class="section-form">
<?php /** * Template Name: Contact Page */ wp_enqueue_style('mentoring-css', get_stylesheet_directory_uri() . '/css/pages/contact.css'); $content = get_custom_content(get_the_ID(), array('contact-custom-content', 'social-feeds')); get_header(); ?> <div class="container clearfix"> <h2 class="page-title"><?php print_content($content['alternative-page-title']); ?> </h2> <?php while (have_posts()) { the_post(); ?> <article> <?php the_masked_image($content['contact-custom-content']['form-image']); ?> <h4><?php print_content($content['contact-custom-content']['form-entry-paragraph']); ?> </h4> <?php the_content();
var pageData = <?php echo $pageData; ?> </script> <section class="container clearfix"> <aside class="tab-navigation" style="margin-top:-50px"> <!-- edited by m.epler 1/13/2016. Removed h2 and added image --> <!-- <h2 class="page-title">Are you...</h2> --> <!-- NOTE: change 'moralcourage.org' to 'localhost' to run locally --> <div><img src="http://moralcourage.org/wp-content/themes/moralcourage/images/applied_courage.png" style="width:60%; padding-left:5px; margin-top: 2em;"></div> <div class="tabs"> <?php foreach ($pages as $page) { $count = 0; $page_content = get_custom_content($page->ID); ?> <div class="tab" id="tab-<?php echo $page->post_name; ?> " data-slug="<?php echo $page->post_name; ?> "> <a href="#<?php echo $page->post_name; ?> " class="tab-header clearfix"> <div class="icon-container left"> <?php the_thumbnail_swapping_images($page->ID, 'page-thumbnails', 'default_images');
<?php /** * Template Name: Founder Page */ wp_enqueue_style('founder-css', get_stylesheet_directory_uri() . '/css/pages/founder.css'); $content = get_custom_content(get_the_ID(), 'founder-custom-content'); get_header(); ?> <div class="container clearfix"> <h2 class="page-title"><?php print_content($content['alternative-page-title']); ?> </h2> <span class="bold"><?php print_content($content['subtitle-region']); ?> </span> <section class="section-text"> <?php print_content($content['main-region']); ?> </section> <section class="section-video"> <?php the_videos('founder-videos', 'founder_video'); ?> </section> <div class="external-links">
<?php /** * Template Name: Landing Page */ wp_enqueue_style('landing-css', get_stylesheet_directory_uri() . '/css/pages/landing.css'); $content = get_custom_content(get_the_ID(), 'landing-custom-content'); get_header(); ?> <div class="container clearfix"> <section id="landingPicture" class="landing-picture clearfix"> <?php $imageData = the_daily_images('landing-page'); ?> </section> <section id="landingText" class="landing-text clearfix"> <div class="field slider-text"> <?php if (isset($imageData['image-title'])) { ?> <h2 class="title"><?php echo $imageData['image-title']; ?> </h3> <?php } ?> <?php if (isset($imageData['image-text'])) { ?>
<?php /** * Template Name: Store Page */ wp_enqueue_style('store-css', get_stylesheet_directory_uri() . '/css/pages/store.css'); $content = get_custom_content(get_the_ID(), 'store-custom-content'); get_header(); ?> <div class="container clearfix"> <aside> <h2 class="page-title"><?php print_content($content['alternative-page-title']); ?> </h2> <p><?php print_content($content['subtitle-paragraph']); ?> </p> </br> <p><?php print_content($content['sub-subtitle-paragraph']); ?> </p> <div class="product-pic-container"> <?php the_masked_image($content['bottom-left-image'], 'simple_image'); ?> </div> </aside>
<?php /** * Template Name: Homepage */ wp_enqueue_style('homepage-css', get_stylesheet_directory_uri() . '/css/pages/homepage.css'); $content = get_custom_content(get_the_ID(), 'homepage-custom-content'); get_header(); ?> <div class="container clearfix"> <h1><?php print_content($content['alternative-page-title']); ?> </h1> <section class="section-orange"> <div class="picture-container orange-container"> <?php the_images('role-modeling-images'); ?> </div> <div class="text-container"> <h3 class="bold text-orange"><?php print_content($content['top-right-title']); ?> </h3> <p><?php print_content($content['top-right-paragraph']); ?> </p>
<?php /** * Template Name: Tab 2 Layout */ global $page; $content = get_custom_content($page->ID, 'td-layout-2'); $videoCategory = $content['video-list']; ?> <article class="tab-layout tab2"> <h2><?php print_content($content['alternative-page-title']); ?> </h2> <p><?php print_content($content['subtitle-paragraph']); ?> </p> <section class="section-video video-tabs clearfix"> <article class="video-main clearfix"> <?php the_videos($videoCategory, 'main_video'); ?> </article> <aside class="shadow-div scroll-top"> <div class="video-thumbs"> <?php the_videos($videoCategory, 'thumb_video'); ?>
<?php /** * Template Name: Role Modeling Page */ wp_enqueue_style('role-modeling-css', get_stylesheet_directory_uri() . '/css/pages/role-modeling.css'); wp_enqueue_style('video-tabs', get_stylesheet_directory_uri() . '/css/modules/video-tabs.css'); wp_enqueue_script('video-tabs', get_stylesheet_directory_uri() . '/js/modules/video-tabs.js', '', '', true); $content = get_custom_content(get_the_ID(), 'role-modeling-custom-content'); get_header(); ?> <div class="container clearfix"> <h1 class="page-title"><?php print_content($content['alternative-page-title']); ?> </h1> <p class="subtitle"><?php print_content($content['subtitle-paragraph']); ?> </p> <section class="section-video video-tabs"> <article class="video-main clearfix"> <?php the_videos('role-modeling-videos', 'role_modeling_main_video'); ?> </article> <aside class="video-thumbs-container"> <img src="<?php