From 2fdc13e91d3b0ccd514a13fd7f475f045656b23f Mon Sep 17 00:00:00 2001 From: friendica Date: Thu, 15 May 2014 20:20:20 -0700 Subject: some sidebar content (doesn't yet do anything) --- include/widgets.php | 12 ++++++++++++ mod/apps.php | 2 +- view/pdl/mod_apps.pdl | 3 +++ view/tpl/app_select.tpl | 10 ++++++++++ 4 files changed, 26 insertions(+), 1 deletion(-) create mode 100644 view/pdl/mod_apps.pdl create mode 100644 view/tpl/app_select.tpl 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 @@ +
+

{{$title}}

+ +
+ -- cgit v1.2.3