# You must use a tab-size of 4 spaces to edit this file.
---
plugin_settings:
    tabs:
        this_css_tab:
            parent: advanced_dropdown
            label: CSS (this ~plugin~)
            fields:
                css_class:
                    label: 'CSS classes for this ~plugin~:'
                    same_row: true
                    type: text
                    maxlength: 100
                
                use_css_file:
                    type: checkbox
                    label: 'Enter CSS for this ~plugin~:'
                    format_onchange: true
                
                css_filename:
                    same_row: true
                    type: hidden
                
                css_source:
                    indent: 1
                    visible_if: |
                        zenarioAB.value('use_css_file')
                    full_width: true
                    type: code_editor
                    tall_as_possible: true
                    dont_trim: true
                    language: css
                    style: >
                        height: 30em;
                css_path:
                    indent: 1
                    visible_if: |
                        zenarioAB.value('use_css_file')
                    pre_field_html: 'File:&nbsp;'
                    snippet:
                        label: ''
                css_inheritance_note:
                    hidden: true
                    snippet: {}
                    note_below: ''
            
            show_errors_after_field: css_path
            notices:
                golive:
                    type: warning
                    message: |
                        Any changes you make to the CSS file will go live immediately upon saving.
        
        all_css_tab:
            parent: advanced_dropdown
            label: CSS (all ~plugin~s of this type)
            notices:
                css_permissions_problem:
                    show: false
                    type: warning
                    message: "Cannot edit the required CSS file in editable_css folder, it is not writeable by the web server."
            fields:
                css_class:
                    label: 'CSS class for all ~plugin~s of this type:'
                    snippet:
                        span_class: zenario_css_class_label
                        span: ''
                
                use_css_file:
                    type: checkbox
                    label: 'Use a custom CSS file for all ~plugin~s of this type'
                    redraw_onchange: true
                    
                css_filename:
                    same_row: true
                    type: hidden
                
                css_source:
                    indent: 1
                    visible_if: |
                        zenarioAB.value('use_css_file')
                    full_width: true
                    type: code_editor
                    tall_as_possible: true
                    dont_trim: true
                    language: css
                    style: >
                        height: 40em;
                css_path:
                    indent: 1
                    visible_if: |
                        zenarioAB.value('use_css_file')
                    pre_field_html: 'File:&nbsp;'
                    snippet:
                        label: ''
                css_inheritance_note:
                    hidden: true
                    snippet: {}
                    note_below: ''
        
        cant_determine_which_skin:
            parent: advanced_dropdown
            hidden: true
            label: CSS
            fields: {}
            notices:
                cant_determine_which_skin:
                    show: true
                    type: information
                    message: >
                        Zenario can't determine the CSS that this plugin will use from Organizer
                        because this site uses more than one skin.
                        Open these settings from the front end to see the CSS options.
        
        framework_tab:
            parent: advanced_dropdown
            label: Framework
            fields:
                desc:
                    snippet:
                        label: Frameworks determine the visitor-facing output. They contain HTML and Twig code (simple server-side executable code). They are only editable on the file system.
                framework:
                    label: 'Framework:'
                    type: select
                    format_onchange: true
                    side_note: "Select framework to view file contents in the box below."
                framework_path:
                    indent: 1
                    snippet:
                        label: ''
                custom_framework_info:
                    indent: 1
                    snippet:
                        html: "This is a custom framework and may not have compatibility with the plugin's settings."
                framework_source:
                    indent: 1
                    full_width: true
                    type: code_editor
                    tall_as_possible: true
                    dont_trim: true
                    readonly: true
                    style: >
                        height: 30em;
                no_frameworks_message:
                    hidden: true
                    snippet:
                        html: |
                            <label>
                                No frameworks are available.
                                This is because this plugin's module has no <code>frameworks/</code> directory,
                                or the <code>frameworks/</code> directory has no framework files inside it.
                                Developers: if this plugin/mode uses frameworks, you can create a directory and file
                                inside it called <code>frameworks/[framework-name]/framework.twig.html</code>.
                            </label>
                
    save_and_continue_button_message: 'Save & Continue'
    
    confirm:
        show: No
        message: |
            You are editing a content item that's published.
            
            Zenario will make a version in draft form for you to work on privately. Visitors won't see any changes until the new version is published.
        button_message: Create a draft
        cancel_button_message: Cancel
        message_type: warning
