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

Version Description

N/A

Download this release

Release Info

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

Code changes from version 14.5.0 to 14.6.0

opinionstage-style.css → opinionstage-common.css RENAMED
@@ -14,9 +14,11 @@
14
  left: 0;
15
  right: 0;
16
  background: #232121;
 
17
  }
18
  #opinionstage-content .opinionstage-logo-wrapper {
19
- padding: 5px 35px;
 
20
  }
21
  #opinionstage-content .opinionstage-logo-wrapper .opinionstage-logo {
22
  background: url("images/purple-logo.png") no-repeat 0px 0px;
@@ -24,12 +26,59 @@
24
  height: 30px;
25
  background-size: contain;
26
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
27
  #opinionstage-content .opinionstage-status-wrapper {
28
  background: url("images/top-bg.png") no-repeat 0px 0px;
29
  height: 146px;
30
  }
31
  #opinionstage-content .opinionstage-status-wrapper .opinionstage-status-content {
32
- padding: 35px;
33
  color: white;
34
  }
35
  #opinionstage-content .opinionstage-status-wrapper #os-start-login{
@@ -39,7 +88,8 @@
39
  #opinionstage-content .opinionstage-status-wrapper .opinionstage-status-title {
40
  font-size: 23px;
41
  margin-bottom: 20px;
42
- font-weight: light;
 
43
  }
44
  #opinionstage-content .opinionstage-status-wrapper .opinionstage-status-content .os-icon, .opinionstage-sidebar-widget .os-icon {
45
  float: left;
@@ -58,7 +108,6 @@
58
  float: left;
59
  font-size: 14px;
60
  }
61
-
62
  #opinionstage-content a.opinionstage-blue-btn {
63
  text-align: center;
64
  color: #ffffff;
@@ -70,7 +119,7 @@
70
  -webkit-border-radius: 3px;
71
  -moz-border-radius: 3px;
72
  border-radius: 3px;
73
- width: 100px;
74
  }
75
  #opinionstage-content a.opinionstage-blue-btn:hover {
76
  opacity: 0.9;
@@ -125,18 +174,17 @@
125
  font-size: 22px;
126
  }
127
  #opinionstage-content .opinionstage-dashboard {
128
- padding: 35px;
129
  overflow: hidden;
130
- width: 1150px;
131
  }
132
- #opinionstage-content .opinionstage-dashboard-left {
 
133
  float: left;
134
- width: 550px;
135
- margin-right: 50px;
136
  }
137
- #opinionstage-content .opinionstage-dashboard-right {
138
- float: right;
139
- width: 550px;
140
  }
141
  #opinionstage-content .opinionstage-dashboard-section {
142
  margin-bottom: 30px;
@@ -181,16 +229,16 @@
181
  height: 435px;
182
  }
183
  #opinionstage-section-create .opinionstage-section-cell.opinionstage-icon-cell {
184
- width: 15%;
185
  text-align: center;
186
  color: #3499c2;
187
  font-size: 35px;
188
  }
189
  #opinionstage-section-create .opinionstage-section-cell.opinionstage-description-cell {
190
- width: 57%;
191
  }
192
  #opinionstage-section-create .opinionstage-section-cell.opinionstage-btn-cell {
193
- width: 28%;
194
  }
195
  #opinionstage-section-create .opinionstage-section-cell.opinionstage-description-cell .title, #opinionstage-section-placements .opinionstage-section-cell.opinionstage-description-cell .title {
196
  font-size: 21px;
@@ -211,13 +259,13 @@
211
  width: 15%;
212
  }
213
  #opinionstage-section-placements .opinionstage-section-cell.opinionstage-description-cell {
214
- width: 45%;
215
  }
216
  #opinionstage-section-placements .opinionstage-section-cell.opinionstage-btns-cell {
217
- width: 40%;
218
  }
219
  #opinionstage-section-placements .opinionstage-section-cell.opinionstage-btns-cell .opinionstage-edit-content {
220
- width: 125px;
221
  }
222
  #opinionstage-section-placements .opinionstage-section-cell.opinionstage-btns-cell .opinionstage-edit-settings {
223
  width: 29px;
@@ -314,6 +362,12 @@
314
  overflow: hidden;
315
  margin-bottom: 15px;
316
  }
 
 
 
 
 
 
317
  .opinionstage-sidebar-widget .os-button {
318
  float: left;
319
  text-decoration: none !important;
14
  left: 0;
15
  right: 0;
16
  background: #232121;
17
+ overflow: hidden;
18
  }
19
  #opinionstage-content .opinionstage-logo-wrapper {
20
+ padding: 5px 30px;
21
+ float: left;
22
  }
23
  #opinionstage-content .opinionstage-logo-wrapper .opinionstage-logo {
24
  background: url("images/purple-logo.png") no-repeat 0px 0px;
26
  height: 30px;
27
  background-size: contain;
28
  }
29
+ #opinionstage-content .opinionstage-menu-wrapper {
30
+ height: 42px;
31
+ }
32
+ #opinionstage-content .opinionstage-menu-wrapper ul.opinionstage-menu {
33
+ list-style: none;
34
+ list-style-type: none;
35
+ margin: 0;
36
+ padding: 0;
37
+ font-size: 15px;
38
+ display: table;
39
+ }
40
+ #opinionstage-content .opinionstage-menu-wrapper li.opinionstage-nav-item {
41
+ display: table-cell;
42
+ vertical-align: middle;
43
+ position: relative;
44
+ }
45
+ #opinionstage-content .opinionstage-menu-wrapper li.opinionstage-nav-item:hover {
46
+ background-color: #29324e;
47
+ }
48
+ #opinionstage-content .opinionstage-menu-wrapper li.opinionstage-nav-item:hover .opinionstage-hover-indicator {
49
+ background-color: #3499c2;
50
+ }
51
+ #opinionstage-content .opinionstage-menu-wrapper li.opinionstage-nav-item a {
52
+ color: #ffffff;
53
+ font-size: 13px;
54
+ font-weight: normal;
55
+ overflow: hidden;
56
+ display: block;
57
+ margin-right: 20px;
58
+ padding: 12px 0;
59
+ }
60
+ #opinionstage-content .opinionstage-menu-wrapper li.opinionstage-nav-item a .os-icon {
61
+ padding: 3px 6px 0 14px;
62
+ min-width: 14px;
63
+ float: left;
64
+ opacity: 0.8;
65
+ }
66
+ #opinionstage-content .opinionstage-menu-wrapper li.opinionstage-nav-item .opinionstage-label {
67
+ float: left;
68
+ opacity: 0.8;
69
+ }
70
+ #opinionstage-content .opinionstage-menu-wrapper li.opinionstage-nav-item .opinionstage-hover-indicator {
71
+ position: absolute;
72
+ bottom: 0;
73
+ width: 100%;
74
+ height: 4px;
75
+ }
76
  #opinionstage-content .opinionstage-status-wrapper {
77
  background: url("images/top-bg.png") no-repeat 0px 0px;
78
  height: 146px;
79
  }
80
  #opinionstage-content .opinionstage-status-wrapper .opinionstage-status-content {
81
+ padding: 30px;
82
  color: white;
83
  }
84
  #opinionstage-content .opinionstage-status-wrapper #os-start-login{
88
  #opinionstage-content .opinionstage-status-wrapper .opinionstage-status-title {
89
  font-size: 23px;
90
  margin-bottom: 20px;
91
+ font-weight: lighter;
92
+ line-height: 25px;
93
  }
94
  #opinionstage-content .opinionstage-status-wrapper .opinionstage-status-content .os-icon, .opinionstage-sidebar-widget .os-icon {
95
  float: left;
108
  float: left;
109
  font-size: 14px;
110
  }
 
111
  #opinionstage-content a.opinionstage-blue-btn {
112
  text-align: center;
113
  color: #ffffff;
119
  -webkit-border-radius: 3px;
120
  -moz-border-radius: 3px;
121
  border-radius: 3px;
122
+ width: 95px;
123
  }
124
  #opinionstage-content a.opinionstage-blue-btn:hover {
125
  opacity: 0.9;
174
  font-size: 22px;
175
  }
176
  #opinionstage-content .opinionstage-dashboard {
177
+ padding: 30px;
178
  overflow: hidden;
179
+ max-width: 1060px;
180
  }
