allow webpage for home to use its own layout file

This commit is contained in:
friendica 2015-03-31 17:52:03 -07:00
parent 5e01abaa16
commit 7f6ba91dfa
3 changed files with 16 additions and 1 deletions

View file

@ -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]);

View file

@ -1 +1 @@
2015-03-30.987
2015-03-31.988

View file

@ -9,4 +9,5 @@ header #banner {
section {
display: block;
min-height: 112px;
margin: 50px 10px;
}