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

Version Description

  • new getting started experience
Download this release

Release Info

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

Code changes from version 19.6.6 to 19.6.7

admin/content-popup-button.php CHANGED
@@ -3,7 +3,7 @@
3
  defined( 'ABSPATH' ) or die();
4
  ?>
5
 
6
- <button data-opinionstage-content-launch class="button">
7
  <img src="<?php echo plugins_url('admin/images/content-popup.png', plugin_dir_path( __FILE__ )) ?>"
8
  width="24"
9
  height="19"
3
  defined( 'ABSPATH' ) or die();
4
  ?>
5
 
6
+ <button data-opinionstage-content-launch class="button" type="button">
7
  <img src="<?php echo plugins_url('admin/images/content-popup.png', plugin_dir_path( __FILE__ )) ?>"
8
  width="24"
9
  height="19"
admin/create-page-template.php CHANGED
@@ -7,30 +7,32 @@ defined( 'ABSPATH' ) or die();
7
  <div class="opinionstage-header-wrapper">
8
  <div class="opinionstage-logo-wrapper">
9
  <div class="opinionstage-logo"></div>
10
- </div>
11
- <div class="opinionstage-status-content">
12
  <?php if ( !$os_client_logged_in ) {?>
13
- <div class='opinionstage-status-title'>Connect WordPress with Opinion Stage to get started</div>
14
- <form action="<?php echo OPINIONSTAGE_LOGIN_PATH ?>" method="get" class="opinionstage-connect-form">
15
- <i class="os-icon icon-os-poll-client"></i>
16
- <input type="hidden" name="utm_source" value="<?php echo OPINIONSTAGE_UTM_SOURCE ?>">
17
- <input type="hidden" name="utm_campaign" value="<?php echo OPINIONSTAGE_UTM_CAMPAIGN ?>">
18
- <input type="hidden" name="utm_medium" value="<?php echo OPINIONSTAGE_UTM_MEDIUM ?>">
19
- <input type="hidden" name="o" value="<?php echo OPINIONSTAGE_WIDGET_API_KEY ?>">
20
- <input type="hidden" name="callback" value="<?php echo opinionstage_callback_url()?>">
21
- <input id="os-email" type="email" name="email" placeholder="Enter Your Email" data-os-email-input>
22
- <button class="opinionstage-connect-btn opinionstage-blue-btn" type="submit" id="os-start-login" data-os-login>CONNECT</button>
23
- </form>
 
 
24
  <?php } else { ?>
25
- <div class='opinionstage-status-title'><b>You are connected</b> to Opinion Stage with the following email</div>
26
- <i class="os-icon icon-os-form-success"></i>
27
- <label class="checked" for="user-email"></label>
28
- <input id="os-email" type="email" disabled value="<?php echo($os_options["email"]) ?>">
29
- <form method="POST" action="<?php echo get_admin_url(null, 'admin.php?page=opinionstage-disconnect-page')?>" class="opinionstage-connect-form">
30
- <button class="opinionstage-connect-btn opinionstage-blue-btn" type="submit" id="os-disconnect">DISCONNECT</button>
31
- </form>
32
- <?php } ?>
33
- </div>
 
34
  </div>
35
  <div class="opinionstage-dashboard">
36
  <div class="opinionstage-dashboard-left">
7
  <div class="opinionstage-header-wrapper">
8
  <div class="opinionstage-logo-wrapper">
9
  <div class="opinionstage-logo"></div>
10
+ </div>
 
11
  <?php if ( !$os_client_logged_in ) {?>
12
+ <div class="opinionstage-status-content">
13
+ <div class='opinionstage-status-title'>Connect WordPress with Opinion Stage to get started</div>
14
+ <form action="<?php echo OPINIONSTAGE_LOGIN_PATH ?>" method="get" class="opinionstage-connect-form">
15
+ <i class="os-icon icon-os-poll-client"></i>
16
+ <input type="hidden" name="utm_source" value="<?php echo OPINIONSTAGE_UTM_SOURCE ?>">
17
+ <input type="hidden" name="utm_campaign" value="<?php echo OPINIONSTAGE_UTM_CAMPAIGN ?>">
18
+ <input type="hidden" name="utm_medium" value="<?php echo OPINIONSTAGE_UTM_MEDIUM ?>">
19
+ <input type="hidden" name="o" value="<?php echo OPINIONSTAGE_WIDGET_API_KEY ?>">
20
+ <input type="hidden" name="callback" value="<?php echo opinionstage_callback_url()?>">
21
+ <input id="os-email" type="email" name="email" placeholder="Enter Your Email" data-os-email-input>
22
+ <button class="opinionstage-connect-btn opinionstage-blue-btn" type="submit" id="os-start-login" data-os-login>CONNECT</button>
23
+ </form>
24
+ </div>
25
  <?php } else { ?>
26
+ <div class="opinionstage-status-content-connected">
27
+ <div class='opinionstage-status-title'>You are connected to Opinion Stage with the following email</div>
28
+ <i class="os-icon icon-os-form-success"></i>
29
+ <label class="checked" for="user-email"></label>
30
+ <input id="os-email" type="email" disabled value="<?php echo($os_options["email"]) ?>">
31
+ <form method="POST" action="<?php echo get_admin_url(null, 'admin.php?page=opinionstage-disconnect-page')?>" class="opinionstage-connect-form">
32
+ <button class="opinionstage-connect-btn opinionstage-blue-btn" type="submit" id="os-disconnect">DISCONNECT</button>
33
+ </form>
34
+ </div>
35
+ <?php } ?>
36
  </div>
37
  <div class="opinionstage-dashboard">
38
  <div class="opinionstage-dashboard-left">
admin/css/menu-page.css CHANGED
@@ -23,10 +23,16 @@
23
  background-size: contain;
24
  }
25
  #opinionstage-content .opinionstage-status-content {
26
- background: url("../images/top-bg.png") no-repeat 0px 0px;
27
- height: 116px;
28
  padding: 30px 30px 0;
29
- color: white;
 
 
 
 
 
 
30
  }
31
  #opinionstage-content .opinionstage-connect-form{
32
  display: inline-block;
@@ -35,7 +41,6 @@
35
  position: relative;
36
  top: -2px;
37
  }
38
-
39
  #opinionstage-content .opinionstage-status-title {
40
  font-size: 23px;
41
  margin-bottom: 20px;
@@ -80,7 +85,6 @@
80
  border: 1px solid #3499c2;
81
  padding: 10px 5px;
82
  }
83
-
84
  #opinionstage-content .opinionstage-dashboard-right a.opinionstage-blue-bordered-btn {
85
  float: left;
86
  margin-right: 5px;
@@ -100,12 +104,13 @@
100
  cursor: default;
101
  }
102
  #opinionstage-content input#os-email {
103
- margin: 0 15px 0 0;
104
- border: none;
105
- font-size: 20px;
106
- font-weight: lighter;
107
- padding: 3px 10px;
108
- min-width: 247px;
 
109
  }
110
  #opinionstage-content input#os-email:disabled {
111
  color: white;
@@ -118,16 +123,15 @@
118
  overflow: hidden;
119
  max-width: 1060px;
120
  }
121
-
122
  #opinionstage-content .opinionstage-dashboard-left , #opinionstage-content .opinionstage-dashboard-right {
123
  float: left;
124
  width: 510px;
125
  }
126
  #opinionstage-content .opinionstage-dashboard-left {
127
- margin-right: 40px;
128
  }
129
  #opinionstage-content .opinionstage-dashboard-section {
130
- margin-bottom: 30px;
131
  }
132
  #opinionstage-content .opinionstage-dashboard-section .opinionstage-section-header {
133
  overflow: hidden;
@@ -166,13 +170,12 @@
166
  font-size: 18px;
167
  color: #3499c2;
168
  font-weight: bold;
169
- margin-bottom: 30px;
170
  }
171
  #opinionstage-content a.opinionstage-help-link {
172
  font-size: 18px;
173
  text-decoration: none;
174
  }
175
-
176
  #opinionstage-content #opinionstage-section-help .opinionstage-section-content {
177
  border: 1px solid #c8c8c9;
178
  }
@@ -184,7 +187,6 @@
184
  #opinionstage-content .opinionstage-help-row:last-child {
185
  border-bottom: none;
186
  }
187
-
188
  #opinionstage-content .opinionstage-dashboard-section .opinionstage-section-content-wrapper {
189
  display: block;
190
  padding: 0 10px;
@@ -232,7 +234,6 @@
232
  #opinionstage-section-create .opinionstage-section-cell.opinionstage-description-cell .example, #opinionstage-section-placements .opinionstage-section-cell.opinionstage-description-cell .example {
233
  color: #b1b1b1;
234
  }
235
-
236
  #opinionstage-section-placements .opinionstage-section-raw {
237
  padding: 5px;
238
  }
