# You must use a tab-size of 4 spaces to edit this file.
---
site_settings:
    title: Editing API keys
    setting_group: api_keys
    tabs:
        google_maps:
            label: Google Maps
            edit_mode:
                enabled: true
                priv: _PRIV_EDIT_SITE_SETTING
            fields:
                description:
                    full_width: Yes
                    snippet:
                        html: This site can display a Google Map on a web page. To make it do so, please enter an API key in the box below.
                google_maps_api_key:
                    site_setting:
                        name: google_maps_api_key
                    label: 'Google Maps API key:'
                    type: text
                    note_below: You can obtain an API key <a href="https://developers.google.com/maps/documentation/javascript/get-api-key" target="_blank">here</a>. We recommend you restrict this on the Google interface by referrer, and include <b>[[cms_url]]</b> as an allowed domain.
                use_an_alternative_google_maps_api_key:
                    site_setting:
                        name: use_an_alternative_google_maps_api_key
                    label: 'Use a different API Key (for scheduled tasks or geocode)'
                    type: checkbox
                    redraw_onchange: true
                alternative_google_maps_api_key:
                    indent: 1
                    site_setting:
                        name: alternative_google_maps_api_key
                    label: 'Alternative API Key (for scheduled tasks or geocode):'
                    type: text
                    validation:
                        required_if_not_hidden: 'Please enter the alternative Google Maps API key.'
                    visible_if: zenarioAB.value('use_an_alternative_google_maps_api_key')
                    note_below: Scheduled tasks will use this API key instead of the first one. It appears that your server's public IP address is <b>[[server_IP_address]]</b>, you should add this IP address to the Google credentials panel. 
        google_custom_search:
            label: Google Programmable Search
            edit_mode:
                enabled: true
                priv: _PRIV_EDIT_SITE_SETTING
            fields:
                description:
                    full_width: Yes
                    snippet:
                        html: This site can display Google Programmable Search results on a web page. To make it do so, please enter an API key in the box below.
                google_custom_search_json_api_key:
                    site_setting:
                        name: google_custom_search_json_api_key
                    label: 'Google Programmable Search JSON API key:'
                    type: text
                    note_below: You can obtain an API key <a href="https://developers.google.com/custom-search/v1/overview" target="_blank">here</a>.
#         indexnow:
#             label: IndexNow
#             edit_mode:
#                 enabled: true
#                 priv: _PRIV_EDIT_SITE_SETTING
#             fields:
#                 description:
#                     full_width: Yes
#                     snippet:
#                         html: Zenario can instantly inform search engines (e.g. Bing) about the latest content changes. To enable this feature, you will need an API Key entered into the field below.
#                 enable_indexnow:
#                     site_setting:
#                         name: enable_indexnow
#                     type: checkbox
#                     label: Enable IndexNow
#                     redraw_onchange: true
#                 indexnow_api_key:
#                     indent: 1
#                     site_setting:
#                         name: indexnow_api_key
#                     label: 'IndexNow API key:'
#                     type: text
#                     visible_if: lib.value('enable_indexnow')
#                     validation:
#                         required_if_not_hidden: 'Please enter the IndexNow API key.'