From 2a983d9b6fcac923b676f5be43b636cdf90cb980 Mon Sep 17 00:00:00 2001 From: ilmedova Date: Fri, 5 Jun 2020 19:05:24 +0500 Subject: [PATCH] news edited --- app/Http/Controllers/Admin/NewsCrudController.php | 8 ++++---- public/.htaccess | 2 ++ resources/views/web/layouts/footerMenu.blade.php | 2 -- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/app/Http/Controllers/Admin/NewsCrudController.php b/app/Http/Controllers/Admin/NewsCrudController.php index 6501a440..5aa9de1a 100644 --- a/app/Http/Controllers/Admin/NewsCrudController.php +++ b/app/Http/Controllers/Admin/NewsCrudController.php @@ -48,12 +48,12 @@ class NewsCrudController extends CrudController 'label' => "Material Image", 'name' => "img_url", - 'type' => 'image', + 'type' => 'upload', 'upload' => true, - 'crop' => true, // set to true to allow cropping, false to disable - 'aspect_ratio' => 2, // ommit or set to 0 to allow any aspect ratio + //'crop' => true, // set to true to allow cropping, false to disable + //'aspect_ratio' => 2, // ommit or set to 0 to allow any aspect ratio //'disk' => 'uploads', // in case you need to show images from a different disk - 'prefix' => 'uploads/' // in case your db value is only the file name (no path), you can use this to prepend your path to the image src (in HTML), before it's shown to the user; + //'prefix' => 'uploads/' // in case your db value is only the file name (no path), you can use this to prepend your path to the image src (in HTML), before it's shown to the user; ], ['name' => 'alt','type' => 'text', 'lable' => 'Alt'], ['name' => 'name','type' => 'text', 'lable' => 'Name'], diff --git a/public/.htaccess b/public/.htaccess index 7b44f94b..ab583cb6 100644 --- a/public/.htaccess +++ b/public/.htaccess @@ -32,6 +32,7 @@ AddOutputFilterByType DEFLATE image/jpeg AddOutputFilterByType DEFLATE image/jpg AddOutputFilterByType DEFLATE image/gif + AddOutputFilterByType DEFLATE image/ico AddOutputFilterByType DEFLATE application/rss+xml AddOutputFilterByType DEFLATE application/javascript AddOutputFilterByType DEFLATE application/x-javascript @@ -46,5 +47,6 @@ AddOutputFilterByType DEFLATE application/vnd.ms-fontobject AddOutputFilterByType DEFLATE font/ttf AddOutputFilterByType DEFLATE font/otf + AddOutputFilterByType DEFLATE font/font AddOutputFilterByType DEFLATE font/opentype diff --git a/resources/views/web/layouts/footerMenu.blade.php b/resources/views/web/layouts/footerMenu.blade.php index de46b16a..5dd910bd 100644 --- a/resources/views/web/layouts/footerMenu.blade.php +++ b/resources/views/web/layouts/footerMenu.blade.php @@ -58,8 +58,6 @@