Plugin Directory

Changeset 3055631


Ignore:
Timestamp:
03/20/2024 09:33:32 PM (2 years ago)
Author:
venixsin
Message:

V1.0.1

Location:
venixs/trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • venixs/trunk/core/includes/checkout.php

    r3054403 r3055631  
    2121       
    2222        if(empty($version) || $version == null) { $this->version = '1.0'; } else { $this->version = $version; }
    23 
     23       
    2424        add_action ( 'init', 'wp_idx_init' );
    2525    }
    2626
    2727    public function wp_idx_init() {
    28        
    29         // wp_enqueue_script( 'functionality-scripts', plugin_dir_url( __FILE__ ) . '../../core/script.js', array('jquery') );
    3028
    3129        wp_enqueue_script(
    3230            'venixs-script-handle',
    33             plugin_dir_url( __FILE__ ) . '../../resources/js/script.js',
     31            plugin_dir_url(__FILE__) . '../../resources/js/script.js',
    3432            array(),
    3533            'version',
    3634            true
    3735        );
    38    
     36
     37        $venixs_pub_key = esc_attr(get_option('venixs_pub_key'));
     38        $venixs_config_scope = array(
     39            'signature' => !empty($venixs_pub_key) ? $venixs_pub_key : '',
     40        );
     41       
     42        // wp_enqueue_script( 'functionality-scripts', plugin_dir_url( __FILE__ ) . '../../core/script.js', array('jquery') );
     43
    3944        wp_localize_script(
    40             'script-handle',
     45            'venixs-script-handle',
    4146            'venixsConfigScope',
    42             array(
    43                 'signature' => (!empty(esc_attr(get_option('venixs_pub_key')))) ? esc_attr(get_option('venixs_pub_key')) : '',
    44             )
     47            $venixs_config_scope
    4548        );
    4649       
  • venixs/trunk/readme.txt

    r3054403 r3055631  
    1 === Venixs Verification ===
     1=== Venixs ===
    22Contributors: venixs, Os-prog
    33Tags: venixs, ai chat, support system, support chat
    44Requires at least: 3.1
    55Tested up to: 6.4.3
    6 Stable tag: 1.0.0
     6Stable tag: 1.0.1
    77License: GPLv2 or later
    88License URI: http://www.gnu.org/licenses/gpl-2.0.html
  • venixs/trunk/resources/js/script.js

    r3054403 r3055631  
    11if (typeof window === 'object') {
     2  if(venixsConfigScope && venixsConfigScope.signature) {
    23    window.venixsVariables = { ... { sync: true, signature: venixsConfigScope.signature, localization: 'all' }};
    34    var o = document;
     
    1920      }
    2021    })()
     22  }
    2123}
Note: See TracChangeset for help on using the changeset viewer.