Skip to content

Instantly share code, notes, and snippets.

@0test
Last active March 10, 2021 09:28
Show Gist options
  • Save 0test/2bfef3fd2204872609ecb931546d3069 to your computer and use it in GitHub Desktop.
Save 0test/2bfef3fd2204872609ecb931546d3069 to your computer and use it in GitHub Desktop.
<?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