# You must use a tab-size of 4 spaces to edit this file.
---
zenario__library:
    panels:
        mic_image_library:
            title: Multiple Image Container plugins image library
            no_items_message: There are no images in the MIC image library.
            
            db_items:
                table: |
                    [[DB_PREFIX]]files AS f
                id_column: f.id
                where_statement: |
                    WHERE f.`usage` = 'mic'
                    AND f.mime_type IN ('image/gif', 'image/png', 'image/jpeg', 'image/svg+xml')
            
            panel_type: multi_line_list_or_grid
            css_class: two_line_list_panels
            use_tall_rows: true
            
            grid_view_microtemplate: zenario_grid_view_image
            slidedown_view_microtemplate: zenario_slidedown_view_image

            default_sort_column: filename
            label_format_for_popouts: |
                [[filename]]
                [[[width]] × [[height]]]
            label_format_for_picked_items: |
                [[filename]]
                [[[width]] × [[height]]]
            
            item:
                name: Image
                names: Images
                css_class: media_image

            columns:
                id:
                    title: ID
                    searchable: true
                    db_column: f.id
                    show_by_default: false
                    align_right: true
                    width: xxsmall
                usage:
                    title: Usage
                    db_column: f.usage
                    hidden: true
                filename:
                    title: Filename
                    width: large
                    searchable: true
                    db_column: f.filename
                    always_show: true
                    get_tags_from_column: tags
                alt_tag:
                    title: Default alt-tag
                    searchable: true
                    db_column: f.alt_tag
                    show_by_default: true
                title:
                    db_column: f.title
                checksum:
                    db_column: f.checksum
                short_checksum:
                    title: Checksum (short)
                    searchable: true
                    ascii_only: true
                    db_column: f.short_checksum
                    width: small
                    show_by_default: false
                mime_type:
                    server_side_only: true
                    db_column: f.mime_type
                uploaded_datetime:
                    title: Uploaded on
                    format: datetime
                    width: medium
                    searchable: true
                    db_column: f.created_datetime
                    show_by_default: true
                size:
                    title: Size
                    format: filesize
                    db_column: f.size
                    always_show: true
                    width: small
                
                width:
                    db_column: f.width
                height:
                    db_column: f.height
                dimensions:
                    parent: size
                    always_show: true
                    title: Dimensions
                    microtemplate: |
                        <% if (m.item.width && m.item.height) { %>
                            <% if (m.item.mime_type == 'image/svg+xml') { %>
                                {{m.item.width|e}} × {{m.item.height|e}}px; scalable
                            <% } else { %>
                                {{m.item.width|e}} × {{m.item.height|e}}px
                            <% } %>
                        <% } else { %>
                            {{'No dimensions; scalable'}}
                        <% } %>
                
                privacy:
                    title: Privacy
                    db_column: f.privacy
                    always_show: true
                    width: small
                    format: enum
                    values:
                        auto: Will auto-detect
                        public: Public
                        private: Private
                    tooltip: |
                        <table>
                            <tr>
                                <th style="text-align: left;">Public (green border):</th>
                                <td style="vertical-align: text-top;">Accessible by any visitor via a friendly URL; may be indexed by search engines.</td>
                            </tr>
                            <tr>
                                <th style="text-align: left;">Private (blue border):</th>
                                <td style="vertical-align: text-top;">Contains an cryptic directory path to prevent unauthorised visitor access; may not be indexed by search engines.</td>
                            </tr>
                            <tr>
                                <th style="text-align: left;">Will auto-detect (orange border):</th>
                                <td style="vertical-align: text-top;">When next displayed to a visitor, will be set to Public if on a public content item, or Private if on a private content item.</td>
                            </tr>
                        </table>
                    
                in_use_anywhere:
                    format: yes_or_no
                    hidden: true
                
                where_used:
                    show_by_default: true
                    width: xlarge
                    title: Where it's used
                    html: true
                    empty_value: Not used
            collection_buttons:
                upload:
                    priv: _PRIV_MANAGE_MEDIA
                    label: Upload
                    css_class: zenario_create_a_new
                    hide_on_filter: true
                    upload:
                        fileExt: '*.gif;*.jpg;*.png;*.jpe;*.jpeg;*.pjpeg'
                        fileDesc: Images
                        multi: true
                        drag_and_drop: true
                        request:
                            upload: true
            item_buttons:
                edit:
                    label: Edit image properties
                    onclick: |
                        if (window.zenarioOQuickMode) {
                            zenario.reloadPageWhenOrganizerQuickCloses = true;
                        }
                        zenarioO.itemButtonClick('edit');
                    admin_box:
                        path: zenario_image
                actions_dropdown:
                    label: Actions
                    multiple_select: true
                    hide_when_children_are_not_visible: true
                view:
                    parent: actions_dropdown
                    label: View original
                    popout:
                        href: zenario/file.php
                        type: image
                download:
                    parent: actions_dropdown
                    hide_in_select_mode: true
                    label: Download original
                    ajax:
                        confirm:
                            download: true
                            message: 'Are you sure you wish to download the image "[[filename]]"?'
                            message_type: warning
                            button_message: Download
                            cancel_button_message: Cancel
                        request:
                            download_image: 1
                
                
                mark_as_public:
                    parent: actions_dropdown
                    priv: _PRIV_MANAGE_MEDIA
                    label: Make image public
                    multiple_select_label: Make images public
                    multiple_select: true
                    hide_in_select_mode: true
                    visible_if_for_any_selected_items: >
                        item.privacy != 'public'
                    onclick: |
                        if (window.zenarioOQuickMode) {
                            zenario.reloadPageWhenOrganizerQuickCloses = true;
                        }
                        zenarioO.itemButtonClick('mark_as_public');
                    ajax:
                        confirm:
                            message: |
                                Make the image "[[filename]]" public?
                                
                                Public images may be indexed by search engines.
                                
                            multiple_select_message: |
                                Make the selected images public?
                                
                                Public images may be indexed by search engines.

                            button_message: Make public
                            cancel_button_message: Cancel
                            message_type: warning
                        request:
                            mark_as_public: 1
                
                mark_as_private:
                    parent: actions_dropdown
                    priv: _PRIV_MANAGE_MEDIA
                    label: Make image private
                    multiple_select_label: Make images private
                    multiple_select: true
                    hide_in_select_mode: true
                    visible_if_for_any_selected_items: >
                        item.privacy != 'private'
                    onclick: |
                        if (window.zenarioOQuickMode) {
                            zenario.reloadPageWhenOrganizerQuickCloses = true;
                        }
                        zenarioO.itemButtonClick('mark_as_private');
                    ajax:
                        confirm:
                            message: >
                                Make the image "[[filename]]" private?
                                

                                Private images have a URL that is unguessable and keeps changing;
                                they will not be indexed by search engines.

                                
                                You should not link to an image you want to be private using a managed link (e.g. in a Banner or Multiple Image Container),
                                unless it's on a private content item.
                                
                            multiple_select_message: >
                                Are you sure you wish to make the selected images private?
                                
                                
                                Private images have a URL that is unguessable and keeps changing;
                                they will not be indexed by search engines.
                                
                                
                                You should not link to an image you want to be private using a managed link (e.g. in a Banner or Multiple Image Container),
                                unless it's on a private content item.
                            
                            button_message: Make private
                            cancel_button_message: Cancel
                            message_type: warning
                        request:
                            mark_as_private: 1
                        
                copy_to_image_library:
                    priv: _PRIV_MANAGE_MEDIA
                    label: Copy to image library
                    parent: actions_dropdown
                    hide_in_select_mode: true
                    multiple_select: true
                    ajax:
                        confirm:
                            message: >
                                Are you sure you wish to copy the selected image "[[filename]]" to the image library?
                            multiple_select_message: >
                                Are you sure you wish to copy the selected images to the image library?
                            button_message: Copy to image library
                            cancel_button_message: Cancel
                            message_type: warning
                        request:
                            copy_to_image_library: 1
                
                delete:
                    priv: _PRIV_MANAGE_MEDIA
                    label: Delete
                    multiple_select: true
                    hide_in_select_mode: true
                    visible_if_for_all_selected_items: >
                        !item.in_use_anywhere
                    ajax:
                        confirm:
                            message: 'Are you sure you wish to delete the unused image "[[filename]]"?'
                            multiple_select_message: Are you sure you wish to delete these unused images?
                            button_message: Delete
                            cancel_button_message: Cancel
                            message_type: warning
                        request:
                            delete: 1
                    
                delete_in_use:
                    priv: _PRIV_MANAGE_MEDIA
                    label: Delete
                    multiple_select: true
                    hide_in_select_mode: true
                    visible_if_for_any_selected_items: >
                        item.in_use_anywhere
                    ajax:
                        confirm:
                            html: true
                            button_message: Delete
                            cancel_button_message: Cancel
                            message_type: warning
                        request:
                            delete_in_use: 1
            
            hidden_nav:
                plugins_using_image:
                    link:
                        path: zenario__modules/panels/plugins
                        refiner: plugins_using_image
                nests_using_image:
                    link:
                        path: zenario__modules/panels/plugins
                        refiner: nests_using_image