Changeset 2863220
- Timestamp:
- 02/10/2023 11:59:58 AM (3 years ago)
- Location:
- zooza/trunk
- Files:
-
- 4 edited
-
README.txt (modified) (2 diffs)
-
includes/class-zooza.php (modified) (1 diff)
-
public/class-zooza-public.php (modified) (2 diffs)
-
zooza.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
zooza/trunk/README.txt
r2807739 r2863220 5 5 Requires at least: 3.0.1 6 6 Tested up to: 6.0.2 7 Stable tag: 1.0. 17 Stable tag: 1.0.2 8 8 License: GPLv2 or later 9 9 License URI: http://www.gnu.org/licenses/gpl-2.0.html … … 35 35 = 1.0.1 = 36 36 * Initial version of the plugin 37 38 = 1.0.2 = 39 * Fixed loading of Calendar, Video and Checkout widgets -
zooza/trunk/includes/class-zooza.php
r2807739 r2863220 71 71 $this->version = ZOOZA_VERSION; 72 72 } else { 73 $this->version = '1.0. 0';73 $this->version = '1.0.2'; 74 74 } 75 75 $this->plugin_name = 'zooza'; -
zooza/trunk/public/class-zooza-public.php
r2807739 r2863220 97 97 private function get_code( $widget, $api_key ) { 98 98 99 return sprintf( "<script data-version='v1' data-widget-id='zooza' id='%s' type='text/javascript'> 99 $version = 'v1'; 100 101 $v2 = array( 'calendar', 'video', 'checkout' ); 102 if( in_array( $widget, $v2 ) ) { 103 $version = 'v2'; 104 } 105 106 return sprintf( "<script data-version='%s' data-widget-id='zooza' id='%s' type='text/javascript'> 100 107 ( function() { 101 108 function async_load(){ 102 109 var s = document.createElement('script'); s.type = 'text/javascript'; s.async = true; 103 var url = '//api.zooza.sk/widgets/ v1';110 var url = '//api.zooza.sk/widgets/%s'; 104 111 s.src = url + ( url.indexOf( '?' ) >= 0 ? '&' : '?' ) + 'ref=' + encodeURIComponent( window.location.href ) + '&type=%s'; 105 112 var embedder = document.getElementById( '%s' ); … … 112 119 } 113 120 } )(); 114 </script>", $ api_key, $widget, $api_key );121 </script>", $version, $api_key, $version, $widget, $api_key ); 115 122 116 123 } -
zooza/trunk/zooza.php
r2807739 r2863220 17 17 * Plugin URI: https://zooza.sk/wordpress-plugin 18 18 * Description: Plugin pre zákazníkov platformy Zooza pre jednoduché nastavenie registračných formulárov. 19 * Version: 1.0. 119 * Version: 1.0.2 20 20 * Author: Zooza 21 21 * Author URI: https://zooza.sk … … 36 36 * Rename this for your plugin and update it as you release new versions. 37 37 */ 38 define( 'ZOOZA_VERSION', '1.0. 1' );38 define( 'ZOOZA_VERSION', '1.0.2' ); 39 39 40 40 /**
Note: See TracChangeset
for help on using the changeset viewer.