some sidebar content (doesn't yet do anything)
This commit is contained in:
parent
2dee303d92
commit
2fdc13e91d
@ -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')))
|
||||||
|
@ -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
3
view/pdl/mod_apps.pdl
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
[region=aside]
|
||||||
|
[widget=appselect][/widget]
|
||||||
|
[/region]
|
10
view/tpl/app_select.tpl
Normal file
10
view/tpl/app_select.tpl
Normal 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>
|
||||||
|
|
Reference in New Issue
Block a user