Merge branch 'master' of ssh://gl.arguments.ru:2224/ak/anpdf

This commit is contained in:
arlemp@selectel.ru
2022-12-04 16:46:10 +03:00
7 changed files with 52 additions and 13 deletions

View File

@@ -60,7 +60,15 @@ function category_kuri($category = '', $filter = 'all', $page = 1){
$filter = "category_id = 1";
}
elseif ($category == 'knigi') {
$filter = "category_id = 3";
if (SUBSTATUS == 1) {
$filter = "category_id = 3 AND sub = 1";
}
else {
$filter = "category_id = 3";
}
}
elseif($category == 'soon'){
$filter = "sub = 0";
}
$cats = api_cats();
@@ -93,6 +101,10 @@ function category_kuri($category = '', $filter = 'all', $page = 1){
if (isset($cats[$category])){
$breadcrumbs['page'] = $pagetitle;
}
else {
$pagetitle = 'Скоро в подписке';
$breadcrumbs['page'] = $pagetitle;
}
$tempcontent = VIEWPATH.'books.phtml';
include VIEWPATH.'layout.phtml';

0
app/routes/report.php Normal file
View File