From 7f6ba91dfadc8f256cd3a707b0ba281d47843c26 Mon Sep 17 00:00:00 2001 From: friendica Date: Tue, 31 Mar 2015 17:52:03 -0700 Subject: allow webpage for home to use its own layout file --- mod/home.php | 14 ++++++++++++++ version.inc | 2 +- view/css/full.css | 1 + 3 files changed, 16 insertions(+), 1 deletion(-) 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; } -- cgit v1.2.3