| 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/coopiak/amisdesseniors-fr/catalog/plugins/system/djclassifiedsyt/modules/builder-joomla-source/elements/classifieds-favorite-btn/element.json
return [
'@import' => $filter->apply('path', './element.php', $file),
'name' => 'classifieds-favorite-btn',
'title' => 'Favourite Button',
'group' => 'DJ-Classifieds',
'icon' => $filter->apply('url', 'images/icon.svg', $file),
'iconSmall' => $filter->apply('url', 'images/iconSmall.svg', $file),
'element' => true,
'defaults' => [
'button_style' => 'default',
'icon_align' => 'left',
'show_content' => true
],
'placeholder' => [
'props' => [
'icon' => ''
]
],
'templates' => [
'render' => $filter->apply('path', './templates/template.php', $file),
'content' => $filter->apply('path', './templates/content.php', $file)
],
'fields' => [
'advert_id' => [
'label' => 'Item ID',
'description' => 'Set ID of the item to be added/removed from favourites',
'type' => 'text',
'source' => true
],
'content' => [
'label' => 'Label',
'type' => 'text',
'source' => true,
'description' => 'Fill out to override the default text.',
'enable' => 'show_content'
],
'show_content' => [
'type' => 'checkbox',
'text' => 'Show label'
],
'icon' => [
'label' => 'Icon',
'description' => 'Pick an optional icon from the icon library.',
'type' => 'icon',
'source' => true,
'default' => 'heart'
],
'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'),
'id' => $config->get('builder.id'),
'class' => $config->get('builder.cls'),
'attributes' => $config->get('builder.attrs'),
'css' => [
'label' => 'CSS',
'description' => 'Enter your own custom CSS. The following selectors will be prefixed automatically for this element: <code>.el-element</code>, <code>.el-item</code>, <code>.el-title</code>, <code>.el-meta</code>, <code>.el-content</code>, <code>.el-image</code>, <code>.el-link</code>',
'type' => 'editor',
'editor' => 'code',
'mode' => 'css',
'attrs' => [
'debounce' => 500
]
]
],
'fieldset' => [
'default' => [
'type' => 'tabs',
'fields' => [[
'title' => 'Content',
'fields' => ['advert_id', 'content', 'show_content', 'icon']
], [
'title' => 'Settings',
'fields' => [[
'label' => 'Button',
'type' => 'group',
'divider' => true,
'fields' => ['button_style']
], [
'label' => 'Icon',
'type' => 'group',
'fields' => ['icon_align']
]]
], $config->get('builder.advanced')]
]
]
];