Current File : /home/pacjaorg/www/km/templates/yootheme/cache/element-c2e3acae.php |
<?php // $file = /home/akoke/public_html/km2/plugins/system/djclassifiedsyt/modules/builder-joomla-source/elements/classifieds-buynow/element.json
return [
'@import' => $filter->apply('path', './element.php', $file),
'name' => 'classifieds-buynow',
'title' => 'Buy now',
'group' => 'DJ-Classifieds',
'icon' => $filter->apply('url', 'images/icon.svg', $file),
'iconSmall' => $filter->apply('url', 'images/iconSmall.svg', $file),
'element' => true,
'width' => 500,
'defaults' => [
'input_width' => '1-2',
'placeholder_width' => '1-2',
'button_width' => 'auto',
'button_style' => 'primary',
'placeholder_element' => 'span',
'placeholder_style' => 'meta'
],
'placeholder' => [
'props' => [
'title' => '',
'content' => 'Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.'
]
],
'templates' => [
'render' => $filter->apply('path', './templates/template.php', $file)
],
'fields' => [
'ad_id' => [
'label' => 'Ad ID',
'source' => true
],
'placeholder' => [
'label' => 'Placeholder',
'source' => true
],
'input_width' => [
'label' => 'Input Width',
'description' => 'Define the width of the input within the buy now. Choose between percent and fixed widths or expand columns to the width of their content.',
'type' => 'select',
'options' => [
'Auto' => 'auto',
'80%' => '4-5',
'75%' => '3-4',
'66%' => '2-3',
'60%' => '3-5',
'50%' => '1-2',
'40%' => '2-5',
'33%' => '1-3',
'25%' => '1-4',
'20%' => '1-5',
'Small' => 'small',
'Medium' => 'medium',
'Large' => 'large',
'X-Large' => 'xlarge',
'2X-Large' => '2xlarge'
]
],
'placeholder_width' => [
'label' => 'Placeholder Width',
'description' => 'Define the width of the input within the buy now. Choose between percent and fixed widths or expand columns to the width of their content.',
'type' => 'select',
'options' => [
'Auto' => 'auto',
'80%' => '4-5',
'75%' => '3-4',
'66%' => '2-3',
'60%' => '3-5',
'50%' => '1-2',
'40%' => '2-5',
'33%' => '1-3',
'25%' => '1-4',
'20%' => '1-5',
'Small' => 'small',
'Medium' => 'medium',
'Large' => 'large',
'X-Large' => 'xlarge',
'2X-Large' => '2xlarge'
]
],
'button_width' => [
'label' => 'Placeholder Width',
'description' => 'Define the width of the input within the buy now. Choose between percent and fixed widths or expand columns to the width of their content.',
'type' => 'select',
'options' => [
'Auto' => 'auto',
'80%' => '4-5',
'75%' => '3-4',
'66%' => '2-3',
'60%' => '3-5',
'50%' => '1-2',
'40%' => '2-5',
'33%' => '1-3',
'25%' => '1-4',
'20%' => '1-5',
'Small' => 'small',
'Medium' => 'medium',
'Large' => 'large',
'X-Large' => 'xlarge',
'2X-Large' => '2xlarge'
]
],
'name' => $config->get('builder.name'),
'status' => $config->get('builder.status'),
'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-title</code>, <code>.el-content</code>, <code>.el-link</code>',
'type' => 'editor',
'editor' => 'code',
'mode' => 'css',
'attrs' => [
'debounce' => 500
]
],
'button_margin' => $config->get('builder.margin'),
'button_margin_remove_top' => $config->get('builder.margin_remove_top'),
'button_margin_remove_bottom' => $config->get('builder.margin_remove_bottom'),
'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'
]
],
'button_text' => [
'label' => 'Text'
],
'placeholder_font_family' => [
'label' => 'Font Family',
'description' => 'Select an alternative font family. Mind that not all styles have different font families.',
'type' => 'select',
'options' => [
'None' => '',
'Default' => 'default',
'Primary' => 'primary',
'Secondary' => 'secondary',
'Tertiary' => 'tertiary'
],
'enable' => 'placeholder'
],
'placeholder_color' => [
'label' => 'Color',
'description' => 'Select the text color. If the Background option is selected, styles that don\'t apply a background image use the primary color instead.',
'type' => 'select',
'options' => [
'None' => '',
'Muted' => 'muted',
'Emphasis' => 'emphasis',
'Primary' => 'primary',
'Secondary' => 'secondary',
'Success' => 'success',
'Warning' => 'warning',
'Danger' => 'danger',
'Background' => 'background'
],
'enable' => 'placeholder'
],
'placeholder_element' => [
'label' => 'HTML Element',
'description' => 'Choose one of the HTML elements to fit the semantic structure.',
'type' => 'select',
'options' => [
'h1' => 'h1',
'h2' => 'h2',
'h3' => 'h3',
'h4' => 'h4',
'h5' => 'h5',
'h6' => 'h6',
'span' => 'span'
],
'enable' => 'placeholder'
],
'placeholder_style' => [
'label' => 'Style',
'description' => 'Title styles differ in font-size but may also come with a predefined color, size and font.',
'type' => 'select',
'options' => [
'None' => '',
'2X-Large' => 'heading-2xlarge',
'X-Large' => 'heading-xlarge',
'Large' => 'heading-large',
'Medium' => 'heading-medium',
'Small' => 'heading-small',
'H1' => 'h1',
'H2' => 'h2',
'H3' => 'h3',
'H4' => 'h4',
'H5' => 'h5',
'H6' => 'h6',
'Meta' => 'meta',
'Lead' => 'lead'
],
'enable' => 'placeholder'
]
],
'fieldset' => [
'default' => [
'type' => 'tabs',
'fields' => [[
'title' => 'Content',
'fields' => ['ad_id', 'placeholder']
], [
'title' => 'Settings',
'fields' => [[
'label' => 'Input',
'type' => 'group',
'divider' => true,
'fields' => ['input_width']
], [
'label' => 'Placeholder',
'type' => 'group',
'divider' => true,
'fields' => ['placeholder_width', 'placeholder_style', 'placeholder_font_family', 'placeholder_color', 'placeholder_element']
], [
'label' => 'Button',
'type' => 'group',
'divider' => true,
'fields' => ['button_width', 'button_style', 'button_margin', 'button_margin_remove_top', 'button_margin_remove_bottom', 'button_text']
]]
], $config->get('builder.advanced')]
]
]
];