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 @@ +
+