Version Description
N/A
Download this release
Release Info
Developer | assafp |
Plugin | Poll, Survey, Quiz, Slideshow, Form, Story & Landing Page |
Version | 11.8.0 |
Comparing to | |
See all releases |
Code changes from version 11.7.0 to 11.8.0
- opinionstage-functions.php +5 -7
- opinionstage-polls.php +2 -2
- opinionstage-widget.php +3 -21
- opinionstage_add_polls_to_all_posts.php +4 -6
- readme.txt +2 -0
opinionstage-functions.php
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
|
4 |
/**
|
5 |
* Main function for creating the widget html representation.
|
6 |
-
* Transforms the
|
7 |
*
|
8 |
* Syntax as follows:
|
9 |
* shortcode name - OPINIONSTAGE_WIDGET_SHORTCODE
|
@@ -39,9 +39,7 @@ function opinionstage_create_embed_code($id, $type) {
|
|
39 |
$code = get_transient($transient_name);
|
40 |
if ( false === $code || '' === $code ) {
|
41 |
if ($type == 'set') {
|
42 |
-
$embed_code_url = "http://".OPINIONSTAGE_SERVER_BASE."/api/sets/" . $id . "/embed_code.json";
|
43 |
-
} else if ($type == 'container') {
|
44 |
-
$embed_code_url = "http://".OPINIONSTAGE_SERVER_BASE."/api/containers/" . $id . "/embed_code.json";
|
45 |
} else {
|
46 |
$embed_code_url = "http://".OPINIONSTAGE_SERVER_BASE."/api/debates/" . $id . "/embed_code.json";
|
47 |
}
|
@@ -144,9 +142,9 @@ function opinionstage_add_poll_page() {
|
|
144 |
<li><?php echo opinionstage_create_link('Create a Poll', 'new_poll', ''); ?></li>
|
145 |
<li><?php echo opinionstage_create_link('View Polls', 'dashboard', ''); ?></li>
|
146 |
<li><?php echo opinionstage_create_link('Create a Set', 'sets/new', ''); ?></li>
|
147 |
-
<li><?php echo opinionstage_create_link('View Sets', 'dashboard', 'tab=sets'); ?></li>
|
148 |
-
<li><?php echo opinionstage_create_link('View Placements', 'dashboard', 'tab=containers'); ?></li>
|
149 |
-
<li><a href="<?php _e(admin_url('admin.php?page=addpollstoallposts')) ?>">Add
|
150 |
</ul>
|
151 |
<h2>Help</h2>
|
152 |
<ul class="os_links_list">
|
3 |
|
4 |
/**
|
5 |
* Main function for creating the widget html representation.
|
6 |
+
* Transforms the shortcode parameters to the desired iframe call.
|
7 |
*
|
8 |
* Syntax as follows:
|
9 |
* shortcode name - OPINIONSTAGE_WIDGET_SHORTCODE
|
39 |
$code = get_transient($transient_name);
|
40 |
if ( false === $code || '' === $code ) {
|
41 |
if ($type == 'set') {
|
42 |
+
$embed_code_url = "http://".OPINIONSTAGE_SERVER_BASE."/api/sets/" . $id . "/embed_code.json";
|
|
|
|
|
43 |
} else {
|
44 |
$embed_code_url = "http://".OPINIONSTAGE_SERVER_BASE."/api/debates/" . $id . "/embed_code.json";
|
45 |
}
|
142 |
<li><?php echo opinionstage_create_link('Create a Poll', 'new_poll', ''); ?></li>
|
143 |
<li><?php echo opinionstage_create_link('View Polls', 'dashboard', ''); ?></li>
|
144 |
<li><?php echo opinionstage_create_link('Create a Set', 'sets/new', ''); ?></li>
|
145 |
+
<li><?php echo opinionstage_create_link('View Sets', 'dashboard', 'tab=sets'); ?></li>
|
146 |
+
<li><?php echo opinionstage_create_link('View Placements', 'dashboard', 'tab=containers'); ?></li>
|
147 |
+
<li><a href="<?php _e(admin_url('admin.php?page=addpollstoallposts')) ?>">Add Polls to all articles</a></li>
|
148 |
</ul>
|
149 |
<h2>Help</h2>
|
150 |
<ul class="os_links_list">
|
opinionstage-polls.php
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
Plugin Name: Polls by OpinionStage
|
4 |
Plugin URI: http://www.opinionstage.com
|
5 |
Description: Adds a highly engaging social polling system to your site. Easily add polls to any post/page or to your sites sidebar.
|
6 |
-
Version: 11.
|
7 |
Author: OpinionStage.com
|
8 |
Author URI: http://www.opinionstage.com
|
9 |
*/
|
@@ -11,7 +11,7 @@ Author URI: http://www.opinionstage.com
|
|
11 |
/* --- Static initializer for Wordpress hooks --- */
|
12 |
|
13 |
define('OPINIONSTAGE_SERVER_BASE', "www.opinionstage.com"); /* Don't include the protocol, added dynamically */
|
14 |
-
define('OPINIONSTAGE_WIDGET_VERSION', '11.
|
15 |
define('OPINIONSTAGE_WIDGET_PLUGIN_NAME', 'Polls by OpinionStage');
|
16 |
define('OPINIONSTAGE_WIDGET_API_KEY', 'wp35e8');
|
17 |
define('OPINIONSTAGE_WIDGET_SHORTCODE', 'socialpoll');
|
3 |
Plugin Name: Polls by OpinionStage
|
4 |
Plugin URI: http://www.opinionstage.com
|
5 |
Description: Adds a highly engaging social polling system to your site. Easily add polls to any post/page or to your sites sidebar.
|
6 |
+
Version: 11.8.0
|
7 |
Author: OpinionStage.com
|
8 |
Author URI: http://www.opinionstage.com
|
9 |
*/
|
11 |
/* --- Static initializer for Wordpress hooks --- */
|
12 |
|
13 |
define('OPINIONSTAGE_SERVER_BASE', "www.opinionstage.com"); /* Don't include the protocol, added dynamically */
|
14 |
+
define('OPINIONSTAGE_WIDGET_VERSION', '11.8.0');
|
15 |
define('OPINIONSTAGE_WIDGET_PLUGIN_NAME', 'Polls by OpinionStage');
|
16 |
define('OPINIONSTAGE_WIDGET_API_KEY', 'wp35e8');
|
17 |
define('OPINIONSTAGE_WIDGET_SHORTCODE', 'socialpoll');
|
opinionstage-widget.php
CHANGED
@@ -38,8 +38,7 @@
|
|
38 |
<select class="widefat" name="<?php echo $this->get_field_name('type'); ?>" id="<?php echo $this->get_field_id('type'); ?>">
|
39 |
<option value="poll" <?php selected($type, 'poll') ?>>Poll</option>
|
40 |
<option value="set" <?php selected($type, 'set') ?>>Set</option>
|
41 |
-
<option value="
|
42 |
-
<option value="0" <?php selected($type, 0) ?>>Do not display anything (Disable)</option>
|
43 |
</select>
|
44 |
</p>
|
45 |
|
@@ -51,9 +50,6 @@
|
|
51 |
<span class="setWrp" style="display: none;">
|
52 |
<?php _e('Set ID:', OPINIONSTAGE_WIDGET_UNIQUE_ID); ?>
|
53 |
</span>
|
54 |
-
<span class="containerWrp" style="display: none;">
|
55 |
-
<?php _e('Container ID:', OPINIONSTAGE_WIDGET_UNIQUE_ID); ?>
|
56 |
-
</span>
|
57 |
</label>
|
58 |
<input class="widefat" id="<?php echo $this->get_field_id('id'); ?>" name="<?php echo $this->get_field_name('id'); ?>" type="text" value="<?php echo $id; ?>" />
|
59 |
</p>
|
@@ -64,23 +60,18 @@
|
|
64 |
<div class="setWrp" style="display: none;">
|
65 |
<p><?php echo opinionstage_create_link('Locate the Set ID', 'dashboard', 'tab=sets'); ?></p>
|
66 |
</div>
|
67 |
-
|
68 |
-
<p><?php echo opinionstage_create_link('Locate the Placement ID', 'dashboard', 'tab=containers'); ?></p>
|
69 |
-
</div>
|
70 |
-
|
71 |
<script type="text/javascript">
|
72 |
jQuery(function ($)
|
73 |
{
|
74 |
var $pollWrp = $(".pollWrp");
|
75 |
var $setWrp = $(".setWrp");
|
76 |
-
var $containerWrp = $(".containerWrp");
|
77 |
$("#<?php echo $this->get_field_id('type'); ?>").change(function (e)
|
78 |
{
|
79 |
var $this = $(this);
|
80 |
var val = $this.val();
|
81 |
if (val == "poll")
|
82 |
{
|
83 |
-
$containerWrp.stop(false, true).fadeOut(0);
|
84 |
$setWrp.stop(false, true).fadeOut(0, function ()
|
85 |
{
|
86 |
$pollWrp.stop(false, true).fadeIn(e.isTrigger ? 0 : "fast");
|
@@ -88,20 +79,11 @@
|
|
88 |
}
|
89 |
else if (val == "set")
|
90 |
{
|
91 |
-
$containerWrp.stop(false, true).fadeOut(0);
|
92 |
$pollWrp.stop(false, true).fadeOut(0, function ()
|
93 |
{
|
94 |
$setWrp.stop(false, true).fadeIn(e.isTrigger ? 0 : "fast");
|
95 |
});
|
96 |
-
}
|
97 |
-
else if (val == "container")
|
98 |
-
{
|
99 |
-
$setWrp.stop(false, true).fadeOut(0);
|
100 |
-
$pollWrp.stop(false, true).fadeOut(0, function ()
|
101 |
-
{
|
102 |
-
$containerWrp.stop(false, true).fadeIn(e.isTrigger ? 0 : "fast");
|
103 |
-
});
|
104 |
-
}
|
105 |
}).trigger("change");
|
106 |
$(window).load(function ()
|
107 |
{
|
38 |
<select class="widefat" name="<?php echo $this->get_field_name('type'); ?>" id="<?php echo $this->get_field_id('type'); ?>">
|
39 |
<option value="poll" <?php selected($type, 'poll') ?>>Poll</option>
|
40 |
<option value="set" <?php selected($type, 'set') ?>>Set</option>
|
41 |
+
<option value="0" <?php selected($type, 0) ?>>Disable</option>
|
|
|
42 |
</select>
|
43 |
</p>
|
44 |
|
50 |
<span class="setWrp" style="display: none;">
|
51 |
<?php _e('Set ID:', OPINIONSTAGE_WIDGET_UNIQUE_ID); ?>
|
52 |
</span>
|
|
|
|
|
|
|
53 |
</label>
|
54 |
<input class="widefat" id="<?php echo $this->get_field_id('id'); ?>" name="<?php echo $this->get_field_name('id'); ?>" type="text" value="<?php echo $id; ?>" />
|
55 |
</p>
|
60 |
<div class="setWrp" style="display: none;">
|
61 |
<p><?php echo opinionstage_create_link('Locate the Set ID', 'dashboard', 'tab=sets'); ?></p>
|
62 |
</div>
|
63 |
+
|
|
|
|
|
|
|
64 |
<script type="text/javascript">
|
65 |
jQuery(function ($)
|
66 |
{
|
67 |
var $pollWrp = $(".pollWrp");
|
68 |
var $setWrp = $(".setWrp");
|
|
|
69 |
$("#<?php echo $this->get_field_id('type'); ?>").change(function (e)
|
70 |
{
|
71 |
var $this = $(this);
|
72 |
var val = $this.val();
|
73 |
if (val == "poll")
|
74 |
{
|
|
|
75 |
$setWrp.stop(false, true).fadeOut(0, function ()
|
76 |
{
|
77 |
$pollWrp.stop(false, true).fadeIn(e.isTrigger ? 0 : "fast");
|
79 |
}
|
80 |
else if (val == "set")
|
81 |
{
|
|
|
82 |
$pollWrp.stop(false, true).fadeOut(0, function ()
|
83 |
{
|
84 |
$setWrp.stop(false, true).fadeIn(e.isTrigger ? 0 : "fast");
|
85 |
});
|
86 |
+
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
87 |
}).trigger("change");
|
88 |
$(window).load(function ()
|
89 |
{
|
opinionstage_add_polls_to_all_posts.php
CHANGED
@@ -110,7 +110,7 @@
|
|
110 |
<div id="opinionstage-head"></div>
|
111 |
<div class="section">
|
112 |
<form action="" method="POST"
|
113 |
-
<h2>Add
|
114 |
<hr />
|
115 |
<h3>Where to add:</h3>
|
116 |
<div class="chkboxs" style="background-color: #FFF; border: 1px solid #DDD; padding: 5px 20px 5px 10px; display: inline-block;">
|
@@ -130,13 +130,12 @@
|
|
130 |
<h3><label for="pt-ct">What to add:</label></h3>
|
131 |
<select name="opinionstage_aptap[content_types]" id="pt-ct">
|
132 |
<option value="poll" <?php _e(os_get_option($opinionstage_aptap, 'content_types') == 'poll' ? 'selected="selected"' : '') ?>>Poll</option>
|
133 |
-
<option value="set" <?php _e(os_get_option($opinionstage_aptap, 'content_types') == 'set' ? 'selected="selected"' : '') ?>>Set</option>
|
134 |
-
<option value="container" <?php _e(os_get_option($opinionstage_aptap, 'content_types') == 'container' ? 'selected="selected"' : '') ?>>Placement</option>
|
135 |
</select>
|
136 |
<br />
|
137 |
<h3><label for="pt-cnfid">Configure ID</label></h3>
|
138 |
<input type="text" value="<?php _e(os_get_option($opinionstage_aptap, 'configure_id')) ?>" name="opinionstage_aptap[configure_id]" id="pt-cnfid" />
|
139 |
-
<div><a href="#" id="pt-locid">Locate ID in Dashboard</a></div>
|
140 |
<br />
|
141 |
<p class="submit"><input type="submit" class="button button-primary" value="Save Changes"></p>
|
142 |
<br />
|
@@ -155,8 +154,7 @@
|
|
155 |
var $this = $(this),
|
156 |
v = $this.val(),
|
157 |
$locid = $("#pt-locid");
|
158 |
-
var rootURL = "http://www.opinionstage.com/dashboard?o=wp35e8";
|
159 |
-
if (v == "container") rootURL += "&tab=containers";
|
160 |
if (v == "set") rootURL += "&tab=sets";
|
161 |
$locid.attr("href", rootURL);
|
162 |
}).trigger("change");
|
110 |
<div id="opinionstage-head"></div>
|
111 |
<div class="section">
|
112 |
<form action="" method="POST"
|
113 |
+
<h2>Add Polls to all articles</h2>
|
114 |
<hr />
|
115 |
<h3>Where to add:</h3>
|
116 |
<div class="chkboxs" style="background-color: #FFF; border: 1px solid #DDD; padding: 5px 20px 5px 10px; display: inline-block;">
|
130 |
<h3><label for="pt-ct">What to add:</label></h3>
|
131 |
<select name="opinionstage_aptap[content_types]" id="pt-ct">
|
132 |
<option value="poll" <?php _e(os_get_option($opinionstage_aptap, 'content_types') == 'poll' ? 'selected="selected"' : '') ?>>Poll</option>
|
133 |
+
<option value="set" <?php _e(os_get_option($opinionstage_aptap, 'content_types') == 'set' ? 'selected="selected"' : '') ?>>Set</option>
|
|
|
134 |
</select>
|
135 |
<br />
|
136 |
<h3><label for="pt-cnfid">Configure ID</label></h3>
|
137 |
<input type="text" value="<?php _e(os_get_option($opinionstage_aptap, 'configure_id')) ?>" name="opinionstage_aptap[configure_id]" id="pt-cnfid" />
|
138 |
+
<div><a href="#" id="pt-locid" target="_blank">Locate ID in Dashboard</a></div>
|
139 |
<br />
|
140 |
<p class="submit"><input type="submit" class="button button-primary" value="Save Changes"></p>
|
141 |
<br />
|
154 |
var $this = $(this),
|
155 |
v = $this.val(),
|
156 |
$locid = $("#pt-locid");
|
157 |
+
var rootURL = "http://www.opinionstage.com/dashboard?o=wp35e8";
|
|
|
158 |
if (v == "set") rootURL += "&tab=sets";
|
159 |
$locid.attr("href", rootURL);
|
160 |
}).trigger("change");
|
readme.txt
CHANGED
@@ -130,6 +130,8 @@ Yes, just post the following syntax into any post/page: [socialpoll ID="xyz"], w
|
|
130 |
N/A
|
131 |
|
132 |
== Changelog ==
|
|
|
|
|
133 |
= Version 11.7.0 =
|
134 |
* Image cropping
|
135 |
= Version 11.6.0 =
|
130 |
N/A
|
131 |
|
132 |
== Changelog ==
|
133 |
+
= Version 11.8.0 =
|
134 |
+
* Plugin minor changes
|
135 |
= Version 11.7.0 =
|
136 |
* Image cropping
|
137 |
= Version 11.6.0 =
|