* by www.unitedthemes.com */ $metadata = lambda_return_meta('page'); get_header(); ?> <?php get_template_part('template-part', 'slider'); ?> <?php get_template_part('template-part', 'teaser'); ?> <?php lambda_before_content(); ?> <?php if (post_password_required($post)) { ?> <?php if (have_posts()) { while (have_posts()) { the_post(); ?> <section> <article> <?php
$homeid = get_option('page_for_posts'); $meta_sidebar = get_post_meta($homeid, $lambda_meta_data->get_the_id(), TRUE); } else { $meta_sidebar = $lambda_meta_data->the_meta(); } $meta_sidebar = isset($meta_sidebar['sidebar']) ? $meta_sidebar['sidebar'] : get_option_tree('select_sidebar'); get_header(); //includes the template-part-slider.php get_template_part('template-part', 'slider'); //includes the template-part-teaser.php get_template_part('template-part', 'teaser'); //set column layout depending if user wants to display a sidebar if ($meta_sidebar != UT_THEME_INITIAL . 'sidebar_none') { lambda_before_content($columns = ''); } elseif ($meta_sidebar == UT_THEME_INITIAL . 'sidebar_none') { lambda_before_content($columns = 'sixteen'); } ?> <?php $category_description = category_description(); if (!empty($category_description)) { echo '' . $category_description . ''; } get_template_part('loop', 'category'); //content closer - this function can be found in functions/theme-layout-functions.php line 56-61 lambda_after_content(); //include the sidebar.php if (empty($columns)) { get_sidebar(); }
<?php /** * The template for displaying 404 pages (Not Found). * * lambda framework v 2.1 * by www.unitedthemes.com * since lambda framework v 1.0 */ //includes the header.php get_header(); //includes the template-part-slider.php get_template_part('template-part', 'slider'); //includes the template-part-teaser.php get_template_part('template-part', 'teaser'); lambda_before_content($columns = ''); ?> <p><?php _e('Apologies, but the page you requested could not be found. Perhaps searching will help.', UT_THEME_NAME); ?> </p> <div class="row"> <?php get_search_form(); ?> </div> <script type="text/javascript"> // focus on search field after it has loaded document.getElementById('s') && document.getElementById('s').focus(); </script>