# You must use a tab-size of 4 spaces to edit this file.
---
plugin_settings:
    module_class_name: zenario_meta_data
    tabs:
        first_tab:
            label: Details
            fields:
                options:
                    type: grouping
                    snippet:
                        label: Options
                        label_class: subheading
                filters:
                    type: grouping
                    snippet:
                        label: Filters
                        label_class: subheading
                show_labels:
                    plugin_setting:
                        name: show_labels
                    grouping: options
                    label: "Show labels"
                    type: checkbox
                    value: 0
                    format_onchange: true
                    side_note: 'If this is enabled, check the "Phrases" tab to customise the label phrases.'
                show_title:
                    plugin_setting:
                        name: show_title
                    grouping: filters
                    label: "Show content item's title"
                    type: checkbox
                    value: 1
                    format_onchange: true
                title_html_tag:
                    indent: 1
                    plugin_setting:
                        name: title_html_tag
                    grouping: filters
                    label: "Title tags:"
                    value: h1
                    visible_if:
                        lib.value: show_title
                    type: select
                    values: &tags
                        h1:
                            label: h1
                        h2:
                            label: h2
                        h3:
                            label: h3
                        h4:
                            label: h4
                        h5:
                            label: h5
                        h6:
                            label: h6
                        p:
                            label: p
                show_icon_when_pinned:
                    plugin_setting:
                        name: show_icon_when_pinned
                    grouping: filters
                    label: "Show an icon when content item is pinned"
                    type: checkbox
                show_text_when_pinned:
                    plugin_setting:
                        name: show_text_when_pinned
                    grouping: filters
                    label: "Show text when content item is pinned"
                    type: checkbox
                    redraw_onchange: true
                pinned_text_html_tag:
                    indent: 1
                    plugin_setting:
                        name: pinned_text_html_tag
                    grouping: filters
                    label: "Pinned text tags:"
                    value: h2
                    visible_if:
                        lib.value: show_text_when_pinned
                    type: select
                    values: *tags
                show_date:
                    plugin_setting:
                        name: show_date
                    grouping: filters
                    label: "Show content item's release date"
                    type: checkbox
                    value: 1
                    format_onchange: true
                date_format:
                    plugin_setting:
                        name: date_format
                    grouping: filters
                    label: 'Date format:'
                    type: radios
                    format_onchange: true
                    value: _MEDIUM
                    values:
                        _SHORT:
                            label: Short
                        _MEDIUM:
                            label: Medium
                        _LONG:
                            label: Long
                    indent: 1
                date_html_tag:
                    indent: 1
                    plugin_setting:
                        name: date_html_tag
                    grouping: filters
                    label: "Date tags:"
                    value: h2
                    visible_if:
                        lib.value: show_date
                    type: select
                    values: *tags
                show_published_date:
                    plugin_setting:
                        name: show_published_date
                    grouping: filters
                    label: "Show content item's date published"
                    type: checkbox
                    note_below: "Warning: this shows information only normally visible to administrators."
                    value: 0
                    format_onchange: true
                published_date_format:
                    plugin_setting:
                        name: published_date_format
                    grouping: filters
                    label: 'Date format:'
                    type: radios
                    format_onchange: true
                    value: _MEDIUM
                    values:
                        _SHORT:
                            label: Short
                        _MEDIUM:
                            label: Medium
                        _LONG:
                            label: Long
                    indent: 1
                published_date_html_tag:
                    indent: 1
                    plugin_setting:
                        name: published_date_html_tag
                    grouping: filters
                    label: "Date tags:"
                    value: h2
                    visible_if:
                        lib.value: show_published_date
                    type: select
                    values: *tags
                show_description:
                    plugin_setting:
                        name: show_description
                    grouping: filters
                    label: "Show content item's description"
                    side_note: "Show the meta data description."
                    type: checkbox
                    value: 0
                    format_onchange: true
                description_html_tag:
                    indent: 1
                    plugin_setting:
                        name: description_html_tag
                    grouping: filters
                    label: "Description tags:"
                    value: p
                    visible_if:
                        lib.value: show_description
                    type: select
                    values: *tags
                show_summary:
                    plugin_setting:
                        name: show_summary
                    grouping: filters
                    label: "Show content item's summary"
                    side_note: "Show the summary of the content item."
                    type: checkbox
                    value: 0
                    format_onchange: true
                summary_html_tag:
                    indent: 1
                    plugin_setting:
                        name: summary_html_tag
                    grouping: filters
                    label: "Summary tags:"
                    value: p
                    visible_if:
                        lib.value: show_summary
                    type: select
                    values: *tags
                show_categories:
                    plugin_setting:
                        name: show_categories
                    grouping: filters
                    label: "List the content item's categories"
                    type: checkbox
                    side_note: "Show names of categories that the content item is in. Only categories marked as Public will be shown to visitors."
                    value: ""
                    format_onchange: true
                categories_html_tag:
                    indent: 1
                    plugin_setting:
                        name: categories_html_tag
                    grouping: filters
                    label: "Categories tags:"
                    value: p
                    visible_if:
                        lib.value: show_categories
                    type: select
                    values: *tags
                show_keywords:
                    plugin_setting:
                        name: show_keywords
                    grouping: filters
                    label: "Show content item's keywords"
                    type: checkbox
                    value: 0
                    format_onchange: true
                keywords_html_tag:
                    indent: 1
                    plugin_setting:
                        name: keywords_html_tag
                    grouping: filters
                    label: "Keywords tags:"
                    value: p
                    visible_if:
                        lib.value: show_keywords
                    type: select
                    values: *tags
                show_language:
                    plugin_setting:
                        name: show_language
                    grouping: filters
                    label: "Show content item's language"
                    type: checkbox
                    format_onchange: true
                show_language_name:
                    indent: 1
                    plugin_setting:
                        name: show_language_name
                    grouping: filters
                    label: "Show language name"
                    type: checkbox
                    value: 0
                    format_onchange: true
                    visible_if: lib.value('show_language')
                language_name_html_tag:
                    indent: 2
                    plugin_setting:
                        name: language_name_html_tag
                    grouping: filters
                    label: "Language name tags:"
                    value: h2
                    visible_if: lib.value('show_language') && lib.value('show_language_name')
                    type: select
                    values: *tags
                show_language_iso_code:
                    indent: 1
                    plugin_setting:
                        name: show_language_iso_code
                    grouping: filters
                    label: "Show language ISO code"
                    type: checkbox
                    value: 0
                    format_onchange: true
                    visible_if: lib.value('show_language')
                language_html_tag:
                    indent: 2
                    plugin_setting:
                        name: language_html_tag
                    grouping: filters
                    label: "Language ISO code tags:"
                    value: h2
                    visible_if: lib.value('show_language') && lib.value('show_language_iso_code')
                    type: select
                    values: *tags
                show_writer_name:
                    plugin_setting:
                        name: show_writer_name
                    grouping: filters
                    label: "Show content item's writer name"
                    type: checkbox
                    value: 0
                    format_onchange: true
                writer_name_html_tag:
                    indent: 1
                    plugin_setting:
                        name: writer_name_html_tag
                    grouping: filters
                    label: "Writer name tags:"
                    value: h2
                    visible_if:
                        lib.value: show_writer_name
                    type: select
                    values: *tags
                show_writer_image:
                    indent: 1
                    plugin_setting:
                        name: show_writer_image
                    grouping: filters
                    label: "Show content item's writer's photo"
                    type: checkbox
                    value: '0'
                    format_onchange: true
                    visible_if:
                        lib.value: show_writer_name
                writer_image_label_html_tag:
                    indent: 2
                    plugin_setting:
                        name: writer_image_label_html_tag
                    grouping: filters
                    label: "Writer's photo label tags:"
                    value: h2
                    #visible_if: (controlled in module code)
                    type: select
                    values: *tags
                
                canvas:
                    plugin_setting:
                        name: canvas
                    grouping: filters
                    label: 'Image canvas:'
                    type: select
                    value: crop_and_zoom
                    values:
                        crop_and_zoom:
                            label: Crop and zoom
                        fixed_width:
                            label: Constrain by width
                        fixed_height:
                            label: Constrain by height
                        fixed_width_and_height:
                            label: Constrain by width and height
                        unlimited:
                            label: Unlimited size
                            ord: 99
                    format_onchange: true
                    indent: 2
                width:
                    plugin_setting:
                        name: width
                    grouping: filters
                    label: 'Width:'
                    type: text
                    validation:
                        required_if_not_hidden: Please enter a width.
                        numeric: The width must be a number.
                    value: 75
                    maxlength: 5
                    style: 'width: 5em;'
                    post_field_html: '&nbsp;pixels'
                    indent: 3
                height:
                    plugin_setting:
                        name: height
                    grouping: filters
                    label: 'Height:'
                    type: text
                    validation:
                        required_if_not_hidden: Please enter a height.
                        numeric: The height must be a number.
                    value: 75
                    maxlength: 5
                    style: 'width: 5em;'
                    post_field_html: '&nbsp;pixels'
                    indent: 3
                offset:
                    plugin_setting:
                        name: offset
                    grouping: filters
                    label: 'Offset:'
                    type: text
                    style: 'width: 50px;'
                    value: 0
                    slider:
                        min: "-10"
                        max: 10
                        before_field: true
                        style: 'width: 200px;'
                    side_note: |
                        Moving the slider to the left will move the image left or down;
                        moving the slider to the right will move the image right or up.
                    indent: 3
                
                show_writer_email:
                    indent: 1
                    plugin_setting:
                        name: show_writer_email
                    grouping: filters
                    label: "Show writer's email"
                    type: checkbox
                    value: 0
                    format_onchange: true
                    visible_if:
                        lib.value: show_writer_name
                writer_email_html_tag:
                    indent: 2
                    plugin_setting:
                        name: writer_email_html_tag
                    grouping: filters
                    label: "Writer's email tags:"
                    value: p
                    visible_if: (lib.value('show_writer_name') && lib.value('show_writer_email'))
                    type: select
                    values: *tags
                writer_email_label_html_tag:
                    indent: 2
                    plugin_setting:
                        name: writer_email_label_html_tag
                    grouping: filters
                    label: "Writer's email label tags:"
                    value: h2
                    #visible_if: (controlled in module code)
                    type: select
                    values: *tags
                show_writer_profile:
                    indent: 1
                    plugin_setting:
                        name: show_writer_profile
                    grouping: filters
                    label: "Show writer's profile"
                    type: checkbox
                    value: 0
                    format_onchange: true
                    visible_if:
                        lib.value: show_writer_name
                writer_profile_label_html_tag:
                    indent: 2
                    plugin_setting:
                        name: writer_profile_label_html_tag
                    grouping: filters
                    label: "Writer's profile label tags:"
                    value: h2
                    #visible_if: (controlled in module code)
                    type: select
                    values: *tags
                
                show_featured_image:
                    plugin_setting:
                        name: show_featured_image
                    grouping: filters
                    label: "Show an image..."
                    type: checkbox
                    format_onchange: true
                featured_image_source:
                    indent: 1
                    plugin_setting:
                        name: featured_image_source
                    grouping: filters
                    type: radios
                    values:
                        current_content_item_feature_image:
                            ord: 1
                            label: "Show content item's featured image"
                        menu_node_or_parent_feature_image:
                            ord: 2
                            label: "Show image of menu node or parent"
                    value: current_content_item_feature_image
                    visible_if: lib.value('show_featured_image')
                sticky_image_label_html_tag:
                    indent: 1
                    plugin_setting:
                        name: sticky_image_label_html_tag
                    grouping: filters
                    label: "Featured image label tags:"
                    value: h2
                    #visible_if: (controlled in module code)
                    type: select
                    values: *tags
                    
                image_2_canvas:
                    plugin_setting:
                        name: image_2_canvas
                    grouping: filters
                    label: "Image canvas:"
                    type: select
                    value: crop_and_zoom
                    values:
                        crop_and_zoom:
                            label: Crop and zoom
                        fixed_width:
                            label: Constrain by width
                        fixed_height:
                            label: Constrain by height
                        fixed_width_and_height:
                            label: Constrain by width and height
                        unlimited:
                            label: Unlimited size
                            ord: 99
                    format_onchange: true
                    indent: 1
                image_2_retina:
                    plugin_setting:
                        name: image_2_retina
                    grouping: filters
                    label: 'Treat as a retina image'
                    type: checkbox
                    value: ""
                    side_note: |
                        Display image at double density.
                    enable_microtemplates_in_properties: true
                    same_row: true
                image_2_width:
                    plugin_setting:
                        name: image_2_width
                    grouping: filters
                    label: 'Width:'
                    type: text
                    validation:
                        required_if_not_hidden: Please enter a width.
                        numeric: The width must be a number.
                    value: 600
                    maxlength: 5
                    style: 'width: 5em;'
                    post_field_html: '&nbsp;pixels'
                    indent: 2
                image_2_height:
                    plugin_setting:
                        name: image_2_height
                    grouping: filters
                    label: 'Height:'
                    type: text
                    validation:
                        required_if_not_hidden: Please enter a height.
                        numeric: The height must be a number.
                    value: 400
                    maxlength: 5
                    style: 'width: 5em;'
                    post_field_html: '&nbsp;pixels'
                    indent: 2
                fall_back_to_default_image:
                    indent: 1
                    plugin_setting:
                        name: fall_back_to_default_image
                    grouping: filters
                    label: "Show a fallback image, if content item/menu node doesn't have a featured image"
                    type: checkbox
                    format_onchange: true
                    visible_if: lib.value('show_featured_image')
                default_image_id:
                    indent: 2
                    plugin_setting:
                        name: default_image_id
                        foreign_key_to: file
                    grouping: filters
                    label: 'Fallback image:'
                    pick_items:
                        path: zenario__library/panels/image_library
                        min_path: zenario__library/panels/image_library
                        max_path: zenario__library/panels/image_library
                        target_path: zenario__library/panels/image_library
                        select_phrase: Select image...
                    value: ""
                    format_onchange: true
                    upload:
                        multi: false
                        accept: 'image/*'
                        extensions:
                            - .gif
                            - .jpg
                            - .jpeg
                            - .png
                        drag_and_drop: true
                        reorder_items: false
                    visible_if: lib.value('show_featured_image') && lib.value('fall_back_to_default_image')
                    validation:
                        required_if_not_hidden: Please select an image.
                image_2_webp:
                    indent: 1
                    plugin_setting:
                        name: image_2_webp
                    type: checkbox
                    grouping: filters
                    label: 'Show WebP-format image where browser supports it; recommended for smaller file size'
                    value: 1
                    visible_if: lib.value('show_featured_image')
                show_image_credit:
                    indent: 1
                    plugin_setting:
                        name: show_image_credit
                    type: checkbox
                    grouping: filters
                    label: "Show image credit"
                    visible_if: lib.value('show_featured_image')
        order_tab:
            label: Display order
            fields:
                reorder_info:
                    snippet:
                        html: 'You can choose the display order of meta data fields.'
                reorder_fields:
                    plugin_setting:
                        name: reorder_fields
                    label: 'Reorder fields:'
                    pick_items: 
                        multiple_select: true
                        nothing_selected_phrase: Select one or more meta data fields.
                        hide_select_button: true
                        hide_info_button: true
                        reorder_items: true
