Poll, Survey, Quiz, Slideshow, Form, Story & Landing Page - Version 12.5.0

Version Description

N/A

Download this release

Release Info

Developer yoffegil
Plugin Icon 128x128 Poll, Survey, Quiz, Slideshow, Form, Story & Landing Page
Version 12.5.0
Comparing to
See all releases

Code changes from version 12.4.0 to 12.5.0

opinionstage-functions.php CHANGED
@@ -155,7 +155,7 @@ function opinionstage_add_poll_page() {
155
  </div>
156
  <div class="onoffswitch <?php echo($first_time ? "disabled" : "")?>">
157
  <input type="checkbox" name="fly-out-switch" class="onoffswitch-checkbox" <?php echo($first_time ? "disabled" : "")?> id="fly-out-switch" <?php echo($os_options['fly_out_active'] == 'true' ? "checked" : "") ?>>
158
- <label class="onoffswitch-label" for="fly-out-switch">
159
  <div class="onoffswitch-inner"></div>
160
  <div class="onoffswitch-switch"></div>
161
  </label>
@@ -185,7 +185,7 @@ function opinionstage_add_poll_page() {
185
  <div class="placement_wrapper">
186
  <div class='description'>
187
  <div class="text">
188
- Sidebar Section
189
  </div>
190
  <a href="http://blog.opinionstage.com/poll-placements/?o=wp35e8" class="question-link" target="_blank">(?)</a>
191
  </div>
@@ -198,7 +198,7 @@ function opinionstage_add_poll_page() {
198
  </div>
199
  <?php if(!$first_time) {?>
200
  <div class="os-long-text">
201
- <a href="<?php echo $url = get_admin_url('', '', 'admin') . 'widgets.php' ?>">Conifugre</a> (using the Widgets Menu)
202
  </div>
203
  <?php } ?>
204
  </div>
155
  </div>
156
  <div class="onoffswitch <?php echo($first_time ? "disabled" : "")?>">
157
  <input type="checkbox" name="fly-out-switch" class="onoffswitch-checkbox" <?php echo($first_time ? "disabled" : "")?> id="fly-out-switch" <?php echo($os_options['fly_out_active'] == 'true' ? "checked" : "") ?>>
158
+ <label class="onoffswitch-label" for="fly-out-switch">
159
  <div class="onoffswitch-inner"></div>
160
  <div class="onoffswitch-switch"></div>
161
  </label>
185
  <div class="placement_wrapper">
186
  <div class='description'>
187
  <div class="text">
188
+ Sidebar Widget
189
  </div>
190
  <a href="http://blog.opinionstage.com/poll-placements/?o=wp35e8" class="question-link" target="_blank">(?)</a>
191
  </div>
198
  </div>
199
  <?php if(!$first_time) {?>
200
  <div class="os-long-text">
201
+ <a href="<?php echo $url = get_admin_url('', '', 'admin') . 'widgets.php' ?>">Configure</a> (using the Widgets Menu)
202
  </div>
203
  <?php } ?>
204
  </div>
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: 12.4.0
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', '12.4.0');
15
  define('OPINIONSTAGE_WIDGET_PLUGIN_NAME', 'Polls by OpinionStage');
16
  define('OPINIONSTAGE_WIDGET_API_KEY', 'wp35e8');
17
  define('OPINIONSTAGE_OPTIONS_KEY', 'opinionstage_widget');
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: 12.5.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', '12.5.0');
15
  define('OPINIONSTAGE_WIDGET_PLUGIN_NAME', 'Polls by OpinionStage');
16
  define('OPINIONSTAGE_WIDGET_API_KEY', 'wp35e8');
17
  define('OPINIONSTAGE_OPTIONS_KEY', 'opinionstage_widget');
opinionstage-widget.php CHANGED
@@ -23,12 +23,17 @@
23
  function update($new_instance, $old_instance) {
24
  $instance = $old_instance;
25
  $instance['title'] = strip_tags($new_instance['title']);
 
 
 
 
26
  return $instance;
27
  }
28
 
29
  function form($instance) {
30
- $title = isset($instance['title']) ? esc_attr($instance['title']) : '';
31
  $os_options = (array) get_option(OPINIONSTAGE_OPTIONS_KEY);
 
 
32
  if (empty($os_options["uid"])) {
33
  $first_time = true;
34
  } else {
@@ -76,9 +81,12 @@
76
  <a href="javascript:void(0)" class="os-button switch-email" id="os-switch-email" >Switch Account</a>
77
  <p><label for="<?php echo $this->get_field_id('title'); ?>"><?php _e('Title', OPINIONSTAGE_WIDGET_UNIQUE_ID); ?></label>
78
  <input class="widefat" id="<?php echo $this->get_field_id('title'); ?>" name="<?php echo $this->get_field_name('title'); ?>" type="text" class="watermark" data-watermark="Enter the title here" value="<?php echo $title; ?>" /></p>
 
 
79
  <div class="left text">
80
  <a href="<?php echo opinionstage_sidebar_placement_edit_url(); ?>" target="_blank">Configure content</a>
81
- </div>
 
82
  <?php } ?>
83
  </div>
84
  <?php
23
  function update($new_instance, $old_instance) {
24
  $instance = $old_instance;
25
  $instance['title'] = strip_tags($new_instance['title']);
26
+ $instance['enabled'] = strip_tags($new_instance['enabled']);
27
+ $os_options = (array) get_option(OPINIONSTAGE_OPTIONS_KEY);
28
+ $os_options['sidebar_placement_active'] = ('1' == $instance['enabled']);
29
+ update_option(OPINIONSTAGE_OPTIONS_KEY, $os_options);
30
  return $instance;
31
  }
32
 
33
  function form($instance) {
 
34
  $os_options = (array) get_option(OPINIONSTAGE_OPTIONS_KEY);
35
+ $title = isset($instance['title']) ? esc_attr($instance['title']) : '';
36
+ $enabled = $os_options['sidebar_placement_active'] == 'true' ? '1' : '';
37
  if (empty($os_options["uid"])) {
38
  $first_time = true;
39
  } else {
81
  <a href="javascript:void(0)" class="os-button switch-email" id="os-switch-email" >Switch Account</a>
82
  <p><label for="<?php echo $this->get_field_id('title'); ?>"><?php _e('Title', OPINIONSTAGE_WIDGET_UNIQUE_ID); ?></label>
83
  <input class="widefat" id="<?php echo $this->get_field_id('title'); ?>" name="<?php echo $this->get_field_name('title'); ?>" type="text" class="watermark" data-watermark="Enter the title here" value="<?php echo $title; ?>" /></p>
84
+ <input type="checkbox" id="<?php echo $this->get_field_id('enabled'); ?>" name="<?php echo $this->get_field_name('enabled'); ?>" value="1" <?php echo($enabled == '1' ? "checked" : "") ?> />
85
+ <label for="<?php echo $this->get_field_id('enabled'); ?>">Enabled</label>
86
  <div class="left text">
87
  <a href="<?php echo opinionstage_sidebar_placement_edit_url(); ?>" target="_blank">Configure content</a>
88
+ </div>
89
+
90
  <?php } ?>
91
  </div>
92
  <?php
readme.txt CHANGED
@@ -123,6 +123,9 @@ We support both regular multiple-sided polls and a special head-to-head poll fla
123
  N/A
124
 
125
  == Changelog ==
 
 
 
126
  = Version 12.4.0 =
127
  * Added a control switch for the Sidebar placement
128
  = Version 12.3.0 =
123
  N/A
124
 
125
  == Changelog ==
126
+ = Version 12.5.0 =
127
+ * Modified css strucutre
128
+ * Added an option to enable/disable sidebar widget directly via the widget box
129
  = Version 12.4.0 =
130
  * Added a control switch for the Sidebar placement
131
  = Version 12.3.0 =
style.css CHANGED
@@ -10,32 +10,32 @@
10
  background-color: #FAFBFC;
11
  border: 1px solid #D2E0F0;
12
  }
13
- .section {
14
  padding: 15px;
15
  }
16
- h2 {
17
  color: #25264c;
18
  font-weight: bold;
19
  font-size: 23px;
20
  }
21
- .os_links_list {
22
  list-style-type: none;
23
  margin: 0;
24
  padding: 0;
25
  }
26
- .os_links_list li {
27
  margin-bottom: 21px;
28
  }
29
- .os_links_list li a {
30
  color: #5db5d4;
31
  font-size: 17px;
32
  text-decoration: none;
33
  }
34
- input.os-watermark {
35
  color: rgb(131, 131, 131);
36
  font-style: italic;
37
  }
38
- input[type="text"] {
39
  border: 1px solid #CECECE;
40
  height: 28px;
41
  line-height: 28px;
@@ -43,10 +43,10 @@ input[type="text"] {
43
  padding-left: 10px;
44
  margin-right: 5px;
45
  }
46
- input[type="text"][disabled="disabled"] {
47
  background-color: #DFDFDF;
48
  }
49
- .os-button {
50
  text-decoration: none !important;
51
  border-top: 1px solid #E7E5E3;
52
  border-bottom: 1px solid #CFCCC8;
@@ -67,7 +67,7 @@ input[type="text"][disabled="disabled"] {
67
  filter: progid:DXImageTransform.Microsoft.gradient(GradientType=0,startColorstr=#289ec4, endColorstr=#278fb5);
68
  padding: 5px 10px;
69
  }
70
- .os-button:hover {
71
  background-color: #40aacd;
72
  background-image: -webkit-gradient(linear, left top, left bottom, color-stop(0%, #40aacd), color-stop(100%, #40aacd));
73
  background-image: -webkit-linear-gradient(top, #40aacd, #40aacd);
@@ -78,39 +78,39 @@ input[type="text"][disabled="disabled"] {
78
  filter: progid:DXImageTransform.Microsoft.gradient(GradientType=0,startColorstr=#40aacd, endColorstr=#40aacd);
79
  color: #ffffff !important;
80
  }
81
- .question-link {
82
  text-decoration: none;
83
  margin-right: 15px;
84
  }
85
- .placement_wrapper {
86
  margin-bottom: 25px;
87
  }
88
- .placement_wrapper .description {
89
  width: 190px;
90
  float: left;
91
  }
92
- .placement_wrapper .description .text {
93
  display: inline-block;
94
  font-size: 17px;
95
  }
96
- .placement_wrapper .onoffswitch {
97
  vertical-align: text-bottom;
98
  margin-right: 15px;
99
  }
100
- .onoffswitch {
101
  position: relative;
102
  width: 74px;
103
  -webkit-user-select:none; -moz-user-select:none; -ms-user-select: none;
104
  display: inline-block;
105
  margin: 0px 0px -8px;
106
  }
107
- .onoffswitch.disabled {
108
  opacity: 0.5;
109
  }
110
- input.onoffswitch-checkbox {
111
  display: none;
112
  }
113
- .onoffswitch-label {
114
  display: block;
115
  overflow: hidden;
116
  cursor: pointer;
@@ -118,12 +118,12 @@ input.onoffswitch-checkbox {
118
  border-radius: 15px;
119
  box-shadow: 0px 0px 4px 0px rgba(32, 32, 32, 0.5);
120
  }
121
- .onoffswitch-inner {
122
  width: 200%; margin-left: -100%;
123
  -moz-transition: margin 0.3s ease-in 0s; -webkit-transition: margin 0.3s ease-in 0s;
124
  -o-transition: margin 0.3s ease-in 0s; transition: margin 0.3s ease-in 0s;
125
  }
126
- .onoffswitch-inner:before, .onoffswitch-inner:after {
127
  float: left;
128
  width: 50%;
129
  height: 23px;
@@ -138,20 +138,20 @@ input.onoffswitch-checkbox {
138
  box-sizing: border-box;
139
  text-shadow: 0px 1px 1px rgba(255, 255, 255, 0.63);
140
  }
141
- .onoffswitch-inner:before {
142
  content: "ON";
143
  padding-left: 15px;
144
  background-color: #40aacd;
145
  box-shadow: inset 5px 4px 10px 1px rgba(0, 0, 0, 0.2);
146
  }
147
- .onoffswitch-inner:after {
148
  content: "OFF";
149
  padding-left: 18px;
150
  background-color: #BEC9CA;
151
  text-align: center;
152
  box-shadow: inset -5px 4px 10px 1px rgba(0, 0, 0, 0.2);
153
  }
154
- .onoffswitch-switch {
155
  width: 25px;
156
  margin: 0px;
157
  background: rgb(254,254,254); /* Old browsers */
@@ -178,19 +178,23 @@ input.onoffswitch-checkbox {
178
  box-shadow: 0px 3px 5px -1px rgba(0, 0, 0, 0.75), 0px -1px 0px rgba(0, 0, 0, 0.2);
179
 
180
  }
181
- .onoffswitch-checkbox:checked + .onoffswitch-label .onoffswitch-inner {
182
  margin-left: 0;
183
  }
184
- .onoffswitch-checkbox:checked + .onoffswitch-label .onoffswitch-switch {
185
  right: 2px;
186
 
187
  -webkit-box-shadow: 0px 3px 5px -1px rgba(0, 0, 0, 0.75), 0px -1px 0px rgba(74, 121, 221, 0.2), inset 2px -1px 4px -1px rgba(74, 121, 221, 0.9);
188
  -moz-box-shadow: 0px 3px 5px -1px rgba(0, 0, 0, 0.75), 0px -1px 0px rgba(74, 121, 221, 0.2), inset 2px -1px 4px -1px rgba(74, 121, 221, 0.9);
189
  box-shadow: 0px 3px 5px -1px rgba(0, 0, 0, 0.75), 0px -1px 0px rgba(74, 121, 221, 0.2), inset 2px -1px 4px -1px rgba(74, 121, 221, 0.9);
190
  }
191
- .os-long-text {
192
  display: inline;
193
  }
 
 
 
 
194
  .os-sidebar-widget {
195
  overflow: hidden;
196
  margin-bottom: 15px;
@@ -201,7 +205,3 @@ input.onoffswitch-checkbox {
201
  .os-sidebar-widget #os-email {
202
  margin-left: 8px;
203
  }
204
- .os-notice {
205
- color: red;
206
- font-weight: bold;
207
- }
10
  background-color: #FAFBFC;
11
  border: 1px solid #D2E0F0;
12
  }
13
+ .opinionstage-wrap .section {
14
  padding: 15px;
15
  }
16
+ .opinionstage-wrap h2 {
17
  color: #25264c;
18
  font-weight: bold;
19
  font-size: 23px;
20
  }
21
+ .opinionstage-wrap .os_links_list {
22
  list-style-type: none;
23
  margin: 0;
24
  padding: 0;
25
  }
26
+ .opinionstage-wrap .os_links_list li {
27
  margin-bottom: 21px;
28
  }
29
+ .opinionstage-wrap .os_links_list li a {
30
  color: #5db5d4;
31
  font-size: 17px;
32
  text-decoration: none;
33
  }
34
+ .opinionstage-wrap input.os-watermark {
35
  color: rgb(131, 131, 131);
36
  font-style: italic;
37
  }
38
+ .opinionstage-wrap input[type="text"] {
39
  border: 1px solid #CECECE;
40
  height: 28px;
41
  line-height: 28px;
43
  padding-left: 10px;
44
  margin-right: 5px;
45
  }
46
+ .opinionstage-wrap input[type="text"][disabled="disabled"] {
47
  background-color: #DFDFDF;
48
  }
49
+ .opinionstage-wrap .os-button, .os-sidebar-widget .os-button {
50
  text-decoration: none !important;
51
  border-top: 1px solid #E7E5E3;
52
  border-bottom: 1px solid #CFCCC8;
67
  filter: progid:DXImageTransform.Microsoft.gradient(GradientType=0,startColorstr=#289ec4, endColorstr=#278fb5);
68
  padding: 5px 10px;
69
  }
70
+ .opinionstage-wrap .os-button:hover, .os-sidebar-widget .os-button:hover {
71
  background-color: #40aacd;
72
  background-image: -webkit-gradient(linear, left top, left bottom, color-stop(0%, #40aacd), color-stop(100%, #40aacd));
73
  background-image: -webkit-linear-gradient(top, #40aacd, #40aacd);
78
  filter: progid:DXImageTransform.Microsoft.gradient(GradientType=0,startColorstr=#40aacd, endColorstr=#40aacd);
79
  color: #ffffff !important;
80
  }
81
+ .opinionstage-wrap .question-link {
82
  text-decoration: none;
83
  margin-right: 15px;
84
  }
85
+ .opinionstage-wrap .placement_wrapper {
86
  margin-bottom: 25px;
87
  }
88
+ .opinionstage-wrap .placement_wrapper .description {
89
  width: 190px;
90
  float: left;
91
  }
92
+ .opinionstage-wrap .placement_wrapper .description .text {
93
  display: inline-block;
94
  font-size: 17px;
95
  }
96
+ .opinionstage-wrap .placement_wrapper .onoffswitch {
97
  vertical-align: text-bottom;
98
  margin-right: 15px;
99
  }
100
+ .opinionstage-wrap .onoffswitch {
101
  position: relative;
102
  width: 74px;
103
  -webkit-user-select:none; -moz-user-select:none; -ms-user-select: none;
104
  display: inline-block;
105
  margin: 0px 0px -8px;
106
  }
107
+ .opinionstage-wrap .onoffswitch.disabled {
108
  opacity: 0.5;
109
  }
110
+ .opinionstage-wrap input.onoffswitch-checkbox {
111
  display: none;
112
  }
113
+ .opinionstage-wrap .onoffswitch-label {
114
  display: block;
115
  overflow: hidden;
116
  cursor: pointer;
118
  border-radius: 15px;
119
  box-shadow: 0px 0px 4px 0px rgba(32, 32, 32, 0.5);
120
  }
121
+ .opinionstage-wrap .onoffswitch-inner {
122
  width: 200%; margin-left: -100%;
123
  -moz-transition: margin 0.3s ease-in 0s; -webkit-transition: margin 0.3s ease-in 0s;
124
  -o-transition: margin 0.3s ease-in 0s; transition: margin 0.3s ease-in 0s;
125
  }
126
+ .opinionstage-wrap .onoffswitch-inner:before, .opinionstage-wrap .onoffswitch-inner:after {
127
  float: left;
128
  width: 50%;
129
  height: 23px;
138
  box-sizing: border-box;
139
  text-shadow: 0px 1px 1px rgba(255, 255, 255, 0.63);
140
  }
141
+ .opinionstage-wrap .onoffswitch-inner:before {
142
  content: "ON";
143
  padding-left: 15px;
144
  background-color: #40aacd;
145
  box-shadow: inset 5px 4px 10px 1px rgba(0, 0, 0, 0.2);
146
  }
147
+ .opinionstage-wrap .onoffswitch-inner:after {
148
  content: "OFF";
149
  padding-left: 18px;
150
  background-color: #BEC9CA;
151
  text-align: center;
152
  box-shadow: inset -5px 4px 10px 1px rgba(0, 0, 0, 0.2);
153
  }
154
+ .opinionstage-wrap .onoffswitch-switch {
155
  width: 25px;
156
  margin: 0px;
157
  background: rgb(254,254,254); /* Old browsers */
178
  box-shadow: 0px 3px 5px -1px rgba(0, 0, 0, 0.75), 0px -1px 0px rgba(0, 0, 0, 0.2);
179
 
180
  }
181
+ .opinionstage-wrap .onoffswitch-checkbox:checked + .onoffswitch-label .onoffswitch-inner {
182
  margin-left: 0;
183
  }
184
+ .opinionstage-wrap .onoffswitch-checkbox:checked + .onoffswitch-label .onoffswitch-switch {
185
  right: 2px;
186
 
187
  -webkit-box-shadow: 0px 3px 5px -1px rgba(0, 0, 0, 0.75), 0px -1px 0px rgba(74, 121, 221, 0.2), inset 2px -1px 4px -1px rgba(74, 121, 221, 0.9);
188
  -moz-box-shadow: 0px 3px 5px -1px rgba(0, 0, 0, 0.75), 0px -1px 0px rgba(74, 121, 221, 0.2), inset 2px -1px 4px -1px rgba(74, 121, 221, 0.9);
189
  box-shadow: 0px 3px 5px -1px rgba(0, 0, 0, 0.75), 0px -1px 0px rgba(74, 121, 221, 0.2), inset 2px -1px 4px -1px rgba(74, 121, 221, 0.9);
190
  }
191
+ .opinionstage-wrap .os-long-text {
192
  display: inline;
193
  }
194
+ .opinionstage-wrap .os-notice {
195
+ color: red;
196
+ font-weight: bold;
197
+ }
198
  .os-sidebar-widget {
199
  overflow: hidden;
200
  margin-bottom: 15px;
205
  .os-sidebar-widget #os-email {
206
  margin-left: 8px;
207
  }