@@ -288,7 +289,6 @@
288
  width: 200%;
289
  margin-left: -100%;
290
  }
291
-
292
  #opinionstage-content .opinionstage-onoffswitch-inner:before, .opinionstage-onoffswitch-inner:after {
293
  float: left;
294
  width: 50%;
@@ -341,26 +341,21 @@
341
  }
342
  /* Getting started */
343
  .gettingStartedSection {
344
- width: 100%;
345
- max-width: 950px;
346
- margin: 0px auto;
347
- text-align: center;
348
- margin-top: 50px;
349
  background: #fff;
350
- padding: 30px 0px;
 
 
351
  }
352
  .gettingStartedSection p {
353
- width: fit-content;
354
- margin: 0px auto;
355
- font-size: 14px;
356
- margin-top: 30px;
357
- margin-bottom: 30px;
358
  }
359
  .gettingStartedSection .Video-Section {
360
  display: block;
361
  width: 100%;
362
- max-width: 1024px;
363
- margin: 0px auto;
364
  }
365
  .Video-Section .iframe-new {
366
  display: block;
@@ -377,18 +372,33 @@ h1.gettingStartedHeading {
377
  font-size: 30px;
378
  line-height: 35px;
379
  }
 
 
 
 
 
 
380
  #opinionstage-content a.gettingStartedCreate.button {
381
  color: #ffffff;
382
- background: #0085ba;
383
  box-shadow: 0px 0px 0px 0px;
384
- padding: 13px 37px;
385
  display: block;
386
  height: auto;
387
  width: 100%;
388
  max-width: fit-content;
389
- margin: 0px auto;
390
- font-size: 14px;
391
- letter-spacing: 1px;
392
- margin-top: 50px;
393
  margin-bottom: 20px;
 
 
 
 
 
 
 
 
 
 
 
394
  }
23
  background-size: contain;
24
  }
25
  #opinionstage-content .opinionstage-status-content {
26
+ background-color: #fff;
27
+ height: 115px;
28
  padding: 30px 30px 0;
29
+ color: #000;
30
+ }
31
+ #opinionstage-content .opinionstage-status-content-connected {
32
+ background: url(../images/top-bg.png) no-repeat 0px 0px;
33
+ height: 115px;
34
+ padding: 30px 30px 0;
35
+ color: #fff;
36
  }
37
  #opinionstage-content .opinionstage-connect-form{
38
  display: inline-block;
41
  position: relative;
42
  top: -2px;
43
  }
 
44
  #opinionstage-content .opinionstage-status-title {
45
  font-size: 23px;
46
  margin-bottom: 20px;
85
  border: 1px solid #3499c2;
86
  padding: 10px 5px;
87
  }
 
88
  #opinionstage-content .opinionstage-dashboard-right a.opinionstage-blue-bordered-btn {
89
  float: left;
90
  margin-right: 5px;
104
  cursor: default;
105
  }
106
  #opinionstage-content input#os-email {
107
+ margin: 0 15px 0 0;
108
+ border: none;
109
+ font-size: 20px;
110
+ font-weight: lighter;
111
+ padding: 3px 10px;
112
+ min-width: 247px;
113
+ border: 2px solid #8a8a8a;
114
  }
115
  #opinionstage-content input#os-email:disabled {
116
  color: white;
123
  overflow: hidden;
124
  max-width: 1060px;
125
  }
 
126
  #opinionstage-content .opinionstage-dashboard-left , #opinionstage-content .opinionstage-dashboard-right {
127
  float: left;
128
  width: 510px;
129
  }
130
  #opinionstage-content .opinionstage-dashboard-left {
131
+ margin-right: 40px;
132
  }
133
  #opinionstage-content .opinionstage-dashboard-section {
134
+ margin-bottom: 30px;
135
  }
136
  #opinionstage-content .opinionstage-dashboard-section .opinionstage-section-header {
137
  overflow: hidden;
170
  font-size: 18px;
171
  color: #3499c2;
172
  font-weight: bold;
173
+ margin-bottom: 30px;
174
  }
175
  #opinionstage-content a.opinionstage-help-link {
176
  font-size: 18px;
177
  text-decoration: none;
178
  }
 
179
  #opinionstage-content #opinionstage-section-help .opinionstage-section-content {
180
  border: 1px solid #c8c8c9;
181
  }
187
  #opinionstage-content .opinionstage-help-row:last-child {
188
  border-bottom: none;
189
  }
 
