diff --git a/plugins/ahmadfatoni/apigenerator/controllers/api/postsController.php b/plugins/ahmadfatoni/apigenerator/controllers/api/postsController.php index 2b98cb509..a2b1b3309 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','afisha_phone', 'afisha_address', 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', 'afisha_phone_new', 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', 'afisha_phone', 'afisha_address']); + $post = $this->Post::find($id,['id','content_html','author','slug', 'afisha_phone', 'afisha_address', 'afisha_phone_new',]); if(!is_null($post)) { diff --git a/themes/modern2/layouts/new/master-inside.htm b/themes/modern2/layouts/new/master-inside.htm index 9c3464e9e..71ec773f6 100644 --- a/themes/modern2/layouts/new/master-inside.htm +++ b/themes/modern2/layouts/new/master-inside.htm @@ -120,8 +120,10 @@ default = 0 + + {% scripts %} {% framework extras %} - {% scripts %} + @@ -20,11 +36,12 @@ postPage = 404
+ {{merged}} {{ post.title }}