diff --git a/plugins/ahmadfatoni/apigenerator/controllers/api/postsController.php b/plugins/ahmadfatoni/apigenerator/controllers/api/postsController.php index aacd3e605..2b98cb509 100644 --- a/plugins/ahmadfatoni/apigenerator/controllers/api/postsController.php +++ b/plugins/ahmadfatoni/apigenerator/controllers/api/postsController.php @@ -34,7 +34,7 @@ class postsController extends Controller 'typePost' => input('typePost'), 'postGroup' => input('group'), 'published' => true, - 'select' => ['id','title','slug','published_at', 'more_photo', DB::raw("IF(featured_image<>'',concat('$path',featured_image),featured_image) as main_image")] + 'select' => ['id','title','slug','published_at', 'more_photo','afisha_phone', 'afisha_address', DB::raw("IF(featured_image<>'',concat('$path',featured_image),featured_image) as main_image")] ]; if(request()->has('featured')){ @@ -55,7 +55,7 @@ class postsController extends Controller //posts item public function show($locale,$id){ - $post = $this->Post::find($id,['id','content_html','author','slug']); + $post = $this->Post::find($id,['id','content_html','author','slug', 'afisha_phone', 'afisha_address']); if(!is_null($post)) { diff --git a/plugins/rainlab/blog/models/categorygroup/columns.yaml b/plugins/rainlab/blog/models/categorygroup/columns.yaml index 941fa298c..41bdbdd13 100644 --- a/plugins/rainlab/blog/models/categorygroup/columns.yaml +++ b/plugins/rainlab/blog/models/categorygroup/columns.yaml @@ -19,8 +19,9 @@ columns: type: text searchable: true sortable: true - type: - label: Type + updated_at: + label: 'updated at' + type: text + type: + label: type type: text - searchable: true - sortable: true diff --git a/themes/modern2/partials/adv/2adv.htm b/themes/modern2/partials/adv/2adv.htm index fb285c370..f126b6d22 100644 --- a/themes/modern2/partials/adv/2adv.htm +++ b/themes/modern2/partials/adv/2adv.htm @@ -11,11 +11,12 @@
{% else %} @@ -32,12 +33,12 @@
{% else %} diff --git a/themes/modern2/partials/adv/right-sidebar.htm b/themes/modern2/partials/adv/right-sidebar.htm index 6c11bab2c..d1074375d 100644 --- a/themes/modern2/partials/adv/right-sidebar.htm +++ b/themes/modern2/partials/adv/right-sidebar.htm @@ -4,7 +4,7 @@ {% for record in records if record.group_id == id %} {% if record.id == 96 %} - + {% endif %} diff --git a/themes/modern2/partials/adv/right-sidebar2.htm b/themes/modern2/partials/adv/right-sidebar2.htm index 7df83f9c8..86fbd034f 100644 --- a/themes/modern2/partials/adv/right-sidebar2.htm +++ b/themes/modern2/partials/adv/right-sidebar2.htm @@ -6,7 +6,7 @@ {% for record in records if record.group_id == id and record.active == 1 %}
- +