190
  #opinionstage-content .opinionstage-dashboard-section .opinionstage-section-content-wrapper {
191
  display: block;
192
  padding: 0 10px;
234
  #opinionstage-section-create .opinionstage-section-cell.opinionstage-description-cell .example, #opinionstage-section-placements .opinionstage-section-cell.opinionstage-description-cell .example {
235
  color: #b1b1b1;
236
  }
 
237
  #opinionstage-section-placements .opinionstage-section-raw {
238
  padding: 5px;
239
  }
289
  width: 200%;
290
  margin-left: -100%;
291
  }
 
292
  #opinionstage-content .opinionstage-onoffswitch-inner:before, .opinionstage-onoffswitch-inner:after {
293
  float: left;
294
  width: 50%;
341
  }
342
  /* Getting started */
343
  .gettingStartedSection {
 
 
 
 
 
344
  background: #fff;
345
+ width: 100%;
346
+ max-width: 100%;
347
+ padding: 30px;
348
  }
349
  .gettingStartedSection p {
350
+ font-size: 20px;
351
+ margin: 0px;
352
+ margin-bottom: 20px;
 
 
353
  }
354
  .gettingStartedSection .Video-Section {
355
  display: block;
356
  width: 100%;
357
+ max-width: 700px;
358
+ /*margin: 0px auto;*/
359
  }
360
  .Video-Section .iframe-new {
361
  display: block;
372
  font-size: 30px;
373
  line-height: 35px;
374
  }
375
+ h1.gettingStartedHeading_logo {
376
+ letter-spacing: 1px;
377
+ font-size: 30px;
378
+ line-height: 35px;
379
+ margin: 0px;
380
+ }
381
  #opinionstage-content a.gettingStartedCreate.button {
382
  color: #ffffff;
383
+ background: #3499c2;
384
  box-shadow: 0px 0px 0px 0px;
385
+ padding: 11px 10px;
386
  display: block;
387
  height: auto;
388
  width: 100%;
389
  max-width: fit-content;
390
+ font-size: 20px;
391
+ margin-top: 20px;
 
 
392
  margin-bottom: 20px;
393
+ letter-spacing: 1px;
394
+ }
395
+ /* Getting Started Not Connected */
396
+ .gettingStartedSectionNotConnect {
397
+ background: #fff;
398
+ width: 100%;
399
+ max-width: 100%;
400
+ padding: 5px 0px 40px 40px;
401
+ }
402
+ .gettingStartedSectionNotConnect p {
403
+ font-size: 20px;
404
  }
admin/menu-page.php CHANGED
@@ -8,43 +8,59 @@ add_action( 'admin_menu', 'opinionstage_register_menu_page' );
8
 
9
  function opinionstage_register_menu_page() {
10
  if (function_exists('add_menu_page')) {
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
11
 
12
- add_menu_page(
13
- __('Opinion Stage', OPINIONSTAGE_TEXT_DOMAIN),
14
- __('Opinion Stage', OPINIONSTAGE_TEXT_DOMAIN),
15
- 'edit_posts',
16
- OPINIONSTAGE_MENU_SLUG,
17
- 'opinionstage_menu_page',
18
- plugins_url('admin/images/os.png', plugin_dir_path( __FILE__ )),
19
- '25.234323221'
20
- );
21
- add_submenu_page(OPINIONSTAGE_MENU_SLUG, 'Create...', 'Create...', 'edit_posts', OPINIONSTAGE_MENU_SLUG);
22
- add_submenu_page(OPINIONSTAGE_MENU_SLUG, 'Placements', 'Placements', 'edit_posts', OPINIONSTAGE_PLACEMENT_SLUG , 'opinionstage_my_placements' );
23
- add_submenu_page(OPINIONSTAGE_MENU_SLUG, 'Getting Started', 'Getting Started', 'edit_posts', OPINIONSTAGE_GETTING_STARTED_SLUG,'opinionstage_getting_started' );
24
- 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' );
25
- 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' );
26
  }
27
  }
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
 
50
  ?>
8
 
