-
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
⚡ (wordpress) Add the lib_version attribute to wp admin panel
Closes
- Loading branch information
1 parent
6594c56
commit f550870
Showing
8 changed files
with
45 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,13 @@ | ||
{ | ||
"name": "@typebot.io/wordpress", | ||
"version": "3.5.0", | ||
"version": "3.6.0", | ||
"main": "index.js", | ||
"repository": "https://github.com/baptisteArno/typebot.io", | ||
"author": "baptisteArno", | ||
"license": "AGPL-3.0-or-later", | ||
"scripts": { | ||
"deploy": "pnpm copy && pnpm commit", | ||
"copy": "svn copy ./trunk ./tags/3.5.0", | ||
"commit": "svn ci -m 'Add lib_version attr in shortcode'" | ||
"copy": "svn copy ./trunk ./tags/3.6.0", | ||
"commit": "svn ci -m 'Add lib_version attr in admin panel'" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -40,7 +40,8 @@ public function add_head_code() | |
|
||
function typebot_script() | ||
{ | ||
echo '<script type="module">import Typebot from "https://cdn.jsdelivr.net/npm/@typebot.io/[email protected]/dist/web.js";'; | ||
$lib_version = get_option('lib_version') !== null && get_option('lib_version') !== '' ? get_option('lib_version') : '0.2'; | ||
echo '<script type="module">import Typebot from "https://cdn.jsdelivr.net/npm/@typebot.io/js@'.$lib_version.'/dist/web.js";'; | ||
if ( | ||
get_option('excluded_pages') !== null && | ||
get_option('excluded_pages') !== '' | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters