some sidebar content (doesn't yet do anything)

This commit is contained in:
friendica 2014-05-15 20:20:20 -07:00
parent 2dee303d92
commit 2fdc13e91d
4 changed files with 26 additions and 1 deletions

View File

@ -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) { function widget_suggestions($arr) {
if((! local_user()) || (! feature_enabled(local_user(),'suggest'))) if((! local_user()) || (! feature_enabled(local_user(),'suggest')))

View File

@ -14,7 +14,7 @@ function apps_content(&$a) {
return replace_macros(get_markup_template('apps.tpl'), array( return replace_macros(get_markup_template('apps.tpl'), array(
'$title' => t('Applications'), '$title' => t('Apps'),
'$apps' => $apps, '$apps' => $apps,
)); ));

3
view/pdl/mod_apps.pdl Normal file
View File

@ -0,0 +1,3 @@
[region=aside]
[widget=appselect][/widget]
[/region]

10
view/tpl/app_select.tpl Normal file
View File

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