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

Version Description

  • navigation links update
Download this release

Release Info

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

Code changes from version 19.6.9 to 19.6.10

admin/deactivate-feedback.php CHANGED
@@ -11,10 +11,6 @@ function add_deactivate_feedback_form() {
11
  return;
12
  }
13
 
14
- if(opinionstage_user_access_token() == null){
15
- return;
16
- }
17
-
18
  include 'views/deactivate-feedback-form.php';
19
  }
20
 
11
  return;
12
  }
13
 
 
 
 
 
14
  include 'views/deactivate-feedback-form.php';
15
  }
16
 
admin/menu-page.php CHANGED
@@ -21,7 +21,7 @@ function opinionstage_register_menu_page() {
21
  add_submenu_page(OPINIONSTAGE_MENU_SLUG, 'Placements', 'Placements', 'edit_posts', OPINIONSTAGE_PLACEMENT_SLUG , 'opinionstage_load_template' );
22
  add_submenu_page(OPINIONSTAGE_MENU_SLUG, 'Getting Started', 'Getting Started', 'edit_posts', OPINIONSTAGE_GETTING_STARTED_SLUG,'opinionstage_load_template' );
23
  add_submenu_page(OPINIONSTAGE_MENU_SLUG, 'Help Center', 'Help Center', 'edit_posts', 'https://help.opinionstage.com/?utm_campaign=WPMainPI&utm_medium=linkhelpcenter&utm_source=wordpress&o=wp35e8' );
24
- add_submenu_page(OPINIONSTAGE_MENU_SLUG, 'Live Examples', 'Live Examples', 'edit_posts', 'https://www.opinionstage.com/discover?utm_campaign=WPMainPI&utm_medium=linkexamples&utm_source=wordpress&o=wp35e8' );
25
  }else{
26
  add_menu_page(
27
  __('Opinion Stage', OPINIONSTAGE_TEXT_DOMAIN),
@@ -36,7 +36,7 @@ function opinionstage_register_menu_page() {
36
  add_submenu_page(OPINIONSTAGE_GETTING_STARTED_SLUG, 'Create...', 'Create...', 'edit_posts', OPINIONSTAGE_MENU_SLUG, 'opinionstage_load_template');
37
  add_submenu_page(OPINIONSTAGE_GETTING_STARTED_SLUG, 'Placements', 'Placements', 'edit_posts', OPINIONSTAGE_PLACEMENT_SLUG , 'opinionstage_load_template' );
38
  add_submenu_page(OPINIONSTAGE_GETTING_STARTED_SLUG, 'Help Center', 'Help Center', 'edit_posts', 'https://help.opinionstage.com/?utm_campaign=WPMainPI&utm_medium=linkhelpcenter&utm_source=wordpress&o=wp35e8' );
39
- add_submenu_page(OPINIONSTAGE_GETTING_STARTED_SLUG, 'Live Examples', 'Live Examples', 'edit_posts', 'https://www.opinionstage.com/discover?utm_campaign=WPMainPI&utm_medium=linkexamples&utm_source=wordpress&o=wp35e8' );
40
  }
41
  }
42
  }
21
  add_submenu_page(OPINIONSTAGE_MENU_SLUG, 'Placements', 'Placements', 'edit_posts', OPINIONSTAGE_PLACEMENT_SLUG , 'opinionstage_load_template' );
22
  add_submenu_page(OPINIONSTAGE_MENU_SLUG, 'Getting Started', 'Getting Started', 'edit_posts', OPINIONSTAGE_GETTING_STARTED_SLUG,'opinionstage_load_template' );
23
  add_submenu_page(OPINIONSTAGE_MENU_SLUG, 'Help Center', 'Help Center', 'edit_posts', 'https://help.opinionstage.com/?utm_campaign=WPMainPI&utm_medium=linkhelpcenter&utm_source=wordpress&o=wp35e8' );
24
+ add_submenu_page(OPINIONSTAGE_MENU_SLUG, 'Templates', 'Templates', 'edit_posts', 'https://www.opinionstage.com/templates?utm_campaign=WPMainPI&utm_medium=linkexamples&utm_source=wordpress&o=wp35e8' );
25
  }else{
26
  add_menu_page(
27
  __('Opinion Stage', OPINIONSTAGE_TEXT_DOMAIN),
36
  add_submenu_page(OPINIONSTAGE_GETTING_STARTED_SLUG, 'Create...', 'Create...', 'edit_posts', OPINIONSTAGE_MENU_SLUG, 'opinionstage_load_template');
37
  add_submenu_page(OPINIONSTAGE_GETTING_STARTED_SLUG, 'Placements', 'Placements', 'edit_posts', OPINIONSTAGE_PLACEMENT_SLUG , 'opinionstage_load_template' );
38
  add_submenu_page(OPINIONSTAGE_GETTING_STARTED_SLUG, 'Help Center', 'Help Center', 'edit_posts', 'https://help.opinionstage.com/?utm_campaign=WPMainPI&utm_medium=linkhelpcenter&utm_source=wordpress&o=wp35e8' );
39
+ add_submenu_page(OPINIONSTAGE_GETTING_STARTED_SLUG, 'Templates', 'Templates', 'edit_posts', 'https://www.opinionstage.com/templates?utm_campaign=WPMainPI&utm_medium=linkexamples&utm_source=wordpress&o=wp35e8' );
40
  }
41
  }
