From daf1fad957a04be4d0fc64713a92eab600542bd0 Mon Sep 17 00:00:00 2001 From: root Date: Fri, 30 Dec 2022 20:38:23 +0000 Subject: [PATCH] from server 31.12 --- .../controllers/api/postsController.php | 2 +- themes/modern2/meta/menus/new-top-menui.yaml | 44 ++++++++++--------- 2 files changed, 25 insertions(+), 21 deletions(-) diff --git a/plugins/ahmadfatoni/apigenerator/controllers/api/postsController.php b/plugins/ahmadfatoni/apigenerator/controllers/api/postsController.php index 11b2ea727..a0f555a75 100644 --- a/plugins/ahmadfatoni/apigenerator/controllers/api/postsController.php +++ b/plugins/ahmadfatoni/apigenerator/controllers/api/postsController.php @@ -35,7 +35,7 @@ class postsController extends Controller 'postGroup' => input('group'), 'published' => true, 'featured' => input('featured') == true ? 1 : 0, - 'select' => ['id','title','slug','published_at',DB::raw("IF(featured_image<>'',concat('$path',featured_image),featured_image) as main_image")] + 'select' => ['id','title','slug','published_at', 'more_photo', DB::raw("IF(featured_image<>'',concat('$path',featured_image),featured_image) as main_image")] ]); if($data){ diff --git a/themes/modern2/meta/menus/new-top-menui.yaml b/themes/modern2/meta/menus/new-top-menui.yaml index f7180be56..fd86dc3b4 100644 --- a/themes/modern2/meta/menus/new-top-menui.yaml +++ b/themes/modern2/meta/menus/new-top-menui.yaml @@ -120,6 +120,26 @@ items: isHidden: '0' cssClass: '' isExternal: '0' + - + title: 'Новости бизнеса' + nesting: null + type: url + url: /ru/new/posts/news/novosti-biznesa + code: '' + reference: null + cmsPage: null + replace: null + viewBag: + locale: + en: + title: 'Business news' + url: /en/new/posts/news/business-news + tm: + title: 'Biznes habarlary' + url: /tm/new/posts/news/biznes-habarlary + isHidden: '0' + cssClass: '' + isExternal: '0' - title: Спорт nesting: null @@ -200,26 +220,6 @@ items: isHidden: '0' cssClass: '' isExternal: '0' - - - title: 'Новости бизнеса' - nesting: null - type: url - url: /ru/new/posts/news/novosti-biznesa - code: '' - reference: null - cmsPage: null - replace: null - viewBag: - locale: - en: - title: 'Business news' - url: /en/new/posts/news/business-news - tm: - title: 'Biznes habarlary' - url: /tm/new/posts/news/biznes-habarlary - isHidden: '0' - cssClass: '' - isExternal: '0' - title: Статьи nesting: null @@ -423,9 +423,13 @@ items: isExternal: '0' - title: Медиа + nesting: null type: url url: /ru/new/posts/media code: '' + reference: null + cmsPage: null + replace: null viewBag: locale: en: