mirror of
https://codeberg.org/streams/streams.git
synced 2024-09-20 02:55:13 +00:00
hide featured app category in the app category widget
This commit is contained in:
parent
e1b54b6843
commit
a6cbebe03c
3 changed files with 4 additions and 3 deletions
|
@ -350,7 +350,7 @@ class Apps {
|
|||
'$delete' => ((local_channel() && $installed && $mode == 'edit') ? t('Delete') : ''),
|
||||
'$undelete' => ((local_channel() && $installed && $mode == 'edit') ? t('Undelete') : ''),
|
||||
'$deleted' => $papp['deleted'],
|
||||
'$featured' => ((strpos($papp['categories'], 'featured') === false) ? false : true)
|
||||
'$featured' => ((strpos($papp['categories'], 'nav_featured_app') === false) ? false : true)
|
||||
));
|
||||
}
|
||||
|
||||
|
@ -461,7 +461,7 @@ class Apps {
|
|||
);
|
||||
}
|
||||
else {
|
||||
store_item_tag($uid,$r[0]['id'],TERM_OBJ_APP,TERM_CATEGORY,'featured',escape_tags(z_root() . '/apps/?f=&cat=featured'));
|
||||
store_item_tag($uid,$r[0]['id'],TERM_OBJ_APP,TERM_CATEGORY,'nav_featured_app',escape_tags(z_root() . '/apps/?f=&cat=nav_featured_app'));
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -249,7 +249,7 @@ EOT;
|
|||
if(local_channel()) {
|
||||
//Zlib\Apps::import_system_apps();
|
||||
$syslist = array();
|
||||
$list = Zlib\Apps::app_list(local_channel(), false, 'featured');
|
||||
$list = Zlib\Apps::app_list(local_channel(), false, 'nav_featured_app');
|
||||
if($list) {
|
||||
foreach($list as $li) {
|
||||
$syslist[] = Zlib\Apps::app_encode($li);
|
||||
|
|
|
@ -456,6 +456,7 @@ function widget_appcategories($arr) {
|
|||
where app_channel = %d
|
||||
and term.uid = app_channel
|
||||
and term.otype = %d
|
||||
and term.term != 'nav_featured_app'
|
||||
order by term.term asc",
|
||||
intval(local_channel()),
|
||||
intval(TERM_OBJ_APP)
|
||||
|
|
Loading…
Reference in a new issue