42
  }
admin/views/deactivate-feedback-form.php CHANGED
@@ -55,6 +55,19 @@
55
  font-weight: 600;
56
  }
57
  </style>
 
 
 
 
 
 
 
 
 
 
 
 
 
58
  <script type="text/javascript">
59
  // OS Modal JS here
60
  jQuery(document).ready(function($){
@@ -89,24 +102,12 @@
89
  reason = 'Other: ' + $('.os-other-reason').val();
90
  }
91
 
92
- $.ajax({
93
- url: '<?php echo OPINIONSTAGE_DEACTIVATE_FEEDBACK_API ?>',
94
- headers: {
95
- 'Accept':'application/vnd.api+json',
96
- 'Content-Type':'application/vnd.api+json',
97
- 'OSWP-Plugin-Version':'<?php echo OPINIONSTAGE_WIDGET_VERSION ?>',
98
- 'OSWP-Client-Token': '<?php echo opinionstage_user_access_token() ?>'
99
- },
100
- method: 'POST',
101
- dataType: 'json',
102
- data: JSON.stringify({ data: {type: 'disconnect', attributes: { reason: reason }} }),
103
- success: function(data){
104
- window.location = elemOpen.find('a').attr('href');
105
- },
106
- error: function(){
107
- window.location = elemOpen.find('a').attr('href');
108
- }
109
- });
110
  }else{
111
  // show error.
112
  $('span.alert-error').html('Please select one of the options.');
55
  font-weight: 600;
56
  }
57
  </style>
