Plugin Directory

Changeset 1944280


Ignore:
Timestamp:
09/20/2018 04:20:50 PM (7 years ago)
Author:
tryinteract
Message:

Added shortcode attribute align='left|center|right'.

Location:
interact-quiz-embed
Files:
4 edited
1 copied

Legend:

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

    r1941592 r1944280  
    55Description: Use this plugin to embed your Interact quiz into your Wordpress site.
    66Author: The Quiz Collective Inc.
    7 Version: 3.0.3
     7Version: 3.0.4
    88Author URI: https://www.tryinteract.com
    99
    10 Copyright 2017 The Quiz Collective  (email: [email protected])
     10Copyright 2018 The Quiz Collective  (email: [email protected])
    1111
    1212This program is free software; you can redistribute it and/or modify
     
    7272    if(isset($atts['no_cover'])) { $no_cover = 'true'; } else { $no_cover = 'false'; }
    7373    if(isset($atts['mobile'])) { $mobile = $atts['mobile']; } else { $mobile = 'true'; }
     74    if(isset($atts['align'])) { $align = $atts['align']; } else { $align = null; }
    7475
    7576    $app_id = $atts['id'];
    7677    $ref = $app_id . md5($app_id . rand());
    7778
     79    if($align) {
     80        $align = 'style="text-align:' . $align . ';"';
     81    }
     82
     83    $container = '<div id="interact-' . $ref . '"' . $align . '></div>';
     84
    7885    return '
    79         <div id="interact-' . $ref . '"></div>
     86        ' . $container . '
    8087        <script type="text/javascript">
    8188            (function(){               
  • interact-quiz-embed/tags/3.0.4/readme.txt

    r1941592 r1944280  
    44Requires at least: 3.0.1
    55Tested up to: 4.9.8
    6 Stable tag: 3.0.3
     6Stable tag: 3.0.4
    77License: GPLv2 or later
    88License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    5151== Changelog ==
    5252
     53= 3.0.4 =
     54* Added shortcode attribute align="left|center|right".
     55
    5356= 3.0.3 =
    5457* Skipped 3.0.2 due to svn publishing issues, disregard skipped version number
  • interact-quiz-embed/trunk/interact-quiz-embed.php

    r1941592 r1944280  
    55Description: Use this plugin to embed your Interact quiz into your Wordpress site.
    66Author: The Quiz Collective Inc.
    7 Version: 3.0.3
     7Version: 3.0.4
    88Author URI: https://www.tryinteract.com
    99
    10 Copyright 2017 The Quiz Collective  (email: [email protected])
     10Copyright 2018 The Quiz Collective  (email: [email protected])
    1111
    1212This program is free software; you can redistribute it and/or modify
     
    7272    if(isset($atts['no_cover'])) { $no_cover = 'true'; } else { $no_cover = 'false'; }
    7373    if(isset($atts['mobile'])) { $mobile = $atts['mobile']; } else { $mobile = 'true'; }
     74    if(isset($atts['align'])) { $align = $atts['align']; } else { $align = null; }
    7475
    7576    $app_id = $atts['id'];
    7677    $ref = $app_id . md5($app_id . rand());
    7778
     79    if($align) {
     80        $align = 'style="text-align:' . $align . ';"';
     81    }
     82
     83    $container = '<div id="interact-' . $ref . '"' . $align . '></div>';
     84
    7885    return '
    79         <div id="interact-' . $ref . '"></div>
     86        ' . $container . '
    8087        <script type="text/javascript">
    8188            (function(){               
  • interact-quiz-embed/trunk/readme.txt

    r1941592 r1944280  
    44Requires at least: 3.0.1
    55Tested up to: 4.9.8
    6 Stable tag: 3.0.3
     6Stable tag: 3.0.4
    77License: GPLv2 or later
    88License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    5151== Changelog ==
    5252
     53= 3.0.4 =
     54* Added shortcode attribute align="left|center|right".
     55
    5356= 3.0.3 =
    5457* Skipped 3.0.2 due to svn publishing issues, disregard skipped version number
Note: See TracChangeset for help on using the changeset viewer.