# You must use a tab-size of 4 spaces to edit this file.
---
zenario__content:
    panels:
        background_images:
            view_ mode: grid
            key:
                usage: background_image
            enable_close_up_view: Yes
            title: Background images
            no_items_message: There are no existing background images.
            grid_view_microtemplate: zenario_grid_view_image
            slidedown_view_microtemplate: zenario_slidedown_view_image
            db_items:
                table: '[[DB_PREFIX]]files AS f'
                where_statement: |
                    WHERE f.`usage` = 'background_image'
                      AND f.mime_type IN ('image/gif', 'image/png', 'image/jpeg', 'image/svg+xml')
                id_column: f.id
            columns:
                id:
                    db_column: f.id
                filename:
                    title: Filename
                    searchable: Yes
                    db_column: f.filename
                    show_by_default: Yes
                checksum:
                    db_column: f.checksum
                mime_type:
                    server_side_only: Yes
                    db_column: f.mime_type
                size:
                    title: Size
                    format: filesize
                    db_column: f.size
                    show_by_default: Yes
                    align_right: Yes
                    width: xsmall
                width:
                    title: Width
                    searchable: Yes
                    db_column: f.width
                    show_by_default: Yes
                    align_right: Yes
                    width: xsmall
                height:
                    title: Height
                    searchable: Yes
                    db_column: f.height
                    show_by_default: Yes
                    align_right: Yes
                    width: xsmall
                #usage_content:
                #    title: Usage (content items)
                #    db_column: |
                #        (
                #            SELECT COUNT(DISTINCT )
                #            FROM [[DB_PREFIX]]content_item_versions
                #            WHERE ...
                #        )
                #    show_by_default: Yes
                #    align_right: Yes
                #    width: xsmall
                #usage_layouts:
                #    title: Usage (layouts)
                #    db_column: |
                #        (
                #            SELECT COUNT(*)
                #            FROM [[DB_PREFIX]]layouts
                #            WHERE ...
                #        )
                #    show_by_default: Yes
                #    align_right: Yes
                #    width: xsmall
            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
            #collection_buttons:
            #    upload:
            #        priv: _PRIV_MANAGE_MEDIA
            #        label: Upload
            #        css_class: zenario_create_a_new
            #        hide_on_filter: true
            #        hide_in_select_mode: Yes
            #        upload:
            #            fileExt: '*.gif;*.jpg;*.png;*.jpe;*.jpeg;*.pjpeg'
            #            fileDesc: Images
            #            multi: Yes
            #            drag_and_drop: Yes
            #            request:
            #                upload: Yes
            inline_buttons:
                view:
                    css_class: inspect
                    tooltip: View image
                    popout:
                        href: zenario/file.php
                        options:
                            type: image