# You must use a tab-size of 4 spaces to edit this file.
---
toolbars:
    create:
        ord: 20
        priv: _PRIV_EDIT_DRAFT
        label: New...
        page_mode: preview
        toolbar_tab_grouping: create
        toolbar_microtemplate: zenario_toolbar_create_tab
    edit_disabled:
        ord: 30
        priv: _PRIV_EDIT_DRAFT
        label_when_grouping_inactive: Tools
        label: Edit
        tooltip: ''
        page_mode: edit_disabled
        toolbar_tab_grouping: edit
        toolbar_microtemplate: zenario_toolbar_edit_tab
    edit:
        ord: 31
        priv: _PRIV_EDIT_DRAFT
        label_when_grouping_inactive: Tools
        label: Edit
        tooltip: ''
        page_mode: edit
        toolbar_tab_grouping: edit
        toolbar_microtemplate: zenario_toolbar_edit_tab
    rollback:
        ord: 32
        priv: _PRIV_EDIT_DRAFT
        label_when_grouping_inactive: Tools
        label: Edit
        tooltip: You are viewing a previous version of this content item
        page_mode: rollback
        toolbar_tab_grouping: edit
        toolbar_microtemplate: zenario_toolbar_edit_tab
    restricted_editing:
        ord: 33
        priv: _PRIV_EDIT_DRAFT
        label: Restricted editing
        tooltip: Editing this content item is restricted
        page_mode: preview
        toolbar_tab_grouping: edit
        toolbar_microtemplate: zenario_toolbar_restricted_editing_tab
        
    menu1:
        ord: 50
        priv: _PRIV_EDIT_MENU_TEXT
        label: Edit menu
        css_class: zenario_at_menu_tab zenario_at_menu_tab_primary
        page_mode: menu
        toolbar_tab_grouping: edit
        toolbar_microtemplate: zenario_toolbar_menu_tab
        tooltip: ''
        visible_if: zenarioA.toolbar != 'preview' && zenarioA.toolbar != 'create'
    menu_secondary:
        ord: 51
        priv: _PRIV_EDIT_MENU_TEXT
        parent: menu1
        label: 
        css_class: zenario_at_menu_tab zenario_at_menu_tab_secondary
        page_mode: menu
        toolbar_tab_grouping: edit
        toolbar_microtemplate: zenario_toolbar_menu_tab
    layout:
        ord: 60
        priv: _PRIV_MANAGE_TEMPLATE_SLOT
        label: Edit layout
        page_mode: layout
        toolbar_tab_grouping: edit
        toolbar_microtemplate: zenario_toolbar_layout_tab
        visible_if: zenarioA.toolbar != 'preview' && zenarioA.toolbar != 'create'
    preview:
        ord: 70
        label: Browse
        page_mode: preview
        toolbar_tab_grouping: preview
        css_class: zenario_toolbar_tab_back
        toolbar_microtemplate: zenario_toolbar_preview_tab
