| Server IP : 54.36.91.62 / Your IP : 216.73.217.111 Web Server : Apache System : Linux webm013.cluster127.gra.hosting.ovh.net 5.15.206-ovh-vps-grsec-zfs-classid #1 SMP Fri May 15 02:41:25 UTC 2026 x86_64 User : coopiak ( 151928) PHP Version : 8.3.23 Disable Function : _dyuweyrj4,_dyuweyrj4r,dl MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : OFF | Pkexec : OFF Directory : /home/coopiak/amisdesseniors-fr/annonces/templates/yootheme/cache/ |
Upload File : |
<?php // $file = /home/vsebid/vsebid.com/new/plugins/system/djclassifiedsyt/modules/form/elements/form_button_item/element.json
return [
'@import' => $filter->apply('path', './element.php', $file),
'name' => 'classifieds_form_button_item',
'title' => 'Button',
'width' => 500,
'defaults' => [
'button_style' => 'default',
'icon_align' => 'left'
],
'placeholder' => [
'props' => [
'content' => 'Button',
'icon' => ''
]
],
'templates' => [
'render' => $filter->apply('path', './templates/template.php', $file),
'content' => $filter->apply('path', './templates/content.php', $file)
],
'fields' => [
'content' => [
'label' => 'Content',
'source' => true
],
'icon' => [
'label' => 'Icon',
'description' => 'Pick an optional icon from the icon library.',
'type' => 'icon',
'source' => true
],
'button_style' => [
'label' => 'Style',
'description' => 'Set the button style.',
'type' => 'select',
'options' => [
'Default' => 'default',
'Primary' => 'primary',
'Secondary' => 'secondary',
'Danger' => 'danger',
'Text' => 'text',
'Link' => '',
'Link Muted' => 'link-muted',
'Link Text' => 'link-text'
]
],
'icon_align' => [
'label' => 'Alignment',
'description' => 'Choose the icon position.',
'type' => 'select',
'options' => [
'Left' => 'left',
'Right' => 'right'
],
'enable' => 'icon'
],
'status' => $config->get('builder.statusItem'),
'source' => $config->get('builder.source')
],
'fieldset' => [
'default' => [
'type' => 'tabs',
'fields' => [[
'title' => 'Content',
'fields' => ['content', 'link', 'link_title', 'icon']
], [
'title' => 'Settings',
'fields' => [[
'label' => 'Button',
'type' => 'group',
'divider' => true,
'fields' => ['button_style']
], [
'label' => 'Link',
'type' => 'group',
'divider' => true,
'fields' => ['link_target', [
'label' => 'Modal Width/Height',
'description' => 'Set the width and height for the modal content, i.e. image, video or iframe.',
'type' => 'grid',
'width' => '1-2',
'fields' => ['lightbox_width', 'lightbox_height']
]]
], [
'label' => 'Icon',
'type' => 'group',
'fields' => ['icon_align']
]]
], $config->get('builder.advancedItem')]
]
]
];