# You must use a tab-size of 4 spaces to edit this file.
---
plugin_settings:
    module_class_name: zenario_comments
    tabs:
        first_tab:
            label: Display
            fields:
                description:
                    ord: 0
                    full_width: true
                    snippet:
                        html: >
                            These settings control how visitors view and interact with
                            the comments on this Content Item.
                show_user_avatars:
                    plugin_setting:
                        name: show_user_avatars
                    label: 'Show user avatars'
                    type: checkbox
                    value: 1
                    format_onchange: true
                avatar_width:
                    plugin_setting:
                        name: avatar_width
                    label: 'Width:'
                    type: text
                    validation:
                        required_if_not_hidden: Please enter a width.
                        numeric: The width must be a number.
                    value: 120
                    maxlength: 5
                    style: 'width: 5em;'
                    post_field_html: '&nbsp;pixels'
                    indent: 1
                avatar_height:
                    plugin_setting:
                        name: avatar_height
                    label: 'Height:'
                    type: text
                    validation:
                        required_if_not_hidden: Please enter a Height.
                        numeric: The Height must be a number.
                    value: 120
                    maxlength: 5
                    style: 'width: 5em;'
                    post_field_html: '&nbsp;pixels'
                    indent: 1
                show_user_join_dates:
                    plugin_setting:
                        name: show_user_join_dates
                    label: 'Show User join dates'
                    type: checkbox
                    value: ""
                show_user_post_counts:
                    plugin_setting:
                        name: show_user_post_counts
                    label: 'Show User post counts'
                    type: checkbox
                    value: 1
                show_user_online_status:
                    plugin_setting:
                        name: show_user_online_status
                    label: 'Show User online status'
                    type: checkbox
                    value: ""
                    side_note: |
                        If a user has looked at a comments plugin or a forum plugin within the last 10 minutes,
                        they will be classified as &quot;online&quot;.
                        
                        As a saved copy of this page would quickly become inaccurate,
                        enabling this option will disable plugin and page caching.
                date_format:
                    plugin_setting:
                        name: date_format
                    label: 'Date format:'
                    type: select
                    value: _LONG
                    values:
                        _SHORT:
                            label: Short
                        _MEDIUM:
                            label: Medium
                        _LONG:
                            label: Long
        order:
            label: Order and Pagination
            fields:
                order:
                    plugin_setting:
                        name: order
                    label: 'Order comments by:'
                    type: select
                    value: OLDEST_FIRST
                    values:
                        MOST_RECENT_FIRST:
                            label: Most recent first
                        OLDEST_FIRST:
                            label: Oldest first
                page_size_posts:
                    plugin_setting:
                        name: page_size_posts
                    label: 'Number of comments per page:'
                    type: select
                    values:
                        5:
                            label: 5
                        10:
                            label: 10
                        12:
                            label: 12
                        15:
                            label: 15
                        20:
                            label: 20
                        50:
                            label: 50
                    value: 12
        posting:
            label: Editing
            fields:
                enable_images:
                    plugin_setting:
                        name: enable_images
                    label: 'Allow images in comments'
                    type: checkbox
                    value: 1
                    side_note: |
                        This is not retro-active.
                        If a comment contains an image and you uncheck this checkbox,
                        the image will not be removed until the comment is next edited and saved.
                enable_links:
                    plugin_setting:
                        name: enable_links
                    label: 'Allow links in comments'
                    type: checkbox
                    value: 1
                    side_note: |
                        This is not retro-active.
                        If a comment contains a link and you uncheck this checkbox,
                        the link will not be removed until the comment is next edited and saved.
                enable_reply_with_quote:
                    plugin_setting:
                        name: enable_reply_with_quote
                    label: 'Enable replying with quotes'
                    type: checkbox
                    value: 1
                allow_user_edit_own_post:
                    plugin_setting:
                        name: allow_user_edit_own_post
                    label: 'Allow extranet users to edit their own posts (for 1 hour of writing them)'
                    side_note: "Only allowed until moderator approves the post."
                    type: checkbox
                    value: 1
                allow_user_delete_own_post:
                    plugin_setting:
                        name: allow_user_delete_own_post
                    label: 'Allow extranet users to delete own posts'
                    type: checkbox
                    value: ""
                enable_posting_restrictions:
                    plugin_setting:
                        name: enable_posting_restrictions
                    label: 'Restrict comment writing by group'
                    type: checkbox
                    value: ""
                    side_note: |
                        Only members of the stated group are allowed to write comments.
                        Users in the moderation group, and administrators with the &quot;Moderate User Comments&quot; permission,
                        will always be able to write comments.
                    format_onchange: true
                restrict_posting_to_group:
                    plugin_setting:
                        name: restrict_posting_to_group
                    label: 'Group:'
                    type: select
                    #pick_items:
                    #    path: zenario__users/panels/groups
                    #    target_path: zenario__users/panels/groups
                    #    min_path: zenario__users/panels/groups
                    #    max_path: zenario__users/panels/groups
                    #    disallow_refiners_looping_on_min_path: true
                    #    one_to_one_choose_phrase: Choose group
                    #    select_phrase: Select group...
                    #    nothing_selected_phrase: No group selected
                    #    hide_remove_button: true
                    value: ""
                    validation:
                        required_if_not_hidden: Please select a group.
                    indent: 1
        moderation:
            label: Moderation
            fields:
                description_moderation:
                    full_width: true
                    snippet:
                        html: |
                            You can declare a group of extranet users to be moderators.
                            This will enable them to edit and delete other users' comments.
                enable_extranet_moderators:
                    plugin_setting:
                        name: enable_extranet_moderators
                    label: 'Declare a moderation group'
                    type: checkbox
                    value: ""
                    format_onchange: true
                    side_note: |
                        Administrators with the &quot;Moderate User Comments&quot; permission will always be able to moderate.
                moderators:
                    plugin_setting:
                        name: moderators
                    label: 'Moderation group:'
                    type: select
                    #pick_items:
                    #    path: zenario__users/panels/groups
                    #    target_path: zenario__users/panels/groups
                    #    min_path: zenario__users/panels/groups
                    #    max_path: zenario__users/panels/groups
                    #    disallow_refiners_looping_on_min_path: true
                    #    one_to_one_choose_phrase: Choose Group
                    #    select_phrase: Select Group...
                    #    nothing_selected_phrase: No Group Selected
                    #    hide_remove_button: true
                    validation:
                        required_if_not_hidden: Please select a group.
                    value: ""
                    indent: 1
                separator:
                    full_width: true
                    snippet:
                        hr: true
                description_reporting:
                    full_width: true
                    snippet:
                        html: >
                            You can enable reporting of abuse, and you can require that
                            comments are screened before they appear publicly.
                enable_report_a_post:
                    plugin_setting:
                        name: enable_report_a_post
                    label: 'Enable reporting of abuse'
                    type: checkbox
                    value: ""
                    format_onchange: true
                enable_anonymous_report_a_post:
                    plugin_setting:
                        name: enable_anonymous_report_a_post
                    label: 'Allow anonymous reporting'
                    type: checkbox
                    value: ""
                    side_note: If enabled, any visitor can report abuse.
                    indent: 1
                email_template_for_reports:
                    plugin_setting:
                        name: email_template_for_reports
                        foreign_key_to: email_template
                        dangling_cross_references: remove
                    label: 'Email template:'
                    pick_items:
                        path: zenario__email_template_manager/panels/email_templates
                        target_path: zenario__email_template_manager/panels/email_templates
                        min_path: zenario__email_template_manager/panels/email_templates
                        max_path: zenario__email_template_manager/panels/email_templates
                        disallow_refiners_looping_on_min_path: true
                        one_to_one_choose_phrase: Choose email template
                        select_phrase: select an email template...
                        nothing_selected_phrase: No email template selected
                        hide_remove_button: true
                    validation:
                        required_if_not_hidden: Please select an email template.
                    value: zenario_comments__comment_report
                comments_require_approval:
                    plugin_setting:
                        name: comments_require_approval
                    label: 'Screen comments'
                    type: checkbox
                    format_onchange: true
                    side_note: >
                        If enabled, comments must be approved by a moderator before
                        they go live.
                email_template_for_approve_requests:
                    plugin_setting:
                        name: email_template_for_approve_requests
                        foreign_key_to: email_template
                        dangling_cross_references: remove
                    label: 'Email template:'
                    pick_items:
                        path: zenario__email_template_manager/panels/email_templates
                        target_path: zenario__email_template_manager/panels/email_templates
                        min_path: zenario__email_template_manager/panels/email_templates
                        max_path: zenario__email_template_manager/panels/email_templates
                        disallow_refiners_looping_on_min_path: true
                        one_to_one_choose_phrase: Choose email template
                        select_phrase: select an email template...
                        nothing_selected_phrase: No email template selected
                        hide_remove_button: true
                    validation:
                        required_if_not_hidden: Please select an email template.
                    value: zenario_comments__comment_awaiting_approval
                email_address_for_reports:
                    plugin_setting:
                        name: email_address_for_reports
                        is_email_address: true
                    label: 'Email Address that reports will be sent to:'
                    type: text
                    maxlength: 255
                    value: ""
                    validation:
                        required_if_not_hidden: Please enter an email address.
                        emails: >
                            Please ensure all the email addresses you have entered are
                            valid.
                    side_note: Separate multiple addresses with commas.
        notification:
            label: Notification
            fields:
                description_notification:
                    full_width: true
                    snippet:
                        html: >
                            If set, the CMS will send an email notification whenever a
                            comment is added or edited. If comments are being screened,
                            the notification for added comments will be sent when the
                            comment is approved.
                send_notification_email:
                    plugin_setting:
                        name: send_notification_email
                    label: 'Send an email notification to an Administrator'
                    type: checkbox
                    value: ""
                    format_onchange: true
                notification_email_address:
                    indent: 1
                    plugin_setting:
                        name: notification_email_address
                        is_email_address: true
                    label: 'Email Address:'
                    type: text
                    maxlength: 255
                    value: ""
                    validation:
                        required_if_not_hidden: Please enter an email address.
                        emails: >
                            Please ensure all the email addresses you have entered are
                            valid.
                    side_note: Separate multiple addresses with commas.
                    visible_if: lib.value('send_notification_email')
                notification_email_template:
                    indent: 1
                    plugin_setting:
                        name: notification_email_template
                        foreign_key_to: email_template
                        dangling_cross_references: remove
                    label: 'Email template:'
                    pick_items:
                        path: zenario__email_template_manager/panels/email_templates
                        target_path: zenario__email_template_manager/panels/email_templates
                        min_path: zenario__email_template_manager/panels/email_templates
                        max_path: zenario__email_template_manager/panels/email_templates
                        disallow_refiners_looping_on_min_path: true
                        one_to_one_choose_phrase: Choose email template
                        select_phrase: select an email template...
                        nothing_selected_phrase: No email template selected
                        hide_remove_button: true
                    validation:
                        required_if_not_hidden: Please select an email template.
                    value: zenario_comments__to_admin_comment_notification_en
                    visible_if: lib.value('send_notification_email')
                separator:
                    full_width: true
                    snippet:
                        hr: true
                description_subs:
                    full_width: true
                    snippet:
                        html: This allows extranet users to sign up for notifications.
                enable_subs:
                    plugin_setting:
                        name: enable_subs
                    label: 'Enable subscription'
                    type: checkbox
                    value: ""
                    format_onchange: true
                comment_subs_email_template:
                    plugin_setting:
                        name: comment_subs_email_template
                        foreign_key_to: email_template
                        dangling_cross_references: remove
                    label: 'Email template:'
                    pick_items:
                        path: zenario__email_template_manager/panels/email_templates
                        target_path: zenario__email_template_manager/panels/email_templates
                        min_path: zenario__email_template_manager/panels/email_templates
                        max_path: zenario__email_template_manager/panels/email_templates
                        disallow_refiners_looping_on_min_path: true
                        one_to_one_choose_phrase: Choose email template
                        select_phrase: select an email template...
                        nothing_selected_phrase: No email template selected
                        hide_remove_button: true
                    validation:
                        required_if_not_hidden: Please select an email template.
                    value: zenario_comments__comment_subs_en
                    indent: 1
