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

Version Description

N/A

Download this release

Release Info

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

Code changes from version 19.2.5 to 19.2.6

admin/menu-page-template.php CHANGED
@@ -40,7 +40,7 @@ opinionstage_enqueue_js_asset('menu-page');
40
  <div class="opinionstage-section-header">
41
  <div class="opinionstage-section-title">Content</div>
42
  <?php if ( $os_client_logged_in ) {?>
43
- <a href="<?php echo OPINIONSTAGE_SERVER_BASE.'/dashboard/content'; ?>" target="_blank" class="opinionstage-section-action opinionstage-blue-bordered-btn">VIEW MY CONTENT</a>
44
  <?php } ?>
45
  </div>
46
  <div class="opinionstage-section-content">
@@ -247,13 +247,13 @@ opinionstage_enqueue_js_asset('menu-page');
247
  <a href="http://blog.opinionstage.com/how-to-add-interactive-content-on-wordpress/?o=wp35e8" class="opinionstage-help-link" target="_blank">How to use this plugin</a>
248
  </div>
249
  <div class="opinionstage-help-row">
250
- <?php echo opinionstage_create_link('Live content examples', 'discover', '', 'opinionstage-help-link'); ?>
251
  </div>
252
  <div class="opinionstage-help-row">
253
  <a href="http://blog.opinionstage.com/video-tutorials" class="opinionstage-help-link" target="_blank">View all video tutorials</a>
254
  </div>
255
  <div class="opinionstage-help-row">
256
- <a href="https://www.opinionstage.com/dashboard/content?o=wp35e8" class="opinionstage-help-link" target="_blank">To contact us, click here and then on the chat window located on bottom/right of screen</a>
257
  </div>
258
  </div>
259
  </div>
40
  <div class="opinionstage-section-header">
41
  <div class="opinionstage-section-title">Content</div>
42
  <?php if ( $os_client_logged_in ) {?>
43
+ <?php echo opinionstage_link('VIEW MY CONTENT', 'dashboard/content', 'opinionstage-section-action opinionstage-blue-bordered-btn'); ?>
44
  <?php } ?>
45
  </div>
46
  <div class="opinionstage-section-content">
247
  <a href="http://blog.opinionstage.com/how-to-add-interactive-content-on-wordpress/?o=wp35e8" class="opinionstage-help-link" target="_blank">How to use this plugin</a>
248
  </div>
249
  <div class="opinionstage-help-row">
250
+ <?php echo opinionstage_link('Live content examples', 'discover', 'opinionstage-help-link'); ?>
251
  </div>
252
  <div class="opinionstage-help-row">
253
  <a href="http://blog.opinionstage.com/video-tutorials" class="opinionstage-help-link" target="_blank">View all video tutorials</a>
254
  </div>
255
  <div class="opinionstage-help-row">
256
+ <?php echo opinionstage_link('To contact us, click here and then on the chat window located on bottom/right of screen', 'dashboard/content', 'opinionstage-help-link'); ?>
257
  </div>
258
  </div>
259
  </div>
includes/opinionstage-utility-functions.php CHANGED
@@ -6,9 +6,10 @@ defined( 'ABSPATH' ) or die();
6
  /**
7
  * Utility function to create a link with the correct host and all the required information.
8
  */
9
- function opinionstage_create_link($caption, $page, $params = '', $css_class = '') {
10
- $params_prefix = empty($params) ? '' : '&';
11
- $link = OPINIONSTAGE_SERVER_BASE.'/'.$page.'?'.'o='.OPINIONSTAGE_WIDGET_API_KEY.$params_prefix.$params;
 
12
 
13
  return "<a href='{$link}' target='_blank' class='{$css_class}'>{$caption}</a>";
14
  }
@@ -86,24 +87,20 @@ function opinionstage_sidebar_placement_edit_url($tab) {
86
  }
87
 
88
  function opinionstage_create_poll_link($css_class, $title='CREATE') {
89
- return opinionstage_create_link($title, 'new_poll', '', $css_class);
 
90
  }
91
 
92
  function opinionstage_create_poll_set_link($css_class, $title='CREATE') {
93
- return opinionstage_create_link($title, 'sets/new', '', $css_class);
94
  }
95
 
96
  function opinionstage_create_widget_link($w_type, $css_class, $title='CREATE') {
97
- return opinionstage_create_link($title, 'widgets/new', 'w_type='.$w_type, $css_class);
98
  }
99
 
100
  function opinionstage_create_slideshow_link( $css_class, $title='CREATE' ) {
101
- return opinionstage_create_link(
102
- $title,
103
- 'dashboard/slideshows/new',
104
- null,
105
- $css_class
106
- );
107
  }
108
  /**
109
  * Generates a to the callback page used to connect the plugin to the Opinion Stage account
@@ -132,7 +129,7 @@ function opinionstage_add_modal_opening_to_url_params($url) {
132
  * Generates a link to Opinion Stage that requires registration
133
  */
134
  function opinionstage_logged_in_link($text, $link) {
135
- return opinionstage_create_link($text, 'registrations/new', 'return_to='.$link);
136
  }
