Changeset 2941402
- Timestamp:
- 07/21/2023 07:02:08 PM (3 years ago)
- Location:
- ryen-wp/trunk
- Files:
-
- 3 edited
-
README.txt (modified) (2 diffs)
-
public/class-ryen-public.php (modified) (3 diffs)
-
ryen.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
ryen-wp/trunk/README.txt
r2908566 r2941402 6 6 License: GPL 2.0 7 7 License URI: http://www.gnu.org/licenses/gpl-2.0.txt 8 Stable Tag: 3.1.1 08 Stable Tag: 3.1.11 9 9 10 10 == Description == … … 26 26 27 27 == Changelog == 28 = 3.1.11 = 29 * Automatically forward UTMs for standard embed 30 28 31 = 3.1.10 = 29 32 * Fix custom apiHost variable name -
ryen-wp/trunk/public/class-ryen-public.php
r2908578 r2941402 34 34 { 35 35 echo '<script type="module"> 36 import Ryen from "https://cdn.jsdelivr.net/npm/@ryen/js@0. 0/dist/web.js";';36 import Ryen from "https://cdn.jsdelivr.net/npm/@ryen/js@0.1/dist/web.js";'; 37 37 if ( 38 38 get_option('excluded_pages') !== null && … … 78 78 public function add_ryen_container($attributes = []) 79 79 { 80 $lib_url = "https://cdn.jsdelivr.net/npm/@ryen/js@0. 0/dist/web.js";80 $lib_url = "https://cdn.jsdelivr.net/npm/@ryen/js@0.1/dist/web.js"; 81 81 $width = '100%'; 82 82 $height = '500px'; … … 103 103 import Ryen from "' . $lib_url . '" 104 104 105 Ryen.initStandard({ apiHost: "' . $api_host . '", id: "' . $id . '", ryen: "' . $ryen . '", prefilledVariables: { ...window.ryenWpUser } });</script>'; 105 const urlParams = new URLSearchParams(window.location.search); 106 const queryParams = Object.fromEntries(urlParams.entries()); 107 108 Ryen.initStandard({ apiHost: "' . $api_host . '", id: "' . $id . '", ryen: "' . $ryen . '", prefilledVariables: { ...window.ryenWpUser, ...queryParams } });</script>'; 106 109 107 110 return '<ryen-standard id="' . $id . '" style="width: ' . $width . '; height: ' . $height . ';"></ryen-standard>' . $bot_initializer; -
ryen-wp/trunk/ryen.php
r2908566 r2941402 4 4 * Plugin Name: Ryen WP 5 5 * Description: Convert more with conversational forms 6 * Version: 3.1.1 06 * Version: 3.1.11 7 7 * Author: Ryen 8 8 * Author URI: http://ryen.org/ … … 17 17 } 18 18 19 define('RYEN_VERSION', '3.1.1 0');19 define('RYEN_VERSION', '3.1.11'); 20 20 21 21 function activate_ryen()
Note: See TracChangeset
for help on using the changeset viewer.