mod_network is now running under Comanche. Yay.
This commit is contained in:
parent
e873f6e95e
commit
0043ef66b6
3
boot.php
3
boot.php
@ -1809,6 +1809,9 @@ function construct_page(&$a) {
|
|||||||
|
|
||||||
require_once('include/comanche.php');
|
require_once('include/comanche.php');
|
||||||
|
|
||||||
|
if(file_exists('view/pdl/mod_' . $a->cmd . '.pdl'))
|
||||||
|
comanche_parser($a,@file_get_contents('view/pdl/mod_' . $a->cmd . '.pdl'));
|
||||||
|
|
||||||
$comanche = ((count($a->layout)) ? true : false);
|
$comanche = ((count($a->layout)) ? true : false);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -17,15 +17,6 @@ function network_init(&$a) {
|
|||||||
$a->profile_uid = local_user();
|
$a->profile_uid = local_user();
|
||||||
head_set_icon($channel['xchan_photo_s']);
|
head_set_icon($channel['xchan_photo_s']);
|
||||||
|
|
||||||
require_once('include/widgets.php');
|
|
||||||
|
|
||||||
$a->set_widget('collections',widget_collections(array()));
|
|
||||||
$a->set_widget('archives',widget_archive(array()));
|
|
||||||
$a->set_widget('suggestions',widget_suggestions(array()));
|
|
||||||
$a->set_widget('savedsearch',widget_savedsearch(array()));
|
|
||||||
$a->set_widget('filer',widget_filer(array()));
|
|
||||||
$a->set_widget('notes',widget_notes(array()));
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
function network_content(&$a, $update = 0, $load = false) {
|
function network_content(&$a, $update = 0, $load = false) {
|
||||||
|
8
view/pdl/mod_network.pdl
Normal file
8
view/pdl/mod_network.pdl
Normal file
@ -0,0 +1,8 @@
|
|||||||
|
[region=aside]
|
||||||
|
[widget=collections][/widget]
|
||||||
|
[widget=archive][/widget]
|
||||||
|
[widget=suggestions][/widget]
|
||||||
|
[widget=savedsearch][/widget]
|
||||||
|
[widget=filer][/widget]
|
||||||
|
[widget=notes][/widget]
|
||||||
|
[/region]
|
Reference in New Issue
Block a user