# You must use a tab-size of 4 spaces to edit this file.
---
zenario_image:
    key:
        id: ''
        filename_on_load: ''
        mic_image: ''
        site_setting_image: ''
        slotName: ''
        instanceId: ''
        eggId: ''
    identifier:
        css_class: media_image
        value: ''
    tabs:
        details:
            edit_mode:
                enabled: true
                priv: _PRIV_MANAGE_MEDIA
            label: Image properties
            fields:
                image:
                    image: {}
                
                filename:
                    label: 'Filename when downloaded:'
                    type: text
                    maxlength: "255"
                
                size:
                    snippet:
                        html: ""
                
                where_used:
                    label: "Where it's used"
                    snippet:
                        html: ""
                
                privacy_public: &privacy
                    hidden: true
                    show_as_a_span: true
                    type: text
                    value: Public
                    note_below: ''
                privacy_private: *privacy
                    value: Private
                    note_below: |
                        This image may only be seen by logged-in extranet users who see it on a password-protected content item.
                        It will not be indexed by search engines.
                privacy_auto: *privacy
                    value: Will auto-detect
                    note_below: |
                        Auto-detect: The first time this image is displayed on a content item, its privacy will be set to 
                        match the privacy of that content item (either "public" or "private").
                        You can set the image's privacy manually using the Actions menu.
                missing_public_image: 
                    hidden: true
                    snippet: 
                        div_class: zenario_fbWarning
                        div: |
                            This image is missing from the directory public/images.
                            Please close this box and click "Repair public links".
                
                alt_tag:
                    label: 'Alt tag:'
                    type: text
                    side_note: |
                        Zenario sets this automatically when an image is first uploaded. Edit this for SEO.
                        If your site has multiple languages you can override this to translate the tag in the appropriate plugin.

                left_column:
                    type: grouping
                    name: left_column
                tags:
                    grouping: left_column
                    label: 'Organizer tags:'
                    pick_items:
                        path: zenario__content/panels/image_tags
                        multiple_select: true
                        nothing_selected_phrase: No tags yet
                        allow_typing_anything: true
                        select_phrase: Select tags...
                    cols: 4
                    note_below: |
                        Tags are for admin use only. To create a tag, just type the name of a new tag.

                image_credit:
                    label: 'Image credit:'
                    type: text
                    maxlength: "255"
                
                add_a_gallery_caption:
                    label: 'Add a gallery caption'
                    type: checkbox
                    redraw_onchange: true
                    side_note: "If you have an image gallery and want to show this image in the gallery, check here to add a caption."
                floating_box_title:
                    indent: 1
                    label: 'Caption:'
                    type: editor
                    editor_type: standard
                    dont_trim: true
                    style: |
                        height: 5em;
                    side_note: >
                        If image is displayed in an enlarged box, use this caption.
                    visible_if:
                        lib.value: add_a_gallery_caption

            show_errors_after_field: image
        
        link:
            edit_mode:
                enabled: true
                priv: _PRIV_MANAGE_MEDIA
            label: Link
            fields:
                descriptions_grouping:
                    type: grouping
                links_grouping:
                    type: grouping
                    snippet:
                        label: "How to link to this image"
                        label_class: subheading
                
                image_is_public_snippet:
                    grouping: descriptions_grouping
                    snippet:
                        html: |
                            <div class="zenario_fbInfo">This image is public: its URL will not change, and it may be indexed by search engines.</div>
                image_is_not_public_snippet:
                    grouping: descriptions_grouping
                    snippet:
                        html: |
                            <div class="zenario_fbInfo">This image is private: its URL will change on every page load and so is not indexible by search engines.</div>
                
                internal_webp_link:
                    grouping: links_grouping
                    label: "Internal link to optimised WebP ([[size]]), recommended when linking to it within this site:"
                    type: text
                    readonly: true
                    show_copy_text_button: true
                internal_original_image_link:
                    grouping: links_grouping
                    label: "Internal link to original image ([[size]]):"
                    type: text
                    readonly: true
                    show_copy_text_button: true
                html_embed_link:
                    grouping: links_grouping
                    label: "HTML for embedding in a Raw HTML Snippet plugin:"
                    type: text
                    readonly: true
                    show_copy_text_button: true
                external_webp_link:
                    grouping: links_grouping
                    label: "External link to optimised WebP ([[size]]):"
                    type: text
                    readonly: true
                    show_copy_text_button: true
                external_original_image_link:
                    grouping: links_grouping
                    label: "External link to original image ([[size]]):"
                    type: text
                    readonly: true
                    show_copy_text_button: true
        
        crops_here:
            hide_when_children_are_not_visible: true
        
        crops_elsewhere:
            hide_when_children_are_not_visible: true
        
        crop:
            edit_mode:
                enabled: true
                on: true
                priv: _PRIV_MANAGE_MEDIA
            label: Crop and zoom
            fields:
                description:
                    snippet:
                        p: |
                            Crop and zoom is available for this image size (defined in plugin settings). Adjust the visible area using the handles, for this aspect ratio.
                #This usage column is used for the cropping logic.
                #It is separate to the "Where used" column.
                usage:
                    snippet:
                        html: ''
                
                crop_tool:
                    image: {}
                    image_crop_tool:
                        grid: true
                        full: true
                        preserveAspectRatio: true
                
                aspect_ratio_width:
                    type: hidden
                    hidden: true
                
                aspect_ratio_height:
                    type: hidden
                    hidden: true
    
    confirm:
        show: false
        cancel_button_message: Cancel
        message_type: warning
        message: ''
        button_message: ''
