Plugin Directory

Changeset 1975142


Ignore:
Timestamp:
11/15/2018 09:19:41 PM (7 years ago)
Author:
tryinteract
Message:

tagging version 3.0.5 Added shortcode attribute redirect='host' to enable top-level browser redirection outside iframe.

Location:
interact-quiz-embed
Files:
2 edited
3 copied

Legend:

Unmodified
Added
Removed
  • interact-quiz-embed/tags/3.0.5/interact-quiz-embed.php

    r1944280 r1975142  
    55Description: Use this plugin to embed your Interact quiz into your Wordpress site.
    66Author: The Quiz Collective Inc.
    7 Version: 3.0.4
     7Version: 3.0.5
    88Author URI: https://www.tryinteract.com
    99
     
    7373    if(isset($atts['mobile'])) { $mobile = $atts['mobile']; } else { $mobile = 'true'; }
    7474    if(isset($atts['align'])) { $align = $atts['align']; } else { $align = null; }
     75    if(isset($atts['redirect'])) { $redirect = $atts['redirect']; } else { $redirect = 'false'; }
    7576
    7677    $app_id = $atts['id'];
     
    9697                    var no_cover = ' . $no_cover . ';
    9798                    var mobile = ' . $mobile . ';
     99                    var redirect = "' . $redirect . '";
     100
     101                    var params = { "ref":ref, "appId": app_id, "width":w, "height":h, "async":true, "host":host, "auto_resize":true, "mobile":mobile, "no_cover":no_cover };
     102
     103                    if(redirect === "host") {
     104                        params.redirect_host = true;
     105                    }
    98106
    99107                    window[ref] = new InteractApp();
    100                     window[ref].initialize({"ref":ref,"appId": app_id,"width":w,"height":h,"async":true,"host":host,"auto_resize":true,"mobile":mobile,"no_cover":no_cover});
     108                    window[ref].initialize(params);
    101109                    window[ref].display();
    102110                });
  • interact-quiz-embed/tags/3.0.5/readme.txt

    r1944280 r1975142  
    44Requires at least: 3.0.1
    55Tested up to: 4.9.8
    6 Stable tag: 3.0.4
     6Stable tag: 3.0.5
    77License: GPLv2 or later
    88License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    5151== Changelog ==
    5252
     53= 3.0.5 =
     54* Added shortcode attribute redirect="host" to enable top-level browser redirection outside iframe.
     55
    5356= 3.0.4 =
    5457* Added shortcode attribute align="left|center|right".
  • interact-quiz-embed/trunk/interact-quiz-embed.php

    r1944280 r1975142  
    55Description: Use this plugin to embed your Interact quiz into your Wordpress site.
    66Author: The Quiz Collective Inc.
    7 Version: 3.0.4
     7Version: 3.0.5
    88Author URI: https://www.tryinteract.com
    99
     
    7373    if(isset($atts['mobile'])) { $mobile = $atts['mobile']; } else { $mobile = 'true'; }
    7474    if(isset($atts['align'])) { $align = $atts['align']; } else { $align = null; }
     75    if(isset($atts['redirect'])) { $redirect = $atts['redirect']; } else { $redirect = 'false'; }
    7576
    7677    $app_id = $atts['id'];
     
    9697                    var no_cover = ' . $no_cover . ';
    9798                    var mobile = ' . $mobile . ';
     99                    var redirect = "' . $redirect . '";
     100
     101                    var params = { "ref":ref, "appId": app_id, "width":w, "height":h, "async":true, "host":host, "auto_resize":true, "mobile":mobile, "no_cover":no_cover };
     102
     103                    if(redirect === "host") {
     104                        params.redirect_host = true;
     105                    }
    98106
    99107                    window[ref] = new InteractApp();
    100                     window[ref].initialize({"ref":ref,"appId": app_id,"width":w,"height":h,"async":true,"host":host,"auto_resize":true,"mobile":mobile,"no_cover":no_cover});
     108                    window[ref].initialize(params);
    101109                    window[ref].display();
    102110                });
  • interact-quiz-embed/trunk/readme.txt

    r1944280 r1975142  
    44Requires at least: 3.0.1
    55Tested up to: 4.9.8
    6 Stable tag: 3.0.4
     6Stable tag: 3.0.5
    77License: GPLv2 or later
    88License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    5151== Changelog ==
    5252
     53= 3.0.5 =
     54* Added shortcode attribute redirect="host" to enable top-level browser redirection outside iframe.
     55
    5356= 3.0.4 =
    5457* Added shortcode attribute align="left|center|right".
Note: See TracChangeset for help on using the changeset viewer.