9
  function opinionstage_register_menu_page() {
10
  if (function_exists('add_menu_page')) {
11
+ $os_options = (array) get_option(OPINIONSTAGE_OPTIONS_KEY);
12
+ $os_client_logged_in = opinionstage_user_logged_in();
13
+ if ($os_client_logged_in) {
14
+ add_menu_page(
15
+ __('Opinion Stage', OPINIONSTAGE_TEXT_DOMAIN),
16
+ __('Opinion Stage', OPINIONSTAGE_TEXT_DOMAIN),
17
+ 'edit_posts',
18
+ OPINIONSTAGE_MENU_SLUG,
19
+ 'opinionstage_menu_page',
20
+ plugins_url('admin/images/os.png', plugin_dir_path( __FILE__ )),
21
+ '25.234323221'
22
+ );
23
+ add_submenu_page(OPINIONSTAGE_MENU_SLUG, 'Create...', 'Create...', 'edit_posts', OPINIONSTAGE_MENU_SLUG);
24
+ add_submenu_page(OPINIONSTAGE_MENU_SLUG, 'Placements', 'Placements', 'edit_posts', OPINIONSTAGE_PLACEMENT_SLUG , 'opinionstage_my_placements' );
25
+ add_submenu_page(OPINIONSTAGE_MENU_SLUG, 'Getting Started', 'Getting Started', 'edit_posts', OPINIONSTAGE_GETTING_STARTED_SLUG,'opinionstage_getting_started' );
26
+ 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' );
27
+ 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' );
28
+ }else{
29
+ add_menu_page(
30
+ __('Opinion Stage', OPINIONSTAGE_TEXT_DOMAIN),
31
+ __('Opinion Stage', OPINIONSTAGE_TEXT_DOMAIN),
32
+ 'edit_posts',
33
+ OPINIONSTAGE_GETTING_STARTED_SLUG,
34
+ 'opinionstage_getting_started',
35
+ plugins_url('admin/images/os.png', plugin_dir_path( __FILE__ )),
36
+ '25.234323221'
37
+ );
38
 
39
+ add_submenu_page(OPINIONSTAGE_GETTING_STARTED_SLUG, 'Getting Started', 'Getting Started', 'edit_posts', OPINIONSTAGE_GETTING_STARTED_SLUG,'opinionstage_getting_started' );
40
+ add_submenu_page(OPINIONSTAGE_GETTING_STARTED_SLUG, 'Create...', 'Create...', 'edit_posts', OPINIONSTAGE_MENU_SLUG, 'opinionstage_menu_page');
41
+
42
+ add_submenu_page(OPINIONSTAGE_GETTING_STARTED_SLUG, 'Placements', 'Placements', 'edit_posts', OPINIONSTAGE_PLACEMENT_SLUG , 'opinionstage_my_placements' );
43
+ 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' );
44
+
45
+ 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' );
46
+ }
 
 
 
 
 
 
47
  }
48
  }
49
 
50
  function opinionstage_menu_page() {
51
  $os_options = (array) get_option(OPINIONSTAGE_OPTIONS_KEY);
52
  $os_client_logged_in = opinionstage_user_logged_in();
 
53
  require( plugin_dir_path( __FILE__ ).'create-page-template.php' );
54
  }
 
55
  function opinionstage_my_placements(){
56
  $os_options = (array) get_option(OPINIONSTAGE_OPTIONS_KEY);
57
  $os_client_logged_in = opinionstage_user_logged_in();
58
+ require( plugin_dir_path( __FILE__ ).'/views/placement-page-template.php' );
 
59
  }
 
60
  function opinionstage_getting_started(){
61
+ $os_options = (array) get_option(OPINIONSTAGE_OPTIONS_KEY);
62
  $os_client_logged_in = opinionstage_user_logged_in();
63
+ require( plugin_dir_path( __FILE__ ).'/views/getting-started-page-template.php' );
 
64
  }
65
 
66
  ?>
