Changeset 3383866
- Timestamp:
- 10/24/2025 09:12:39 AM (5 months ago)
- Location:
- lw-all-in-one/trunk
- Files:
-
- 5 edited
-
includes/class-lw-all-in-one-activator.php (modified) (2 diffs)
-
includes/class-lw-all-in-one.php (modified) (2 diffs)
-
lw-all-in-one.php (modified) (2 diffs)
-
readme.md (modified) (2 diffs)
-
readme.txt (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
lw-all-in-one/trunk/includes/class-lw-all-in-one-activator.php
r3067524 r3383866 38 38 $messaggio_0 = $wim_old_options['messaggio_0']; 39 39 $messaggio_1 = $wim_old_options['messaggio_1']; 40 } 41 if (get_option('italy_cookie_choices')) { 42 $ck_activate = 'on'; 43 delete_option('italy_cookie_choices'); 40 44 } 41 45 // Check if LW Contact Form 7 Addon plugin is activated … … 213 217 deactivate_plugins('woocommerce-google-analytics-integration/woocommerce-google-analytics-integration.php'); 214 218 } 215 //if (is_plugin_active('italy-cookie-choices/italy-cookie-choices.php')) {216 //deactivate_plugins('italy-cookie-choices/italy-cookie-choices.php');217 //}219 if (is_plugin_active('italy-cookie-choices/italy-cookie-choices.php')) { 220 deactivate_plugins('italy-cookie-choices/italy-cookie-choices.php'); 221 } 218 222 if (is_plugin_active('wp-fastest-cache/wpFastestCache.php')) { 219 223 // Exclude from cache 'lwaio_*' cookies -
lw-all-in-one/trunk/includes/class-lw-all-in-one.php
r3067524 r3383866 215 215 $this->loader->add_action('admin_menu', $plugin_privacy_policy, 'lw_all_in_one_privacy_policy_admin_menu', 99); 216 216 217 //$this->loader->add_action('admin_init', $plugin_privacy_policy, 'lw_all_in_one_remove_italy_cookie_choices');217 $this->loader->add_action('admin_init', $plugin_privacy_policy, 'lw_all_in_one_remove_italy_cookie_choices'); 218 218 219 219 } … … 252 252 public static function lw_all_in_one_single_event_run($lw_all_in_one_version) { 253 253 254 if (version_compare($lw_all_in_one_version, '1.8.2') <= 0) { 255 // Update translation files 256 // If translation files do not exist under /wp-content/languages/plugins/, copy them from the plugin directory /languages/ 257 $translated_locales = array('es_ES', 'it_IT'); 258 foreach ($translated_locales as $locale) { 259 if (!file_exists(WP_LANG_DIR . '/plugins/lw_all_in_one-'.$locale.'.mo')) { 260 copy(dirname(LW_ALL_IN_ONE_PLUGIN_MAIN_FILE) . '/languages/lw_all_in_one-'.$locale.'.po', WP_LANG_DIR . '/plugins/lw_all_in_one-'.$locale.'.po'); 261 copy(dirname(LW_ALL_IN_ONE_PLUGIN_MAIN_FILE) . '/languages/lw_all_in_one-'.$locale.'.mo', WP_LANG_DIR . '/plugins/lw_all_in_one-'.$locale.'.mo'); 262 } 263 } 264 } 265 266 if (version_compare($lw_all_in_one_version, '1.8') <= 0) { 267 $options = get_option('lw_all_in_one'); 268 if (!isset($options['ck_activate'])) { 269 270 if (get_locale() == 'es_ES') { 271 $ck_fields['ck_page_slug'] = 'las-cookies-que-utilizamos'; 272 $ck_fields['heading_message'] = 'Este sitio web utiliza cookies'; 273 $ck_fields['gdpr_message'] = 'Utilizamos cookies para personalizar contenido y anuncios, para proporcionar funciones de redes sociales y para analizar nuestro tráfico. También compartimos información sobre su uso de nuestro sitio con nuestros socios de redes sociales, publicidad y análisis, que pueden combinarla con otra información que les haya proporcionado o que hayan recopilado a partir del uso de sus servicios.'; 274 $ck_fields['about_ck_message'] = 'Las cookies son pequeños archivos de texto que pueden ser utilizados por los sitios web para hacer que la experiencia del usuario sea más eficiente. La ley establece que podemos almacenar cookies en su dispositivo si son estrictamente necesarias para el funcionamiento de este sitio. Para todos los demás tipos de cookies necesitamos su permiso. Este sitio utiliza diferentes tipos de cookies. Algunas cookies son colocadas por servicios de terceros que aparecen en nuestras páginas. En cualquier momento puede cambiar o retirar su consentimiento de la Declaración de cookies en nuestro sitio web. Obtenga más información sobre quiénes somos, cómo puede contactarnos y cómo tratamos los datos personales en nuestra Política de privacidad. Especifique su ID de consentimiento y la fecha en que nos contactó con respecto a su consentimiento.'; 275 } elseif (get_locale() == 'it_IT') { 276 $ck_fields['ck_page_slug'] = 'cookie-policy'; 277 $ck_fields['heading_message'] = 'Questo sito web utilizza i cookie!'; 278 $ck_fields['gdpr_message'] = 'Utilizziamo i cookie per personalizzare contenuti ed annunci, per fornire funzionalità dei social media e per analizzare il nostro traffico. Condividiamo inoltre informazioni sul modo in cui utilizza il nostro sito con i nostri partner che si occupano di analisi dei dati web, pubblicità e social media, i quali potrebbero combinarle con altre informazioni che ha fornito loro o che hanno raccolto dal suo utilizzo dei loro servizi.'; 279 $ck_fields['about_ck_message'] = "I cookie sono piccoli file di testo che possono essere utilizzati dai siti web per rendere più efficiente l’esperienza per l’utente. La legge afferma che possiamo memorizzare i cookie sul suo dispositivo se sono strettamente necessari per il funzionamento di questo sito. Per tutti gli altri tipi di cookie abbiamo bisogno del suo permesso. Questo sito utilizza diversi tipi di cookie. Alcuni cookie sono collocati da servizi di terzi che compaiono sulle nostre pagine. In qualsiasi momento è possibile modificare o revocare il proprio consenso dalla Dichiarazione dei cookie sul nostro sito Web. Scopra di più su chi siamo, come può contattarci e come trattiamo i dati personali nella nostra Informativa sulla privacy. Specifica l’ID del tuo consenso e la data di quando ci hai contattati per quanto riguarda il tuo consenso."; 280 } else { 281 $ck_fields['ck_page_slug'] = 'cookie-policy'; 282 $ck_fields['heading_message'] = 'This website uses cookies!'; 283 $ck_fields['gdpr_message'] = 'We use cookies to personalize content and ads, to provide social media features and to analyze our traffic. We also share information about how you use our site with our analytics, advertising and social media partners, who may combine it with other information that you have provided to them or that they have collected from your use of their services.'; 284 $ck_fields['about_ck_message'] = "Cookies are small text files that can be used by websites to make the user experience more efficient. The law states that we can store cookies on your device if they are strictly necessary for the operation of this site. For all other types of cookies we need your permission. This site uses different types of cookies. Some cookies are placed by third-party services that appear on our pages. You can change or withdraw your consent at any time from the Cookie Declaration on our website. Find out more about who we are, how you can contact us and how we process personal data in our Privacy Policy. Specify your consent ID and the date you contacted us regarding your consent."; 285 } 286 $options['ck_activate'] = ''; 287 $options['ck_fields']['banner_position'] = 'bottom'; 288 $options['ck_fields']['ck_page_slug'] = $ck_fields['ck_page_slug']; 289 $options['ck_fields']['primary_color'] = '#18a300'; 290 $options['ck_fields']['secondary_color'] = '#333333'; 291 $options['ck_fields']['heading_message'] = $ck_fields['heading_message']; 292 $options['ck_fields']['gdpr_message'] = $ck_fields['gdpr_message']; 293 $options['ck_fields']['about_ck_message'] = $ck_fields['about_ck_message']; 254 if (version_compare($lw_all_in_one_version, '1.8.3') <= 0) { 255 if (get_option('italy_cookie_choices')) { 256 $options = get_option('lw_all_in_one'); 257 $options['ck_activate'] = 'on'; 294 258 update_option('lw_all_in_one', $options); 295 } 296 297 // Exclude from cache 'lwaio_*' cookies 298 update_option( 'WpFastestCacheExclude', json_encode([["prefix" => "contain", "content" => "lwaio_", "type" => "cookie"]])); 259 delete_option('italy_cookie_choices'); 260 } 299 261 } 300 262 -
lw-all-in-one/trunk/lw-all-in-one.php
r3067524 r3383866 10 10 * Plugin Name: LocalWeb All In One 11 11 * Description: LocalWeb All In One should be installed only on websites created by Local Web S.R.L, because it extends certain functionalities of the website which may send certain data to LocalWeb's servers. This is to make possible showing data on LocalWeb App. 12 * Version: 1.8. 212 * Version: 1.8.3 13 13 * Author: Local Web S.R.L 14 14 * Author URI: https://localweb.it/ … … 26 26 } 27 27 28 define('LW_ALL_IN_ONE_VERSION', '1.8. 2');28 define('LW_ALL_IN_ONE_VERSION', '1.8.3'); 29 29 define('LW_ALL_IN_ONE_PLUGIN', plugin_basename(__FILE__)); 30 30 define('LW_ALL_IN_ONE_PLUGIN_MAIN_FILE', __FILE__); -
lw-all-in-one/trunk/readme.md
r3070535 r3383866 3 3 Tags: localweb, local web, chat, wim, web instant messenger 4 4 Requires at least: 4.8.5 5 Tested up to: 6. 56 Stable tag: 1.8. 25 Tested up to: 6.8.3 6 Stable tag: 1.8.3 7 7 Requires PHP: 5.6 8 8 License: GPLv2 or later 9 License URI: https://www.gnu.org/licenses/gpl-2.0.html9 License URI: <https://www.gnu.org/licenses/gpl-2.0.html> 10 10 11 11 LocalWeb All In One integrates services such as Web Instant Messenger, Google Analytics, and a GDPR-compliant Cookie Banner into your website. … … 40 40 5. Plugin options page. 41 41 42 == Upgrade Notice == 42 == Changelog == 43 44 = 1.8.3 = 45 46 * Activated cookie banner by default upon plugin activation. 43 47 44 48 = 1.8.2 = 45 Updated translation files46 49 47 == Changelog ==48 49 = 1.8.2 =50 50 * Updated translation files 51 51 52 52 = 1.8.0 = 53 53 54 * Added functionalities to display cookie banner consent. 54 55 55 56 = 1.7.4 = 57 56 58 * Added analytics tracking functionalities for WooCommerce data. 57 59 58 60 = 1.7.3 = 61 59 62 * Added new Spanish language. 60 63 61 64 = 1.7.2 = 65 62 66 * Added backward compatibility down to PHP 5.6. 63 67 64 68 = 1.7.1 = 69 65 70 * Fixed error with str_contains() in older versions of PHP. 66 71 67 72 = 1.7.0 = 73 68 74 * Added support for PHP v8.2. 69 75 70 76 = 1.6.9 = 77 71 78 * Removed Speed Tab Purify service and performed code cleanup. 72 79 73 80 = 1.6.8 = 81 74 82 * Added support for GA4 and Google Tag Manager. 75 83 76 84 = 1.6.7 = 85 77 86 * Updated to support Contact Form 7 events update. 78 87 79 88 = 1.6.6 = 89 80 90 * Removed forgotten test variable from `\admin\class-lw-all-in-one-admin.php` line 127. 81 91 82 92 = 1.6.5 = 93 83 94 * Updated to comply with WordPress Plugin Directory guidelines by implementing proper sanitizations. Added sanitizations for the host `localweb.it`. 84 95 85 96 = 1.6.4 = 97 86 98 * Updated the Google Analytics tracking code validation function. 87 99 88 100 = 1.6.3 = 101 89 102 * Adjusted the plugin to align with WordPress Plugin Directory guidelines. 90 103 91 104 = 1.6.2 = 105 92 106 * Introduced an option to purify CSS. 93 107 94 108 = 1.6.1 = 109 95 110 * Added an option to dequeue Contact Form 7 scripts/styles if the shortcode is not set. 96 111 97 112 = 1.6.0 = 113 98 114 * Improved WIM (Web Instant Messenger) API. 99 115 100 116 = 1.5.9 = 117 101 118 * Added an option to reset plugin options to their default settings. 102 119 103 120 = 1.5.8 = 121 104 122 * Fixed an error related to header/footer scripts. 105 123 106 124 = 1.5.7 = 125 107 126 * Added a filter to enable automatic plugin updates in the future. 108 127 109 128 = 1.5.6 = 129 110 130 * Updated privacy pages. 111 131 112 132 = 1.5.5 = 133 113 134 * Added an option to add custom analytics tracking events. 114 135 115 136 = 1.4.5 = 137 116 138 * Integrated WIM options to deactivate the service on LocalWeb's server. Also included other minor improvements. 117 139 118 140 = 1.4.3 = 141 119 142 * Added confirmation prompts for deleting saved records and implemented a function for checking data retention options. 120 143 121 144 = 1.4.1 = 145 122 146 * Resolved issues with plugin options during plugin upgrades. 123 147 124 148 = 1.4.0 = 149 125 150 * Introduced a new 'Plugin Options' tab with settings for data retention and data deletion on uninstall. 126 151 127 152 = 1.3.0 = 153 128 154 * Implemented WP_List_Table for managing saved GA events and CF7 (Contact Form 7) pages. 129 155 130 156 = 1.2.5 = 157 131 158 * Fixed the scheduled hook function for CF7 synchronization with the LocalWeb server. 132 159 133 160 = 1.2.4 = 161 134 162 * Optimized the overall code design patterns. 135 163 136 164 = 1.1.3 = 165 137 166 * Added an option to insert Packet Type and Id in LW AIO Options instead of using a hidden field in contact forms. 138 167 139 168 = 1.1.2 = 169 140 170 * Fixed the time format when saving CF7 form data to the database. 141 171 142 172 = 1.1.2 = 173 143 174 * Initial version online. -
lw-all-in-one/trunk/readme.txt
r3070535 r3383866 3 3 Tags: localweb, local web, chat, wim, web instant messenger 4 4 Requires at least: 4.8.5 5 Tested up to: 6. 56 Stable tag: 1.8. 25 Tested up to: 6.8.3 6 Stable tag: 1.8.3 7 7 Requires PHP: 5.6 8 8 License: GPLv2 or later … … 21 21 * **Contact Form 7 Integration:** Provides customization options for Contact Form 7 to optimize script and style usage based on your website’s needs. 22 22 23 > :warning:**Note:** This plugin is intended exclusively for [LocalWeb](https://localweb.it/ "Web Marketing Agency") clients and leverages services provided by LocalWeb.23 > **Note:** This plugin is intended exclusively for [LocalWeb](https://localweb.it/ "Web Marketing Agency") clients and leverages services provided by LocalWeb. 24 24 25 25 For more information, updates, and support, please visit [LocalWeb's official website](https://localweb.it/). … … 40 40 5. Plugin options page. 41 41 42 == Upgrade Notice==42 == Changelog == 43 43 44 = 1.8.2 = 45 Updated translation files 46 47 == Changelog == 44 = 1.8.3 = 45 * Activated cookie banner by default upon plugin activation. 48 46 49 47 = 1.8.2 =
Note: See TracChangeset
for help on using the changeset viewer.