-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathhome.php
More file actions
31 lines (24 loc) · 740 Bytes
/
home.php
File metadata and controls
31 lines (24 loc) · 740 Bytes
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
<?php
// Check if the current page is not blog page
if( get_queried_object_id() == 0 ) {
if( theme_options('home', 'home_type') == 'app' ) {
global $wp_query;
global $post;
$wp_query = new WP_Query('post_type=app&p=' . theme_options('home', 'home_app_page') );
$post->ID = theme_options('home', 'home_app_page');
return get_template_part('single', 'app');
}
else if( theme_options('home', 'home_type') == 'blog' ) {
include 'archive.php';
}
else if( theme_options('home', 'home_type') == 'showcase-list' ) {
include 'home-apps.php';
}
// else if( theme_options('home', 'home_type') == 'app-carousel' ) {
// include 'home-apps_carousel.php';
// }
else {
include 'home-apps.php';
}
}
?>