admin/opinionstage-disconnect.php CHANGED
@@ -24,7 +24,7 @@ function opinionstage_disconnect_account_action() {
24
  if ( 'opinionstage-disconnect-page' === filter_input(INPUT_GET, 'page') && $_SERVER['REQUEST_METHOD'] === 'POST' ) {
25
  delete_option(OPINIONSTAGE_OPTIONS_KEY);
26
 
27
- $redirect_url = get_admin_url(null, 'admin.php?page='.OPINIONSTAGE_MENU_SLUG);
28
 
29
  error_log('[opinionstage plugin] user logged out, redirect to '.$redirect_url);
30
  if ( wp_redirect( $redirect_url, 302 ) ) {
24
  if ( 'opinionstage-disconnect-page' === filter_input(INPUT_GET, 'page') && $_SERVER['REQUEST_METHOD'] === 'POST' ) {
25
  delete_option(OPINIONSTAGE_OPTIONS_KEY);
26
 
27
+ $redirect_url = get_admin_url(null, 'admin.php?page='.OPINIONSTAGE_GETTING_STARTED_SLUG);
28
 
29
  error_log('[opinionstage plugin] user logged out, redirect to '.$redirect_url);
30
  if ( wp_redirect( $redirect_url, 302 ) ) {
admin/opinionstage-login-callback.php CHANGED
@@ -43,7 +43,8 @@ function opinionstage_login_callback() {
43
  )
44
  );
45
 
46
- $redirect_url = get_admin_url(null, '', 'admin').'admin.php?page='.OPINIONSTAGE_MENU_SLUG;
 
47
 
48
  error_log('[opinionstage plugin] user logged in, redirect to '.$redirect_url);
49
  if ( wp_redirect( $redirect_url, 302 ) ) {
43
  )
44
  );
45
 
46
+
47
+ $redirect_url = get_admin_url(null, '', 'admin').'admin.php?page='.OPINIONSTAGE_GETTING_STARTED_SLUG;
48
 
49
  error_log('[opinionstage plugin] user logged in, redirect to '.$redirect_url);
50
  if ( wp_redirect( $redirect_url, 302 ) ) {
admin/views/getting-started-page-template.php CHANGED
@@ -3,14 +3,53 @@
3
  defined( 'ABSPATH' ) or die();
4
  ?>
5
  <div id="opinionstage-content">
6
- <div class="gettingStartedSection">
7
- <h1 class="gettingStartedHeading">
8
- Getting Started With Opinion Stage
9
- </h1>
10
- <p>We recommend that you start by viewing this short introduction video</p>
11
- <div class="Video-Section">
12
- <iframe class="iframe-new" width="900" height="400px" src="https://www.youtube.com/embed/zwcRWGsOxxQ?rel=0&showinfo=0" frameborder="0" allowfullscreen=""></iframe>
13
  </div>
14
- <a href="<?php echo admin_url( 'admin.php?page=opinionstage-settings'); ?>" class="gettingStartedCreate button">Start Creating</a>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
15
  </div>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
16
  </div>
3
  defined( 'ABSPATH' ) or die();
4
  ?>
5
  <div id="opinionstage-content">
6
+ <div class="opinionstage-header-wrapper">
7
+ <div class="opinionstage-logo-wrapper">
8
+ <div class="opinionstage-logo"></div>
 
 
 
 
9
  </div>
10
+ <?php if ( !$os_client_logged_in ) {?>
11
+ <div class="opinionstage-status-content">
12
+ <div class='opinionstage-status-title'>Connect WordPress with Opinion Stage to Get Started</div>
13
+ <form action="<?php echo OPINIONSTAGE_LOGIN_PATH ?>" method="get" class="opinionstage-connect-form">
14
+ <i class="os-icon icon-os-poll-client"></i>
15
+ <input type="hidden" name="utm_source" value="<?php echo OPINIONSTAGE_UTM_SOURCE ?>">
16
+ <input type="hidden" name="utm_campaign" value="<?php echo OPINIONSTAGE_UTM_CAMPAIGN ?>">
17
+ <input type="hidden" name="utm_medium" value="<?php echo OPINIONSTAGE_UTM_MEDIUM ?>">
18
+ <input type="hidden" name="o" value="<?php echo OPINIONSTAGE_WIDGET_API_KEY ?>">
19
+ <input type="hidden" name="callback" value="<?php echo opinionstage_callback_url()?>">
20
+ <input id="os-email" type="email" name="email" placeholder="Enter Your Email" data-os-email-input>
21
+ <button class="opinionstage-connect-btn opinionstage-blue-btn" type="submit" id="os-start-login" data-os-login>CONNECT</button>
22
+ </form>
23
+ </div>
24
+ <?php } else { ?>
25
+ <div class="opinionstage-status-content-connected">
26
+ <div class='opinionstage-status-title'>You are connected to Opinion Stage with the following email</div>
27
+ <i class="os-icon icon-os-form-success"></i>
28
+ <label class="checked" for="user-email"></label>
29
+ <input id="os-email" type="email" disabled value="<?php echo($os_options["email"]) ?>">
30
+ <form method="POST" action="<?php echo get_admin_url(null, 'admin.php?page=opinionstage-disconnect-page')?>" class="opinionstage-connect-form">
31
+ <button class="opinionstage-connect-btn opinionstage-blue-btn" type="submit" id="os-disconnect">DISCONNECT</button>
32
+ </form>
33
+ </div>
34
+ <?php } ?>
35
  </div>
36
+ <?php if( $os_client_logged_in ){ ?>
37
+ <div class="gettingStartedSection">
38
+ <div class="Video-Section">
39
+ <p><b>We recommend that you start by viewing this short introduction video</b></p>
40
+ <iframe class="iframe-new" width="900" height="400px" src="https://www.youtube.com/embed/zwcRWGsOxxQ?rel=0&showinfo=0" frameborder="0" allowfullscreen=""></iframe>
41
+ <a href="<?php echo admin_url( 'admin.php?page='.OPINIONSTAGE_MENU_SLUG); ?>" class="gettingStartedCreate button">Start Creating Interactive Content</a>
42
+ </div>
43
+ </div>
44
+ <?php }else{ ?>
45
+ <div class="gettingStartedSection">
46
+ <p><b>Need more information?</b></p>
47
+ <ul>
48
+ <li><a href="https://www.youtube.com/watch?v=zwcRWGsOxxQ" target="_blank">Getting started video tutorial</a></li>
49
+ <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 article tutorial</a></li>
50
+ <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>
51
+ <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>
52
+ </ul>
53
+ </div>
54
+ <?php } ?>
55
  </div>
admin/views/placement-page-template.php CHANGED
@@ -6,30 +6,32 @@ defined( 'ABSPATH' ) or die();
6
  <div class="opinionstage-header-wrapper">
7
  <div class="opinionstage-logo-wrapper">
8
  <div class="opinionstage-logo"></div>
9
- </div>
10
- <div class="opinionstage-status-content">
11
  <?php if ( !$os_client_logged_in ) {?>
12
- <div class='opinionstage-status-title'>Connect WordPress with Opinion Stage to get started</div>
13
- <form action="<?php echo OPINIONSTAGE_LOGIN_PATH ?>" method="get" class="opinionstage-connect-form">
14
- <i class="os-icon icon-os-poll-client"></i>
15
- <input type="hidden" name="utm_source" value="<?php echo OPINIONSTAGE_UTM_SOURCE ?>">
16
- <input type="hidden" name="utm_campaign" value="<?php echo OPINIONSTAGE_UTM_CAMPAIGN ?>">
17
- <input type="hidden" name="utm_medium" value="<?php echo OPINIONSTAGE_UTM_MEDIUM ?>">
18
- <input type="hidden" name="o" value="<?php echo OPINIONSTAGE_WIDGET_API_KEY ?>">
19
- <input type="hidden" name="callback" value="<?php echo opinionstage_callback_url()?>">
20
- <input id="os-email" type="email" name="email" placeholder="Enter Your Email" data-os-email-input>
21
- <button class="opinionstage-connect-btn opinionstage-blue-btn" type="submit" id="os-start-login" data-os-login>CONNECT</button>
22
- </form>
 
 
23
  <?php } else { ?>
24
- <div class='opinionstage-status-title'><b>You are connected</b> to Opinion Stage with the following email</div>
25
- <i class="os-icon icon-os-form-success"></i>
26
- <label class="checked" for="user-email"></label>
27
- <input id="os-email" type="email" disabled value="<?php echo($os_options["email"]) ?>">
28
- <form method="POST" action="<?php echo get_admin_url(null, 'admin.php?page=opinionstage-disconnect-page')?>" class="opinionstage-connect-form">
29
- <button class="opinionstage-connect-btn opinionstage-blue-btn" type="submit" id="os-disconnect">DISCONNECT</button>
30
- </form>
31
- <?php } ?>
32
- </div>
 
33
  </div>
34
  <div class="opinionstage-dashboard">
35
  <div class="opinionstage-dashboard-right">
6
  <div class="opinionstage-header-wrapper">
7
  <div class="opinionstage-logo-wrapper">
8
  <div class="opinionstage-logo"></div>
9
+ </div>
 
10
  <?php if ( !$os_client_logged_in ) {?>
11
+ <div class="opinionstage-status-content">
12
+ <div class='opinionstage-status-title'>Connect WordPress with Opinion Stage to get started</div>
13
+ <form action="<?php echo OPINIONSTAGE_LOGIN_PATH ?>" method="get" class="opinionstage-connect-form">
14
+ <i class="os-icon icon-os-poll-client"></i>
15
+ <input type="hidden" name="utm_source" value="<?php echo OPINIONSTAGE_UTM_SOURCE ?>">
16
+ <input type="hidden" name="utm_campaign" value="<?php echo OPINIONSTAGE_UTM_CAMPAIGN ?>">
17
+ <input type="hidden" name="utm_medium" value="<?php echo OPINIONSTAGE_UTM_MEDIUM ?>">
18
+ <input type="hidden" name="o" value="<?php echo OPINIONSTAGE_WIDGET_API_KEY ?>">
19
+ <input type="hidden" name="callback" value="<?php echo opinionstage_callback_url()?>">
20
+ <input id="os-email" type="email" name="email" placeholder="Enter Your Email" data-os-email-input>
21
+ <button class="opinionstage-connect-btn opinionstage-blue-btn" type="submit" id="os-start-login" data-os-login>CONNECT</button>
22
+ </form>
23
+ </div>
24
  <?php } else { ?>
25
+ <div class="opinionstage-status-content-connected">
26
+ <div class='opinionstage-status-title'>You are connected to Opinion Stage with the following email</div>
27
+ <i class="os-icon icon-os-form-success"></i>
28
+ <label class="checked" for="user-email"></label>
29
+ <input id="os-email" type="email" disabled value="<?php echo($os_options["email"]) ?>">
30
+ <form method="POST" action="<?php echo get_admin_url(null, 'admin.php?page=opinionstage-disconnect-page')?>" class="opinionstage-connect-form">
31
+ <button class="opinionstage-connect-btn opinionstage-blue-btn" type="submit" id="os-disconnect">DISCONNECT</button>
32
+ </form>
33
+ </div>
34
+ <?php } ?>
35
  </div>
36
  <div class="opinionstage-dashboard">
37
  <div class="opinionstage-dashboard-right">
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.6
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.7
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.6
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.6');
28
 
29
  define('OPINIONSTAGE_TEXT_DOMAIN', 'social-polls-by-opinionstage');
30
 
@@ -54,6 +54,11 @@ define('OPINIONSTAGE_GETTING_STARTED_SLUG', 'opinionstage-getting-started');
54
  define('OPINIONSTAGE_LOGIN_CALLBACK_SLUG', 'opinionstage-login-callback');
55
 
56
  // Check if active plugin file is plugin.php on plugin activate hook
 
 
 
 
 
57
  function opinionstage_plugin_activate() {
58
  // all good. delete old file
59
  if( file_exists(__DIR__ . '/opinionstage-polls.php') ){
@@ -62,6 +67,7 @@ function opinionstage_plugin_activate() {
62
  }
63
  register_activation_hook( __FILE__, 'opinionstage_plugin_activate' );
64
  add_action( 'init', 'opinionstage_plugin_activate' );
 
65
 
66
  require_once( plugin_dir_path( __FILE__ ).'includes/opinionstage-functions.php' );
67
 
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.7
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.7');
28
 
29
  define('OPINIONSTAGE_TEXT_DOMAIN', 'social-polls-by-opinionstage');
30
 
54
  define('OPINIONSTAGE_LOGIN_CALLBACK_SLUG', 'opinionstage-login-callback');
55
 
56
  // Check if active plugin file is plugin.php on plugin activate hook
57
+ function opinionstage_plugin_activated($plugin) {
58
+ if( $plugin == plugin_basename( __FILE__ ) ) {
59
+ exit( wp_redirect("admin.php?page=".OPINIONSTAGE_GETTING_STARTED_SLUG) );
60
+ }
61
+ }
62
  function opinionstage_plugin_activate() {
63
  // all good. delete old file
64
  if( file_exists(__DIR__ . '/opinionstage-polls.php') ){
67
  }
68
  register_activation_hook( __FILE__, 'opinionstage_plugin_activate' );
69
  add_action( 'init', 'opinionstage_plugin_activate' );
70
+ add_action( 'activated_plugin', 'opinionstage_plugin_activated' );
71
 
72
  require_once( plugin_dir_path( __FILE__ ).'includes/opinionstage-functions.php' );
73
 
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.6
8
 
9
  Add a Poll, Quiz, Survey & Form Plugin to your WordPress Site. Easily create a beautiful & top performing Poll, Quiz, Survey or Form 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.6 =
166
  * WordPress 5.0 compatibility
167
  * Readme update
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.7
8
 
9
  Add a Poll, Quiz, Survey & Form Plugin to your WordPress Site. Easily create a beautiful & top performing Poll, Quiz, Survey or Form in Minutes.
10
 
162
  N/A
163
 
164
  == Changelog ==
165
+ = 19.6.7 =
166
+ * new getting started experience
167
  = 19.6.6 =
168
  * WordPress 5.0 compatibility
169
  * Readme update