Changeset 3055631
- Timestamp:
- 03/20/2024 09:33:32 PM (2 years ago)
- Location:
- venixs/trunk
- Files:
-
- 3 edited
-
core/includes/checkout.php (modified) (1 diff)
-
readme.txt (modified) (1 diff)
-
resources/js/script.js (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
venixs/trunk/core/includes/checkout.php
r3054403 r3055631 21 21 22 22 if(empty($version) || $version == null) { $this->version = '1.0'; } else { $this->version = $version; } 23 23 24 24 add_action ( 'init', 'wp_idx_init' ); 25 25 } 26 26 27 27 public function wp_idx_init() { 28 29 // wp_enqueue_script( 'functionality-scripts', plugin_dir_url( __FILE__ ) . '../../core/script.js', array('jquery') );30 28 31 29 wp_enqueue_script( 32 30 'venixs-script-handle', 33 plugin_dir_url( __FILE__) . '../../resources/js/script.js',31 plugin_dir_url(__FILE__) . '../../resources/js/script.js', 34 32 array(), 35 33 'version', 36 34 true 37 35 ); 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 39 44 wp_localize_script( 40 ' script-handle',45 'venixs-script-handle', 41 46 '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 45 48 ); 46 49 -
venixs/trunk/readme.txt
r3054403 r3055631 1 === Venixs Verification===1 === Venixs === 2 2 Contributors: venixs, Os-prog 3 3 Tags: venixs, ai chat, support system, support chat 4 4 Requires at least: 3.1 5 5 Tested up to: 6.4.3 6 Stable tag: 1.0. 06 Stable tag: 1.0.1 7 7 License: GPLv2 or later 8 8 License URI: http://www.gnu.org/licenses/gpl-2.0.html -
venixs/trunk/resources/js/script.js
r3054403 r3055631 1 1 if (typeof window === 'object') { 2 if(venixsConfigScope && venixsConfigScope.signature) { 2 3 window.venixsVariables = { ... { sync: true, signature: venixsConfigScope.signature, localization: 'all' }}; 3 4 var o = document; … … 19 20 } 20 21 })() 22 } 21 23 }
Note: See TracChangeset
for help on using the changeset viewer.