58
+
59
+ <!-- start Mixpanel -->
60
+ <script type="text/javascript">(function(c,a){if(!a.__SV){var b=window;try{var d,m,j,k=b.location,f=k.hash;d=function(a,b){return(m=a.match(RegExp(b+"=([^&]*)")))?m[1]:null};f&&d(f,"state")&&(j=JSON.parse(decodeURIComponent(d(f,"state"))),"mpeditor"===j.action&&(b.sessionStorage.setItem("_mpcehash",f),history.replaceState(j.desiredHash||"",c.title,k.pathname+k.search)))}catch(n){}var l,h;window.mixpanel=a;a._i=[];a.init=function(b,d,g){function c(b,i){var a=i.split(".");2==a.length&&(b=b[a[0]],i=a[1]);b[i]=function(){b.push([i].concat(Array.prototype.slice.call(arguments,
61
+ 0)))}}var e=a;"undefined"!==typeof g?e=a[g]=[]:g="mixpanel";e.people=e.people||[];e.toString=function(b){var a="mixpanel";"mixpanel"!==g&&(a+="."+g);b||(a+=" (stub)");return a};e.people.toString=function(){return e.toString(1)+".people (stub)"};l="disable time_event track track_pageview track_links track_forms track_with_groups add_group set_group remove_group register register_once alias unregister identify name_tag set_config reset opt_in_tracking opt_out_tracking has_opted_in_tracking has_opted_out_tracking clear_opt_in_out_tracking people.set people.set_once people.unset people.increment people.append people.union people.track_charge people.clear_charges people.delete_user people.remove".split(" ");
62
+ for(h=0;h<l.length;h++)c(e,l[h]);var f="set set_once union unset remove delete".split(" ");e.get_group=function(){function a(c){b[c]=function(){call2_args=arguments;call2=[c].concat(Array.prototype.slice.call(call2_args,0));e.push([d,call2])}}for(var b={},d=["get_group"].concat(Array.prototype.slice.call(arguments,0)),c=0;c<f.length;c++)a(f[c]);return b};a._i.push([b,d,g])};a.__SV=1.2;b=c.createElement("script");b.type="text/javascript";b.async=!0;b.src="undefined"!==typeof MIXPANEL_CUSTOM_LIB_URL?
63
+ MIXPANEL_CUSTOM_LIB_URL:"file:"===c.location.protocol&&"//cdn4.mxpnl.com/libs/mixpanel-2-latest.min.js".match(/^\/\//)?"https://cdn4.mxpnl.com/libs/mixpanel-2-latest.min.js":"//cdn4.mxpnl.com/libs/mixpanel-2-latest.min.js";d=c.getElementsByTagName("script")[0];d.parentNode.insertBefore(b,d)}})(document,window.mixpanel||[]);
64
+ mixpanel.init("73bec82504e0f14a7dba16aebd26b97d",{
65
+ 'ip':false,
66
+ property_blacklist: ['$initial_referrer', '$current_url', '$initial_referring_domain', '$referrer', '$referring_domain']
67
+ } );
68
+ </script>
69
+ <!-- end Mixpanel -->
70
+
71
  <script type="text/javascript">
72
  // OS Modal JS here
73
  jQuery(document).ready(function($){
102
  reason = 'Other: ' + $('.os-other-reason').val();
103
  }
104
 
105
+ mixpanel.track("WordPress Opinion Stage Disconnect",
106
+ {"reason": reason, "details": reason ,"url": window.location.href },
107
+ function(){
108
+ window.location = elemOpen.find('a').attr('href');
109
+ }
110
+ );
 
 
 
 
 
 
 
 
 
 
 
 
111
  }else{
112
  // show error.
113
  $('span.alert-error').html('Please select one of the options.');
admin/views/getting_started.php CHANGED
@@ -49,9 +49,15 @@ defined( 'ABSPATH' ) or die();
49
  <div class="text-section-getting-stared-os">
50
  <p><b>Need more information?</b></p>
51
  <ul>
52
- <li><a href="https://www.opinionstage.com/blog/how-to-add-interactive-content-on-wordpress/?utm_campaign=WPMainPI&amp;utm_medium=linkgettingstarted&amp;utm_source=wordpress&amp;o=wp35e8" target="_blank">Getting started tutorial</a></li>
53
- <li><a href="https://www.opinionstage.com/discover?utm_campaign=WPMainPI&amp;utm_medium=linkexamples&amp;utm_source=wordpress&amp;o=wp35e8" target="_blank">View examples</a></li>
54
- <li><a href="https://help.opinionstage.com/?utm_campaign=WPMainPI&amp;utm_medium=linkhelpcenter&amp;utm_source=wordpress&amp;o=wp35e8" target="_blank">Opinion Stage help center</a></li>
 
 
 
 
 
 
55
  </ul>
56
  </div>
57
  </div>
49
  <div class="text-section-getting-stared-os">
50
  <p><b>Need more information?</b></p>
51
  <ul>
52
+ <li>
53
+ <?php echo opinionstage_link('Getting started tutorial', 'blog/how-to-add-interactive-content-on-wordpress'); ?>
54
+ </li>
55
+ <li>
56
+ <?php echo opinionstage_link('View Templates', 'templates'); ?>
57
+ </li>
58
+ <li>
59
+ <a href="https://help.opinionstage.com/?utm_campaign=WPMainPI&amp;utm_medium=linkhelpcenter&amp;utm_source=wordpress&amp;o=wp35e8" target="_blank">Opinion Stage help center</a>
60
+ </li>
61
  </ul>
62
  </div>
63
  </div>
opinionstage-polls.php CHANGED
@@ -3,7 +3,7 @@
3
  Plugin Name: Poll, Survey, Form & Quiz Maker by OpinionStage (Deprecated)
4
  Plugin URI: https://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.6.9
7
  Author: OpinionStage.com
8
  Author URI: https://www.opinionstage.com
9
  Text Domain: social-polls-by-opinionstage
3
  Plugin Name: Poll, Survey, Form & Quiz Maker by OpinionStage (Deprecated)
4
  Plugin URI: https://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.6.10
7
  Author: OpinionStage.com
8
  Author URI: https://www.opinionstage.com
9
  Text Domain: social-polls-by-opinionstage
plugin.php CHANGED
@@ -3,7 +3,7 @@
3
  Plugin Name: Poll, Survey, Form & Quiz Maker by OpinionStage
4
  Plugin URI: https://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.6.9
7
  Author: OpinionStage.com
8
  Author URI: https://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.6.9');
28
 
29
  define('OPINIONSTAGE_TEXT_DOMAIN', 'social-polls-by-opinionstage');
30
 
3
  Plugin Name: Poll, Survey, Form & Quiz Maker by OpinionStage
4
  Plugin URI: https://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.6.10
7
  Author: OpinionStage.com
8
  Author URI: https://www.opinionstage.com
9
  Text Domain: social-polls-by-opinionstage
24
  }
25
  }
26
 
27
+ define('OPINIONSTAGE_WIDGET_VERSION', '19.6.10');
28
 
29
  define('OPINIONSTAGE_TEXT_DOMAIN', 'social-polls-by-opinionstage');
30
 
readme.txt CHANGED
@@ -4,7 +4,7 @@ Donate link: https://www.opinionstage.com
4
  Tags: poll, quiz, survey, form, interactive content
5
  Requires at least: 2.8
6
  Tested up to: 5.0
7
- Stable tag: 19.6.9
8
 
9
  Add a beautiful & top performing Poll, Survey, Quiz or Form to your site. Create from scratch or use templates. Set it up in Minutes.
10
 
@@ -162,6 +162,8 @@ Polls include one question and are used for getting a quick answer on a question
162
  N/A
163
 
164
  == Changelog ==
 
 
165
  = 19.6.9 =
166
  * add support for new editor Gutenberg
167
  = 19.6.8 =
4
  Tags: poll, quiz, survey, form, interactive content
5
  Requires at least: 2.8
6
  Tested up to: 5.0
7
+ Stable tag: 19.6.10
8
 
9
  Add a beautiful & top performing Poll, Survey, Quiz or Form to your site. Create from scratch or use templates. Set it up in Minutes.
10
 
162
  N/A
163
 
164
  == Changelog ==
165
+ = 19.6.10 =
166
+ * navigation links update
167
  = 19.6.9 =
168
  * add support for new editor Gutenberg
169
  = 19.6.8 =