hide featured app category in the app category widget
This commit is contained in:
parent
e1b54b6843
commit
a6cbebe03c
@ -350,7 +350,7 @@ class Apps {
|
|||||||
'$delete' => ((local_channel() && $installed && $mode == 'edit') ? t('Delete') : ''),
|
'$delete' => ((local_channel() && $installed && $mode == 'edit') ? t('Delete') : ''),
|
||||||
'$undelete' => ((local_channel() && $installed && $mode == 'edit') ? t('Undelete') : ''),
|
'$undelete' => ((local_channel() && $installed && $mode == 'edit') ? t('Undelete') : ''),
|
||||||
'$deleted' => $papp['deleted'],
|
'$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 {
|
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()) {
|
if(local_channel()) {
|
||||||
//Zlib\Apps::import_system_apps();
|
//Zlib\Apps::import_system_apps();
|
||||||
$syslist = array();
|
$syslist = array();
|
||||||
$list = Zlib\Apps::app_list(local_channel(), false, 'featured');
|
$list = Zlib\Apps::app_list(local_channel(), false, 'nav_featured_app');
|
||||||
if($list) {
|
if($list) {
|
||||||
foreach($list as $li) {
|
foreach($list as $li) {
|
||||||
$syslist[] = Zlib\Apps::app_encode($li);
|
$syslist[] = Zlib\Apps::app_encode($li);
|
||||||
|
@ -456,6 +456,7 @@ function widget_appcategories($arr) {
|
|||||||
where app_channel = %d
|
where app_channel = %d
|
||||||
and term.uid = app_channel
|
and term.uid = app_channel
|
||||||
and term.otype = %d
|
and term.otype = %d
|
||||||
|
and term.term != 'nav_featured_app'
|
||||||
order by term.term asc",
|
order by term.term asc",
|
||||||
intval(local_channel()),
|
intval(local_channel()),
|
||||||
intval(TERM_OBJ_APP)
|
intval(TERM_OBJ_APP)
|
||||||
|
Reference in New Issue
Block a user