137
  /**
138
  * Take the received data and parse it
6
  /**
7
  * Utility function to create a link with the correct host and all the required information.
8
  */
9
+ function opinionstage_link($caption, $path, $css_class = '', $query_data = []) {
10
+ $query_data['o'] = OPINIONSTAGE_WIDGET_API_KEY;
11
+
12
+ $link = OPINIONSTAGE_SERVER_BASE.'/'.$path.'?'.http_build_query($query_data);
13
 
14
  return "<a href='{$link}' target='_blank' class='{$css_class}'>{$caption}</a>";
15
  }
87
  }
88
 
89
  function opinionstage_create_poll_link($css_class, $title='CREATE') {
90
+ return opinionstage_link($title, 'api/wp/redirects/widgets/new', $css_class, ['w_type' => 'poll']);
91
+
92
  }
93
 
94
  function opinionstage_create_poll_set_link($css_class, $title='CREATE') {
95
+ return opinionstage_link($title, 'sets/new', $css_class);
96
  }
97
 
98
  function opinionstage_create_widget_link($w_type, $css_class, $title='CREATE') {
99
+ return opinionstage_link($title, 'api/wp/redirects/widgets/new', $css_class, ['w_type' => $w_type]);
100
  }
101
 
102
  function opinionstage_create_slideshow_link( $css_class, $title='CREATE' ) {
103
+ return opinionstage_link($title, 'api/wp/redirects/widgets/new', $css_class, ['w_type' => 'slideshow']);
 
 
 
 
 
104
  }
105
  /**
106
  * Generates a to the callback page used to connect the plugin to the Opinion Stage account
129
  * Generates a link to Opinion Stage that requires registration
130
  */
131
  function opinionstage_logged_in_link($text, $link) {
132
+ return opinionstage_link($text, 'registrations/new', '', ['return_to' => $link]);
133
  }
134
  /**
135
  * Take the received data and parse it
opinionstage-polls.php CHANGED
@@ -3,7 +3,7 @@
3
  Plugin Name: Poll, Survey, Quiz, Slideshow & Form Builder
4
  Plugin URI: http://www.opinionstage.com
5
  Description: Add a highly engaging poll, survey, quiz or contact form builder to your site. You can add the poll, survey, quiz or form to any post/page or to the sidebar.
6
- Version: 19.2.5
7
  Author: OpinionStage.com
8
  Author URI: http://www.opinionstage.com
9
  Text Domain: social-polls-by-opinionstage
@@ -24,7 +24,7 @@ if ( defined('WP_DEBUG') && true === WP_DEBUG ) {
24
  }
25
  }
26
 
27
- define('OPINIONSTAGE_WIDGET_VERSION', '19.2.5');
28
 
29
  define('OPINIONSTAGE_TEXT_DOMAIN', 'social-polls-by-opinionstage');
30
 
3
  Plugin Name: Poll, Survey, Quiz, Slideshow & Form Builder
4
  Plugin URI: http://www.opinionstage.com
5
  Description: Add a highly engaging poll, survey, quiz or contact form builder to your site. You can add the poll, survey, quiz or form to any post/page or to the sidebar.
6
+ Version: 19.2.6
7
  Author: OpinionStage.com
8
  Author URI: http://www.opinionstage.com
9
  Text Domain: social-polls-by-opinionstage
24
  }
25
  }
26
 
27
+ define('OPINIONSTAGE_WIDGET_VERSION', '19.2.6');
28
 
29
  define('OPINIONSTAGE_TEXT_DOMAIN', 'social-polls-by-opinionstage');
30
 
readme.txt CHANGED
@@ -4,7 +4,7 @@ Donate link: http://www.opinionstage.com
4
  Tags: poll, quiz, survey, form builder, slideshow
5
  Requires at least: 2.8
6
  Tested up to: 4.9
7
- Stable tag: 19.2.5
8
 
9
  Add a poll, survey, quiz, slideshow & form builder plugin. Easily add a beautiful poll, survey, quiz, slideshow or form to your site.
10
 
@@ -292,6 +292,8 @@ You can create many different types of quizzes: Trivia quiz, personality quiz, i
292
  N/A
293
 
294
  == Changelog ==
 
 
295
  = Poll, Survey, Quiz, Slideshow & Form Builder Version 19.2.5 =
296
  * minor text updates
297
  = Poll, Survey, Quiz, Slideshow & Form Builder Version 19.2.4 =
4
  Tags: poll, quiz, survey, form builder, slideshow
5
  Requires at least: 2.8
6
  Tested up to: 4.9
7
+ Stable tag: 19.2.6
8
 
9
  Add a poll, survey, quiz, slideshow & form builder plugin. Easily add a beautiful poll, survey, quiz, slideshow or form to your site.
10
 
292
  N/A
293
 
294
  == Changelog ==
295
+ = Poll, Survey, Quiz, Slideshow & Form Builder Version 19.2.6 =
296
+ * fix links to content
297
  = Poll, Survey, Quiz, Slideshow & Form Builder Version 19.2.5 =
298
  * minor text updates
299
  = Poll, Survey, Quiz, Slideshow & Form Builder Version 19.2.4 =