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

Version Description

  • Double page bug fix
    • Plugin renamed
Download this release

Release Info

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

Code changes from version 19.6.1 to 19.6.2

admin/create-page-template.php CHANGED
@@ -1,11 +1,6 @@
1
  <?php
2
  // block direct access to plugin PHP files:
3
  defined( 'ABSPATH' ) or die();
4
-
5
- opinionstage_enqueue_css_asset('menu-page');
6
- opinionstage_enqueue_css_asset('icon-font');
7
- opinionstage_enqueue_js_asset('menu-page');
8
-
9
  ?>
10
 
11
  <div id="opinionstage-content">
1
  <?php
2
  // block direct access to plugin PHP files:
3
  defined( 'ABSPATH' ) or die();
 
 
 
 
 
4
  ?>
5
 
6
  <div id="opinionstage-content">
admin/enqueue-scripts.php ADDED
@@ -0,0 +1,20 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ // block direct access to plugin PHP files:
3
+ defined( 'ABSPATH' ) or die();
4
+
5
+ function opinionstage_admin_page_assets() {
6
+ if ($_REQUEST['page'] == OPINIONSTAGE_MENU_SLUG || $_REQUEST['page'] == OPINIONSTAGE_PLACEMENT_SLUG || $_REQUEST['page'] == OPINIONSTAGE_GETTING_STARTED_SLUG) {
7
+
8
+ opinionstage_register_css_asset( 'menu-page', 'menu-page.css' );
9
+ opinionstage_register_css_asset( 'icon-font', 'icon-font.css' );
10
+ opinionstage_register_javascript_asset( 'menu-page', 'menu-page.js', array('jquery') );
11
+
12
+ opinionstage_enqueue_css_asset('menu-page');
13
+ opinionstage_enqueue_css_asset('icon-font');
14
+ opinionstage_enqueue_js_asset('menu-page');
15
+
16
+ }
17
+ }
18
+
19
+ add_action( 'admin_enqueue_scripts', 'opinionstage_admin_page_assets' );
20
+ ?>
admin/init.php CHANGED
@@ -2,10 +2,12 @@
2
  // block direct access to plugin PHP files:
3
  defined( 'ABSPATH' ) or die();
4
 
 
5
  require( plugin_dir_path( __FILE__ ).'opinionstage-login-callback.php' );
6
  require( plugin_dir_path( __FILE__ ).'opinionstage-disconnect.php' );
7
  require( plugin_dir_path( __FILE__ ).'opinionstage-content-login-callback.php' );
8
  require( plugin_dir_path( __FILE__ ).'menu-page.php' );
9
  require( plugin_dir_path( __FILE__ ).'content-popup.php' );
10
  require( plugin_dir_path( __FILE__ ).'deactivate-feedback.php' );
 
11
  ?>
2
  // block direct access to plugin PHP files:
3
  defined( 'ABSPATH' ) or die();
4
 
5
+ require( plugin_dir_path( __FILE__ ).'enqueue-scripts.php' );
6
  require( plugin_dir_path( __FILE__ ).'opinionstage-login-callback.php' );
7
  require( plugin_dir_path( __FILE__ ).'opinionstage-disconnect.php' );
8
  require( plugin_dir_path( __FILE__ ).'opinionstage-content-login-callback.php' );
9
  require( plugin_dir_path( __FILE__ ).'menu-page.php' );
10
  require( plugin_dir_path( __FILE__ ).'content-popup.php' );
11
  require( plugin_dir_path( __FILE__ ).'deactivate-feedback.php' );
12
+
13
  ?>
admin/menu-page.php CHANGED
@@ -19,8 +19,8 @@ function opinionstage_register_menu_page() {
19
  '25.234323221'
20
  );
21
  add_submenu_page(OPINIONSTAGE_MENU_SLUG, 'Create...', 'Create...', 'manage_options', OPINIONSTAGE_MENU_SLUG);
22
- add_submenu_page(OPINIONSTAGE_MENU_SLUG, 'Placements', 'Placements', 'manage_options', 'opinionstage_my_placements' , 'opinionstage_my_placements' );
23
- add_submenu_page(OPINIONSTAGE_MENU_SLUG, 'Getting Started', 'Getting Started', 'manage_options', 'opinionstage_getting_started','opinionstage_getting_started' );
24
  add_submenu_page(OPINIONSTAGE_MENU_SLUG, 'Help Center', 'Help Center', 'manage_options', 'https://help.opinionstage.com/?utm_campaign=WPMainPI&utm_medium=linkhelpcenter&utm_source=wordpress&o=wp35e8' );
25
  add_submenu_page(OPINIONSTAGE_MENU_SLUG, 'Live Examples', 'Live Examples', 'manage_options', 'https://www.opinionstage.com/discover?utm_campaign=WPMainPI&utm_medium=linkexamples&utm_source=wordpress&o=wp35e8' );
26
  }
@@ -28,35 +28,22 @@ function opinionstage_register_menu_page() {
28
 
29
  function opinionstage_menu_page() {
30
  $os_options = (array) get_option(OPINIONSTAGE_OPTIONS_KEY);
31
-
32
  $os_client_logged_in = opinionstage_user_logged_in();
33
 
34
- opinionstage_register_css_asset( 'menu-page', 'menu-page.css' );
35
- opinionstage_register_css_asset( 'icon-font', 'icon-font.css' );
36
- opinionstage_register_javascript_asset( 'menu-page', 'menu-page.js', array('jquery') );
37
-
38
  require( plugin_dir_path( __FILE__ ).'create-page-template.php' );
39
  }
40
 
41
  function opinionstage_my_placements(){
42
  $os_options = (array) get_option(OPINIONSTAGE_OPTIONS_KEY);
43
-
44
  $os_client_logged_in = opinionstage_user_logged_in();
45
 
46
- opinionstage_register_css_asset( 'menu-page', 'menu-page.css' );
47
- opinionstage_register_css_asset( 'icon-font', 'icon-font.css' );
48
- opinionstage_register_javascript_asset( 'menu-page', 'menu-page.js', array('jquery') );
49
  require( plugin_dir_path( __FILE__ ).'/views/placement-page-template.php' );
50
  }
51
 
52
  function opinionstage_getting_started(){
53
  $os_options = (array) get_option(OPINIONSTAGE_OPTIONS_KEY);
54
-
55
  $os_client_logged_in = opinionstage_user_logged_in();
56
 
57
- opinionstage_register_css_asset( 'menu-page', 'menu-page.css' );
58
- opinionstage_register_css_asset( 'icon-font', 'icon-font.css' );
59
- opinionstage_register_javascript_asset( 'menu-page', 'menu-page.js', array('jquery') );
60
  require( plugin_dir_path( __FILE__ ).'/views/getting-started-page-template.php' );
61
  }
62
 
19
  '25.234323221'
20
  );
21
  add_submenu_page(OPINIONSTAGE_MENU_SLUG, 'Create...', 'Create...', 'manage_options', OPINIONSTAGE_MENU_SLUG);
22
+ add_submenu_page(OPINIONSTAGE_MENU_SLUG, 'Placements', 'Placements', 'manage_options', OPINIONSTAGE_PLACEMENT_SLUG , 'opinionstage_my_placements' );
23
+ add_submenu_page(OPINIONSTAGE_MENU_SLUG, 'Getting Started', 'Getting Started', 'manage_options', OPINIONSTAGE_GETTING_STARTED_SLUG,'opinionstage_getting_started' );
24
  add_submenu_page(OPINIONSTAGE_MENU_SLUG, 'Help Center', 'Help Center', 'manage_options', 'https://help.opinionstage.com/?utm_campaign=WPMainPI&utm_medium=linkhelpcenter&utm_source=wordpress&o=wp35e8' );
25
  add_submenu_page(OPINIONSTAGE_MENU_SLUG, 'Live Examples', 'Live Examples', 'manage_options', 'https://www.opinionstage.com/discover?utm_campaign=WPMainPI&utm_medium=linkexamples&utm_source=wordpress&o=wp35e8' );
26
  }
28
 
29
  function opinionstage_menu_page() {
30
  $os_options = (array) get_option(OPINIONSTAGE_OPTIONS_KEY);
 
31
  $os_client_logged_in = opinionstage_user_logged_in();
32
 
 
 
 
 
33
  require( plugin_dir_path( __FILE__ ).'create-page-template.php' );
34
  }
35
 
36
  function opinionstage_my_placements(){
37
  $os_options = (array) get_option(OPINIONSTAGE_OPTIONS_KEY);
 
38
  $os_client_logged_in = opinionstage_user_logged_in();
39
 
 
 
 
40
  require( plugin_dir_path( __FILE__ ).'/views/placement-page-template.php' );
41
  }
42
 
43
  function opinionstage_getting_started(){
44
  $os_options = (array) get_option(OPINIONSTAGE_OPTIONS_KEY);
 
45
  $os_client_logged_in = opinionstage_user_logged_in();
46
 
 
 
 
47
  require( plugin_dir_path( __FILE__ ).'/views/getting-started-page-template.php' );
48
  }
49
 
admin/views/getting-started-page-template.php CHANGED
@@ -1,11 +1,6 @@
1
  <?php
2
  // block direct access to plugin PHP files:
3
  defined( 'ABSPATH' ) or die();
4
-
5
- opinionstage_enqueue_css_asset('menu-page');
6
- opinionstage_enqueue_css_asset('icon-font');
7
- opinionstage_enqueue_js_asset('menu-page');
8
-
9
  ?>
10
  <div id="opinionstage-content">
11
  <div class="gettingStartedSection">
1
  <?php
2
  // block direct access to plugin PHP files:
3
  defined( 'ABSPATH' ) or die();
 
 
 
 
 
4
  ?>
5
  <div id="opinionstage-content">
6
  <div class="gettingStartedSection">
admin/views/placement-page-template.php CHANGED
@@ -1,11 +1,6 @@
1
  <?php
2
  // block direct access to plugin PHP files:
3
  defined( 'ABSPATH' ) or die();
4
-
5
- opinionstage_enqueue_css_asset('menu-page');
6
- opinionstage_enqueue_css_asset('icon-font');
7
- opinionstage_enqueue_js_asset('menu-page');
8
-
9
  ?>
10
  <div id="opinionstage-content">
11
  <div class="opinionstage-header-wrapper">
1
  <?php
2
  // block direct access to plugin PHP files:
3
  defined( 'ABSPATH' ) or die();
 
 
 
 
 
4
  ?>
5
  <div id="opinionstage-content">
6
  <div class="opinionstage-header-wrapper">
opinionstage-polls.php CHANGED
@@ -1,9 +1,9 @@
1
  <?php
2
  /*
3
- Plugin Name: Poll, Survey, Quiz, Slideshow, Form & Story Article (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.1
7
  Author: OpinionStage.com
8
  Author URI: https://www.opinionstage.com
9
  Text Domain: social-polls-by-opinionstage
1
  <?php
2
  /*
3
+ Plugin Name: Poll, Survey, Quiz & Form Maker by Opinion Stage (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.2
7
  Author: OpinionStage.com
8
  Author URI: https://www.opinionstage.com
9
  Text Domain: social-polls-by-opinionstage
plugin.php CHANGED
@@ -1,9 +1,9 @@
1
  <?php
2
  /*
3
- Plugin Name: Poll, Survey, Quiz, Slideshow, Form & Story Article
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.1
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.1');
28
 
29
  define('OPINIONSTAGE_TEXT_DOMAIN', 'social-polls-by-opinionstage');
30
 
@@ -48,6 +48,9 @@ define('OPINIONSTAGE_WIDGET_SHORTCODE', 'os-widget');
48
  define('OPINIONSTAGE_PLACEMENT_SHORTCODE', 'osplacement');
49
 
50
  define('OPINIONSTAGE_MENU_SLUG', 'opinionstage-settings');
 
 
 
51
  define('OPINIONSTAGE_LOGIN_CALLBACK_SLUG', 'opinionstage-login-callback');
52
 
53
  // Check if active plugin file is plugin.php on plugin activate hook
1
  <?php
2
  /*
3
+ Plugin Name: Poll, Survey, Quiz & Form Maker by Opinion Stage
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.2
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.2');
28
 
29
  define('OPINIONSTAGE_TEXT_DOMAIN', 'social-polls-by-opinionstage');
30
 
48
  define('OPINIONSTAGE_PLACEMENT_SHORTCODE', 'osplacement');
49
 
50
  define('OPINIONSTAGE_MENU_SLUG', 'opinionstage-settings');
51
+ define('OPINIONSTAGE_PLACEMENT_SLUG', 'opinionstage-my-placements');
52
+ define('OPINIONSTAGE_GETTING_STARTED_SLUG', 'opinionstage-getting-started');
53
+
54
  define('OPINIONSTAGE_LOGIN_CALLBACK_SLUG', 'opinionstage-login-callback');
55
 
56
  // Check if active plugin file is plugin.php on plugin activate hook
readme.txt CHANGED
@@ -1,10 +1,10 @@
1
- === Poll, Survey, Quiz, Slideshow, Form & Story Article ===
2
  Contributors: OpinionStage.com
3
  Donate link: https://www.opinionstage.com
4
  Tags: poll, quiz, survey, form, slideshow, story, article
5
  Requires at least: 2.8
6
  Tested up to: 4.9
7
- Stable tag: 19.6.1
8
 
9
  Easily add polls, surveys, quizzes, slideshows, forms & story article to your website. 
10
 
@@ -178,8 +178,11 @@ Polls include one question for getting a quick answer on a question. Polls are o
178
  N/A
179
 
180
  == Changelog ==
 
 
 
181
  = 19.6.1 =
182
- * plugin rename: improved fix
183
  = 19.6.0 =
184
  * Plugin filename fix
185
  * Backward Compatibility added
1
+ === Poll, Survey, Quiz & Form Maker by Opinion Stage ===
2
  Contributors: OpinionStage.com
3
  Donate link: https://www.opinionstage.com
4
  Tags: poll, quiz, survey, form, slideshow, story, article
5
  Requires at least: 2.8
6
  Tested up to: 4.9
7
+ Stable tag: 19.6.2
8
 
9
  Easily add polls, surveys, quizzes, slideshows, forms & story article to your website. 
10
 
178
  N/A
179
 
180
  == Changelog ==
181
+ = 19.6.2 =
182
+ * Double page bug fix
183
+ * Plugin renamed
184
  = 19.6.1 =
185
+ * Plugin rename: improved fix
186
  = 19.6.0 =
187
  * Plugin filename fix
188
  * Backward Compatibility added