@@ -36,7 +36,7 @@ function eu_cookie_compliance_help($route_name, RouteMatchInterface $route_match
$output.="<label>- </label>".t("there is also a 'display eu cookie compliance banner' permission that helps you show the banner to the roles you desire.");
$output.='<li>'.t('You may want to create a page that would explain how your site uses cookies. Alternatively, if you have a privacy policy, you can link the banner to that page (see next step).').'</li>';
$output.='<li>'.t('Go to the admin/config/system/eu-cookie-compliance page to configure and enable the banner.').'</li>';
$output.='<li>'.t('If you want to customize the banner background and text color, either type in the hex values or simply install http://drupal.org/project/jquery_colorpicker.').'</li>';
$output.='<li>'.t('If you want to customize the banner background and text color, either type in the hex values or simply install http://drupal.org/project/coloris.').'</li>';
$output.='<li>'.t('If you want to theme your banner override the themes in the template file.').'</li>';
$output.='<li>'.t('If you want to show the message in EU countries only, install the Smart IP module: http://drupal.org/project/smart_ip and enable the option on the admin page.').'</li></ol>';
$output.='<p><b>'.t('NOTICE: The module does not audit your cookies nor does it prevent cookies from being set.').'</b></p>';
@@ -722,8 +722,7 @@ function eu_cookie_compliance_form_alter(&$form, FormStateInterface $form_state,
$text_color_description=$this->t('Change the text color of the banner.');
$bg_color_description=$this->t('Change the background color of the banner.');
}
else{
$bg_color=$config->get('popup_bg_hex');
$text_color=$config->get('popup_text_hex');
$text_color_description=$this->t('Change the text color of the banner. Provide HEX value without the #.');
$bg_color_description=$this->t('Change the background color of the banner. Provide HEX value without the #.');
}
$form['appearance']['containing_element']=[
@@ -788,11 +791,12 @@ class EuCookieComplianceConfigForm extends ConfigFormBase {
'#description'=>$this->t('This may be useful if you want the banner to share the button style of your theme. Note that you will have to configure values like the banner width, text color and background color in your CSS file.'),
];
if($form_color_picker_type==='textfield'){
$form['appearance']['popup_text_hex']=[
'#type'=>$form_color_picker_type,
'#title'=>$this->t('Text color'),
'#default_value'=>$text_color,
'#description'=>$this->t('Change the textcolor of the banner. Provide HEX value without the #.'),
@@ -1232,10 +1268,11 @@ class EuCookieComplianceConfigForm extends ConfigFormBase {
$this->messenger()->addWarning($this->t('The module weight could not be set because the <code>config_readonly</code> module is enabled. To allow setting of module weight, please add <code>core.extension</code> to the <code>config_readonly</code> allowlist.'));