__('Yes', 'an-cookie-consent'), 'no' => __('No', 'an-cookie-consent'), ); $no_yes = array ( 'no' => __('No', 'an-cookie-consent'), 'yes' => __('Yes', 'an-cookie-consent'), ); $cookie_consent_regulations_type = array( 'opt-out' => __('Opt-out', 'an-cookie-consent'), 'opt-in' => __('Opt-in', 'an-cookie-consent'), ); $cookie_consent_policy_page = array('default' => __('Default', 'linker-dynamic-posts')); $pages = get_pages(); foreach ( $pages as $page ) { $cookie_consent_policy_page[$page->ID] = $page->post_title; } if ($an_core->license_type() == 'basic') { eis_tab_option( array( 'interface_id' => 'an_settings', 'tab_id' => 'cookie_consent', 'input_id' => 'cookie_consent_scanner', 'input_type' => 'note', 'label' => __('Page scanner', 'an-cookie-consent'), 'note' => __('This feature is available in the PRO version only.', 'an-cookie-consent'), )); } eis_tab_option( array( 'interface_id' => 'an_settings', 'tab_id' => 'cookie_consent', 'input_id' => 'cookie_consent_regulations', 'input_type' => 'select', 'label' => __('Cookie regulations type', 'an-cookie-consent'), 'note' => __('Opt-out – Cookies set by default; user can be informed and given the option to refuse', 'an-cookie-consent') . '
' . __('Opt-in – Requires active user consent before setting non-essential cookies', 'an-cookie-consent'), 'input_select_options' => $cookie_consent_regulations_type, 'default' => 'opt_out', )); eis_tab_option( array( 'interface_id' => 'an_settings', 'tab_id' => 'cookie_consent', 'input_id' => 'manage_preferences_content_title', 'input_type' => 'text', 'label' => __('Manage Preferences Title', 'an-cookie-consent'), 'default' => __('Privacy Preferences', 'an-cookie-consent'), )); eis_tab_option( array( 'interface_id' => 'an_settings', 'tab_id' => 'cookie_consent', 'input_id' => 'manage_preferences_content_body', 'input_type' => 'textarea', 'label' => __('Manage Preferences Message', 'an-cookie-consent'), 'default' => __('When you visit our website, we may store or retrieve information in your browser, mostly in the form of cookies. This information may relate to you, your preferences, or your device and is used primarily to ensure the site functions as intended and to enhance your browsing experience. While this data usually does not directly identify you, it can help us provide a more personalized web experience.', 'an-cookie-consent'), )); eis_tab_option( array( 'interface_id' => 'an_settings', 'tab_id' => 'cookie_consent', 'input_id' => 'manage_preferences_necessary_title', 'input_type' => 'text', 'label' => __('Necessary Cookies Title', 'an-cookie-consent'), 'default' => __('Necessary Cookies', 'an-cookie-consent'), )); eis_tab_option( array( 'interface_id' => 'an_settings', 'tab_id' => 'cookie_consent', 'input_id' => 'manage_preferences_necessary_text', 'input_type' => 'text', 'label' => __('Necessary Cookies Text', 'an-cookie-consent'), 'default' => __('These cookies are essential for the website to function properly and cannot be disabled', 'an-cookie-consent'), )); eis_tab_option( array( 'interface_id' => 'an_settings', 'tab_id' => 'cookie_consent', 'input_id' => 'manage_preferences_functional_title', 'input_type' => 'text', 'label' => __('Functional Cookies Title', 'an-cookie-consent'), 'default' => __('Functional Cookies', 'an-cookie-consent'), )); eis_tab_option( array( 'interface_id' => 'an_settings', 'tab_id' => 'cookie_consent', 'input_id' => 'manage_preferences_functional_text', 'input_type' => 'text', 'label' => __('Functional Cookies Text', 'an-cookie-consent'), 'default' => __('These cookies enable enhanced functionality and personalization, such as remembering your preferences.', 'an-cookie-consent'), )); eis_tab_option( array( 'interface_id' => 'an_settings', 'tab_id' => 'cookie_consent', 'input_id' => 'manage_preferences_analytics_title', 'input_type' => 'text', 'label' => __('Analytics & Performance Cookies Title', 'an-cookie-consent'), 'default' => __('Analytics & Performance Cookies', 'an-cookie-consent'), )); eis_tab_option( array( 'interface_id' => 'an_settings', 'tab_id' => 'cookie_consent', 'input_id' => 'manage_preferences_analytics_text', 'input_type' => 'text', 'label' => __('Analytics & Performance Cookies Text', 'an-cookie-consent'), 'default' => __('These cookies help us understand how visitors interact with our website by collecting and reporting information anonymously.', 'an-cookie-consent'), )); eis_tab_option( array( 'interface_id' => 'an_settings', 'tab_id' => 'cookie_consent', 'input_id' => 'manage_preferences_marketing_title', 'input_type' => 'text', 'label' => __('Advertising & Targeting Cookies Title', 'an-cookie-consent'), 'default' => __('Advertising & Targeting Cookies', 'an-cookie-consent'), )); eis_tab_option( array( 'interface_id' => 'an_settings', 'tab_id' => 'cookie_consent', 'input_id' => 'manage_preferences_marketing_text', 'input_type' => 'text', 'label' => __('Advertising & Targeting Cookies Text', 'an-cookie-consent'), 'default' => __('These cookies are used to deliver relevant advertisements and measure the effectiveness of our marketing campaigns.', 'an-cookie-consent'), )); eis_tab_option( array( 'interface_id' => 'an_settings', 'tab_id' => 'cookie_consent', 'input_id' => 'manage_preferences_accept_cookies_button_text', 'input_type' => 'text', 'label' => __('Accept cookies button text', 'an-cookie-consent'), 'default' => __('Accept All', 'an-cookie-consent'), // 'multilingual' => true, )); eis_tab_option( array( 'interface_id' => 'an_settings', 'tab_id' => 'cookie_consent', 'input_id' => 'manage_preferences_reject_cookies_button_text', 'input_type' => 'text', 'label' => __('Reject cookies button text', 'an-cookie-consent'), 'default' => __('Reject All', 'an-cookie-consent'), // 'multilingual' => true, )); eis_tab_option( array( 'interface_id' => 'an_settings', 'tab_id' => 'cookie_consent', 'input_id' => 'manage_preferences_save_cookies_button_text', 'input_type' => 'text', 'label' => __('Save Preferences button text', 'an-cookie-consent'), 'default' => __('Save Preferences', 'an-cookie-consent'), // 'multilingual' => true, )); // NOTIFICATIONS // general $cookie_consent_content_builder_type = $an_cookie_consent->cookie_consent_content_builder_type(); eis_tab_option( array( 'interface_id' => 'a_notifications', 'tab_id' => 'general', 'input_id' => 'cookie_consent_content_builder_type', 'input_type' => 'select', 'label' => __('Cookie message builder', 'an-cookie-consent'), 'input_select_options' => $cookie_consent_content_builder_type, 'parent_name' => 'type', 'show_on_value' => 'cookie-consent', 'default' => 'default', )); eis_tab_option( array( 'interface_id' => 'a_notifications', 'tab_id' => 'general', 'input_id' => 'cookie_consent_content_title', 'input_type' => 'text', 'label' => __('Cookie title', 'an-cookie-consent'), 'parent_name' => 'cookie_consent_content_builder_type', 'show_on_value' => 'default', 'default' => __('We Use Cookies to Improve Your Experience', 'an-cookie-consent'), // 'multilingual' => true, )); eis_tab_option( array( 'interface_id' => 'a_notifications', 'tab_id' => 'general', 'input_id' => 'cookie_consent_content_body', 'input_type' => 'editor', 'label' => __('Cookie message', 'an-cookie-consent'), 'parent_name' => 'cookie_consent_content_builder_type', 'show_on_value' => 'default', 'default' => __('This website uses cookies to ensure it works properly, enhance your experience, and analyze traffic. By continuing, you agree to the use of all cookies. You can also choose to allow only necessary cookies or manage your preferences. More details in ', 'an-cookie-consent') . '[cookie_policy_page_link]', // 'multilingual' => true, )); eis_tab_option( array( 'interface_id' => 'a_notifications', 'tab_id' => 'general', 'input_id' => 'an_accept_cookies_button_text', 'input_type' => 'text', 'label' => __('Accept cookies button text', 'an-cookie-consent'), 'parent_name' => 'cookie_consent_content_builder_type', 'show_on_value' => 'default', 'default' => __('Accept All', 'an-cookie-consent'), // 'multilingual' => true, )); eis_tab_option( array( 'interface_id' => 'a_notifications', 'tab_id' => 'general', 'input_id' => 'an_reject_cookies_button_text', 'input_type' => 'text', 'label' => __('Reject cookies button text', 'an-cookie-consent'), 'parent_name' => 'cookie_consent_content_builder_type', 'show_on_value' => 'default', 'default' => __('Reject All', 'an-cookie-consent'), // 'multilingual' => true, )); eis_tab_option( array( 'interface_id' => 'a_notifications', 'tab_id' => 'general', 'input_id' => 'an_manage_cookies_button_text', 'input_type' => 'text', 'label' => __('Manage preferences button text', 'an-cookie-consent'), 'parent_name' => 'cookie_consent_content_builder_type', 'show_on_value' => 'default', 'default' => __('Manage Preferences', 'an-cookie-consent'), // 'multilingual' => true, )); eis_tab_option( array( 'interface_id' => 'a_notifications', 'tab_id' => 'general', 'input_id' => 'an_reset_cookie_massege', 'label' => __('Reset cookie message', 'an-cookie-consent'), 'note' => '', 'parent_name' => 'cookie_consent_content_builder_type', 'show_on_value' => 'editor', )); eis_tab_option( array( 'interface_id' => 'a_notifications', 'tab_id' => 'general', 'input_id' => 'cookie_consent_policy_page', 'input_type' => 'select', 'label' => __('Privacy Policy Page / Cookie Policy', 'an-cookie-consent'), 'input_select_options' => $cookie_consent_policy_page, 'parent_name' => 'type', 'show_on_value' => 'cookie-consent', 'default' => 'default', )); eis_tab_option( array( 'interface_id' => 'a_notifications', 'tab_id' => 'general', 'input_id' => 'an_manage_cookies_settings', 'input_type' => 'select', 'label' => __('Manage preferences settings', 'an-cookie-consent'), 'input_select_options' => array( 'default'=> __('Default', 'an-cookie-consent'), 'custome'=> __('Custome', 'an-cookie-consent') ), 'parent_name' => 'type', 'show_on_value' => 'cookie-consent', 'default' => 'default', )); eis_tab_option( array( 'interface_id' => 'a_notifications', 'tab_id' => 'general', 'input_id' => 'manage_preferences_content_title', 'input_type' => 'text', 'label' => __('Manage Preferences Title', 'an-cookie-consent'), 'parent_name' => 'an_manage_cookies_settings', 'show_on_value' => 'custome', 'default' => __('Privacy Preferences', 'an-cookie-consent'), )); eis_tab_option( array( 'interface_id' => 'a_notifications', 'tab_id' => 'general', 'input_id' => 'manage_preferences_content_body', 'input_type' => 'textarea', 'label' => __('Manage Preferences Message', 'an-cookie-consent'), 'parent_name' => 'an_manage_cookies_settings', 'show_on_value' => 'custome', 'default' => __('When you visit our website, we may store or retrieve information in your browser, mostly in the form of cookies. This information may relate to you, your preferences, or your device and is used primarily to ensure the site functions as intended and to enhance your browsing experience. While this data usually does not directly identify you, it can help us provide a more personalized web experience. More details in ', 'an-cookie-consent') . '[cookie_policy_page_link]', )); eis_tab_option( array( 'interface_id' => 'a_notifications', 'tab_id' => 'general', 'input_id' => 'manage_preferences_necessary_title', 'input_type' => 'text', 'label' => __('Necessary Cookies Title', 'an-cookie-consent'), 'parent_name' => 'an_manage_cookies_settings', 'show_on_value' => 'custome', 'default' => __('Necessary Cookies', 'an-cookie-consent'), )); eis_tab_option( array( 'interface_id' => 'a_notifications', 'tab_id' => 'general', 'input_id' => 'manage_preferences_necessary_text', 'input_type' => 'text', 'label' => __('Necessary Cookies Text', 'an-cookie-consent'), 'parent_name' => 'an_manage_cookies_settings', 'show_on_value' => 'custome', 'default' => __('These cookies are essential for the website to function properly and cannot be disabled', 'an-cookie-consent'), )); eis_tab_option( array( 'interface_id' => 'a_notifications', 'tab_id' => 'general', 'input_id' => 'manage_preferences_functional_title', 'input_type' => 'text', 'label' => __('Functional Cookies Title', 'an-cookie-consent'), 'parent_name' => 'an_manage_cookies_settings', 'show_on_value' => 'custome', 'default' => __('Functional Cookies', 'an-cookie-consent'), )); eis_tab_option( array( 'interface_id' => 'a_notifications', 'tab_id' => 'general', 'input_id' => 'manage_preferences_functional_text', 'input_type' => 'text', 'label' => __('Functional Cookies Text', 'an-cookie-consent'), 'parent_name' => 'an_manage_cookies_settings', 'show_on_value' => 'custome', 'default' => __('These cookies enable enhanced functionality and personalization, such as remembering your preferences.', 'an-cookie-consent'), )); eis_tab_option( array( 'interface_id' => 'a_notifications', 'tab_id' => 'general', 'input_id' => 'manage_preferences_analytics_title', 'input_type' => 'text', 'label' => __('Analytics & Performance Cookies Title', 'an-cookie-consent'), 'parent_name' => 'an_manage_cookies_settings', 'show_on_value' => 'custome', 'default' => __('Analytics & Performance Cookies', 'an-cookie-consent'), )); eis_tab_option( array( 'interface_id' => 'a_notifications', 'tab_id' => 'general', 'input_id' => 'manage_preferences_analytics_text', 'input_type' => 'text', 'label' => __('Analytics & Performance Cookies Text', 'an-cookie-consent'), 'parent_name' => 'an_manage_cookies_settings', 'show_on_value' => 'custome', 'default' => __('These cookies help us understand how visitors interact with our website by collecting and reporting information anonymously.', 'an-cookie-consent'), )); eis_tab_option( array( 'interface_id' => 'a_notifications', 'tab_id' => 'general', 'input_id' => 'manage_preferences_marketing_title', 'input_type' => 'text', 'label' => __('Advertising & Targeting Cookies Title', 'an-cookie-consent'), 'parent_name' => 'an_manage_cookies_settings', 'show_on_value' => 'custome', 'default' => __('Advertising & Targeting Cookies', 'an-cookie-consent'), )); eis_tab_option( array( 'interface_id' => 'a_notifications', 'tab_id' => 'general', 'input_id' => 'manage_preferences_marketing_text', 'input_type' => 'text', 'label' => __('Advertising & Targeting Cookies Text', 'an-cookie-consent'), 'parent_name' => 'an_manage_cookies_settings', 'show_on_value' => 'custome', 'default' => __('These cookies are used to deliver relevant advertisements and measure the effectiveness of our marketing campaigns.', 'an-cookie-consent'), )); eis_tab_option( array( 'interface_id' => 'a_notifications', 'tab_id' => 'general', 'input_id' => 'manage_preferences_accept_cookies_button_text', 'input_type' => 'text', 'label' => __('Accept cookies button text', 'an-cookie-consent'), 'parent_name' => 'an_manage_cookies_settings', 'show_on_value' => 'custome', 'default' => __('Accept All', 'an-cookie-consent'), )); eis_tab_option( array( 'interface_id' => 'a_notifications', 'tab_id' => 'general', 'input_id' => 'manage_preferences_reject_cookies_button_text', 'input_type' => 'text', 'label' => __('Reject cookies button text', 'an-cookie-consent'), 'parent_name' => 'an_manage_cookies_settings', 'show_on_value' => 'custome', 'default' => __('Reject All', 'an-cookie-consent'), )); eis_tab_option( array( 'interface_id' => 'a_notifications', 'tab_id' => 'general', 'input_id' => 'manage_preferences_save_cookies_button_text', 'input_type' => 'text', 'label' => __('Save Preferences button text', 'an-cookie-consent'), 'parent_name' => 'an_manage_cookies_settings', 'show_on_value' => 'custome', 'default' => __('Save Preferences', 'an-cookie-consent'), )); } add_action('add_eis_interface_options', 'an_cookie_consent_interface_options');