mirror of
https://codeberg.org/streams/streams.git
synced 2024-09-20 03:55:18 +00:00
allow webpage for home to use its own layout file
This commit is contained in:
parent
5e01abaa16
commit
7f6ba91dfa
3 changed files with 16 additions and 1 deletions
14
mod/home.php
14
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]);
|
||||
|
|
|
@ -1 +1 @@
|
|||
2015-03-30.987
|
||||
2015-03-31.988
|
||||
|
|
|
@ -9,4 +9,5 @@ header #banner {
|
|||
section {
|
||||
display: block;
|
||||
min-height: 112px;
|
||||
margin: 50px 10px;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue