Changeset 1781066
- Timestamp:
- 12/05/2017 12:54:01 AM (8 years ago)
- Location:
- interact-quiz-embed
- Files:
-
- 4 edited
- 1 copied
-
tags/3.0.1 (copied) (copied from interact-quiz-embed/trunk)
-
tags/3.0.1/interact-quiz-embed.php (modified) (7 diffs)
-
tags/3.0.1/readme.txt (modified) (2 diffs)
-
trunk/interact-quiz-embed.php (modified) (7 diffs)
-
trunk/readme.txt (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
interact-quiz-embed/tags/3.0.1/interact-quiz-embed.php
r1760962 r1781066 5 5 Description: Use this plugin to embed your Interact quiz into your Wordpress site. 6 6 Author: The Quiz Collective Inc. 7 Version: 3.0. 07 Version: 3.0.1 8 8 Author URI: https://www.tryinteract.com 9 9 … … 65 65 66 66 function interact_embed($atts) { 67 shortcode_atts(array('id'=>'', 'type'=>'quiz', 'w'=>'800', 'h'=>'800' ), $atts);67 shortcode_atts(array('id'=>'', 'type'=>'quiz', 'w'=>'800', 'h'=>'800', 'no_cover'=>'false'), $atts); 68 68 69 69 if(isset($atts['w'])) { $width = $atts['w']; } else { $width = '800'; } 70 70 if(isset($atts['h'])) { $height = $atts['h']; } else { $height = '800'; } 71 71 if(isset($atts['type'])) { $type = $atts['type']; } else { $type = 'quiz'; } 72 if(isset($atts['no_cover'])) { $no_cover = 'true'; } else { $no_cover = 'false'; } 72 73 73 74 $app_id = $atts['id']; … … 85 86 var h = "' . $height . '"; 86 87 var host = "' . $type . '.tryinteract.com"; 88 var no_cover = ' . $no_cover . '; 87 89 88 90 window[ref] = new InteractApp(); 89 window[ref].initialize({"ref":ref,"appId": app_id,"width":w,"height":h,"async":true,"host":host,"auto_resize":true,"mobile":true });91 window[ref].initialize({"ref":ref,"appId": app_id,"width":w,"height":h,"async":true,"host":host,"auto_resize":true,"mobile":true,"no_cover":no_cover}); 90 92 window[ref].display(); 91 93 }); … … 191 193 if($app_id && $app_type) { 192 194 echo '<h4>Copy & Paste your shortcode into your Post:'; 193 echo '<pre style="display:block;max-width: 600px;background: #333;padding: 20px;border-radius: 4px;color: white;font-weight: 400;">';195 echo '<pre style="display:block;max-width:720px;background: #333;padding: 20px;border-radius: 4px;color: white;font-weight: 400;">'; 194 196 echo '[interact id="'. $app_id .'" type="'. $app_type .'"'; 195 197 … … 201 203 } 202 204 205 if(isset($_POST['interact_disable_cover'])){ 206 echo ' no_cover="true"'; 207 } 208 203 209 echo ']</pre></h4>'; 204 210 } else { … … 214 220 <p>The URL above can be found in your dashboard under <br/><b>'Embed & Share' > 'Embed in your Website' > 'WordPress'.</b></p> 215 221 </td> 216 </tr>222 </tr> 217 223 <tr> 218 224 <th scope="row">Embed Size</th> … … 222 228 <label for="interact_size_h">Height</label> 223 229 <input name="interact_size_h" type="number" step="1" min="0" id="interact_size_h" value="" class="small-text" /> 224 <p class="description">Default size is 600x500px</p> 230 <p class="description">Default size is 600x500px (optional)</p> 231 </td> 232 </tr> 233 <tr> 234 <th scope="row">Cover Page</th> 235 <td> 236 <label for="interact_disable_cover"> 237 <input name="interact_disable_cover" id="interact_disable_cover" type="checkbox"/> Disable Cover Page 238 <p class="description">Quiz will begin on the first question and skip the cover page (optional)</p> 239 </label> 225 240 </td> 226 241 </tr> 227 242 </table> 243 228 244 <p><input type="submit" name="submit" value="Generate Shortcode" class="button button-primary"></p> 229 245 </form> -
interact-quiz-embed/tags/3.0.1/readme.txt
r1760472 r1781066 3 3 Tags: interact, quiz, poll, giveaway, embed, shortcode, promotion 4 4 Requires at least: 3.0.1 5 Tested up to: 4. 8.26 Stable tag: 3.0. 05 Tested up to: 4.9.1 6 Stable tag: 3.0.1 7 7 License: GPLv2 or later 8 8 License URI: http://www.gnu.org/licenses/gpl-2.0.html … … 51 51 == Changelog == 52 52 53 = 3.0.1 = 54 * Added shortcode option to disable quiz cover page and start from first question. 55 53 56 = 3.0.0 = 54 57 * Added Promotions Feature (Announcement Bar & Popup) -
interact-quiz-embed/trunk/interact-quiz-embed.php
r1760962 r1781066 5 5 Description: Use this plugin to embed your Interact quiz into your Wordpress site. 6 6 Author: The Quiz Collective Inc. 7 Version: 3.0. 07 Version: 3.0.1 8 8 Author URI: https://www.tryinteract.com 9 9 … … 65 65 66 66 function interact_embed($atts) { 67 shortcode_atts(array('id'=>'', 'type'=>'quiz', 'w'=>'800', 'h'=>'800' ), $atts);67 shortcode_atts(array('id'=>'', 'type'=>'quiz', 'w'=>'800', 'h'=>'800', 'no_cover'=>'false'), $atts); 68 68 69 69 if(isset($atts['w'])) { $width = $atts['w']; } else { $width = '800'; } 70 70 if(isset($atts['h'])) { $height = $atts['h']; } else { $height = '800'; } 71 71 if(isset($atts['type'])) { $type = $atts['type']; } else { $type = 'quiz'; } 72 if(isset($atts['no_cover'])) { $no_cover = 'true'; } else { $no_cover = 'false'; } 72 73 73 74 $app_id = $atts['id']; … … 85 86 var h = "' . $height . '"; 86 87 var host = "' . $type . '.tryinteract.com"; 88 var no_cover = ' . $no_cover . '; 87 89 88 90 window[ref] = new InteractApp(); 89 window[ref].initialize({"ref":ref,"appId": app_id,"width":w,"height":h,"async":true,"host":host,"auto_resize":true,"mobile":true });91 window[ref].initialize({"ref":ref,"appId": app_id,"width":w,"height":h,"async":true,"host":host,"auto_resize":true,"mobile":true,"no_cover":no_cover}); 90 92 window[ref].display(); 91 93 }); … … 191 193 if($app_id && $app_type) { 192 194 echo '<h4>Copy & Paste your shortcode into your Post:'; 193 echo '<pre style="display:block;max-width: 600px;background: #333;padding: 20px;border-radius: 4px;color: white;font-weight: 400;">';195 echo '<pre style="display:block;max-width:720px;background: #333;padding: 20px;border-radius: 4px;color: white;font-weight: 400;">'; 194 196 echo '[interact id="'. $app_id .'" type="'. $app_type .'"'; 195 197 … … 201 203 } 202 204 205 if(isset($_POST['interact_disable_cover'])){ 206 echo ' no_cover="true"'; 207 } 208 203 209 echo ']</pre></h4>'; 204 210 } else { … … 214 220 <p>The URL above can be found in your dashboard under <br/><b>'Embed & Share' > 'Embed in your Website' > 'WordPress'.</b></p> 215 221 </td> 216 </tr>222 </tr> 217 223 <tr> 218 224 <th scope="row">Embed Size</th> … … 222 228 <label for="interact_size_h">Height</label> 223 229 <input name="interact_size_h" type="number" step="1" min="0" id="interact_size_h" value="" class="small-text" /> 224 <p class="description">Default size is 600x500px</p> 230 <p class="description">Default size is 600x500px (optional)</p> 231 </td> 232 </tr> 233 <tr> 234 <th scope="row">Cover Page</th> 235 <td> 236 <label for="interact_disable_cover"> 237 <input name="interact_disable_cover" id="interact_disable_cover" type="checkbox"/> Disable Cover Page 238 <p class="description">Quiz will begin on the first question and skip the cover page (optional)</p> 239 </label> 225 240 </td> 226 241 </tr> 227 242 </table> 243 228 244 <p><input type="submit" name="submit" value="Generate Shortcode" class="button button-primary"></p> 229 245 </form> -
interact-quiz-embed/trunk/readme.txt
r1760472 r1781066 3 3 Tags: interact, quiz, poll, giveaway, embed, shortcode, promotion 4 4 Requires at least: 3.0.1 5 Tested up to: 4. 8.26 Stable tag: 3.0. 05 Tested up to: 4.9.1 6 Stable tag: 3.0.1 7 7 License: GPLv2 or later 8 8 License URI: http://www.gnu.org/licenses/gpl-2.0.html … … 51 51 == Changelog == 52 52 53 = 3.0.1 = 54 * Added shortcode option to disable quiz cover page and start from first question. 55 53 56 = 3.0.0 = 54 57 * Added Promotions Feature (Announcement Bar & Popup)
Note: See TracChangeset
for help on using the changeset viewer.