Version Description
- Fixed bug in selecting custom styles in poll editor for webkit browsers
Download this release
Release Info
Developer | eoigal |
Plugin | Crowdsignal Dashboard – Polls, Surveys & more |
Version | 2.0.1 |
Comparing to | |
See all releases |
Code changes from version 2.0 to 2.0.1
- polldaddy-org.php +1 -1
- polldaddy.js +15 -46
- polldaddy.php +6 -77
- readme.txt +5 -2
polldaddy-org.php
CHANGED
@@ -11,7 +11,7 @@ class WPORG_PollDaddy extends WP_PollDaddy {
|
|
11 |
|
12 |
function __construct() {
|
13 |
parent::__construct();
|
14 |
-
$this->version = '2.0';
|
15 |
$this->base_url = plugins_url() . '/' . dirname( plugin_basename( __FILE__ ) ) . '/';
|
16 |
$this->polldaddy_client_class = 'WPORG_PollDaddy_Client';
|
17 |
$this->use_ssl = (int) get_option( 'polldaddy_use_ssl' );
|
11 |
|
12 |
function __construct() {
|
13 |
parent::__construct();
|
14 |
+
$this->version = '2.0.1';
|
15 |
$this->base_url = plugins_url() . '/' . dirname( plugin_basename( __FILE__ ) ) . '/';
|
16 |
$this->polldaddy_client_class = 'WPORG_PollDaddy_Client';
|
17 |
$this->use_ssl = (int) get_option( 'polldaddy_use_ssl' );
|
polldaddy.js
CHANGED
@@ -115,57 +115,26 @@ jQuery(function ($) {
|
|
115 |
$( this ).closest('tr').prev('tr').show();
|
116 |
|
117 |
});
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
118 |
var hiddenStyleID = $(':input[name=styleID]');
|
119 |
var customStyle = $(':input[name=customSelect]');
|
120 |
var customStyleVal = parseInt(customStyle.val());
|
121 |
|
122 |
if (customStyleVal > 0) {
|
123 |
-
|
124 |
-
|
125 |
-
|
126 |
-
|
127 |
-
$('.polldaddy-show-design-options').toggle(function () {
|
128 |
-
$('#design_custom').hide();
|
129 |
-
$('#design_standard').fadeIn();
|
130 |
-
$('.polldaddy-show-design-options').html( opts.custom_styles );
|
131 |
-
hiddenStyleID.val('x');
|
132 |
-
return false;
|
133 |
-
}, function () {
|
134 |
-
$('#design_standard').hide();
|
135 |
-
$('#design_custom').fadeIn();
|
136 |
-
$('.polldaddy-show-design-options').html( opts.standard_styles );
|
137 |
-
var customStyle = $(':input[name=customSelect]');
|
138 |
-
var customStyleVal = parseInt(customStyle.val());
|
139 |
-
if (customStyleVal > 0) {
|
140 |
-
hiddenStyleID.val(customStyleVal.toString());
|
141 |
-
} else {
|
142 |
-
hiddenStyleID.val('x');
|
143 |
-
}
|
144 |
-
return false;
|
145 |
-
});
|
146 |
-
} else {
|
147 |
-
$('#design_custom').hide();
|
148 |
-
$('#design_standard').show();
|
149 |
-
$('.polldaddy-show-design-options').toggle(function () {
|
150 |
-
$('#design_standard').hide();
|
151 |
-
$('#design_custom').fadeIn();
|
152 |
-
$('.polldaddy-show-design-options').html( opts.standard_styles );
|
153 |
-
var customStyle = $(':input[name=customSelect]');
|
154 |
-
var customStyleVal = parseInt(customStyle.val());
|
155 |
-
if (customStyleVal > 0) {
|
156 |
-
hiddenStyleID.val(customStyleVal.toString());
|
157 |
-
} else {
|
158 |
-
hiddenStyleID.val('x');
|
159 |
-
}
|
160 |
-
return false;
|
161 |
-
}, function () {
|
162 |
-
$('#design_custom').hide();
|
163 |
-
$('#design_standard').fadeIn();
|
164 |
-
$('.polldaddy-show-design-options').html( opts.custom_styles );
|
165 |
-
hiddenStyleID.val('x');
|
166 |
-
return false;
|
167 |
-
});
|
168 |
-
}
|
169 |
$("#multipleChoice").click(function () {
|
170 |
if ($("#multipleChoice").is(":checked")) {
|
171 |
$("#numberChoices").show("fast");
|
115 |
$( this ).closest('tr').prev('tr').show();
|
116 |
|
117 |
});
|
118 |
+
|
119 |
+
$( '.pd-tabs a' ).click( function(){
|
120 |
+
if( !jQuery( this ).closest('li').hasClass( 'selected' ) ){
|
121 |
+
|
122 |
+
jQuery( '.pd-tabs li' ).removeClass( 'selected' );
|
123 |
+
jQuery( this ).closest( 'li' ).addClass( 'selected' );
|
124 |
+
|
125 |
+
jQuery( '.pd-tab-panel' ).removeClass( 'show' );
|
126 |
+
jQuery( '.pd-tab-panel#' + $( this ).closest( 'li' ).attr( 'id' ) + '-panel' ).addClass( 'show' );
|
127 |
+
}
|
128 |
+
} );
|
129 |
var hiddenStyleID = $(':input[name=styleID]');
|
130 |
var customStyle = $(':input[name=customSelect]');
|
131 |
var customStyleVal = parseInt(customStyle.val());
|
132 |
|
133 |
if (customStyleVal > 0) {
|
134 |
+
hiddenStyleID.val(customStyleVal.toString());
|
135 |
+
$( '#pd-custom-styles a' ).click();
|
136 |
+
}
|
137 |
+
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
138 |
$("#multipleChoice").click(function () {
|
139 |
if ($("#multipleChoice").is(":checked")) {
|
140 |
$("#numberChoices").show("fast");
|
polldaddy.php
CHANGED
@@ -6,7 +6,7 @@ Plugin URI: http://wordpress.org/extend/plugins/polldaddy/
|
|
6 |
Description: Create and manage Polldaddy polls and ratings in WordPress
|
7 |
Author: Automattic, Inc.
|
8 |
Author URL: http://automattic.com/
|
9 |
-
Version: 2.0
|
10 |
*/
|
11 |
|
12 |
// You can hardcode your PollDaddy PartnerGUID (API Key) here
|
@@ -34,7 +34,7 @@ class WP_PollDaddy {
|
|
34 |
global $current_user;
|
35 |
$this->errors = new WP_Error;
|
36 |
$this->scheme = 'https';
|
37 |
-
$this->version = '2.0';
|
38 |
$this->multiple_accounts = true;
|
39 |
$this->polldaddy_client_class = 'api_client';
|
40 |
$this->polldaddy_clients = array();
|
@@ -2079,44 +2079,14 @@ src="http://static.polldaddy.com/p/<?php echo (int) $poll_id; ?>.js"></scr
|
|
2079 |
$custom_style_ID = 0;
|
2080 |
}
|
2081 |
?>
|
2082 |
-
|
2083 |
-
<script language="javascript" type="text/javascript">
|
2084 |
-
|
2085 |
-
jQuery( document ).ready( function(){
|
2086 |
-
|
2087 |
-
jQuery( '.pd-tabs a' ).click( function(){
|
2088 |
-
|
2089 |
-
if( !jQuery( this ).closest('li').hasClass( 'selected' ) ){
|
2090 |
-
|
2091 |
-
jQuery( '.pd-tabs li' ).removeClass( 'selected' );
|
2092 |
-
jQuery( this ).closest( 'li' ).addClass( 'selected' );
|
2093 |
-
|
2094 |
-
jQuery( '.pd-tab-panel' ).removeClass( 'show' );
|
2095 |
-
jQuery( '.pd-tab-panel#' + $( this ).closest( 'li' ).attr( 'id' ) + '-panel' ).addClass( 'show' );
|
2096 |
-
}
|
2097 |
-
|
2098 |
-
|
2099 |
-
} );
|
2100 |
-
|
2101 |
-
|
2102 |
-
|
2103 |
-
|
2104 |
-
|
2105 |
-
} );
|
2106 |
-
|
2107 |
-
</script>
|
2108 |
-
|
2109 |
-
|
2110 |
-
|
2111 |
-
|
2112 |
<h3><?php _e( 'Poll Style', 'polldaddy' ); ?></h3>
|
2113 |
<input type="hidden" name="styleID" id="styleID" value="<?php echo $style_ID ?>">
|
2114 |
<div class="inside">
|
2115 |
|
2116 |
<ul class="pd-tabs">
|
2117 |
-
<li class="selected" id="pd-styles"><a href="#"><?php _e( 'Polldaddy Styles', 'polldaddy' ); ?></a
|
2118 |
<?php $hide = $show_custom == true ? ' style="display:block;"' : ' style="display:none;"'; ?>
|
2119 |
-
<li id="pd-custom-styles" <?php echo $hide; ?>><a href="#"><?php _e( 'Custom Styles', 'polldaddy' ); ?></a
|
2120 |
|
2121 |
</ul>
|
2122 |
|
@@ -2191,48 +2161,7 @@ src="http://static.polldaddy.com/p/<?php echo (int) $poll_id; ?>.js"></scr
|
|
2191 |
</select>
|
2192 |
</p>
|
2193 |
</div>
|
2194 |
-
<?php
|
2195 |
-
<div id="design_custom">
|
2196 |
-
<p class="hide-if-no-js">
|
2197 |
-
<table class="pollStyle">
|
2198 |
-
<thead>
|
2199 |
-
<tr>
|
2200 |
-
<th>
|
2201 |
-
<div style="display:none;">
|
2202 |
-
<?php $disabled = $show_custom == false ? ' disabled="true"' : ''; ?>
|
2203 |
-
<input type="radio" name="styleTypeCB" id="custom" onclick="javascript:pd_change_style(_$('customSelect').value);" <?php echo $disabled; ?> />
|
2204 |
-
<label onclick="javascript:pd_change_style(_$('customSelect').value);"><?php _e( 'Custom Style', 'polldaddy' ); ?></label>
|
2205 |
-
</div>
|
2206 |
-
</th>
|
2207 |
-
</tr>
|
2208 |
-
</thead>
|
2209 |
-
<tbody>
|
2210 |
-
<tr>
|
2211 |
-
<td class="customSelect">
|
2212 |
-
<table>
|
2213 |
-
<tr>
|
2214 |
-
<td>
|
2215 |
-
</td>
|
2216 |
-
</tr>
|
2217 |
-
<tr>
|
2218 |
-
<td><?php $extra = $show_custom == false ? __( 'You currently have no custom styles created.', 'polldaddy' ) : ''; ?>
|
2219 |
-
<p><?php echo $extra ?></p>
|
2220 |
-
<p><?php printf( __( 'Did you know we have a new editor for building your own custom poll styles? Find out more <a href="%s" target="_blank">here</a>.', 'polldaddy' ), 'http://support.polldaddy.com/custom-poll-styles/' ); ?></p>
|
2221 |
-
</td>
|
2222 |
-
</tr>
|
2223 |
-
</table>
|
2224 |
-
</td>
|
2225 |
-
</tr>
|
2226 |
-
</tbody>
|
2227 |
-
</table>
|
2228 |
-
</p>
|
2229 |
-
</div>
|
2230 |
-
|
2231 |
-
|
2232 |
-
|
2233 |
-
|
2234 |
-
<?php }}else {?>
|
2235 |
-
|
2236 |
|
2237 |
<div class="design_standard">
|
2238 |
<div class="hide-if-no-js">
|
@@ -2320,7 +2249,7 @@ src="http://static.polldaddy.com/p/<?php echo (int) $poll_id; ?>.js"></scr
|
|
2320 |
|
2321 |
<div class="pd-tab-panel" id="pd-custom-styles-panel">
|
2322 |
<div style="padding:20px;">
|
2323 |
-
<select id="customSelect" name="customSelect"
|
2324 |
<?php $selected = $custom_style_ID == 0 ? ' selected="selected"' : ''; ?>
|
2325 |
<option value="x"<?php echo $selected; ?>><?php _e( 'Please choose a custom style...', 'polldaddy' ); ?></option>
|
2326 |
<?php if ( $show_custom ) : foreach ( (array)$styles->style as $style ) :
|
6 |
Description: Create and manage Polldaddy polls and ratings in WordPress
|
7 |
Author: Automattic, Inc.
|
8 |
Author URL: http://automattic.com/
|
9 |
+
Version: 2.0.1
|
10 |
*/
|
11 |
|
12 |
// You can hardcode your PollDaddy PartnerGUID (API Key) here
|
34 |
global $current_user;
|
35 |
$this->errors = new WP_Error;
|
36 |
$this->scheme = 'https';
|
37 |
+
$this->version = '2.0.1';
|
38 |
$this->multiple_accounts = true;
|
39 |
$this->polldaddy_client_class = 'api_client';
|
40 |
$this->polldaddy_clients = array();
|
2079 |
$custom_style_ID = 0;
|
2080 |
}
|
2081 |
?>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2082 |
<h3><?php _e( 'Poll Style', 'polldaddy' ); ?></h3>
|
2083 |
<input type="hidden" name="styleID" id="styleID" value="<?php echo $style_ID ?>">
|
2084 |
<div class="inside">
|
2085 |
|
2086 |
<ul class="pd-tabs">
|
2087 |
+
<li class="selected" id="pd-styles"><a href="#"><?php _e( 'Polldaddy Styles', 'polldaddy' ); ?></a><input type="checkbox" style="display:none;" id="regular"/></li>
|
2088 |
<?php $hide = $show_custom == true ? ' style="display:block;"' : ' style="display:none;"'; ?>
|
2089 |
+
<li id="pd-custom-styles" <?php echo $hide; ?>><a href="#"><?php _e( 'Custom Styles', 'polldaddy' ); ?></a><input type="checkbox" style="display:none;" id="custom"/></li>
|
2090 |
|
2091 |
</ul>
|
2092 |
|
2161 |
</select>
|
2162 |
</p>
|
2163 |
</div>
|
2164 |
+
<?php } else {?>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2165 |
|
2166 |
<div class="design_standard">
|
2167 |
<div class="hide-if-no-js">
|
2249 |
|
2250 |
<div class="pd-tab-panel" id="pd-custom-styles-panel">
|
2251 |
<div style="padding:20px;">
|
2252 |
+
<select id="customSelect" name="customSelect" onchange="javascript:pd_change_style(this.value);">
|
2253 |
<?php $selected = $custom_style_ID == 0 ? ' selected="selected"' : ''; ?>
|
2254 |
<option value="x"<?php echo $selected; ?>><?php _e( 'Please choose a custom style...', 'polldaddy' ); ?></option>
|
2255 |
<?php if ( $show_custom ) : foreach ( (array)$styles->style as $style ) :
|
readme.txt
CHANGED
@@ -1,9 +1,9 @@
|
|
1 |
=== Polldaddy Polls & Ratings ===
|
2 |
-
Contributors:
|
3 |
Tags: polls, poll, polldaddy, wppolls, vote, polling, surveys, rate, rating, ratings
|
4 |
Requires at least: 2.6
|
5 |
Tested up to: 3.1.3
|
6 |
-
Stable tag: 2.0
|
7 |
|
8 |
Create and manage Polldaddy polls and ratings from within WordPress.
|
9 |
|
@@ -67,6 +67,9 @@ More info here - http://codex.wordpress.org/Theme_Development#Plugin_API_Hooks
|
|
67 |
You need to select the synchronize ratings account in the Options menu to make sure the ratings API key is valid.
|
68 |
|
69 |
== Change Log ==
|
|
|
|
|
|
|
70 |
= 2.0 =
|
71 |
* Updated the UI
|
72 |
* Added media embeds in poll editor
|
1 |
=== Polldaddy Polls & Ratings ===
|
2 |
+
Contributors: eoigal, alternatekev, mdawaffe
|
3 |
Tags: polls, poll, polldaddy, wppolls, vote, polling, surveys, rate, rating, ratings
|
4 |
Requires at least: 2.6
|
5 |
Tested up to: 3.1.3
|
6 |
+
Stable tag: 2.0.1
|
7 |
|
8 |
Create and manage Polldaddy polls and ratings from within WordPress.
|
9 |
|
67 |
You need to select the synchronize ratings account in the Options menu to make sure the ratings API key is valid.
|
68 |
|
69 |
== Change Log ==
|
70 |
+
= 2.0.1 =
|
71 |
+
* Fixed bug in selecting custom styles in poll editor for webkit browsers
|
72 |
+
|
73 |
= 2.0 =
|
74 |
* Updated the UI
|
75 |
* Added media embeds in poll editor
|