Plugin Directory

Changeset 3383866


Ignore:
Timestamp:
10/24/2025 09:12:39 AM (5 months ago)
Author:
sajdoko
Message:

Bump version to 1.8.3, activate cookie banner by default, and update readme files

Location:
lw-all-in-one/trunk
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • lw-all-in-one/trunk/includes/class-lw-all-in-one-activator.php

    r3067524 r3383866  
    3838      $messaggio_0 = $wim_old_options['messaggio_0'];
    3939      $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');
    4044    }
    4145    // Check if LW Contact Form 7 Addon plugin is activated
     
    213217      deactivate_plugins('woocommerce-google-analytics-integration/woocommerce-google-analytics-integration.php');
    214218    }
    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    }
    218222    if (is_plugin_active('wp-fastest-cache/wpFastestCache.php')) {
    219223      // Exclude from cache 'lwaio_*' cookies
  • lw-all-in-one/trunk/includes/class-lw-all-in-one.php

    r3067524 r3383866  
    215215    $this->loader->add_action('admin_menu', $plugin_privacy_policy, 'lw_all_in_one_privacy_policy_admin_menu', 99);
    216216
    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');
    218218
    219219  }
     
    252252  public static function lw_all_in_one_single_event_run($lw_all_in_one_version) {
    253253
    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';
    294258        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      }
    299261    }
    300262
  • lw-all-in-one/trunk/lw-all-in-one.php

    r3067524 r3383866  
    1010 * Plugin Name:       LocalWeb All In One
    1111 * 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.2
     12 * Version:           1.8.3
    1313 * Author:            Local Web S.R.L
    1414 * Author URI:        https://localweb.it/
     
    2626}
    2727
    28 define('LW_ALL_IN_ONE_VERSION', '1.8.2');
     28define('LW_ALL_IN_ONE_VERSION', '1.8.3');
    2929define('LW_ALL_IN_ONE_PLUGIN', plugin_basename(__FILE__));
    3030define('LW_ALL_IN_ONE_PLUGIN_MAIN_FILE', __FILE__);
  • lw-all-in-one/trunk/readme.md

    r3070535 r3383866  
    33Tags: localweb, local web, chat, wim, web instant messenger
    44Requires at least: 4.8.5
    5 Tested up to: 6.5
    6 Stable tag: 1.8.2
     5Tested up to: 6.8.3
     6Stable tag: 1.8.3
    77Requires PHP: 5.6
    88License: GPLv2 or later
    9 License URI: https://www.gnu.org/licenses/gpl-2.0.html
     9License URI: <https://www.gnu.org/licenses/gpl-2.0.html>
    1010
    1111LocalWeb All In One integrates services such as Web Instant Messenger, Google Analytics, and a GDPR-compliant Cookie Banner into your website.
     
    40405. Plugin options page.
    4141
    42 == Upgrade Notice ==
     42== Changelog ==
     43
     44= 1.8.3 =
     45
     46* Activated cookie banner by default upon plugin activation.
    4347
    4448= 1.8.2 =
    45 Updated translation files
    4649
    47 == Changelog ==
    48 
    49 = 1.8.2 =
    5050* Updated translation files
    5151
    5252= 1.8.0 =
     53
    5354* Added functionalities to display cookie banner consent.
    5455
    5556= 1.7.4 =
     57
    5658* Added analytics tracking functionalities for WooCommerce data.
    5759
    5860= 1.7.3 =
     61
    5962* Added new Spanish language.
    6063
    6164= 1.7.2 =
     65
    6266* Added backward compatibility down to PHP 5.6.
    6367
    6468= 1.7.1 =
     69
    6570* Fixed error with str_contains() in older versions of PHP.
    6671
    6772= 1.7.0 =
     73
    6874* Added support for PHP v8.2.
    6975
    7076= 1.6.9 =
     77
    7178* Removed Speed Tab Purify service and performed code cleanup.
    7279
    7380= 1.6.8 =
     81
    7482* Added support for GA4 and Google Tag Manager.
    7583
    7684= 1.6.7 =
     85
    7786* Updated to support Contact Form 7 events update.
    7887
    7988= 1.6.6 =
     89
    8090* Removed forgotten test variable from `\admin\class-lw-all-in-one-admin.php` line 127.
    8191
    8292= 1.6.5 =
     93
    8394* Updated to comply with WordPress Plugin Directory guidelines by implementing proper sanitizations. Added sanitizations for the host `localweb.it`.
    8495
    8596= 1.6.4 =
     97
    8698* Updated the Google Analytics tracking code validation function.
    8799
    88100= 1.6.3 =
     101
    89102* Adjusted the plugin to align with WordPress Plugin Directory guidelines.
    90103
    91104= 1.6.2 =
     105
    92106* Introduced an option to purify CSS.
    93107
    94108= 1.6.1 =
     109
    95110* Added an option to dequeue Contact Form 7 scripts/styles if the shortcode is not set.
    96111
    97112= 1.6.0 =
     113
    98114* Improved WIM (Web Instant Messenger) API.
    99115
    100116= 1.5.9 =
     117
    101118* Added an option to reset plugin options to their default settings.
    102119
    103120= 1.5.8 =
     121
    104122* Fixed an error related to header/footer scripts.
    105123
    106124= 1.5.7 =
     125
    107126* Added a filter to enable automatic plugin updates in the future.
    108127
    109128= 1.5.6 =
     129
    110130* Updated privacy pages.
    111131
    112132= 1.5.5 =
     133
    113134* Added an option to add custom analytics tracking events.
    114135
    115136= 1.4.5 =
     137
    116138* Integrated WIM options to deactivate the service on LocalWeb's server. Also included other minor improvements.
    117139
    118140= 1.4.3 =
     141
    119142* Added confirmation prompts for deleting saved records and implemented a function for checking data retention options.
    120143
    121144= 1.4.1 =
     145
    122146* Resolved issues with plugin options during plugin upgrades.
    123147
    124148= 1.4.0 =
     149
    125150* Introduced a new 'Plugin Options' tab with settings for data retention and data deletion on uninstall.
    126151
    127152= 1.3.0 =
     153
    128154* Implemented WP_List_Table for managing saved GA events and CF7 (Contact Form 7) pages.
    129155
    130156= 1.2.5 =
     157
    131158* Fixed the scheduled hook function for CF7 synchronization with the LocalWeb server.
    132159
    133160= 1.2.4 =
     161
    134162* Optimized the overall code design patterns.
    135163
    136164= 1.1.3 =
     165
    137166* Added an option to insert Packet Type and Id in LW AIO Options instead of using a hidden field in contact forms.
    138167
    139168= 1.1.2 =
     169
    140170* Fixed the time format when saving CF7 form data to the database.
    141171
    142172= 1.1.2 =
     173
    143174* Initial version online.
  • lw-all-in-one/trunk/readme.txt

    r3070535 r3383866  
    33Tags: localweb, local web, chat, wim, web instant messenger
    44Requires at least: 4.8.5
    5 Tested up to: 6.5
    6 Stable tag: 1.8.2
     5Tested up to: 6.8.3
     6Stable tag: 1.8.3
    77Requires PHP: 5.6
    88License: GPLv2 or later
     
    2121* **Contact Form 7 Integration:** Provides customization options for Contact Form 7 to optimize script and style usage based on your website’s needs.
    2222
    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.
    2424
    2525For more information, updates, and support, please visit [LocalWeb's official website](https://localweb.it/).
     
    40405. Plugin options page.
    4141
    42 == Upgrade Notice ==
     42== Changelog ==
    4343
    44 = 1.8.2 =
    45 Updated translation files
    46 
    47 == Changelog ==
     44= 1.8.3 =
     45* Activated cookie banner by default upon plugin activation.
    4846
    4947= 1.8.2 =
Note: See TracChangeset for help on using the changeset viewer.