allow webpage for home to use its own layout file
This commit is contained in:
parent
5e01abaa16
commit
7f6ba91dfa
14
mod/home.php
14
mod/home.php
@ -88,6 +88,20 @@ function home_content(&$a, $update = 0, $load = false) {
|
|||||||
if($r) {
|
if($r) {
|
||||||
xchan_query($r);
|
xchan_query($r);
|
||||||
$r = fetch_post_tags($r,true);
|
$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 = array('profile_uid' => $u[0]['channel_id']);
|
||||||
$a->profile_uid = $u[0]['channel_id'];
|
$a->profile_uid = $u[0]['channel_id'];
|
||||||
$o .= prepare_page($r[0]);
|
$o .= prepare_page($r[0]);
|
||||||
|
@ -1 +1 @@
|
|||||||
2015-03-30.987
|
2015-03-31.988
|
||||||
|
@ -9,4 +9,5 @@ header #banner {
|
|||||||
section {
|
section {
|
||||||
display: block;
|
display: block;
|
||||||
min-height: 112px;
|
min-height: 112px;
|
||||||
|
margin: 50px 10px;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user