181
+
182
+ #opinionstage-content .opinionstage-dashboard-left , #opinionstage-content .opinionstage-dashboard-right {
183
  float: left;
184
+ width: 510px;
 
185
  }
186
+ #opinionstage-content .opinionstage-dashboard-left {
187
+ margin-right: 40px;
 
188
  }
189
  #opinionstage-content .opinionstage-dashboard-section {
190
  margin-bottom: 30px;
229
  height: 435px;
230
  }
231
  #opinionstage-section-create .opinionstage-section-cell.opinionstage-icon-cell {
232
+ width: 17%;
233
  text-align: center;
234
  color: #3499c2;
235
  font-size: 35px;
236
  }
237
  #opinionstage-section-create .opinionstage-section-cell.opinionstage-description-cell {
238
+ width: 52%;
239
  }
240
  #opinionstage-section-create .opinionstage-section-cell.opinionstage-btn-cell {
241
+ width: 31%;
242
  }
243
  #opinionstage-section-create .opinionstage-section-cell.opinionstage-description-cell .title, #opinionstage-section-placements .opinionstage-section-cell.opinionstage-description-cell .title {
244
  font-size: 21px;
259
  width: 15%;
260
  }
261
  #opinionstage-section-placements .opinionstage-section-cell.opinionstage-description-cell {
262
+ width: 46%;
263
  }
264
  #opinionstage-section-placements .opinionstage-section-cell.opinionstage-btns-cell {
265
+ width: 39%;
266
  }
267
  #opinionstage-section-placements .opinionstage-section-cell.opinionstage-btns-cell .opinionstage-edit-content {
268
+ width: 105px;
269
  }
270
  #opinionstage-section-placements .opinionstage-section-cell.opinionstage-btns-cell .opinionstage-edit-settings {
271
  width: 29px;
362
  overflow: hidden;
363
  margin-bottom: 15px;
364
  }
365
+ .opinionstage-sidebar-widget p {
366
+ overflow: hidden;
367
+ }
368
+ .wp-admin .opinionstage-sidebar-widget p input[type=checkbox] {
369
+ margin: 0;
370
+ }
371
  .opinionstage-sidebar-widget .os-button {
372
  float: left;
373
  text-decoration: none !important;
opinionstage-functions.php CHANGED
@@ -84,12 +84,12 @@ function opinionstage_add_poll_page() {
84
  if (email == emailInput.data('watermark')) {
85
  email = "";
86
  }
87
- var new_location = "http://" + "<?php echo OPINIONSTAGE_LOGIN_PATH.'?callback=' ?>" + encodeURIComponent(callbackURL) + "&email=" + email;
88
  window.location = new_location;
89
  });
90
 
91
  $('#os-switch-email').click(function(){
92
- var new_location = "http://" + "<?php echo OPINIONSTAGE_LOGIN_PATH.'?callback=' ?>" + encodeURIComponent(callbackURL);
93
  window.location = new_location;
94
  });
95
 
@@ -115,9 +115,29 @@ function opinionstage_add_poll_page() {
115
  </script>
116
  <div id="opinionstage-content">
117
  <div id="opinionstage-frame">
118
- <div class="opinionstage-header-wrapper">
119
- <div class="opinionstage-logo-wrapper">
120
- <div class="opinionstage-logo"></div>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
121
  </div>
122
  <div class="opinionstage-status-wrapper">
123
  <div class="opinionstage-status-content">
@@ -132,7 +152,7 @@ function opinionstage_add_poll_page() {
132
  <label class="checked" for="user-email"></label>
133
  <input id="os-email" type="text" disabled="disabled" value="<?php echo($os_options["email"]) ?>"/>
134
  <a href="javascript:void(0)" id="os-switch-email" >Switch account</a>
135
- <?php } ?>
136
  </div>
137
  </div>
138
  </div>
@@ -143,7 +163,7 @@ function opinionstage_add_poll_page() {
143
  <div class="opinionstage-section-content">
144
  <div class="opinionstage-section-raw">
145
  <div class="opinionstage-section-cell opinionstage-icon-cell">
146
- <div class="os-icon icon-os-reports-polls"></div>
147
  </div>
148
  <div class="opinionstage-section-cell opinionstage-description-cell">
149
  <div class="title">Poll</div>
@@ -191,38 +211,6 @@ function opinionstage_add_poll_page() {
191
  </div>
192
  </div>
193
  </div>
194
- <div id="opinionstage-section-help" class="opinionstage-dashboard-section">
195
- <div class="opinionstage-section-header">Help</div>
196
- <div class="opinionstage-section-content-wrapper">
197
- <div class="opinionstage-section-content">
198
- <div class="opinionstage-section-raw">
199
- <div class="opinionstage-section-cell">
200
- <a href="http://blog.opinionstage.com/how-to-add-interactive-content-on-wordpress/?o=wp35e8" target="_blank">How to use this plugin</a>
201
- </div>
202
- </div>
203
- <div class="opinionstage-section-raw">
204
- <div class="opinionstage-section-cell">
205
- <?php echo opinionstage_create_link('Poll examples', 'showcase'); ?>
206
- </div>
207
- </div>
208
- <div class="opinionstage-section-raw">
209
- <div class="opinionstage-section-cell">
210
- <?php echo opinionstage_create_link('Discover content', 'discover'); ?>
211
- </div>
212
- </div>
213
- <div class="opinionstage-section-raw">
214
- <div class="opinionstage-section-cell">
215
- <?php echo opinionstage_logged_in_link('Monetize your traffic', "http://".OPINIONSTAGE_SERVER_BASE."/advanced-solutions"); ?>
216
- </div>
217
- </div>
218
- <div class="opinionstage-section-raw">
219
- <div class="opinionstage-section-cell">
220
- <a href="https://opinionstage.zendesk.com/anonymous_requests/new" target="_blank">Contact Us</a>
221
- </div>
222
- </div>
223
- </div>
224
- </div>
225
- </div>
226
  </div>
227
  <div class="opinionstage-dashboard-right">
228
  <div id="opinionstage-section-placements" class="opinionstage-dashboard-section <?php echo($first_time ? "opinionstage-disabled-section" : "")?>">
@@ -303,7 +291,41 @@ function opinionstage_add_poll_page() {
303
  </div>
304
  </div>
305
  </div>
306
- </div>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
307
  </div>
308
  </div>
309
  </div>
84
  if (email == emailInput.data('watermark')) {
85
  email = "";
86
  }
87
+ var new_location = "http://" + "<?php echo OPINIONSTAGE_LOGIN_PATH.'?o='.OPINIONSTAGE_WIDGET_API_KEY.'&callback=' ?>" + encodeURIComponent(callbackURL) + "&email=" + email;
88
  window.location = new_location;
89
  });
90
 
91
  $('#os-switch-email').click(function(){
92
+ var new_location = "http://" + "<?php echo OPINIONSTAGE_LOGIN_PATH.'?o='.OPINIONSTAGE_WIDGET_API_KEY.'&callback=' ?>" + encodeURIComponent(callbackURL);
93
  window.location = new_location;
94
  });
95
 
115
  </script>
116
  <div id="opinionstage-content">
117
  <div id="opinionstage-frame">
118
+ <div class="opinionstage-header-wrapper">
119
+ <div class="opinionstage-menu-wrapper">
120
+ <div class="opinionstage-logo-wrapper">
121
+ <div class="opinionstage-logo"></div>
122
+ </div>
123
+ <?php if(!$first_time) {?>
124
+ <ul class="opinionstage-menu">
125
+ <li class="opinionstage-nav-item">
126
+ <a href="<?php echo opinionstage_url_with_token('http://'.OPINIONSTAGE_SERVER_BASE.'/dashboard/content'); ?>" target="_blank">
127
+ <div class="os-icon icon-os-menu-content"></div>
128
+ <div class="opinionstage-label">CONTENT</div>
129
+ <div class="opinionstage-hover-indicator"></div>
130
+ </a>
131
+ </li>
132
+ <li class="opinionstage-nav-item">
133
+ <a href="<?php echo opinionstage_url_with_token('http://'.OPINIONSTAGE_SERVER_BASE.'/dashboard/reports'); ?>" target="_blank">
134
+ <div class="os-icon icon-os-menu-reports"></div>
135
+ <div class="opinionstage-label">REPORTS</div>
136
+ <div class="opinionstage-hover-indicator"></div>
137
+ </a>
138
+ </li>
139
+ </ul>
140
+ <?php } ?>
141
  </div>
142
  <div class="opinionstage-status-wrapper">
143
  <div class="opinionstage-status-content">
152
  <label class="checked" for="user-email"></label>
153
  <input id="os-email" type="text" disabled="disabled" value="<?php echo($os_options["email"]) ?>"/>
154
  <a href="javascript:void(0)" id="os-switch-email" >Switch account</a>
155
+ <?php } ?>
156
  </div>
157
  </div>
158
  </div>
163
  <div class="opinionstage-section-content">
164
  <div class="opinionstage-section-raw">
165
  <div class="opinionstage-section-cell opinionstage-icon-cell">
166
+ <div class="os-icon icon-os-reports-polls"></div>
167
  </div>
168
  <div class="opinionstage-section-cell opinionstage-description-cell">
169
  <div class="title">Poll</div>
211
  </div>
212
  </div>
213
  </div>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
214
  </div>
215
  <div class="opinionstage-dashboard-right">
216
  <div id="opinionstage-section-placements" class="opinionstage-dashboard-section <?php echo($first_time ? "opinionstage-disabled-section" : "")?>">
291
  </div>
292
  </div>
293
  </div>
294
+ </div>
295
+ <div class="opinionstage-dashboard-left">
296
+ <div id="opinionstage-section-help" class="opinionstage-dashboard-section">
297
+ <div class="opinionstage-section-header">Help</div>
298
+ <div class="opinionstage-section-content-wrapper">
299
+ <div class="opinionstage-section-content">
300
+ <div class="opinionstage-section-raw">
301
+ <div class="opinionstage-section-cell">
302
+ <a href="http://blog.opinionstage.com/how-to-add-interactive-content-on-wordpress/?o=wp35e8" target="_blank">How to use this plugin</a>
303
+ </div>
304
+ </div>
305
+ <div class="opinionstage-section-raw">
306
+ <div class="opinionstage-section-cell">
307
+ <?php echo opinionstage_create_link('Poll examples', 'showcase'); ?>
308
+ </div>
309
+ </div>
310
+ <div class="opinionstage-section-raw">
311
+ <div class="opinionstage-section-cell">
312
+ <?php echo opinionstage_create_link('Discover content', 'discover'); ?>
313
+ </div>
314
+ </div>
315
+ <div class="opinionstage-section-raw">
316
+ <div class="opinionstage-section-cell">
317
+ <?php echo opinionstage_logged_in_link('Monetize your traffic', "http://".OPINIONSTAGE_SERVER_BASE."/advanced-solutions"); ?>
318
+ </div>
319
+ </div>
320
+ <div class="opinionstage-section-raw">
321
+ <div class="opinionstage-section-cell">
322
+ <a href="https://opinionstage.zendesk.com/anonymous_requests/new" target="_blank">Contact Us</a>
323
+ </div>
324
+ </div>
325
+ </div>
326
+ </div>
327
+ </div>
328
+ </div>
329
  </div>
330
  </div>
331
  </div>
opinionstage-polls.php CHANGED
@@ -3,7 +3,7 @@
3
  Plugin Name: Poll & Quiz Tools by OpinionStage
4
  Plugin URI: http://www.opinionstage.com
5
  Description: Adds highly engaging polls & quizzes to your site. Easily add polls & quizzes to any post/page or to your site sidebar.
6
- Version: 14.5.0
7
  Author: OpinionStage.com
8
  Author URI: http://www.opinionstage.com
9
  Text Domain: social-polls-by-opinionstage
@@ -12,7 +12,7 @@ Text Domain: social-polls-by-opinionstage
12
  /* --- Static initializer for Wordpress hooks --- */
13
 
14
  define('OPINIONSTAGE_SERVER_BASE', "www.opinionstage.com"); /* Don't include the protocol, added dynamically */
15
- define('OPINIONSTAGE_WIDGET_VERSION', '14.5.0');
16
  define('OPINIONSTAGE_WIDGET_PLUGIN_NAME', 'Poll & Quiz Tools by OpinionStage');
17
  define('OPINIONSTAGE_WIDGET_API_KEY', 'wp35e8');
18
  define('OPINIONSTAGE_OPTIONS_KEY', 'opinionstage_widget');
3
  Plugin Name: Poll & Quiz Tools by OpinionStage
4
  Plugin URI: http://www.opinionstage.com
5
  Description: Adds highly engaging polls & quizzes to your site. Easily add polls & quizzes to any post/page or to your site sidebar.
6
+ Version: 14.6.0
7
  Author: OpinionStage.com
8
  Author URI: http://www.opinionstage.com
9
  Text Domain: social-polls-by-opinionstage
12
  /* --- Static initializer for Wordpress hooks --- */
13
 
14
  define('OPINIONSTAGE_SERVER_BASE', "www.opinionstage.com"); /* Don't include the protocol, added dynamically */
15
+ define('OPINIONSTAGE_WIDGET_VERSION', '14.6.0');
16
  define('OPINIONSTAGE_WIDGET_PLUGIN_NAME', 'Poll & Quiz Tools by OpinionStage');
17
  define('OPINIONSTAGE_WIDGET_API_KEY', 'wp35e8');
18
  define('OPINIONSTAGE_OPTIONS_KEY', 'opinionstage_widget');
opinionstage-utility-functions.php CHANGED
@@ -162,7 +162,7 @@ function opinionstage_create_link($caption, $page, $params = "", $css_class = ''
162
  */
163
  function opinionstage_add_stylesheet() {
164
  // Respects SSL, Style.css is relative to the current file
165
- wp_register_style( 'opinionstage-style', plugins_url('opinionstage-style.css', __FILE__) );
166
  wp_register_style( 'opinionstage-font-style', plugins_url('opinionstage-font.css', __FILE__) );
167
  wp_enqueue_style( 'opinionstage-style' );
168
  wp_enqueue_style( 'opinionstage-font-style' );
@@ -177,6 +177,22 @@ function opinionstage_flyout_edit_url($tab) {
177
  }
178
  return 'http://'.OPINIONSTAGE_SERVER_BASE.'/containers/'.$os_options['fly_id'].'/edit?selected_tab='.$tab.'&token='.$os_options['token'];
179
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
180
  /**
181
  * Generates a link for editing the article placement on Opinion Stage site
182
  */
@@ -233,36 +249,13 @@ function opinionstage_create_widget_link($w_type, $css_class) {
233
  function opinionstage_callback_url() {
234
  return get_admin_url('', '', 'admin') . 'admin.php?page='.OPINIONSTAGE_WIDGET_UNIQUE_ID.'/opinionstage-callback.php';
235
  }
236
- /**
237
- * Generates a link for creating a set
238
- */
239
- function opinionstage_create_set_link() {
240
- $os_options = (array) get_option(OPINIONSTAGE_OPTIONS_KEY);
241
- if (empty($os_options["uid"])) {
242
- return opinionstage_create_link('Create a Set', 'sets/new');
243
- } else {
244
- return opinionstage_create_link('Create a Set', 'sets/new', 'token='.$os_options['token']);
245
- }
246
- }
247
- /**
248
- * Generates a link to the dashboard in Opinion Stage site
249
- */
250
- function opinionstage_dashboard_link($text) {
251
- $os_options = (array) get_option(OPINIONSTAGE_OPTIONS_KEY);
252
- if (empty($os_options["uid"])) {
253
- return opinionstage_create_link($text, 'dashboard');
254
- } else {
255
- return opinionstage_create_link($text, 'dashboard', 'token='.$os_options['token']);
256
- }
257
- }
258
  /**
259
  * Generates a link to Opinion Stage that requires registration
260
  */
261
  function opinionstage_logged_in_link($text, $link) {
262
  return opinionstage_create_link($text, 'registrations/new', 'return_to='.$link);
263
  }
264
-
265
-
266
  /**
267
  * Perform an HTTP GET Call to retrieve the data for the required content.
268
  *
162
  */
163
  function opinionstage_add_stylesheet() {
164
  // Respects SSL, Style.css is relative to the current file
165
+ wp_register_style( 'opinionstage-style', plugins_url('opinionstage-common.css', __FILE__) );
166
  wp_register_style( 'opinionstage-font-style', plugins_url('opinionstage-font.css', __FILE__) );
167
  wp_enqueue_style( 'opinionstage-style' );
168
  wp_enqueue_style( 'opinionstage-font-style' );
177
  }
178
  return 'http://'.OPINIONSTAGE_SERVER_BASE.'/containers/'.$os_options['fly_id'].'/edit?selected_tab='.$tab.'&token='.$os_options['token'];
179
  }
180
+
181
+ /**
182
+ * Generates a link with a token if available
183
+ */
184
+ function opinionstage_url_with_token($url) {
185
+ $os_options = (array) get_option(OPINIONSTAGE_OPTIONS_KEY);
186
+ $token_suffix = '';
187
+ if (!empty($os_options["uid"])) {
188
+ if (strpos($url,'?') !== FALSE) {
189
+ $token_suffix = '&token='.$os_options['token'];
190
+ } else {
191
+ $token_suffix = '?token='.$os_options['token'];
192
+ }
193
+ }
194
+ return $url.$token_suffix;
195
+ }
196
  /**
197
  * Generates a link for editing the article placement on Opinion Stage site
198
  */
249
  function opinionstage_callback_url() {
250
  return get_admin_url('', '', 'admin') . 'admin.php?page='.OPINIONSTAGE_WIDGET_UNIQUE_ID.'/opinionstage-callback.php';
251
  }
252
+
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
253
  /**
254
  * Generates a link to Opinion Stage that requires registration
255
  */
256
  function opinionstage_logged_in_link($text, $link) {
257
  return opinionstage_create_link($text, 'registrations/new', 'return_to='.$link);
258
  }
 
 
259
  /**
260
  * Perform an HTTP GET Call to retrieve the data for the required content.
261
  *
opinionstage-widget.php CHANGED
@@ -100,14 +100,16 @@
100
  <div class="os-icon icon-os-form-success"></div>
101
  <p>
102
  <input id="os-email" type="text" disabled="disabled" value="<?php echo($os_options["email"]) ?>"/>
103
- <a href="javascript:void(0)" class="os-button switch-email" id="os-switch-email" >Switch Account</a>
104
  </p>
105
  <p>
106
  <label for="<?php echo $this->get_field_id('title'); ?>"><?php _e('Title', OPINIONSTAGE_WIDGET_UNIQUE_ID); ?></label>
107
  <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; ?>" />
108
  </p>
109
- <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" : "") ?> />
110
- <label for="<?php echo $this->get_field_id('enabled'); ?>">Enabled</label>
 
 
111
  <div class="left">
112
  <a href="<?php echo opinionstage_sidebar_placement_edit_url('content'); ?>" target="_blank" class='os-configure-content'>Configure content</a>
113
  </div>
100
  <div class="os-icon icon-os-form-success"></div>
101
  <p>
102
  <input id="os-email" type="text" disabled="disabled" value="<?php echo($os_options["email"]) ?>"/>
103
+ <a href="javascript:void(0)" class="switch-email" id="os-switch-email" >Switch Account</a>
104
  </p>
105
  <p>
106
  <label for="<?php echo $this->get_field_id('title'); ?>"><?php _e('Title', OPINIONSTAGE_WIDGET_UNIQUE_ID); ?></label>
107
  <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; ?>" />
108
  </p>
109
+ <p>
110
+ <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" : "") ?> />
111
+ <label for="<?php echo $this->get_field_id('enabled'); ?>">Enabled</label>
112
+ </p>
113
  <div class="left">
114
  <a href="<?php echo opinionstage_sidebar_placement_edit_url('content'); ?>" target="_blank" class='os-configure-content'>Configure content</a>
115
  </div>
readme.txt CHANGED
@@ -242,6 +242,8 @@ You can create many different types of quizzes: Trivia quiz, personality quiz, i
242
  N/A
243
 
244
  == Changelog ==
 
 
245
  = Version 14.5.0 =
246
  * Renamed style to avoid css caching issues
247
  = Version 14.4.0 =
242
  N/A
243
 
244
  == Changelog ==
245
+ = Version 14.6.0 =
246
+ * Various UI modifications - added top navigation links, dashboard UI is now more responsive.
247
  = Version 14.5.0 =
248
  * Renamed style to avoid css caching issues
249
  = Version 14.4.0 =