sections:
    layout:
        appears_in_toolbars:
            layout: true
        buttons:
            id_and_name:
                hidden: true
                label: 
            usage:
                hidden: true
                label:
            
            edit_css:
                priv: _PRIV_EDIT_CSS
                label: CSS
            edit_skin:
                priv: _PRIV_EDIT_CSS
                label: Edit skin
                parent: edit_css
                #admin_box: 
                #    key:
                #        skinId: 0
                #    path: zenario_skin_editor
                onclick: |
                    zenarioSE.open();
            body_classes:
                appears_in_toolbars:
                    layout: true
                parent: edit_css
                label: CSS classes that appear on the <body> tag
                popout:
                    href: zenario/admin/help/help.php?topic=body_classes
                    #width: 100%
                    #height: 100%
                    #maxWidth: 100%
                    #maxHeight: 100%
                    #initialWidth: 100%
                    #initialHeight: 100%
                    iframe: true
                    fixed: true
                    transition: none
                    css_class: zenario_help_window
            
            edit_grid:
                hide_when_children_are_not_visible: true
                label: Edit with Gridmaker
            edit_body_slots:
                parent: edit_grid
                priv: _PRIV_EDIT_TEMPLATE
                label: Edit layout
                popout:
                    href: zenario/admin/grid_maker/grid_maker.php?loadTemplateFile=1
                    width: 100%
                    height: 100%
                    maxWidth: 100%
                    maxHeight: 100%
                    initialWidth: 100%
                    initialHeight: 100%
                    iframe: true
                    escKey: false
                    fixed: true
                    transition: none
                    css_class: zenario_grid_maker
            edit_head_slots:
                parent: edit_grid
                priv: _PRIV_EDIT_SITEWIDE
                label: Edit site-wide header
                popout:
                    href: zenario/admin/grid_maker/grid_maker.php?edit_head_slots=1
                    width: 100%
                    height: 100%
                    maxWidth: 100%
                    maxHeight: 100%
                    initialWidth: 100%
                    initialHeight: 100%
                    iframe: true
                    escKey: false
                    transition: none
                    css_class: zenario_grid_maker
            edit_foot_slots:
                parent: edit_grid
                priv: _PRIV_EDIT_SITEWIDE
                label: Edit site-wide footer
                popout:
                    href: zenario/admin/grid_maker/grid_maker.php?edit_foot_slots=1
                    width: 100%
                    height: 100%
                    maxWidth: 100%
                    maxHeight: 100%
                    initialWidth: 100%
                    initialHeight: 100%
                    iframe: true
                    escKey: false
                    transition: none
                    css_class: zenario_grid_maker
            settings:
                label: Layout settings
                admin_box:
                    path: zenario_layout

            skq:
                label: Organize layouts
                organizer_quick:
                    path: 
                    target_path: zenario__layouts/panels/layouts
                    min_path: zenario__layouts/panels/layouts
                    max_path: false
                    disallow_refiners_looping_on_min_path: false
                    reload_admin_toolbar: true
    
    slot_controls:
        buttons:
            head_foot_dropdown:
                label: HTML/JS
                hide_when_children_are_not_visible: false
            item_head:
                parent: head_foot_dropdown
                priv: _PRIV_MANAGE_ITEM_SLOT
                visible_if: |
                    zenarioA.checkSpecificPermsOnThisPage()
                appears_in_toolbars:
                    edit: true
                label: HTML/JS in <head>
                admin_box:
                    path: zenario_head_foot_slot
                    key:
                        mode: head
                        level: item
            item_foot:
                parent: head_foot_dropdown
                priv: _PRIV_MANAGE_ITEM_SLOT
                visible_if: |
                    zenarioA.checkSpecificPermsOnThisPage()
                appears_in_toolbars:
                    edit: true
                label: HTML/JS before </body>
                admin_box:
                    path: zenario_head_foot_slot
                    key:
                        mode: foot
                        level: item
            layout_head:
                parent: head_foot_dropdown
                appears_in_toolbars:
                    layout: true
                admin_box:
                    path: zenario_head_foot_slot
                    key:
                        mode: head
                        level: layout
            layout_foot:
                parent: head_foot_dropdown
                appears_in_toolbars:
                    layout: true
                admin_box:
                    path: zenario_head_foot_slot
                    key:
                        mode: foot
                        level: layout
            global:
                parent: head_foot_dropdown
                appears_in_toolbars:
                    layout: true
                label: Site-wide <head> and <body>
                admin_box:
                    path: site_settings
                    key:
                        id: head_and_foot
                        
            slot_control_dropdown:
                css_class: zenario_at_slot_control_dropdown
                label: Slots
                hide_when_children_are_not_visible: true
    
    status_button:
        buttons:
            status_button:
                css_class: zenario_at_status_button
                label: 
                tooltip: 
            publish:
                appears_in_toolbars: &publish_appears_in_toolbars
                    preview: true
                    edit_disabled: true
                    edit: true
                    rollback: true
                    restricted_editing: true
                priv: _PRIV_PUBLISH_CONTENT_ITEM
                visible_if: |
                    zenarioA.checkSpecificPermsOnThisPage()
                label: Publish
                css_class: zenario_at_big_action_button zenario_at_publish_button
                admin_box:
                    path: zenario_publish
            
            start_editing:
                # Warning: the presence of this button affects how the zenarioA.draft() function
                # works. If this button is missing then zenarioA.draft() won't attempt to make
                # a draft!
                appears_in_toolbars: *publish_appears_in_toolbars
                priv: _PRIV_EDIT_DRAFT
                visible_if: |
                    zenarioA.checkSpecificPermsOnThisPage()
                label: Start editing
                css_class: zenario_at_big_action_button zenario_at_action
                ajax:
                    confirm:
                        message: |
                            This content item is published. Zenario will make a draft version that can be edited.
                                                       
                            Proceed?
                        message__editing_published: |
                            You are editing a published content item.
                                
                            Zenario will make a draft version. This won't been seen by visitors until it is published.
                        button_message: Make a draft
                        button_message__just_view: Just view settings
                        cancel_button_message: Cancel
                        message_type: warning
                    request:
                        create_draft: 1
                        switch_to_edit_mode: 1
            cant_start_editing:
                appears_in_toolbars: *publish_appears_in_toolbars
                priv: _PRIV_EDIT_DRAFT
                visible_if: |
                    zenarioA.checkSpecificPermsOnThisPage()
                label: "Published; draft exists so editing not allowed"
                css_class: zenario_at_big_action_button zenario_at_cant_start_editing
            
            republish:
                appears_in_toolbars: *publish_appears_in_toolbars
                priv: _PRIV_EDIT_DRAFT
                visible_if: |
                    zenarioA.checkSpecificPermsOnThisPage()
                label: Re-publish
                css_class: zenario_at_big_action_button zenario_at_action
                admin_box:
                    path: zenario_publish
            redraft:
                appears_in_toolbars: *publish_appears_in_toolbars
                priv: _PRIV_EDIT_DRAFT
                visible_if: |
                    zenarioA.checkSpecificPermsOnThisPage()
                label: Re-draft
                css_class: zenario_at_big_action_button zenario_at_action 
                tooltip: >
                    Re-draft this content item|This will create a new draft of
                    this content item, which will be available to visitors if
                    you publish it.
                ajax:
                    confirm:
                        message: >
                            Do you wish to re-draft this content item? This will create
                            a new draft of this content item, which will be available to
                            visitors if you publish it.
                        button_message: Re-draft
                        cancel_button_message: Cancel
                        message_type: question
                    request:
                        create_draft: 1
            delist:
                appears_in_toolbars: *publish_appears_in_toolbars
                priv: _PRIV_PUBLISH_CONTENT_ITEM
                visible_if: |
                    zenarioA.checkSpecificPermsOnThisPage()
                label: Make unlisted
                css_class: zenario_at_big_action_button zenario_at_action zenario_at_unlisted_action
                ajax:
                    confirm:
                        html: true
                        message: |
                            <p>Are you sure you want to make this content item unlisted?</p>
                            <p>Unlisted content items:</p>
                            <ul><li>
                                Are not shown in menus
                            </li><li>
                                Are not shown in content summary lists
                            </li><li>
                                Are not displayed in search plugins
                            </li><li>
                                Are not displayed in site-maps
                            </li><li>
                                Can still be reached by links from banners, WYSIWYG areas or Raw HTML snippets
                            </li></ul>
                        button_message: Make unlisted
                        cancel_button_message: Cancel
                        message_type: warning
                    request:
                        delist: 1
            relist:
                appears_in_toolbars: *publish_appears_in_toolbars
                priv: _PRIV_PUBLISH_CONTENT_ITEM
                visible_if: |
                    zenarioA.checkSpecificPermsOnThisPage()
                label: Make listed
                css_class: zenario_at_big_action_button zenario_at_action zenario_at_listed_action
                ajax:
                    confirm:
                        html: true
                        message: |
                            <p>Are you sure you want to make this content item listed?</p>
                            <p>When listed, the content item will appear in any menu/content summary list/search plugins as normal.</p>
                        button_message: Make listed
                        cancel_button_message: Cancel
                        message_type: warning
                    request:
                        relist: 1
            hide_content:
                appears_in_toolbars: *publish_appears_in_toolbars
                priv: _PRIV_PUBLISH_CONTENT_ITEM
                visible_if: |
                    zenarioA.checkSpecificPermsOnThisPage()
                label: Hide
                css_class: zenario_at_big_action_button zenario_at_action zenario_at_hide_action
                admin_box:
                    path: zenario_hide
            delete_draft:
                appears_in_toolbars: *publish_appears_in_toolbars
                priv: _PRIV_EDIT_DRAFT
                visible_if: |
                    zenarioA.checkSpecificPermsOnThisPage()
                label: Delete draft
                css_class: zenario_at_big_action_button zenario_at_action zenario_at_delete_action 
                ajax:
                    confirm:
                        message: |
                            Zenario will delete the draft version of this content item. Any edits on the draft will be lost.
                            
                            This will not affect the published version.
                            
                            Proceed?
                        button_message: Delete draft
                        cancel_button_message: Cancel
                        message_type: warning
                    request:
                        delete: 1
            delete_media_content_item:
                appears_in_toolbars: *publish_appears_in_toolbars
                priv: _PRIV_EDIT_DRAFT
                visible_if: |
                    zenarioA.checkSpecificPermsOnThisPage()
                label: Delete content item
                css_class: zenario_at_big_action_button zenario_at_action zenario_at_delete_action 
                admin_box:
                    path: zenario_delete_media_content_item
            trash_content:
                appears_in_toolbars: *publish_appears_in_toolbars
                priv: _PRIV_PUBLISH_CONTENT_ITEM
                visible_if: |
                    zenarioA.checkSpecificPermsOnThisPage()
                label: Trash
                css_class: zenario_at_big_action_button zenario_at_action zenario_at_delete_action 
                
                admin_box:
                    path: zenario_trash

meta_info:
    title: ''
    version: ''
