Last active
March 10, 2021 09:28
-
-
Save 0test/2bfef3fd2204872609ecb931546d3069 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
return [ | |
'settings' => [], | |
'templates' => [ | |
'newsimage' => [ | |
'type' => 'row', | |
'value' => false, | |
'label' => 'Фото', | |
'items.class' => 'd-block', | |
'items' => [ | |
'thumb' => [ | |
'type' => 'thumb', | |
'multi' => 'thumb', | |
'image' => 'image', | |
'actions' => ['del', 'edit'], | |
'class' => 'col-2 float-left' | |
], | |
'image' => [ | |
'type' => 'image', | |
'thumb' => 'thumb', | |
'multi' => 'newsimage', | |
'placeholder' => 'Фото', | |
'class' => 'col-10 float-right' | |
], | |
'text' => [ | |
'type' => 'text', | |
'placeholder' => 'Альт-текст', | |
'class' => 'col-10 float-right' | |
], | |
], | |
'tpl' => '@CODE: | |
<div class="slide_image_container"> | |
<a href="[+image+]" data-caption="[+text+]" data-fancybox="gallery"><img src="[[phpthumb? &input=`[+image+]` &options=`w=372,h=250,far=C,zc=1`]]"></a> | |
</div> | |
', | |
] | |
] | |
]; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment