aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2014-05-15 20:20:20 -0700
committerfriendica <info@friendica.com>2014-05-15 20:20:20 -0700
commit2fdc13e91d3b0ccd514a13fd7f475f045656b23f (patch)
tree5e5c3d46d1262990d48fa67cb2f037c9f33e464f
parent2dee303d92e4dc5d176483b2af3791b7c5f546cb (diff)
downloadvolse-hubzilla-2fdc13e91d3b0ccd514a13fd7f475f045656b23f.tar.gz
volse-hubzilla-2fdc13e91d3b0ccd514a13fd7f475f045656b23f.tar.bz2
volse-hubzilla-2fdc13e91d3b0ccd514a13fd7f475f045656b23f.zip
some sidebar content (doesn't yet do anything)
-rw-r--r--include/widgets.php12
-rw-r--r--mod/apps.php2
-rw-r--r--view/pdl/mod_apps.pdl3
-rw-r--r--view/tpl/app_select.tpl10
4 files changed, 26 insertions, 1 deletions
diff --git a/include/widgets.php b/include/widgets.php
index 0ed79f1eb..37a079bc7 100644
--- a/include/widgets.php
+++ b/include/widgets.php
@@ -74,6 +74,18 @@ function widget_collections($args) {
}
+function widget_appselect($arr) {
+ return replace_macros(get_markup_template('app_select.tpl'),array(
+ '$title' => t('App Category'),
+ '$system' => t('System'),
+ '$personal' => t('Personal'),
+ '$featured' => t('Featured'),
+ '$new' => t('New')
+ ));
+}
+
+
+
function widget_suggestions($arr) {
if((! local_user()) || (! feature_enabled(local_user(),'suggest')))
diff --git a/mod/apps.php b/mod/apps.php
index 51d610703..3d06abd49 100644
--- a/mod/apps.php
+++ b/mod/apps.php
@@ -14,7 +14,7 @@ function apps_content(&$a) {
return replace_macros(get_markup_template('apps.tpl'), array(
- '$title' => t('Applications'),
+ '$title' => t('Apps'),
'$apps' => $apps,
));
diff --git a/view/pdl/mod_apps.pdl b/view/pdl/mod_apps.pdl
new file mode 100644
index 000000000..db93958a3
--- /dev/null
+++ b/view/pdl/mod_apps.pdl
@@ -0,0 +1,3 @@
+[region=aside]
+[widget=appselect][/widget]
+[/region]
diff --git a/view/tpl/app_select.tpl b/view/tpl/app_select.tpl
new file mode 100644
index 000000000..9613b4976
--- /dev/null
+++ b/view/tpl/app_select.tpl
@@ -0,0 +1,10 @@
+<div class="widget">
+<h3>{{$title}}</h3>
+<ul>
+<li><a href="apps/system">{{$system}}</a></li>
+<li><a href="apps/personal">{{$personal}}</a></li>
+<li><a href="apps/featured">{{$featured}}</a></li>
+<li><a href="apps/new">{{$new}}</a></li>
+</ul>
+</div>
+