diff options
author | friendica <info@friendica.com> | 2015-03-31 17:52:03 -0700 |
---|---|---|
committer | friendica <info@friendica.com> | 2015-03-31 17:52:03 -0700 |
commit | 7f6ba91dfadc8f256cd3a707b0ba281d47843c26 (patch) | |
tree | aed664a7d30a0f9a0639771c8b1b107e0fa6cc3f | |
parent | 5e01abaa16a16ac2eb6dd9963cfaf33fed10b1cf (diff) | |
download | volse-hubzilla-7f6ba91dfadc8f256cd3a707b0ba281d47843c26.tar.gz volse-hubzilla-7f6ba91dfadc8f256cd3a707b0ba281d47843c26.tar.bz2 volse-hubzilla-7f6ba91dfadc8f256cd3a707b0ba281d47843c26.zip |
allow webpage for home to use its own layout file
-rw-r--r-- | mod/home.php | 14 | ||||
-rw-r--r-- | version.inc | 2 | ||||
-rw-r--r-- | view/css/full.css | 1 |
3 files changed, 16 insertions, 1 deletions
diff --git a/mod/home.php b/mod/home.php index f4358da5c..7f28a89fc 100644 --- a/mod/home.php +++ b/mod/home.php @@ -88,6 +88,20 @@ function home_content(&$a, $update = 0, $load = false) { if($r) { xchan_query($r); $r = fetch_post_tags($r,true); + + if($r[0]['layout_mid']) { + $l = q("select body from item where mid = '%s' and uid = %d limit 1", + dbesc($r[0]['layout_mid']), + intval($u[0]['channel_id']) + ); + + if($l) { + require_once('include/comanche.php'); + comanche_parser($a,$l[0]['body']); + $a->pdl = $l[0]['body']; + } + } + $a->profile = array('profile_uid' => $u[0]['channel_id']); $a->profile_uid = $u[0]['channel_id']; $o .= prepare_page($r[0]); diff --git a/version.inc b/version.inc index 378e67747..7a3bb9cc9 100644 --- a/version.inc +++ b/version.inc @@ -1 +1 @@ -2015-03-30.987 +2015-03-31.988 diff --git a/view/css/full.css b/view/css/full.css index fe5f26b08..05401f68c 100644 --- a/view/css/full.css +++ b/view/css/full.css @@ -9,4 +9,5 @@ header #banner { section { display: block; min-height: 112px; + margin: 50px 10px; } |