Current File : /home/pacjaorg/www/km/templates/yootheme/cache/element-b5db5d91.php |
<?php // $file = /home/akoke/public_html/km2/plugins/system/djclassifiedsyt/modules/builder-joomla-source/elements/profile-box/element.json
return [
'@import' => $filter->apply('path', './element.php', $file),
'name' => 'profile-box',
'title' => 'Profile Box',
'group' => 'DJ-Classifieds',
'icon' => $filter->apply('url', 'images/icon.svg', $file),
'iconSmall' => $filter->apply('url', 'images/iconSmall.svg', $file),
'element' => true,
'width' => 500,
'defaults' => [
'title_element' => 'h3'
],
'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),
'content' => $filter->apply('path', './templates/content.php', $file)
],
'fields' => [
'title' => [
'label' => 'Title',
'source' => true
],
'avatar' => [
'label' => 'Avatar',
'source' => true,
'type' => 'image'
],
'fields' => [
'label' => 'Extra fields',
'type' => 'content-items',
'item' => 'profile-box_field'
],
'content' => [
'label' => 'Content',
'source' => true,
'type' => 'editor'
],
'link' => $config->get('builder.link'),
'link_target' => $config->get('builder.link_target'),
'position' => $config->get('builder.position'),
'position_left' => $config->get('builder.position_left'),
'position_right' => $config->get('builder.position_right'),
'position_top' => $config->get('builder.position_top'),
'position_bottom' => $config->get('builder.position_bottom'),
'position_z_index' => $config->get('builder.position_z_index'),
'margin' => $config->get('builder.margin'),
'margin_remove_top' => $config->get('builder.margin_remove_top'),
'margin_remove_bottom' => $config->get('builder.margin_remove_bottom'),
'maxwidth' => $config->get('builder.maxwidth'),
'maxwidth_breakpoint' => $config->get('builder.maxwidth_breakpoint'),
'block_align' => $config->get('builder.block_align'),
'block_align_breakpoint' => $config->get('builder.block_align_breakpoint'),
'block_align_fallback' => $config->get('builder.block_align_fallback'),
'text_align' => $config->get('builder.text_align_justify'),
'text_align_breakpoint' => $config->get('builder.text_align_breakpoint'),
'text_align_fallback' => $config->get('builder.text_align_justify_fallback'),
'animation' => $config->get('builder.animation'),
'_parallax_button' => $config->get('builder._parallax_button'),
'visibility' => $config->get('builder.visibility'),
'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
]
],
'avatar_width' => [
'attrs' => [
'placeholder' => 'auto'
]
],
'avatar_height' => [
'attrs' => [
'placeholder' => 'auto'
]
],
'title_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' => 'title'
],
'title_hover_style' => [
'label' => 'Hover Style',
'description' => 'Set the hover style for a linked title.',
'type' => 'select',
'options' => [
'None' => 'reset',
'Heading Link' => 'heading',
'Default Link' => ''
],
'enable' => 'title'
],
'title_decoration' => [
'label' => 'Decoration',
'description' => 'Decorate the title with a divider, bullet or a line that is vertically centered to the heading.',
'type' => 'select',
'options' => [
'None' => '',
'Divider' => 'divider',
'Bullet' => 'bullet',
'Line' => 'line'
],
'enable' => 'title'
],
'title_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' => 'title'
],
'title_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' => 'title'
],
'title_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',
'div' => 'div'
],
'enable' => 'title'
],
'title_align' => [
'label' => 'Alignment',
'description' => 'Align the title to the top or left in regards to the content.',
'type' => 'select',
'options' => [
'Top' => 'top',
'Left' => 'left'
],
'enable' => 'title'
],
'title_grid_width' => [
'label' => 'Grid Width',
'description' => 'Define the width of the title within the grid. 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'
],
'enable' => 'show_title && (title_display != \'lightbox\' && lightbox || !lightbox) && title_align == \'left\''
],
'title_grid_column_gap' => [
'label' => 'Grid Column Gap',
'description' => 'Set the size of the gap between the title and the content.',
'type' => 'select',
'options' => [
'Small' => 'small',
'Medium' => 'medium',
'Default' => '',
'Large' => 'large',
'None' => 'collapse'
],
'enable' => 'show_title && (title_display != \'lightbox\' && lightbox || !lightbox) && title_align == \'left\''
],
'title_grid_row_gap' => [
'label' => 'Grid Row Gap',
'description' => 'Set the size of the gap if the grid items stack.',
'type' => 'select',
'options' => [
'Small' => 'small',
'Medium' => 'medium',
'Default' => '',
'Large' => 'large',
'None' => 'collapse'
],
'enable' => 'show_title && (title_display != \'lightbox\' && lightbox || !lightbox) && title_align == \'left\''
],
'title_grid_breakpoint' => [
'label' => 'Grid Breakpoint',
'description' => 'Set the breakpoint from which grid items will stack.',
'type' => 'select',
'options' => [
'Always' => '',
'Small (Phone Landscape)' => 's',
'Medium (Tablet Landscape)' => 'm',
'Large (Desktop)' => 'l',
'X-Large (Large Screens)' => 'xl'
],
'enable' => 'show_title && (title_display != \'lightbox\' && lightbox || !lightbox) && title_align == \'left\''
],
'title_margin' => [
'label' => 'Margin Top',
'description' => 'Set the top margin. Note that the margin will only apply if the content field immediately follows another content field.',
'type' => 'select',
'options' => [
'Small' => 'small',
'Default' => '',
'Medium' => 'medium',
'Large' => 'large',
'X-Large' => 'xlarge',
'None' => 'remove'
],
'enable' => 'title'
],
'advert_id' => [
'label' => 'Advert ID',
'type' => 'text',
'source' => true
],
'show_contact' => [
'label' => 'Display',
'type' => 'checkbox',
'text' => 'Show contact form',
'show' => 'advert_id'
],
'show_report_abuse' => [
'type' => 'checkbox',
'text' => 'Show report abuse'
],
'content_style' => [
'label' => 'Style',
'description' => 'Select a predefined text style, including color, size and font-family.',
'type' => 'select',
'options' => [
'None' => '',
'Lead' => 'lead',
'Meta' => 'meta',
'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'
],
'enable' => 'show_content && (content_display != \'lightbox\' && lightbox || !lightbox)'
],
'content_align' => [
'label' => 'Alignment',
'type' => 'checkbox',
'text' => 'Force left alignment',
'enable' => 'show_content && (content_display != \'lightbox\' && lightbox || !lightbox)'
],
'content_dropcap' => [
'label' => 'Drop Cap',
'description' => 'Display the first letter of the paragraph as a large initial.',
'type' => 'checkbox',
'text' => 'Enable drop cap',
'enable' => 'show_content && (content_display != \'lightbox\' && lightbox || !lightbox)'
],
'content_column' => [
'label' => 'Columns',
'description' => 'Set the number of text columns.',
'type' => 'select',
'options' => [
'None' => '',
'Halves' => '1-2',
'Thirds' => '1-3',
'Quarters' => '1-4',
'Fifths' => '1-5',
'Sixths' => '1-6'
],
'enable' => 'show_content && (content_display != \'lightbox\' && lightbox || !lightbox)'
],
'content_column_divider' => [
'description' => 'Show a divider between text columns.',
'type' => 'checkbox',
'text' => 'Show dividers',
'enable' => 'show_content && (content_display != \'lightbox\' && lightbox || !lightbox) && content_column'
],
'content_column_breakpoint' => [
'label' => 'Columns Breakpoint',
'description' => 'Set the device width from which the text columns should apply.',
'type' => 'select',
'options' => [
'Always' => '',
'Small (Phone Landscape)' => 's',
'Medium (Tablet Landscape)' => 'm',
'Large (Desktop)' => 'l',
'X-Large (Large Screens)' => 'xl'
],
'enable' => 'show_content && (content_display != \'lightbox\' && lightbox || !lightbox) && content_column'
],
'content_margin' => [
'label' => 'Margin Top',
'description' => 'Set the top margin. Note that the margin will only apply if the content field immediately follows another content field.',
'type' => 'select',
'options' => [
'Small' => 'small',
'Default' => '',
'Medium' => 'medium',
'Large' => 'large',
'X-Large' => 'xlarge',
'None' => 'remove'
],
'enable' => 'show_content && (content_display != \'lightbox\' && lightbox || !lightbox)'
],
'contact_button_style' => [
'label' => 'Style',
'description' => 'Set the button style.',
'type' => 'select',
'options' => [
'Button Default' => 'default',
'Button Primary' => 'primary',
'Button Secondary' => 'secondary',
'Button Danger' => 'danger',
'Button Text' => 'text',
'Link' => '',
'Link Muted' => 'link-muted',
'Link Text' => 'link-text'
],
'enable' => 'show_link'
],
'contact_show_animation' => $config->get('builder.animation'),
'contact_hide_animation' => $config->get('builder.animation')
],
'fieldset' => [
'default' => [
'type' => 'tabs',
'fields' => [[
'title' => 'Content',
'fields' => ['title', 'content', 'avatar', 'link', 'link_target', 'fields', 'advert_id', 'show_contact', 'show_report_abuse']
], [
'title' => 'Settings',
'fields' => [[
'label' => 'Box',
'type' => 'group',
'divider' => true,
'fields' => []
], [
'label' => 'Avatar',
'type' => 'group',
'divider' => true,
'fields' => [[
'label' => 'Width/Height',
'description' => 'Setting just one value preserves the original proportions. The image will be resized and cropped automatically, and where possible, high resolution images will be auto-generated.',
'type' => 'grid',
'width' => '1-2',
'fields' => ['avatar_width', 'avatar_height']
]]
], [
'label' => 'Title',
'type' => 'group',
'divider' => true,
'fields' => ['title_style', 'title_hover_style', 'title_decoration', 'title_font_family', 'title_color', 'title_margin']
], [
'label' => 'Content',
'type' => 'group',
'divider' => true,
'fields' => ['content_style', 'content_align', 'content_dropcap', 'content_column', 'content_column_divider', 'content_column_breakpoint', 'content_margin']
], [
'label' => 'Contact form',
'type' => 'group',
'show' => 'show_contact',
'divider' => true,
'fields' => ['contact_button_style', 'contact_show_animation', 'contact_hide_animation']
], [
'label' => 'Abuse form',
'type' => 'group',
'divider' => true,
'fields' => ['content_style', 'content_align', 'content_dropcap', 'content_column', 'content_column_divider', 'content_column_breakpoint', 'content_margin']
], [
'label' => 'General',
'type' => 'group',
'fields' => ['position', 'position_left', 'position_right', 'position_top', 'position_bottom', 'position_z_index', 'margin', 'margin_remove_top', 'margin_remove_bottom', 'maxwidth', 'maxwidth_breakpoint', 'block_align', 'block_align_breakpoint', 'block_align_fallback', 'text_align', 'text_align_breakpoint', 'text_align_fallback', 'animation', '_parallax_button', 'visibility']
]]
], $config->get('builder.advanced')]
]
]
];