-
Notifications
You must be signed in to change notification settings - Fork 18
/
Copy pathfront-page.php
52 lines (42 loc) · 1.79 KB
/
front-page.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
<?php
/**
* Front Page
*
* Template for pages
*
* @package responsive_mobile
* @license license.txt
* @copyright 2014 CyberChimps Inc
* @since 0.0.1
*
* Please do not edit this file. This file is part of the responsive_mobile Framework and all modifications
* should be made in a child theme.
*/
// If this file is called directly, abort.
if ( ! defined( 'WPINC' ) ) {
die;
}
/**
* If front page is set to display the
* blog posts index, include home.php;
* otherwise, display static front page
* content
*/
$responsive_mobile_options = responsive_mobile_get_options();
if ( 'posts' == get_option( 'show_on_front' ) && $responsive_mobile_options['front_page'] != 1 ) {
get_template_part( 'home' );
} elseif ( 'page' == get_option( 'show_on_front' ) && $responsive_mobile_options['front_page'] != 1 ) {
$template = get_post_meta( get_option( 'page_on_front' ), '_wp_page_template', true );
$template = ( $template == 'default' ) ? 'index.php' : $template;
locate_template( $template, true );
} else {
get_header();
get_template_part( 'template-parts/featured-area', apply_filters( 'responsive_mobile_filter_featured_area_layout', '' ) );
get_template_part( 'template-parts/services', apply_filters( 'responsive_mobile_filter_services_layout', '' ) );
get_template_part( 'template-parts/callout', apply_filters( 'responsive_mobile_filter_callout_layout', '' ) );
get_template_part( 'template-parts/testimonial', apply_filters( 'responsive_mobile_filter_testimonial_layout', '' ) );
get_template_part( 'template-parts/team', apply_filters( 'responsive_mobile_filter_team_layout', '' ) );
get_sidebar( 'home' );
// get_template_part( 'template-parts/contact-us', apply_filters( 'responsive_mobile_filter_contact_layout', '' ) );
get_footer();
}