|
| 1 | +<?xml version="1.0"?> |
| 2 | +<!-- |
| 3 | +/** |
| 4 | + * WaPoNe |
| 5 | + * |
| 6 | + * @category WaPoNe |
| 7 | + * @package WaPoNe_CookieNotification |
| 8 | + * @copyright Copyright (c) 2017 WaPoNe (http://www.fantetti.net) |
| 9 | + * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0) |
| 10 | + */ |
| 11 | +--> |
| 12 | +<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" |
| 13 | + xsi:noNamespaceSchemaLocation="urn:magento:module:Magento_Config:etc/system_file.xsd"> |
| 14 | + <system> |
| 15 | + <section id="cookienotification" translate="label" type="text" sortOrder="10" showInDefault="1" showInWebsite="1" showInStore="1"> |
| 16 | + <label>Cookie Notification</label> |
| 17 | + <tab>wapone</tab> |
| 18 | + <resource>WaPoNe_CookieNotification::config_cookienotification</resource> |
| 19 | + <group id="functional" translate="label" type="text" sortOrder="1" showInDefault="1" showInWebsite="1" showInStore="1"> |
| 20 | + <label>Functional Settings</label> |
| 21 | + <field id="activation" translate="label comment" type="select" sortOrder="1" showInDefault="1" showInWebsite="1" showInStore="1"> |
| 22 | + <label>Enable Module</label> |
| 23 | + <source_model>Magento\Config\Model\Config\Source\Yesno</source_model> |
| 24 | + <comment>Enable / disable module</comment> |
| 25 | + </field> |
| 26 | + <field id="lifetime" translate="label comment" type="text" sortOrder="2" showInDefault="1" showInWebsite="1" showInStore="1"> |
| 27 | + <label>Cookie Lifetime</label> |
| 28 | + <validate>validate-number</validate> |
| 29 | + <comment>Default value is 3600</comment> |
| 30 | + </field> |
| 31 | + <field id="path" translate="label" type="text" sortOrder="3" showInDefault="1" showInWebsite="1" showInStore="1"> |
| 32 | + <label>Cookie Path</label> |
| 33 | + </field> |
| 34 | + <field id="domain" translate="label" type="text" sortOrder="4" showInDefault="1" showInWebsite="1" showInStore="1"> |
| 35 | + <label>Cookie Domain</label> |
| 36 | + </field> |
| 37 | + </group> |
| 38 | + <group id="design" translate="label" type="text" sortOrder="2" showInDefault="1" showInWebsite="1" showInStore="1"> |
| 39 | + <label>Design Settings</label> |
| 40 | + <field id="position" translate="label comment" type="radios" sortOrder="1" showInDefault="1" showInWebsite="1" showInStore="1"> |
| 41 | + <label>Message Position</label> |
| 42 | + <source_model>WaPoNe\CookieNotification\Model\Config\Backend\Position</source_model> |
| 43 | + <comment>Where the cookie message should appear</comment> |
| 44 | + </field> |
| 45 | + <field id="message" translate="label" type="textarea" sortOrder="2" showInDefault="1" showInWebsite="1" showInStore="1"> |
| 46 | + <label>Message</label> |
| 47 | + </field> |
| 48 | + <field id="message_text_color" translate="label comment" type="text" sortOrder="3" showInDefault="1" showInWebsite="1" showInStore="1"> |
| 49 | + <label>Message Text Color</label> |
| 50 | + <validate>validate-exadecimal-color-length validate-alphanum</validate> |
| 51 | + <comment>Exadecimal value, without #: ex. FFFFFF</comment> |
| 52 | + </field> |
| 53 | + <field id="message_background_color" translate="label comment" type="text" sortOrder="4" showInDefault="1" showInWebsite="1" showInStore="1"> |
| 54 | + <label>Message Background Color</label> |
| 55 | + <validate>validate-exadecimal-color-length validate-alphanum</validate> |
| 56 | + <comment>Exadecimal value, without #: ex. FFFFFF</comment> |
| 57 | + </field> |
| 58 | + <field id="btn_more_text" translate="label" type="text" sortOrder="5" showInDefault="1" showInWebsite="1" showInStore="1"> |
| 59 | + <label>Cookie More Button Text</label> |
| 60 | + </field> |
| 61 | + <field id="btn_more_text_color" translate="label comment" type="text" sortOrder="6" showInDefault="1" showInWebsite="1" showInStore="1"> |
| 62 | + <label>Cookie More Button Text Color</label> |
| 63 | + <validate>validate-exadecimal-color-length validate-alphanum</validate> |
| 64 | + <comment>Exadecimal value, without #: ex. FFFFFF</comment> |
| 65 | + </field> |
| 66 | + <field id="btn_more_background_color" translate="label comment" type="text" sortOrder="7" showInDefault="1" showInWebsite="1" showInStore="1"> |
| 67 | + <label>Cookie More Button Background Color</label> |
| 68 | + <validate>validate-exadecimal-color-length validate-alphanum</validate> |
| 69 | + <comment>Exadecimal value, without #: ex. FFFFFF</comment> |
| 70 | + </field> |
| 71 | + <field id="btn_more_link" translate="label" type="select" sortOrder="8" showInDefault="1" showInWebsite="1" showInStore="1"> |
| 72 | + <label>Cookie More Button Link</label> |
| 73 | + <source_model>WaPoNe\CookieNotification\Model\Config\Backend\CMSPageList</source_model> |
| 74 | + </field> |
| 75 | + <field id="btn_more_link_destination" translate="label comment" type="select" sortOrder="8" showInDefault="1" showInWebsite="1" showInStore="1"> |
| 76 | + <label>Cookie More Button Link Destination</label> |
| 77 | + <source_model>WaPoNe\CookieNotification\Model\Config\Backend\LinkDestination</source_model> |
| 78 | + <validate>validate-select</validate> |
| 79 | + <comment> |
| 80 | + <![CDATA[<br /> |
| 81 | + <strong>Same Frame</strong>: Opens the window in the same frame, it means existing window itself.<br /> |
| 82 | + <strong>New Window</strong>: Opens a new window and show the related data. |
| 83 | + ]]> |
| 84 | + </comment> |
| 85 | + </field> |
| 86 | + <field id="btn_allow_text" translate="label" type="text" sortOrder="9" showInDefault="1" showInWebsite="1" showInStore="1"> |
| 87 | + <label>Cookie Allow Button Text</label> |
| 88 | + </field> |
| 89 | + <field id="btn_allow_text_color" translate="label comment" type="text" sortOrder="10" showInDefault="1" showInWebsite="1" showInStore="1"> |
| 90 | + <label>Cookie Allow Button Text Color</label> |
| 91 | + <validate>validate-exadecimal-color-length validate-alphanum</validate> |
| 92 | + <comment>Exadecimal value, without #: ex. FFFFFF</comment> |
| 93 | + </field> |
| 94 | + <field id="btn_allow_background_color" translate="label comment" type="text" sortOrder="11" showInDefault="1" showInWebsite="1" showInStore="1"> |
| 95 | + <label>Cookie Allow Button Background Color</label> |
| 96 | + <validate>validate-exadecimal-color-length validate-alphanum</validate> |
| 97 | + <comment>Exadecimal value, without #: ex. FFFFFF</comment> |
| 98 | + </field> |
| 99 | + </group> |
| 100 | + </section> |
| 101 | + </system> |
| 102 | +</config> |
0 commit comments