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 /mod/home.php | |
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
Diffstat (limited to 'mod/home.php')
-rw-r--r-- | mod/home.php | 14 |
1 files changed, 14 insertions, 0 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]); |