*/ get_header(); $registered_custom_templates = apply_filters("acid_custom_tempaltes", array("blank", "cover-image")); /* -----------------------------------*/ /* Get the featured image before running a new query /* -----------------------------------*/ if (has_post_thumbnail()) { $background_featured_image = wp_get_attachment_url(get_post_thumbnail_id($post->ID)); $page_thumbnail = get_the_post_thumbnail($post->ID, "large"); $main_page_width = get_post_meta($post->ID, "acid_page_width", true); } else { $page_thumbnail = false; $background_featured_image = false; } $paged = get_query_var('page') ? get_query_var('page') : 1; $menu_items = Village_One_Page::page_get_menu_items("village_one_page"); $query = new WP_Query(array('post_type' => 'page', 'post__in' => $menu_items, 'posts_per_page' => intval(Village::get_theme_mod("one_page_PPP", 10)), 'orderby' => 'post__in', 'paged' => $paged)); ?> <div id="scrollbar"> <div id="primary" class="viewport" data-horizontal-scroll="on"> <div id="content" class="overview" role="main"> <?php if (!empty($main_page_width) && false !== $page_thumbnail && $paged === 1) { ?> <div id="page-thumbnail" class="cover-image hscol large page"> <?php echo $page_thumbnail; ?> </div> <?php }
<?php global $wp_customize; $template_dir = get_template_directory(); $village_dir = $template_dir . '/inc/village'; /* -----------------------------------*/ /* Load Village Class /* -----------------------------------*/ require_once $template_dir . '/inc/template-tags.php'; require_once $template_dir . '/inc/wordpress-helpers.php'; require_once $village_dir . '/Village.class.php'; require_once $village_dir . '/Village_Class_Ext.php'; require_once $village_dir . '/Village_One_Page.class.php'; // Initialize Village Class Village::init(); Village_One_Page::init(); /*-----------------------------------*/ /* Village Includes /*-----------------------------------*/ require_once $village_dir . '/Village_CSS_Options.php'; require_once $village_dir . '/Village_JavaScript_Options.php'; require_once $village_dir . '/metabox_options.php'; require_once $village_dir . '/sidebar_options.php'; require_once $template_dir . '/inc/template-hooks.php'; require_once $template_dir . '/inc/template-functions.php'; require_once $template_dir . '/inc/Horizontal_Entry.php'; /* -----------------------------------*/ /* Actions: /* -----------------------------------*/ add_action('after_setup_theme', array('Village_Class_Ext', 'setup')); /* -----------------------------------*/