Plugin Directory

Changeset 3336599


Ignore:
Timestamp:
07/30/2025 11:46:37 AM (8 months ago)
Author:
zooza
Message:

Update to version 1.1.6 from GitHub

Location:
zooza
Files:
10 edited
1 copied

Legend:

Unmodified
Added
Removed
  • zooza/tags/1.1.6/README.txt

    r3324080 r3336599  
    55Requires at least: 3.0.1
    66Tested up to: 6.5.0
    7 Stable tag: 1.1.5
     7Stable tag: 1.1.6
    88License: GPLv2 or later
    99License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    225225= 1.1.5 =
    226226* Script unloading
     227
     228= 1.1.6 =
     229* Asia Support
  • zooza/tags/1.1.6/admin/class-zooza-admin.php

    r3269581 r3336599  
    294294
    295295        $options = array(
    296             'https://api.zooza.app' => 'Europe',
    297             'https://uk.api.zooza.app'   => 'United Kingdom'
     296            'https://api.zooza.app'      => 'Europe',
     297            'https://uk.api.zooza.app'   => 'United Kingdom',
     298            'https://asia.api.zooza.app' => 'Asia',
    298299        );
    299300        ?>
  • zooza/tags/1.1.6/includes/class-zooza.php

    r3324080 r3336599  
    7171            $this->version = ZOOZA_VERSION;
    7272        } else {
    73             $this->version = '1.1.5';
     73            $this->version = '1.1.6';
    7474        }
    7575        $this->plugin_name = 'zooza';
  • zooza/tags/1.1.6/public/class-zooza-public.php

    r3324080 r3336599  
    114114        $api_url = get_option('zooza_api_url', 'https://api.zooza.app');
    115115
    116         return sprintf("<script data-embedded_by='zoozawp' data-version='%s' data-widget-id='zooza' id='%s' type='text/javascript'>
    117 ( function() {
    118 function async_load(){
    119     var s = document.createElement('script'); s.type = 'text/javascript'; s.async = true;
    120     var url = '%s/widgets/%s';
    121     s.src = url + '?ref=' + encodeURIComponent(window.location.href) + '&type=%s';
    122     var embedder = document.getElementById('%s');
    123     embedder.parentNode.insertBefore( s, embedder );
    124 }
    125 if ( window.attachEvent ) {
    126     window.attachEvent( 'onload', async_load );
    127 } else {
    128     window.addEventListener( 'load', async_load, false );
    129 }
    130 } )();
    131 </script>", $version, $api_key, $api_url, $version, $widget, $api_key);
     116        ob_start();
     117        ?>
     118        <script data-embedded_by='zoozawp' data-version="<?=esc_attr($version);?>" data-widget-id="zooza" id="<?=esc_attr($api_key);?>" type="text/javascript">
     119            (function() {
     120                function async_load(){
     121                    document.body.setAttribute('data-zooza-api-url', "<?=$api_url;?>");
     122                    var s = document.createElement('script'); s.type = 'text/javascript'; s.async = true;
     123                    s.src = document.body.getAttribute('data-zooza-api-url') +
     124                        '/widgets/<?php echo esc_attr($version); ?>/?type=<?=esc_attr($widget);?>&ref=' + encodeURIComponent(window.location.href);
     125                    var embedder = document.getElementById('<?=esc_attr($api_key);?>');
     126                    embedder.parentNode.insertBefore(s, embedder);
     127                }
     128                if (window.attachEvent) {
     129                    window.attachEvent('onload', async_load);
     130                } else {
     131                    window.addEventListener('load', async_load, false);
     132                }
     133            })();
     134        </script>
     135        <?php
     136        return ob_get_clean();
    132137
    133138    }
     
    243248            window.ZOOZA = {
    244249                multi_step_form: <?php echo $multistep; ?>,
    245 
    246250            };
    247251            document.zooza = {
     
    252256        </script>
    253257
    254         <script data-version="<?php echo esc_attr($version); ?>" data-widget-id="zooza" id="<?php echo esc_attr($widget_id); ?>" type="text/javascript">
     258        <script data-version="<?=esc_attr($version);?>" data-widget-id="zooza" id="<?=esc_attr($widget_id);?>" type="text/javascript">
    255259            (function() {
    256260                function async_load(){
    257                     document.body.setAttribute('data-zooza-api-url', "<?php echo$api_url;?>");
     261                    document.body.setAttribute('data-zooza-api-url', "<?=$api_url;?>");
    258262                    var s = document.createElement('script'); s.type = 'text/javascript'; s.async = true;
    259263                    s.src = document.body.getAttribute('data-zooza-api-url') +
    260                        '/widgets/<?php echo esc_attr($version); ?>/?type=<?php echo esc_attr($widget); ?>&ref=' + encodeURIComponent(window.location.href);
    261                     var embedder = document.getElementById('<?php echo esc_attr($widget_id); ?>');
     264                       '/widgets/<?php echo esc_attr($version); ?>/?type=<?=esc_attr($widget);?>&ref=' + encodeURIComponent(window.location.href);
     265                    var embedder = document.getElementById('<?=esc_attr($widget_id);?>');
    262266                    embedder.parentNode.insertBefore(s, embedder);
    263267                }
  • zooza/tags/1.1.6/zooza.php

    r3324080 r3336599  
    1717 * Plugin URI:        https://zooza.online/wordpress-plugin
    1818 * Description:       Plugin pre zákazníkov platformy Zooza pre jednoduché nastavenie registračných formulárov.
    19  * Version:           1.1.5
     19 * Version:           1.1.6
    2020 * Author:            Zooza
    2121 * Author URI:        https://zooza.online
     
    3636 * Rename this for your plugin and update it as you release new versions.
    3737 */
    38 define( 'ZOOZA_VERSION', '1.1.5' );
     38define( 'ZOOZA_VERSION', '1.1.6' );
    3939
    4040/**
  • zooza/trunk/README.txt

    r3324080 r3336599  
    55Requires at least: 3.0.1
    66Tested up to: 6.5.0
    7 Stable tag: 1.1.5
     7Stable tag: 1.1.6
    88License: GPLv2 or later
    99License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    225225= 1.1.5 =
    226226* Script unloading
     227
     228= 1.1.6 =
     229* Asia Support
  • zooza/trunk/admin/class-zooza-admin.php

    r3269581 r3336599  
    294294
    295295        $options = array(
    296             'https://api.zooza.app' => 'Europe',
    297             'https://uk.api.zooza.app'   => 'United Kingdom'
     296            'https://api.zooza.app'      => 'Europe',
     297            'https://uk.api.zooza.app'   => 'United Kingdom',
     298            'https://asia.api.zooza.app' => 'Asia',
    298299        );
    299300        ?>
  • zooza/trunk/includes/class-zooza.php

    r3324080 r3336599  
    7171            $this->version = ZOOZA_VERSION;
    7272        } else {
    73             $this->version = '1.1.5';
     73            $this->version = '1.1.6';
    7474        }
    7575        $this->plugin_name = 'zooza';
  • zooza/trunk/public/class-zooza-public.php

    r3324080 r3336599  
    114114        $api_url = get_option('zooza_api_url', 'https://api.zooza.app');
    115115
    116         return sprintf("<script data-embedded_by='zoozawp' data-version='%s' data-widget-id='zooza' id='%s' type='text/javascript'>
    117 ( function() {
    118 function async_load(){
    119     var s = document.createElement('script'); s.type = 'text/javascript'; s.async = true;
    120     var url = '%s/widgets/%s';
    121     s.src = url + '?ref=' + encodeURIComponent(window.location.href) + '&type=%s';
    122     var embedder = document.getElementById('%s');
    123     embedder.parentNode.insertBefore( s, embedder );
    124 }
    125 if ( window.attachEvent ) {
    126     window.attachEvent( 'onload', async_load );
    127 } else {
    128     window.addEventListener( 'load', async_load, false );
    129 }
    130 } )();
    131 </script>", $version, $api_key, $api_url, $version, $widget, $api_key);
     116        ob_start();
     117        ?>
     118        <script data-embedded_by='zoozawp' data-version="<?=esc_attr($version);?>" data-widget-id="zooza" id="<?=esc_attr($api_key);?>" type="text/javascript">
     119            (function() {
     120                function async_load(){
     121                    document.body.setAttribute('data-zooza-api-url', "<?=$api_url;?>");
     122                    var s = document.createElement('script'); s.type = 'text/javascript'; s.async = true;
     123                    s.src = document.body.getAttribute('data-zooza-api-url') +
     124                        '/widgets/<?php echo esc_attr($version); ?>/?type=<?=esc_attr($widget);?>&ref=' + encodeURIComponent(window.location.href);
     125                    var embedder = document.getElementById('<?=esc_attr($api_key);?>');
     126                    embedder.parentNode.insertBefore(s, embedder);
     127                }
     128                if (window.attachEvent) {
     129                    window.attachEvent('onload', async_load);
     130                } else {
     131                    window.addEventListener('load', async_load, false);
     132                }
     133            })();
     134        </script>
     135        <?php
     136        return ob_get_clean();
    132137
    133138    }
     
    243248            window.ZOOZA = {
    244249                multi_step_form: <?php echo $multistep; ?>,
    245 
    246250            };
    247251            document.zooza = {
     
    252256        </script>
    253257
    254         <script data-version="<?php echo esc_attr($version); ?>" data-widget-id="zooza" id="<?php echo esc_attr($widget_id); ?>" type="text/javascript">
     258        <script data-version="<?=esc_attr($version);?>" data-widget-id="zooza" id="<?=esc_attr($widget_id);?>" type="text/javascript">
    255259            (function() {
    256260                function async_load(){
    257                     document.body.setAttribute('data-zooza-api-url', "<?php echo$api_url;?>");
     261                    document.body.setAttribute('data-zooza-api-url', "<?=$api_url;?>");
    258262                    var s = document.createElement('script'); s.type = 'text/javascript'; s.async = true;
    259263                    s.src = document.body.getAttribute('data-zooza-api-url') +
    260                        '/widgets/<?php echo esc_attr($version); ?>/?type=<?php echo esc_attr($widget); ?>&ref=' + encodeURIComponent(window.location.href);
    261                     var embedder = document.getElementById('<?php echo esc_attr($widget_id); ?>');
     264                       '/widgets/<?php echo esc_attr($version); ?>/?type=<?=esc_attr($widget);?>&ref=' + encodeURIComponent(window.location.href);
     265                    var embedder = document.getElementById('<?=esc_attr($widget_id);?>');
    262266                    embedder.parentNode.insertBefore(s, embedder);
    263267                }
  • zooza/trunk/zooza.php

    r3324080 r3336599  
    1717 * Plugin URI:        https://zooza.online/wordpress-plugin
    1818 * Description:       Plugin pre zákazníkov platformy Zooza pre jednoduché nastavenie registračných formulárov.
    19  * Version:           1.1.5
     19 * Version:           1.1.6
    2020 * Author:            Zooza
    2121 * Author URI:        https://zooza.online
     
    3636 * Rename this for your plugin and update it as you release new versions.
    3737 */
    38 define( 'ZOOZA_VERSION', '1.1.5' );
     38define( 'ZOOZA_VERSION', '1.1.6' );
    3939
    4040/**
Note: See TracChangeset for help on using the changeset viewer.