-
Notifications
You must be signed in to change notification settings - Fork 232
/
index.php
47 lines (41 loc) · 1.12 KB
/
index.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
<?php
/**
* @package WordPress
* @subpackage Franklin_Street
*/
?>
<?php get_header(); ?>
<div id="content" class="home clear">
<?php
$franklin_street_sections = get_option( '_franklin_street_home_sections' );
if($franklin_street_sections) {
foreach($franklin_street_sections as $section) {
$display_type=$section['display_type'];
$title=$section['title'];
$caption=$section['caption'];
$num_posts=$section['num_posts'];
$categories=$section['categories'];
$queryObject = new WP_Query(array('posts_per_page' => $num_posts, 'cat' => implode(",",array_filter($categories))));
switch($display_type) {
case 'one_up_reg':
include 'templates/one_up_reg.php';
break;
case 'one_up_lg':
include 'templates/one_up_lg.php';
break;
case 'two_up':
include 'templates/two_up.php';
break;
case 'four_up':
include 'templates/four_up.php';
break;
case 'right_aside':
include 'templates/right_aside.php';
}
}
} else {
//Insert default loop
}
?>
</div>
<?php get_footer(); ?>