aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2013-12-10 00:25:32 -0800
committerfriendica <info@friendica.com>2013-12-10 00:25:32 -0800
commit0043ef66b68cbdf1ae978e04f8bdeca39e6efa64 (patch)
tree92a04e8251e99b2212d785d082a2277b4e822cd3
parente873f6e95ed167e48a557365089ec97abee473cc (diff)
downloadvolse-hubzilla-0043ef66b68cbdf1ae978e04f8bdeca39e6efa64.tar.gz
volse-hubzilla-0043ef66b68cbdf1ae978e04f8bdeca39e6efa64.tar.bz2
volse-hubzilla-0043ef66b68cbdf1ae978e04f8bdeca39e6efa64.zip
mod_network is now running under Comanche. Yay.
-rwxr-xr-xboot.php5
-rw-r--r--mod/network.php9
-rw-r--r--view/pdl/mod_network.pdl8
3 files changed, 12 insertions, 10 deletions
diff --git a/boot.php b/boot.php
index a90d042a5..cf94c13e3 100755
--- a/boot.php
+++ b/boot.php
@@ -1808,7 +1808,10 @@ function get_custom_nav(&$a,$navname) {
function construct_page(&$a) {
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);
/**
diff --git a/mod/network.php b/mod/network.php
index 31b377432..754978949 100644
--- a/mod/network.php
+++ b/mod/network.php
@@ -16,15 +16,6 @@ function network_init(&$a) {
$channel = $a->get_channel();
$a->profile_uid = local_user();
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()));
}
diff --git a/view/pdl/mod_network.pdl b/view/pdl/mod_network.pdl
new file mode 100644
index 000000000..e3d469842
--- /dev/null
+++ b/view/pdl/mod_network.pdl
@@ -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]