Plugin Directory

Changeset 3128182


Ignore:
Timestamp:
07/30/2024 01:41:37 PM (20 months ago)
Author:
visidea
Message:

2.1.1

Location:
visidea
Files:
430 added
4 edited

Legend:

Unmodified
Added
Removed
  • visidea/trunk/admin/class-visidea-admin.php

    r3121622 r3128182  
    544544
    545545
     546function visidea_get_main_language() {
     547  $current_language = get_bloginfo('language');
     548  if (defined('ICL_LANGUAGE_CODE')) {
     549    $current_language = ICL_LANGUAGE_CODE;
     550  }
     551  if (function_exists('pll_current_language')) {
     552    $current_language = pll_current_language();
     553  }
     554  return substr($current_language, 0, 2);
     555}
     556
    546557function visidea_render_plugin_index_page() {
    547558  $options = get_option('visidea_plugin_options');
     
    552563    '&items_file='.urlencode(plugins_url('items_'.esc_attr($options['private_token']).'.csv', __FILE__)).
    553564    '&users_file='.urlencode(plugins_url('users_'.esc_attr($options['private_token']).'.csv', __FILE__)).
    554     '&interactions_file='.urlencode(plugins_url('interactions_'.esc_attr($options['private_token']).'.csv', __FILE__));
     565    '&interactions_file='.urlencode(plugins_url('interactions_'.esc_attr($options['private_token']).'.csv', __FILE__)).
     566    '&language='.visidea_get_main_language();
    555567  // var_dump($subscribe_url);
    556568?>
  • visidea/trunk/public/class-visidea-public.php

    r3116390 r3128182  
    9090    // Initialize visidea
    9191    wp_add_inline_script('visidea_plugin', "
    92       window.onload = function() {
    93           visidea('".esc_js($this->database)."','".esc_js($this->public_token)."');
    94       };
     92      document.addEventListener('DOMContentLoaded', function() {
     93        window.visidea('".esc_js($this->database)."','".esc_js($this->public_token)."');
     94      });
    9595    ");
    9696
  • visidea/trunk/readme.txt

    r3121622 r3128182  
    66Tested up to: 6.6
    77Requires PHP: 7.0
    8 Stable tag: 2.1.0
     8Stable tag: 2.1.1
    99License: GPLv3
    1010License URI: https://www.gnu.org/licenses/gpl-3.0.html
     
    9696
    9797== Changelog ==
     98
     99= 2.1.1 2024-07-30 =
     100Language initialization on init
    98101
    99102= 2.1.0 2024-07-18 =
  • visidea/trunk/visidea.php

    r3121622 r3128182  
    55 * Plugin URI: https://visidea.ai
    66 * Description: Visidea is the search and recommendations plugin for WooCommerce. Visidea improves UX and increases the revenues of your website.
    7  * Version: 2.1.0
     7 * Version: 2.1.1
    88 * Author: Inferendo
    99 * Author URI: https://visidea.ai
     
    2727 * Current Visidea version.
    2828 */
    29 define('VISIDEA_VERSION', '2.1.0');
     29define('VISIDEA_VERSION', '2.1.1');
    3030
    3131/**
Note: See TracChangeset for help on using the changeset viewer.