news edited
This commit is contained in:
parent
29f2b75809
commit
2a983d9b6f
|
|
@ -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'],
|
||||
|
|
|
|||
|
|
@ -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
|
||||
</IfModule>
|
||||
|
|
|
|||
|
|
@ -58,8 +58,6 @@
|
|||
<div class="footer-bottom text-center">
|
||||
<div id="theme-credits" class="text-center">
|
||||
|
||||
|
||||
|
||||
<script>
|
||||
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
|
||||
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
|
||||
|
|
|
|||
Loading…
Reference in New Issue