-
Notifications
You must be signed in to change notification settings - Fork 0
/
page-defaults.php
25 lines (25 loc) · 1.12 KB
/
page-defaults.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
<?php
global $post, $blogConf, $data;
$blogConf['layout'] = '2-1-1';
$layout_options = split("-", $blogConf['layout']);
$blogConf['image_width'] = 580;
$blogConf['content_position'] = "";
$blogConf['content_span'] = "span12";
$blogConf['sidebar_span'] = "span3";
if($layout_options[0] != '0') {
$blogConf['sidebar_position'] = $layout_options[0]=='2' ? "right" : "left";
$blogConf['content_position'] = $layout_options[0]=='2' ? "left" : "right";
$blogConf['content_position'] .= " with-sidebar";
$blogConf['content_span'] = "span9";
$blogConf['sidebar_span'] = "span3";
if (isset($data['sidebar_width']) && $data['sidebar_width'] == "grid4"){
$blogConf['content_span'] = "span8";
$blogConf['sidebar_span'] = "span4";
}
$blogConf['sidebar'] = 'default-sidebar';
}
$blogConf['hide_author'] = true;
$blogConf['hide_pagetitle'] = isset($optionss['hide_pagetitle']) ? true : false;
$blogConf['post_contshow'] = isset($optionss['post_contshow']) ? $optionss['post_contshow'] : 'Full';
$blogConf['post_titleshow'] = isset($optionss['post_titleshow']) ? false : true;
$blogConf['teaser_text'] = '';