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

Version Description

  • My Items page
    • updated Content Popup
    • Design update
Download this release

Release Info

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

Code changes from version 19.6.12 to 19.6.13

admin/admin-page-loader.php CHANGED
@@ -18,7 +18,7 @@ class OpinionStageAdminPageLoader {
18
 
19
  // Apply page loader actions if it is OpinionStage plugin page
20
  if($this->slug != false){
21
-
22
  $this->OSAPL_Debug('OSAPL: Load Page Loader for Slug - '.$this->slug);
23
 
24
  $this->OSAPL_LoadFile();
@@ -29,6 +29,11 @@ class OpinionStageAdminPageLoader {
29
  $this->OSAPL_Debug('OSAPL: Not OpinionStage Page. Loading Content Popup File.');
30
  // Load content popup javascript
31
  include_once( plugin_dir_path( __FILE__ ).'content-popup.php' );
 
 
 
 
 
32
  }
33
  }
34
 
@@ -102,7 +107,7 @@ class OpinionStageAdminPageLoader {
102
  call_user_func($function_name_header_common);
103
  }else{
104
  $this->OSAPL_Debug('OSAPL: Header common function does not exist: '.$function_name_header_common);
105
- }
106
  }
107
 
108
  public function OSAPL_LoadFooter(){
@@ -155,4 +160,4 @@ class OpinionStageAdminPageLoader {
155
  }
156
 
157
  OpinionStageAdminPageLoader::getInstance();
158
- ?>
18
 
19
  // Apply page loader actions if it is OpinionStage plugin page
20
  if($this->slug != false){
21
+ include_once( plugin_dir_path( __FILE__ ).'content-popup.php' );
22
  $this->OSAPL_Debug('OSAPL: Load Page Loader for Slug - '.$this->slug);
23
 
24
  $this->OSAPL_LoadFile();
29
  $this->OSAPL_Debug('OSAPL: Not OpinionStage Page. Loading Content Popup File.');
30
  // Load content popup javascript
31
  include_once( plugin_dir_path( __FILE__ ).'content-popup.php' );
32
+ // Load Hotjar script for user data tracking
33
+ $oswpHotjarNewPost = basename($_SERVER['REQUEST_URI'], '?' . $_SERVER['QUERY_STRING']);
34
+ if($oswpHotjarNewPost == 'post-new.php' || $oswpHotjarNewPost == 'post.php'){
35
+ include_once( plugin_dir_path( __FILE__ ).'opinionstage-usage-tracking-code.php' );
36
+ }
37
  }
38
  }
39
 
107
  call_user_func($function_name_header_common);
108
  }else{
109
  $this->OSAPL_Debug('OSAPL: Header common function does not exist: '.$function_name_header_common);
110
+ }
111
  }
112
 
113
  public function OSAPL_LoadFooter(){
160
  }
161
 
162
  OpinionStageAdminPageLoader::getInstance();
163
+ ?>
admin/content-popup-button.php CHANGED
@@ -9,5 +9,6 @@ defined( 'ABSPATH' ) or die();
9
  height="19"
10
  style="position: relative; left: -3px; top: -2px; padding: 0"
11
  >
12
- Add a Poll, Survey, Quiz, Form, Slider or Story
 
13
  </button>
9
  height="19"
10
  style="position: relative; left: -3px; top: -2px; padding: 0"
11
  >
12
+
13
+ Add a Poll, Survey, Quiz or Form
14
  </button>
admin/content-popup-template.html.php CHANGED
@@ -12,7 +12,6 @@ function opinionstage_create_new_href() {
12
 
13
  // Note: all html put here (not moved to js build system) in order to preserve ability to use Wordpress translate APIs
14
  ?>
15
-
16
  <template data-opinionstage-content-popup-template>
17
  <div class='opinionstage-content-popup-contents' data-opinionstage-content-popup data-opinionstage-client-logged-in="<?php echo $opinionstage_user_logged_in ?>">
18
  <header class='header'>
@@ -22,30 +21,73 @@ function opinionstage_create_new_href() {
22
  <img src='<?php echo plugins_url('admin/images/logo.svg', plugin_dir_path( __FILE__ )) ?>'>
23
  </a>
24
  </div>
25
- <div class='header__nav'>
26
- <div class='std-btn'
27
- @click="showClientWidgets"
28
- :class="{ active: showClientContent }"
29
- >My content</div>
30
- <div class='std-btn'
31
- @click="showTemplatesWidgets"
32
- :class="{ active: !showClientContent }"
33
- >Examples</div>
34
- </div>
35
  <div class='header__action'>
36
  <?php if ( $opinionstage_user_logged_in ) { ?>
37
  <div class="create-new-menu-box">
38
  <a href="javascript:void(0)" class="btn-create">CREATE NEW</a>
39
  <div class="create-new-menu">
40
- <?php echo opinionstage_create_poll_link('create-menu__itm', __('poll')) ?>
41
- <?php echo opinionstage_create_poll_set_link('create-menu__itm', __('multi poll set')) ?>
42
- <?php echo opinionstage_create_widget_link('survey', 'create-menu__itm', __('survey')) ?>
43
- <?php echo opinionstage_create_slideshow_link('create-menu__itm', __('slideshow')) ?>
44
- <?php echo opinionstage_create_widget_link('quiz', 'create-menu__itm', __('trivia quiz')) ?>
45
- <?php echo opinionstage_create_widget_link('outcome', 'create-menu__itm', __('personality quiz')) ?>
46
- <?php echo opinionstage_create_widget_link('contact_form', 'create-menu__itm', __('form')) ?>
47
- <?php echo opinionstage_create_widget_link('list', 'create-menu__itm', __('list')) ?>
48
- <?php echo opinionstage_create_widget_link('story', 'create-menu__itm', __('story article')) ?>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
49
  </div>
50
  </div>
51
  <?php } ?>
@@ -74,57 +116,57 @@ function opinionstage_create_new_href() {
74
  <div class='page-content'>
75
  <div class='content-actions'>
76
  <div class='filter'>
77
- <div class='filter__itm'
78
- @click="selectWidgetType('all')"
79
- :class="{ active: selectedWidgetType === 'all' }"
80
- >all</div>
81
- <div class='filter__itm'
82
- @click="selectWidgetType('poll')"
83
- :class="{ active: selectedWidgetType === 'poll' }"
84
- >poll</div>
85
- <div class='filter__itm'
86
- @click="selectWidgetType('set')"
87
- :class="{ active: selectedWidgetType === 'set' }"
88
- >set</div>
89
- <div class='filter__itm'
90
- @click="selectWidgetType('survey')"
91
- :class="{ active: selectedWidgetType === 'survey' }"
92
- >survey</div>
93
- <div class='filter__itm'
94
- @click="selectWidgetType('slideshow')"
95
- :class="{ active: selectedWidgetType === 'slideshow' }"
96
- >slideshow</div>
97
- <div class='filter__itm'
98
- @click="selectWidgetType('trivia')"
99
- :class="{ active: selectedWidgetType === 'trivia' }"
100
- >trivia</div>
101
- <div class='filter__itm'
102
- @click="selectWidgetType('outcome')"
103
- :class="{ active: selectedWidgetType === 'outcome' }"
104
- >personality</div>
105
- <div class='filter__itm'
106
- @click="selectWidgetType('list')"
107
- :class="{ active: selectedWidgetType === 'list' }"
108
- >list</div>
109
- <div class='filter__itm'
110
- @click="selectWidgetType('form')"
111
- :class="{ active: selectedWidgetType === 'form' }"
112
- >form</div>
113
- <div class='filter__itm'
114
- @click="selectWidgetType('story')"
115
- :class="{ active: selectedWidgetType === 'story' }"
116
- >story</div>
 
 
 
 
 
117
  </div>
118
- <div class='search'>
119
- <img
120
- class='search-icon'
121
- :class='{ hidden: !showSearch }'
122
- src='<?php echo plugins_url('admin/images/search_icon.jpg', plugin_dir_path( __FILE__ )) ?>'
123
- >
124
  <input
125
  class='std-search'
126
  placeholder='Search...'
127
- type='search'
128
  v-model='widgetTitleSearch'
129
  :class='{ hidden: !showSearch }'
130
  >
@@ -201,9 +243,6 @@ function opinionstage_create_new_href() {
201
  <button class="opinionstage-blue-btn" type="submit" id="os-start-login" data-os-login>CONNECT</button>
202
  </form>
203
  </div>
204
- <div class="opinionstage-introduction-video">
205
- <iframe width="560" height="315" src="https://www.youtube.com/embed/zwcRWGsOxxQ?rel=0&showinfo=0" frameborder="0" allowfullscreen></iframe>
206
- </div>
207
  </div>
208
  </div>
209
  <div v-else>
@@ -229,3 +268,20 @@ function opinionstage_create_new_href() {
229
  </div>
230
  </div>
231
  </template>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
12
 
13
  // Note: all html put here (not moved to js build system) in order to preserve ability to use Wordpress translate APIs
14
  ?>
 
15
  <template data-opinionstage-content-popup-template>
16
  <div class='opinionstage-content-popup-contents' data-opinionstage-content-popup data-opinionstage-client-logged-in="<?php echo $opinionstage_user_logged_in ?>">
17
  <header class='header'>
21
  <img src='<?php echo plugins_url('admin/images/logo.svg', plugin_dir_path( __FILE__ )) ?>'>
22
  </a>
23
  </div>
 
 
 
 
 
 
 
 
 
 
24
  <div class='header__action'>
25
  <?php if ( $opinionstage_user_logged_in ) { ?>
26
  <div class="create-new-menu-box">
27
  <a href="javascript:void(0)" class="btn-create">CREATE NEW</a>
28
  <div class="create-new-menu">
29
+ <li class="create-menu__itm companymenuli">
30
+ <a class="alisting">poll</a>
31
+ <ul class="submenu">
32
+ <li><?php echo opinionstage_create_poll_link('create-menu__itm'); ?></li>
33
+ <li><?php echo opinionstage_template_poll_link('create-menu__itm'); ?></li>
34
+ </ul>
35
+ </li>
36
+ <li class="create-menu__itm companymenuli">
37
+ <a class="alisting">multi poll set</a>
38
+ <ul class="submenu">
39
+ <li><?php echo opinionstage_create_poll_set_link('create-menu__itm', __('Create New')) ?></li>
40
+ <!-- <li><?php echo opinionstage_template_survey_link('create-menu__itm', __('survey')) ?></li> -->
41
+ </ul>
42
+ </li>
43
+ <li class="create-menu__itm companymenuli">
44
+ <a class="alisting">survey</a>
45
+ <ul class="submenu">
46
+ <li><?php echo opinionstage_create_widget_link('survey', 'create-menu__itm'); ?></li>
47
+ <li><?php echo opinionstage_template_survey_link('create-menu__itm'); ?></li>
48
+ </ul>
49
+ </li>
50
+ <li class="create-menu__itm companymenuli">
51
+ <a class="alisting">slideshow</a>
52
+ <ul class="submenu">
53
+ <li><?php echo opinionstage_create_slideshow_link( 'create-menu__itm' ); ?></li>
54
+ <li><?php echo opinionstage_template_slideshow_link('create-menu__itm') ?></li>
55
+ </ul>
56
+ </li>
57
+ <li class="create-menu__itm companymenuli">
58
+ <a class="alisting">trivia quiz</a>
59
+ <ul class="submenu">
60
+ <li><?php echo opinionstage_create_widget_link('quiz', 'create-menu__itm'); ?></li>
61
+ <li><?php echo opinionstage_template_trivia_link('create-menu__itm'); ?></li>
62
+ </ul>
63
+ </li>
64
+ <li class="create-menu__itm companymenuli">
65
+ <a class="alisting">personality quiz</a>
66
+ <ul class="submenu">
67
+ <li><?php echo opinionstage_create_widget_link('outcome', 'create-menu__itm'); ?></li>
68
+ <li><?php echo opinionstage_template_personality_quiz_link('create-menu__itm') ?></li>
69
+ </ul>
70
+ </li>
71
+ <li class="create-menu__itm companymenuli">
72
+ <a class="alisting">list</a>
73
+ <ul class="submenu">
74
+ <li><?php echo opinionstage_create_widget_link('list', 'create-menu__itm'); ?></li>
75
+ <li><?php echo opinionstage_template_list_link('create-menu__itm'); ?></li>
76
+ </ul>
77
+ </li>
78
+ <li class="create-menu__itm companymenuli">
79
+ <a class="alisting">form</a>
80
+ <ul class="submenu">
81
+ <li><?php echo opinionstage_create_widget_link('contact_form', 'create-menu__itm'); ?></li>
82
+ <li><?php echo opinionstage_template_form_link('create-menu__itm'); ?></li>
83
+ </ul>
84
+ </li>
85
+ <li class="create-menu__itm companymenuli">
86
+ <a class="alisting">story</a>
87
+ <ul class="submenu">
88
+ <li><?php echo opinionstage_create_widget_link('story', 'create-menu__itm'); ?></li>
89
+ </ul>
90
+ </li>
91
  </div>
92
  </div>
93
  <?php } ?>
116
  <div class='page-content'>
117
  <div class='content-actions'>
118
  <div class='filter'>
119
+ <div class="dropdown">
120
+ <button class="dropbtn" id="dropbtn"><span>All ITEMS</span></button>
121
+ <div class="dropdown-content">
122
+ <div class='filter__itm'
123
+ @click="selectWidgetType('all')"
124
+ :class="{ active: selectedWidgetType === 'all' }"
125
+ >all Items</div>
126
+ <div class='filter__itm'
127
+ @click="selectWidgetType('poll')"
128
+ :class="{ active: selectedWidgetType === 'poll' }"
129
+ >poll</div>
130
+ <div class='filter__itm'
131
+ @click="selectWidgetType('set')"
132
+ :class="{ active: selectedWidgetType === 'set' }"
133
+ >multi poll set</div>
134
+ <div class='filter__itm'
135
+ @click="selectWidgetType('survey')"
136
+ :class="{ active: selectedWidgetType === 'survey' }"
137
+ >survey</div>
138
+ <div class='filter__itm'
139
+ @click="selectWidgetType('slideshow')"
140
+ :class="{ active: selectedWidgetType === 'slideshow' }"
141
+ >slideshow</div>
142
+ <div class='filter__itm'
143
+ @click="selectWidgetType('trivia')"
144
+ :class="{ active: selectedWidgetType === 'trivia' }"
145
+ >trivia quiz</div>
146
+ <div class='filter__itm'
147
+ @click="selectWidgetType('outcome')"
148
+ :class="{ active: selectedWidgetType === 'outcome' }"
149
+ >personality quiz</div>
150
+ <div class='filter__itm'
151
+ @click="selectWidgetType('list')"
152
+ :class="{ active: selectedWidgetType === 'list' }"
153
+ >list</div>
154
+ <div class='filter__itm'
155
+ @click="selectWidgetType('form')"
156
+ :class="{ active: selectedWidgetType === 'form' }"
157
+ >form</div>
158
+ <div class='filter__itm'
159
+ @click="selectWidgetType('story')"
160
+ :class="{ active: selectedWidgetType === 'story' }"
161
+ >story article</div>
162
+ </div>
163
+ </div>
164
  </div>
165
+ <div class='search' style="width: 180px;">
 
 
 
 
 
166
  <input
167
  class='std-search'
168
  placeholder='Search...'
169
+ type='text'
170
  v-model='widgetTitleSearch'
171
  :class='{ hidden: !showSearch }'
172
  >
243
  <button class="opinionstage-blue-btn" type="submit" id="os-start-login" data-os-login>CONNECT</button>
244
  </form>
245
  </div>
 
 
 
246
  </div>
247
  </div>
248
  <div v-else>
268
  </div>
269
  </div>
270
  </template>
271
+ <script>
272
+ jQuery(document).ready(function ($) {
273
+ $('.filter__itm').live('click', function(e) {
274
+ var text = $(this).text();
275
+ $("button#dropbtn span").text(text);
276
+ });
277
+ $('div#show-templates').live('click', function(e) {
278
+ var inputs = $(".filter__itm");
279
+ for(var i = 0; i < inputs.length; i++){
280
+ if($(inputs[i]).text() == 'story article'){
281
+ $(inputs[i]).hide();
282
+ break;
283
+ }
284
+ }
285
+ });
286
+ });
287
+ </script>
admin/content-popup.php CHANGED
@@ -4,8 +4,8 @@ defined( 'ABSPATH' ) or die();
4
 
5
  add_action( 'media_buttons', 'opinionstage_content_popup_add_editor_button');
6
  add_action( 'admin_enqueue_scripts', 'opinionstage_content_popup_js');
7
- add_action( 'admin_footer-post-new.php', 'opinionstage_content_popup_html' );
8
- add_action( 'admin_footer-post.php', 'opinionstage_content_popup_html' );
9
 
10
  function opinionstage_content_popup_add_editor_button() {
11
  require( plugin_dir_path( __FILE__ ).'content-popup-button.php' );
@@ -24,6 +24,237 @@ function opinionstage_content_popup_js() {
24
  }
25
 
26
  function opinionstage_content_popup_html() {
27
- require( plugin_dir_path( __FILE__ ).'content-popup-template.html.php' );
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
28
  }
29
- ?>
 
 
4
 
5
  add_action( 'media_buttons', 'opinionstage_content_popup_add_editor_button');
6
  add_action( 'admin_enqueue_scripts', 'opinionstage_content_popup_js');
7
+ add_action( 'admin_footer', 'opinionstage_content_popup_html' );
8
+ add_action( 'admin_footer', 'opinionstage_content_popup_css_dropdown' );
9
 
10
  function opinionstage_content_popup_add_editor_button() {
11
  require( plugin_dir_path( __FILE__ ).'content-popup-button.php' );
24
  }
25
 
26
  function opinionstage_content_popup_html() {
27
+ require( plugin_dir_path( __FILE__ ).'content-popup-template.html.php' ); ?>
28
+ <script>
29
+ jQuery(document).ready(function ($) {
30
+ $('span#oswpLauncherContentPopupExamples').parent().attr({'data-opinionstage-content-launch':"", 'data-os-view':"examples"});
31
+ $('span#oswpLauncherContentPopup').parent().attr({'data-opinionstage-content-launch':"", 'data-os-view':"content"});
32
+ $('span#oswpLauncherContentPopupExamples').parent().on('click',function(e){
33
+ var dataView = $(this).attr('data-os-view');
34
+ if(dataView == 'examples'){
35
+ setTimeout(function(){$('div#show-templates').trigger('click');},2000);
36
+ }
37
+ });
38
+ $('span#oswpLauncherContentPopup').parent().on('click',function(e){
39
+ e.preventDefault();
40
+ $('div#view-items').trigger('click');
41
+ });
42
+ });
43
+ </script>
44
+ <?php }
45
+
46
+ function opinionstage_content_popup_css_dropdown(){ ?>
47
+ <style type="text/css">
48
+ span#insert_error_editor {
49
+ color: #9F6000;
50
+ background-color: #FEEFB3;
51
+ padding: 10px;
52
+ font-size: 15px;
53
+ font-weight: bold;
54
+ width: 100%;
55
+ text-align: center;
56
+ }
57
+ span#insert_error_editor a {
58
+ text-decoration: none;
59
+ }
60
+ .dropbtn {
61
+ font-size: 16px;
62
+ border: 1px solid #e4e4e4;
63
+ background-color: #ffffff;
64
+ cursor: pointer;
65
+ display: inline-block;
66
+ font: 16px/42px Open Sans,Helvetica,sans-serif;
67
+ text-align: left;
68
+ text-decoration: none;
69
+ width: 140px;
70
+ position: relative;
71
+ outline: none!important;
72
+ border-right: 0px !important;
73
+ padding-left: 20px;
74
+ box-shadow: 0px 0px 0px !important;
75
+ }
76
+
77
+ .dropdown {
78
+ position: relative;
79
+ display: inline-block;
80
+ }
81
+
82
+ .dropdown-content {
83
+ display: none;
84
+ position: absolute;
85
+ background-color: #f9f9f9;
86
+ box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
87
+ z-index: 9;
88
+ top: 45px;
89
+ left: 1px;
90
+ }
91
+
92
+ .dropdown-content div {
93
+ display: block;
94
+ color: #555454;
95
+ border: 1px solid #3487fa;
96
+ padding: 5px 10px 5px 20px;
97
+ background-color: #fff;
98
+ text-decoration: none;
99
+ border-top: 0px !important;
100
+ border-bottom: 0px !important;
101
+ }
102
+
103
+ .dropdown-content div:hover {background-color: #3487fa; color: #fff !important;}
104
+
105
+ .dropdown:hover .dropdown-content {
106
+ display: block !important;
107
+ width: 180px;
108
+ }
109
+
110
+ .dropdown:hover .dropbtn {
111
+ background-color: #ffffff;
112
+ }
113
+ .opinionstage-content-popup-contents .filter__itm{
114
+ width: 100%;
115
+ line-height : 25px !important;
116
+ font-size: 12px !important;
117
+ margin-right: 0px !important;
118
+ }
119
+ button#dropbtn span {
120
+ text-transform: uppercase;
121
+ color: #555454;
122
+ font-size: 12px;
123
+ font-weight: 700;
124
+ }
125
+ .filter {
126
+ margin: 0 !important;
127
+ }
128
+ button#dropbtn:before {
129
+ content: "";
130
+ display: block;
131
+ position: absolute;
132
+ top: 0px;
133
+ font-size: 12px;
134
+ font-family: os-icon-font !important;
135
+ right: -25px;
136
+ z-index: 3;
137
+ color: #000;
138
+ }
139
+ button#dropbtn:after {
140
+ content: "";
141
+ position: absolute;
142
+ top: 0;
143
+ width: 40px;
144
+ right: -41px;
145
+ height: 100%;
146
+ border: 1px solid #e4e4e4;
147
+ top: -1px;
148
+ border-left: 0px !important;
149
+ }
150
+ .opinionstage-content-popup-contents .filter__itm.active{
151
+ background: #5299fb;
152
+ font-weight: normal !important;
153
+ color: #fff;
154
+ }
155
+ .filter__itm:last-child {
156
+ border-bottom: 1px solid #3487fa !important;
157
+ }
158
+ .filter__itm:first-child {
159
+ border-top: 1px solid #3487fa !important;
160
+ }
161
+ .opinionstage-content-popup-contents .btn-create:before{
162
+ transform: rotateZ(90deg);
163
+ }
164
+ .opinionstage-content-popup-contents .std-search {
165
+ background-color: #efefef;
166
+ background: #ffffff;
167
+ border: 1px solid #cccccc;
168
+ box-sizing: border-box;
169
+ border-radius: 2px;
170
+ font-size: 14px;
171
+ color: #555454;
172
+ width: 100%;
173
+ height: 40px;
174
+ padding: 0 20px;
175
+ box-shadow: 0px 0px;
176
+ }
177
+ .opinionstage-content-popup-contents .search{
178
+ float: right;
179
+ }
180
+ .search:before {
181
+ content: "";
182
+ color: #3aaebd;
183
+ position: absolute;
184
+ right: 10px;
185
+ top: 0;
186
+ bottom: 0;
187
+ font-size: 18px;
188
+ height: 18px;
189
+ margin: auto;
190
+ pointer-events: none;
191
+ font-family: os-icon-font !important;
192
+ }
193
+
194
+ /* Menu Content Popup */
195
+ #companymenu
196
+ {
197
+ background-color: #999;
198
+ height:35px;
199
+ width:100%;
200
+ margin-top: -10px;
201
+ }
202
+ .companymenuul
203
+ {
204
+ list-style-type: none;
205
+ }
206
+ .companymenuli
207
+ {
208
+ display:block;
209
+ line-height: 35px;
210
+ padding: 0 15px;
211
+ }
212
+ .alisting
213
+ {
214
+ text-decoration:none;
215
+ }
216
+ .alisting:hover
217
+ {
218
+ color:#fff;
219
+ }
220
+
221
+ .companymenuli:hover > ul{
222
+ display:block;
223
+ }
224
+
225
+ .submenu{
226
+ display:none;
227
+ }
228
+
229
+ .submenu li{
230
+ list-style-type:none;
231
+ }
232
+ .create-menu__itm{
233
+ padding: 0px 0px !important;
234
+ }
235
+ a.alisting {
236
+ padding-left: 18px;
237
+ }
238
+ li.create-menu__itm.companymenuli {
239
+ position: relative;
240
+ }
241
+ ul.submenu {
242
+ left: -100%;
243
+ position: absolute;
244
+ width: 100%;
245
+ top: 0;
246
+ border: 1px solid #3aaebd;
247
+ border-bottom: 0px;
248
+ }
249
+ ul.submenu li a.create-menu__itm {
250
+ text-align: center;
251
+ }
252
+ li.create-menu__itm.companymenuli:hover a.alisting {
253
+ color: #fff;
254
+ }
255
+ li.create-menu__itm.companymenuli a.alisting {
256
+ color: #3aaebd;
257
  }
258
+ </style>
259
+ <?php }
260
+ ?>
admin/css/fonts/os-icon-font.svg CHANGED
@@ -3,7 +3,7 @@
3
  <svg xmlns="http://www.w3.org/2000/svg">
4
  <metadata>Generated by IcoMoon</metadata>
5
  <defs>
6
- <font id="os-icon-font" horiz-adv-x="1024">
7
  <font-face units-per-em="1024" ascent="960" descent="-64" />
8
  <missing-glyph horiz-adv-x="1024" />
9
  <glyph unicode="&#x20;" horiz-adv-x="512" d="" />
@@ -107,5 +107,5 @@
107
  <glyph unicode="&#xe961;" glyph-name="os-status-open" horiz-adv-x="1067" d="M887.467 802.133c-195.2 195.2-512 195.2-707.2 0s-195.2-512 0-707.2 512-195.2 707.2 0c195.2 195.2 195.2 512 0 707.2zM800 521.6l-275.2-275.2c-30.933-30.933-84.267-26.667-119.467 9.6l-129.067 129.067c-35.2 35.2-35.2 92.8 0 129.067 35.2 35.2 92.8 35.2 129.067 0l64-64 201.6 201.6c30.933 30.933 84.267 26.667 119.467-9.6s39.467-89.6 9.6-120.533z" />
108
  <glyph unicode="&#xe962;" glyph-name="os-status-published" horiz-adv-x="1067" d="M533.333 614.4c-97.067 0-174.933-74.667-174.933-166.4s77.867-166.4 174.933-166.4 174.933 74.667 174.933 166.4-77.867 166.4-174.933 166.4zM533.333 364.8c-48 0-87.467 37.333-87.467 83.2 48 0 87.467 37.333 87.467 83.2 48 0 87.467-37.333 87.467-83.2s-39.467-83.2-87.467-83.2zM886.4 801.067c-195.2 195.2-509.867 195.2-705.067 0s-195.2-509.867 0-705.067 509.867-195.2 705.067 0 194.133 509.867 0 705.067zM533.333 198.4c-179.2 0-349.867 194.133-349.867 249.6s170.667 249.6 349.867 249.6 349.867-194.133 349.867-249.6-170.667-249.6-349.867-249.6z" />
109
  <glyph unicode="&#xe963;" glyph-name="os-widget-form" horiz-adv-x="1150" d="M0 960v-1024h1149.867v1024h-1149.867zM1128.533-42.667h-1107.2v981.333h1107.2v-981.333zM170.667 782.933v-189.867h810.667v189.867h-810.667zM957.867 614.4h-765.867v145.067h765.867v-145.067zM170.667 549.333v-189.867h810.667v189.867h-810.667zM957.867 381.867h-765.867v145.067h765.867v-145.067zM170.667 293.333h810.667v-189.867h-810.667v189.867z" />
110
- <glyph unicode="&#xe964;" glyph-name="os-icon-story" horiz-adv-x="1152" d="M21.344 938.656v-981.344h1109.344v981.344h-1109.344zM0 960h1152v-1024h-1152v1024zM181.344 821.344h320v-320h-320v320zM181.344 181.344h789.344v-106.656h-789.344v106.656zM197.344 165.344v-74.656h757.344v74.656h-757.344zM650.656 608h320v-106.656h-320v106.656zM666.656 592v-74.656h288v74.656h-288zM181.344 394.656h789.344v-106.656h-789.344v106.656zM197.344 378.656v-74.656h757.344v74.656h-757.344zM650.656 821.344h320v-106.656h-320v106.656z" />
111
  </font></defs></svg>
3
  <svg xmlns="http://www.w3.org/2000/svg">
4
  <metadata>Generated by IcoMoon</metadata>
5
  <defs>
6
+ <font id="os-icon-plugin-font" horiz-adv-x="1024">
7
  <font-face units-per-em="1024" ascent="960" descent="-64" />
8
  <missing-glyph horiz-adv-x="1024" />
9
  <glyph unicode="&#x20;" horiz-adv-x="512" d="" />
107
  <glyph unicode="&#xe961;" glyph-name="os-status-open" horiz-adv-x="1067" d="M887.467 802.133c-195.2 195.2-512 195.2-707.2 0s-195.2-512 0-707.2 512-195.2 707.2 0c195.2 195.2 195.2 512 0 707.2zM800 521.6l-275.2-275.2c-30.933-30.933-84.267-26.667-119.467 9.6l-129.067 129.067c-35.2 35.2-35.2 92.8 0 129.067 35.2 35.2 92.8 35.2 129.067 0l64-64 201.6 201.6c30.933 30.933 84.267 26.667 119.467-9.6s39.467-89.6 9.6-120.533z" />
108
  <glyph unicode="&#xe962;" glyph-name="os-status-published" horiz-adv-x="1067" d="M533.333 614.4c-97.067 0-174.933-74.667-174.933-166.4s77.867-166.4 174.933-166.4 174.933 74.667 174.933 166.4-77.867 166.4-174.933 166.4zM533.333 364.8c-48 0-87.467 37.333-87.467 83.2 48 0 87.467 37.333 87.467 83.2 48 0 87.467-37.333 87.467-83.2s-39.467-83.2-87.467-83.2zM886.4 801.067c-195.2 195.2-509.867 195.2-705.067 0s-195.2-509.867 0-705.067 509.867-195.2 705.067 0 194.133 509.867 0 705.067zM533.333 198.4c-179.2 0-349.867 194.133-349.867 249.6s170.667 249.6 349.867 249.6 349.867-194.133 349.867-249.6-170.667-249.6-349.867-249.6z" />
109
  <glyph unicode="&#xe963;" glyph-name="os-widget-form" horiz-adv-x="1150" d="M0 960v-1024h1149.867v1024h-1149.867zM1128.533-42.667h-1107.2v981.333h1107.2v-981.333zM170.667 782.933v-189.867h810.667v189.867h-810.667zM957.867 614.4h-765.867v145.067h765.867v-145.067zM170.667 549.333v-189.867h810.667v189.867h-810.667zM957.867 381.867h-765.867v145.067h765.867v-145.067zM170.667 293.333h810.667v-189.867h-810.667v189.867z" />
110
+ <glyph unicode="&#xe964;" glyph-name="os-icon-plugin-story" horiz-adv-x="1152" d="M21.344 938.656v-981.344h1109.344v981.344h-1109.344zM0 960h1152v-1024h-1152v1024zM181.344 821.344h320v-320h-320v320zM181.344 181.344h789.344v-106.656h-789.344v106.656zM197.344 165.344v-74.656h757.344v74.656h-757.344zM650.656 608h320v-106.656h-320v106.656zM666.656 592v-74.656h288v74.656h-288zM181.344 394.656h789.344v-106.656h-789.344v106.656zM197.344 378.656v-74.656h757.344v74.656h-757.344zM650.656 821.344h320v-106.656h-320v106.656z" />
111
  </font></defs></svg>
admin/css/icon-font.css CHANGED
@@ -1,17 +1,17 @@
1
  @font-face {
2
- font-family: 'os-icon-font';
3
  src: url('fonts/os-icon-font.eot?frvqyp');
4
  src: url('fonts/os-icon-font.eot?frvqyp#iefix') format('embedded-opentype'),
5
  url('fonts/os-icon-font.ttf?frvqyp') format('truetype'),
6
  url('fonts/os-icon-font.woff?frvqyp') format('woff'),
7
- url('fonts/os-icon-font.svg?frvqyp#os-icon-font') format('svg');
8
  font-weight: normal;
9
  font-style: normal;
10
  }
11
 
12
- [class^="icon-"], [class*=" icon-"] {
13
  /* use !important to prevent issues with browser extensions that change fonts */
14
- font-family: 'os-icon-font' !important;
15
  speak: none;
16
  font-style: normal;
17
  font-weight: normal;
@@ -24,306 +24,306 @@
24
  -moz-osx-font-smoothing: grayscale;
25
  }
26
 
27
- .icon-os-form-address:before {
28
  content: "\e900";
29
  }
30
- .icon-os-form-email:before {
31
  content: "\e901";
32
  }
33
- .icon-os-form-name:before {
34
  content: "\e902";
35
  }
36
- .icon-os-form-phone:before {
37
  content: "\e903";
38
  }
39
- .icon-os-common-arrow-left2:before {
40
  content: "\e904";
41
  }
42
- .icon-os-common-arrow-right2:before {
43
  content: "\e905";
44
  }
45
- .icon-os-reports-list:before {
46
  content: "\e906";
47
  }
48
- .icon-os-reports-personality:before {
49
  content: "\e907";
50
  }
51
- .icon-os-reports-poll:before {
52
  content: "\e908";
53
  }
54
- .icon-os-reports-set:before {
55
  content: "\e909";
56
  }
57
- .icon-os-widget-slideshow:before {
58
  content: "\e90a";
59
  }
60
- .icon-os-reports-trivia:before {
61
  content: "\e90b";
62
  }
63
- .icon-os-common-up:before {
64
  content: "\e90c";
65
  }
66
- .icon-os-layout-image-poll:before {
67
  content: "\e90d";
68
  }
69
- .icon-os-common-arrow-left:before {
70
  content: "\e90e";
71
  }
72
- .icon-os-common-arrow-right:before {
73
  content: "\e90f";
74
  }
75
- .icon-os-form-user:before {
76
  content: "\e910";
77
  }
78
- .icon-os-sn-pinterest:before {
79
  content: "\e911";
80
  }
81
- .icon-os-sn-reddit:before {
82
  content: "\e912";
83
  }
84
- .icon-os-sn-whatsapp:before {
85
  content: "\e913";
86
  }
87
- .icon-os-brand-logo-small:before {
88
  content: "\e914";
89
  }
90
- .icon-os-brand-logo:before {
91
  content: "\e915";
92
  }
93
- .icon-os-common-addnew:before {
94
  content: "\e916";
95
  }
96
- .icon-os-common-checkbox-blank:before {
97
  content: "\e917";
98
  }
99
- .icon-os-common-checkbox-checked:before {
100
  content: "\e918";
101
  }
102
- .icon-os-common-close:before {
103
  content: "\e919";
104
  }
105
- .icon-os-common-date:before {
106
  content: "\e91a";
107
  }
108
- .icon-os-common-dot:before {
109
  content: "\e91b";
110
  }
111
- .icon-os-common-down:before {
112
  content: "\e91c";
113
  }
114
- .icon-os-common-help:before {
115
  content: "\e91d";
116
  }
117
- .icon-os-common-link:before {
118
  content: "\e91e";
119
  }
120
- .icon-os-common-menu-dd-closed:before {
121
  content: "\e91f";
122
  }
123
- .icon-os-common-menu-dd-open:before {
124
  content: "\e920";
125
  }
126
- .icon-os-common-menu-medium:before {
127
  content: "\e921";
128
  }
129
- .icon-os-common-menu:before {
130
  content: "\e922";
131
  }
132
- .icon-os-common-minimize:before {
133
  content: "\e923";
134
  }
135
- .icon-os-common-more:before {
136
  content: "\e924";
137
  }
138
- .icon-os-common-plus:before {
139
  content: "\e925";
140
  }
141
- .icon-os-common-poll:before {
142
  content: "\e926";
143
  }
144
- .icon-os-common-search:before {
145
  content: "\e927";
146
  }
147
- .icon-os-common-settings:before {
148
  content: "\e928";
149
  }
150
- .icon-os-common-tip:before {
151
  content: "\e929";
152
  }
153
- .icon-os-filter-all:before {
154
  content: "\e92a";
155
  }
156
- .icon-os-filter-facebook:before {
157
  content: "\e92b";
158
  }
159
- .icon-os-filter-female:before {
160
  content: "\e92c";
161
  }
162
- .icon-os-filter-friends:before {
163
  content: "\e92d";
164
  }
165
- .icon-os-filter-gplus:before {
166
  content: "\e92e";
167
  }
168
- .icon-os-filter-hidden:before {
169
  content: "\e92f";
170
  }
171
- .icon-os-filter-male:before {
172
  content: "\e930";
173
  }
174
- .icon-os-filter-public:before {
175
  content: "\e931";
176
  }
177
- .icon-os-filter-seperator:before {
178
  content: "\e932";
179
  }
180
- .icon-os-filter-twitter:before {
181
  content: "\e933";
182
  }
183
- .icon-os-form-check:before {
184
  content: "\e934";
185
  }
186
- .icon-os-form-drag:before {
187
  content: "\e935";
188
  }
189
- .icon-os-form-error:before {
190
  content: "\e936";
191
  }
192
- .icon-os-form-image:before {
193
  content: "\e937";
194
  }
195
- .icon-os-form-success:before {
196
  content: "\e938";
197
  }
198
- .icon-os-form-video:before {
199
  content: "\e939";
200
  }
201
- .icon-os-hp-engagement:before {
202
  content: "\e93a";
203
  }
204
- .icon-os-hp-insights:before {
205
  content: "\e93b";
206
  }
207
- .icon-os-hp-revenue:before {
208
  content: "\e93c";
209
  }
210
- .icon-os-hp-traffic:before {
211
  content: "\e93d";
212
  }
213
- .icon-os-layout-h2h:before {
214
  content: "\e93e";
215
  }
216
- .icon-os-layout-mc:before {
217
  content: "\e93f";
218
  }
219
- .icon-os-layout-thumbnails:before {
220
  content: "\e940";
221
  }
222
- .icon-os-menu-content:before {
223
  content: "\e941";
224
  }
225
- .icon-os-menu-placements:before {
226
  content: "\e942";
227
  }
228
- .icon-os-menu-reports:before {
229
  content: "\e943";
230
  }
231
- .icon-os-menu-revenue:before {
232
  content: "\e944";
233
  }
234
- .icon-os-pinterest:before {
235
  content: "\e945";
236
  }
237
- .icon-os-poll-client:before {
238
  content: "\e946";
239
  }
240
- .icon-os-poll-voter:before {
241
  content: "\e947";
242
  }
243
- .icon-os-quiz-correct:before {
244
  content: "\e948";
245
  }
246
- .icon-os-quiz-restart:before {
247
  content: "\e949";
248
  }
249
- .icon-os-quiz-wrong:before {
250
  content: "\e94a";
251
  }
252
- .icon-os-report-contacts:before {
253
  content: "\e94b";
254
  }
255
- .icon-os-report-discovery:before {
256
  content: "\e94c";
257
  }
258
- .icon-os-report-revenue:before {
259
  content: "\e94d";
260
  }
261
- .icon-os-report-stats:before {
262
  content: "\e94e";
263
  }
264
- .icon-os-report-time:before {
265
  content: "\e94f";
266
  }
267
- .icon-os-report-views:before {
268
  content: "\e950";
269
  }
270
- .icon-os-reports-emails:before {
271
  content: "\e951";
272
  }
273
- .icon-os-reports-polls:before {
274
  content: "\e952";
275
  }
276
- .icon-os-reports-revenue:before {
277
  content: "\e953";
278
  }
279
- .icon-os-reports-sets:before {
280
  content: "\e954";
281
  }
282
- .icon-os-reports-time:before {
283
  content: "\e955";
284
  }
285
- .icon-os-reports-traffic:before {
286
  content: "\e956";
287
  }
288
- .icon-os-reports-votes:before {
289
  content: "\e957";
290
  }
291
- .icon-os-set-arrow-left:before {
292
  content: "\e958";
293
  }
294
- .icon-os-set-arrow-right:before {
295
  content: "\e959";
296
  }
297
- .icon-os-sn-embed:before {
298
  content: "\e95a";
299
  }
300
- .icon-os-sn-facebook:before {
301
  content: "\e95b";
302
  }
303
- .icon-os-sn-gplus:before {
304
  content: "\e95c";
305
  }
306
- .icon-os-sn-tumblr:before {
307
  content: "\e95d";
308
  }
309
- .icon-os-sn-twitter:before {
310
  content: "\e95e";
311
  }
312
- .icon-os-status-closed:before {
313
  content: "\e95f";
314
  }
315
- .icon-os-status-draft:before {
316
  content: "\e960";
317
  }
318
- .icon-os-status-open:before {
319
  content: "\e961";
320
  }
321
- .icon-os-status-published:before {
322
  content: "\e962";
323
  }
324
- .icon-os-widget-form:before {
325
  content: "\e963";
326
  }
327
- .icon-os-icon-story:before {
328
  content: "\e964";
329
  }
1
  @font-face {
2
+ font-family: 'os-icon-plugin-plugin-font';
3
  src: url('fonts/os-icon-font.eot?frvqyp');
4
  src: url('fonts/os-icon-font.eot?frvqyp#iefix') format('embedded-opentype'),
5
  url('fonts/os-icon-font.ttf?frvqyp') format('truetype'),
6
  url('fonts/os-icon-font.woff?frvqyp') format('woff'),
7
+ url('fonts/os-icon-font.svg?frvqyp#os-iconn-font') format('svg');
8
  font-weight: normal;
9
  font-style: normal;
10
  }
11
 
12
+ #wpwrap [class^="icon-"], #wpwrap [class*=" icon-"] {
13
  /* use !important to prevent issues with browser extensions that change fonts */
14
+ font-family: 'os-icon-plugin-plugin-font' !important;
15
  speak: none;
16
  font-style: normal;
17
  font-weight: normal;
24
  -moz-osx-font-smoothing: grayscale;
25
  }
26
 
27
+ .icon-os-plugin-form-address:before {
28
  content: "\e900";
29
  }
30
+ .icon-os-plugin-form-email:before {
31
  content: "\e901";
32
  }
33
+ .icon-os-plugin-form-name:before {
34
  content: "\e902";
35
  }
36
+ .icon-os-plugin-form-phone:before {
37
  content: "\e903";
38
  }
39
+ .icon-os-plugin-common-arrow-left2:before {
40
  content: "\e904";
41
  }
42
+ .icon-os-plugin-common-arrow-right2:before {
43
  content: "\e905";
44
  }
45
+ .icon-os-plugin-reports-list:before {
46
  content: "\e906";
47
  }
48
+ .icon-os-plugin-reports-personality:before {
49
  content: "\e907";
50
  }
51
+ .icon-os-plugin-reports-poll:before {
52
  content: "\e908";
53
  }
54
+ .icon-os-plugin-reports-set:before {
55
  content: "\e909";
56
  }
57
+ .icon-os-plugin-widget-slideshow:before {
58
  content: "\e90a";
59
  }
60
+ .icon-os-plugin-reports-trivia:before {
61
  content: "\e90b";
62
  }
63
+ .icon-os-plugin-common-up:before {
64
  content: "\e90c";
65
  }
66
+ .icon-os-plugin-layout-image-poll:before {
67
  content: "\e90d";
68
  }
69
+ .icon-os-plugin-common-arrow-left:before {
70
  content: "\e90e";
71
  }
72
+ .icon-os-plugin-common-arrow-right:before {
73
  content: "\e90f";
74
  }
75
+ .icon-os-plugin-form-user:before {
76
  content: "\e910";
77
  }
78
+ .icon-os-plugin-sn-pinterest:before {
79
  content: "\e911";
80
  }
81
+ .icon-os-plugin-sn-reddit:before {
82
  content: "\e912";
83
  }
84
+ .icon-os-plugin-sn-whatsapp:before {
85
  content: "\e913";
86
  }
87
+ .icon-os-plugin-brand-logo-small:before {
88
  content: "\e914";
89
  }
90
+ .icon-os-plugin-brand-logo:before {
91
  content: "\e915";
92
  }
93
+ .icon-os-plugin-common-addnew:before {
94
  content: "\e916";
95
  }
96
+ .icon-os-plugin-common-checkbox-blank:before {
97
  content: "\e917";
98
  }
99
+ .icon-os-plugin-common-checkbox-checked:before {
100
  content: "\e918";
101
  }
102
+ .icon-os-plugin-common-close:before {
103
  content: "\e919";
104
  }
105
+ .icon-os-plugin-common-date:before {
106
  content: "\e91a";
107
  }
108
+ .icon-os-plugin-common-dot:before {
109
  content: "\e91b";
110
  }
111
+ .icon-os-plugin-common-down:before {
112
  content: "\e91c";
113
  }
114
+ .icon-os-plugin-common-help:before {
115
  content: "\e91d";
116
  }
117
+ .icon-os-plugin-common-link:before {
118
  content: "\e91e";
119
  }
120
+ .icon-os-plugin-common-menu-dd-closed:before {
121
  content: "\e91f";
122
  }
123
+ .icon-os-plugin-common-menu-dd-open:before {
124
  content: "\e920";
125
  }
126
+ .icon-os-plugin-common-menu-medium:before {
127
  content: "\e921";
128
  }
129
+ .icon-os-plugin-common-menu:before {
130
  content: "\e922";
131
  }
132
+ .icon-os-plugin-common-minimize:before {
133
  content: "\e923";
134
  }
135
+ .icon-os-plugin-common-more:before {
136
  content: "\e924";
137
  }
138
+ .icon-os-plugin-common-plus:before {
139
  content: "\e925";
140
  }
141
+ .icon-os-plugin-common-poll:before {
142
  content: "\e926";
143
  }
144
+ .icon-os-plugin-common-search:before {
145
  content: "\e927";
146
  }
147
+ .icon-os-plugin-common-settings:before {
148
  content: "\e928";
149
  }
150
+ .icon-os-plugin-common-tip:before {
151
  content: "\e929";
152
  }
153
+ .icon-os-plugin-filter-all:before {
154
  content: "\e92a";
155
  }
156
+ .icon-os-plugin-filter-facebook:before {
157
  content: "\e92b";
158
  }
159
+ .icon-os-plugin-filter-female:before {
160
  content: "\e92c";
161
  }
162
+ .icon-os-plugin-filter-friends:before {
163
  content: "\e92d";
164
  }
165
+ .icon-os-plugin-filter-gplus:before {
166
  content: "\e92e";
167
  }
168
+ .icon-os-plugin-filter-hidden:before {
169
  content: "\e92f";
170
  }
171
+ .icon-os-plugin-filter-male:before {
172
  content: "\e930";
173
  }
174
+ .icon-os-plugin-filter-public:before {
175
  content: "\e931";
176
  }
177
+ .icon-os-plugin-filter-seperator:before {
178
  content: "\e932";
179
  }
180
+ .icon-os-plugin-filter-twitter:before {
181
  content: "\e933";
182
  }
183
+ .icon-os-plugin-form-check:before {
184
  content: "\e934";
185
  }
186
+ .icon-os-plugin-form-drag:before {
187
  content: "\e935";
188
  }
189
+ .icon-os-plugin-form-error:before {
190
  content: "\e936";
191
  }
192
+ .icon-os-plugin-form-image:before {
193
  content: "\e937";
194
  }
195
+ .icon-os-plugin-form-success:before {
196
  content: "\e938";
197
  }
198
+ .icon-os-plugin-form-video:before {
199
  content: "\e939";
200
  }
201
+ .icon-os-plugin-hp-engagement:before {
202
  content: "\e93a";
203
  }
204
+ .icon-os-plugin-hp-insights:before {
205
  content: "\e93b";
206
  }
207
+ .icon-os-plugin-hp-revenue:before {
208
  content: "\e93c";
209
  }
210
+ .icon-os-plugin-hp-traffic:before {
211
  content: "\e93d";
212
  }
213
+ .icon-os-plugin-layout-h2h:before {
214
  content: "\e93e";
215
  }
216
+ .icon-os-plugin-layout-mc:before {
217
  content: "\e93f";
218
  }
219
+ .icon-os-plugin-layout-thumbnails:before {
220
  content: "\e940";
221
  }
222
+ .icon-os-plugin-menu-content:before {
223
  content: "\e941";
224
  }
225
+ .icon-os-plugin-menu-placements:before {
226
  content: "\e942";
227
  }
228
+ .icon-os-plugin-menu-reports:before {
229
  content: "\e943";
230
  }
231
+ .icon-os-plugin-menu-revenue:before {
232
  content: "\e944";
233
  }
234
+ .icon-os-plugin-pinterest:before {
235
  content: "\e945";
236
  }
237
+ .icon-os-plugin-poll-client:before {
238
  content: "\e946";
239
  }
240
+ .icon-os-plugin-poll-voter:before {
241
  content: "\e947";
242
  }
243
+ .icon-os-plugin-quiz-correct:before {
244
  content: "\e948";
245
  }
246
+ .icon-os-plugin-quiz-restart:before {
247
  content: "\e949";
248
  }
249
+ .icon-os-plugin-quiz-wrong:before {
250
  content: "\e94a";
251
  }
252
+ .icon-os-plugin-report-contacts:before {
253
  content: "\e94b";
254
  }
255
+ .icon-os-plugin-report-discovery:before {
256
  content: "\e94c";
257
  }
258
+ .icon-os-plugin-report-revenue:before {
259
  content: "\e94d";
260
  }
261
+ .icon-os-plugin-report-stats:before {
262
  content: "\e94e";
263
  }
264
+ .icon-os-plugin-report-time:before {
265
  content: "\e94f";
266
  }
267
+ .icon-os-plugin-report-views:before {
268
  content: "\e950";
269
  }
270
+ .icon-os-plugin-reports-emails:before {
271
  content: "\e951";
272
  }
273
+ .icon-os-plugin-reports-polls:before {
274
  content: "\e952";
275
  }
276
+ .icon-os-plugin-reports-revenue:before {
277
  content: "\e953";
278
  }
279
+ .icon-os-plugin-reports-sets:before {
280
  content: "\e954";
281
  }
282
+ .icon-os-plugin-reports-time:before {
283
  content: "\e955";
284
  }
285
+ .icon-os-plugin-reports-traffic:before {
286
  content: "\e956";
287
  }
288
+ .icon-os-plugin-reports-votes:before {
289
  content: "\e957";
290
  }
291
+ .icon-os-plugin-set-arrow-left:before {
292
  content: "\e958";
293
  }
294
+ .icon-os-plugin-set-arrow-right:before {
295
  content: "\e959";
296
  }
297
+ .icon-os-plugin-sn-embed:before {
298
  content: "\e95a";
299
  }
300
+ .icon-os-plugin-sn-facebook:before {
301
  content: "\e95b";
302
  }
303
+ .icon-os-plugin-sn-gplus:before {
304
  content: "\e95c";
305
  }
306
+ .icon-os-plugin-sn-tumblr:before {
307
  content: "\e95d";
308
  }
309
+ .icon-os-plugin-sn-twitter:before {
310
  content: "\e95e";
311
  }
312
+ .icon-os-plugin-status-closed:before {
313
  content: "\e95f";
314
  }
315
+ .icon-os-plugin-status-draft:before {
316
  content: "\e960";
317
  }
318
+ .icon-os-plugin-status-open:before {
319
  content: "\e961";
320
  }
321
+ .icon-os-plugin-status-published:before {
322
  content: "\e962";
323
  }
324
+ .icon-os-plugin-widget-form:before {
325
  content: "\e963";
326
  }
327
+ .icon-os-icon-plugin-story:before {
328
  content: "\e964";
329
  }
admin/css/menu-page.css CHANGED
@@ -48,7 +48,7 @@
48
  font-weight: lighter;
49
  line-height: 25px;
50
  }
51
- #opinionstage-content .opinionstage-status-content .os-icon {
52
  font-size: 19px;
53
  margin-right: 7px;
54
  }
@@ -73,7 +73,7 @@
73
  opacity: 0.9;
74
  }
75
  #opinionstage-content .opinionstage-create-btn {
76
- width: 95px;
77
  }
78
  #opinionstage-content a.opinionstage-blue-bordered-btn {
79
  text-align: center;
@@ -126,7 +126,7 @@
126
  }
127
  #opinionstage-content .opinionstage-dashboard-left , #opinionstage-content .opinionstage-dashboard-right {
128
  float: left;
129
- width: 510px;
130
  }
131
  #opinionstage-content .opinionstage-dashboard-left {
132
  margin-right: 40px;
@@ -208,21 +208,22 @@
208
  #opinionstage-content .opinionstage-dashboard-section .opinionstage-section-content .opinionstage-section-raw .opinionstage-section-cell {
209
  display: table-cell;
210
  vertical-align: middle;
 
211
  }
212
  #opinionstage-section-create .opinionstage-section-content, #opinionstage-section-placements .opinionstage-section-content {
213
  height: 435px;
214
  }
215
  #opinionstage-section-create .opinionstage-section-cell.opinionstage-icon-cell {
216
- width: 17%;
217
  text-align: center;
218
  color: #3499c2;
219
  font-size: 35px;
220
  }
221
  #opinionstage-section-create .opinionstage-section-cell.opinionstage-description-cell {
222
- width: 52%;
223
  }
224
  #opinionstage-section-create .opinionstage-section-cell.opinionstage-btn-cell {
225
- width: 31%;
226
  }
227
  #opinionstage-section-create .opinionstage-section-cell.opinionstage-description-cell .title, #opinionstage-section-placements .opinionstage-section-cell.opinionstage-description-cell .title {
228
  font-size: 21px;
@@ -438,3 +439,177 @@ h1.gettingStartedHeading_logo {
438
  text-align: left;
439
  }
440
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
48
  font-weight: lighter;
49
  line-height: 25px;
50
  }
51
+ #opinionstage-content .opinionstage-status-content .os-icon-plugin {
52
  font-size: 19px;
53
  margin-right: 7px;
54
  }
73
  opacity: 0.9;
74
  }
75
  #opinionstage-content .opinionstage-create-btn {
76
+ width: 100px;
77
  }
78
  #opinionstage-content a.opinionstage-blue-bordered-btn {
79
  text-align: center;
126
  }
127
  #opinionstage-content .opinionstage-dashboard-left , #opinionstage-content .opinionstage-dashboard-right {
128
  float: left;
129
+ width: 750px;
130
  }
131
  #opinionstage-content .opinionstage-dashboard-left {
132
  margin-right: 40px;
208
  #opinionstage-content .opinionstage-dashboard-section .opinionstage-section-content .opinionstage-section-raw .opinionstage-section-cell {
209
  display: table-cell;
210
  vertical-align: middle;
211
+ padding: 15px 0px;
212
  }
213
  #opinionstage-section-create .opinionstage-section-content, #opinionstage-section-placements .opinionstage-section-content {
214
  height: 435px;
215
  }
216
  #opinionstage-section-create .opinionstage-section-cell.opinionstage-icon-cell {
217
+ width: 10%;
218
  text-align: center;
219
  color: #3499c2;
220
  font-size: 35px;
221
  }
222
  #opinionstage-section-create .opinionstage-section-cell.opinionstage-description-cell {
223
+ width: 45%;
224
  }
225
  #opinionstage-section-create .opinionstage-section-cell.opinionstage-btn-cell {
226
+ width: 35%;
227
  }
228
  #opinionstage-section-create .opinionstage-section-cell.opinionstage-description-cell .title, #opinionstage-section-placements .opinionstage-section-cell.opinionstage-description-cell .title {
229
  font-size: 21px;
439
  text-align: left;
440
  }
441
  }
442
+ #opinionstage-content .opinionstage-create-btn.template {
443
+ padding: 11px 25px !important;
444
+ width: auto !important;
445
+ }
446
+ /* My Items Page Css */
447
+ td.long {
448
+ width: 340px;
449
+ padding-left: 10px;
450
+ }
451
+ td.long div{
452
+ width: 90%;
453
+ }
454
+ td.action a.opinionstage-blue-bordered-btn{
455
+ margin-right: 15px;
456
+ }
457
+ td.long table{
458
+ width: 100%;
459
+ color: #b1b1b1;
460
+ position: absolute;
461
+ bottom: 0;
462
+ line-height: normal;
463
+ }
464
+ td.long table td {
465
+ max-width: 300px;
466
+ }
467
+ span.os-icon-plugin.icon-os-common-date {
468
+ float: left;
469
+ margin-right: 10px;
470
+ }
471
+ .label {
472
+ line-height: 15px;
473
+ }
474
+ .content-item-label {
475
+ background-color: #222120;
476
+ padding: 2px 4px;
477
+ font-size: 10px;
478
+ color: #fff;
479
+ }
480
+
481
+ a.opinionstage-blue-bordered-btn {
482
+ float: left;
483
+ margin-right: 5px;
484
+ }
485
+ a.opinionstage-blue-bordered-btn {
486
+ text-align: center;
487
+ text-decoration: none;
488
+ -webkit-border-radius: 3px;
489
+ -moz-border-radius: 3px;
490
+ border-radius: 3px;
491
+ display: block;
492
+ color: #3aaebd;
493
+ border: 1px solid #3aaebd;
494
+ padding: 10px 30px;
495
+ text-transform: uppercase;
496
+ font-size: 14px;
497
+ }
498
+ td.action {
499
+ width: 380px;
500
+ opacity: 0.7;
501
+ }
502
+ span.os-icon-plugin.icon-os-common-date {
503
+ margin-right: 4px;
504
+ }
505
+ td.long a {
506
+ color: #000;
507
+ text-decoration: none;
508
+ font-size: 17px;
509
+ font-weight: normal;
510
+ display: block;
511
+ text-overflow: ellipsis;
512
+ word-wrap: break-word;
513
+ overflow: hidden;
514
+ max-height: 3.6em;
515
+ line-height: 1.6em;
516
+ }
517
+ .content-item-image.quiz {
518
+ position: relative;
519
+ width: 120px;
520
+ height: 90px;
521
+ }
522
+ .content-item-image.quiz img {
523
+ opacity: 0.8;
524
+ position: absolute;
525
+ display: block;
526
+ bottom: 0;
527
+ right: 0;
528
+ width: 120px;
529
+ height: 90px;
530
+ }
531
+ .content-item-label {
532
+ text-transform: uppercase;
533
+ position: absolute;
534
+ top: 0;
535
+ left: 0;
536
+ color: white;
537
+ background-color: #222120;
538
+ padding: 0px 4px;
539
+ font-size: 10px;
540
+ }
541
+ tr.settingBorderOs {
542
+ border-top: 1px #e5e5e5 solid;
543
+ display: table-cell;
544
+ padding: 8px 0px;
545
+ }
546
+ .opinionstage-section-header {
547
+ font-size: 23px;
548
+ margin-left: 20px;
549
+ margin-top: 20px;
550
+ overflow: hidden;
551
+ height: 40px;
552
+ }
553
+ div#container .opinionstage-section-header {
554
+ width: 100%;
555
+ max-width: 890px;
556
+ }
557
+ .opinionstage-section-title {
558
+ font-size: 25px;
559
+ float: left;
560
+ padding: 10px 0;
561
+ }
562
+ .opinionstage-section-header a {
563
+ float: right;
564
+ margin-right: 0;
565
+ color: #3499c2;
566
+ font-weight: 600;
567
+ font-size: 15px;
568
+ margin: 10px 25px;
569
+ }
570
+
571
+ /* Load More */
572
+ div#loadMore {
573
+ cursor:pointer;
574
+ -webkit-box-sizing: border-box;
575
+ box-sizing: border-box;
576
+ display: -webkit-inline-box;
577
+ display: -ms-inline-flexbox;
578
+ display: inline-flex;
579
+ -webkit-box-align: center;
580
+ -ms-flex-align: center;
581
+ align-items: center;
582
+ -webkit-box-pack: center;
583
+ -ms-flex-pack: center;
584
+ justify-content: center;
585
+ cursor: pointer;
586
+ font-size: 14px;
587
+ line-height: 38px;
588
+ text-transform: uppercase;
589
+ border: 1px solid #dededd;
590
+ border-radius: 3px;
591
+ padding: 0 10px;
592
+ text-decoration: none;
593
+ outline: none;
594
+ -webkit-transition: 0.2s ease;
595
+ transition: 0.2s ease;
596
+ -webkit-user-select: none;
597
+ -moz-user-select: none;
598
+ -ms-user-select: none;
599
+ user-select: none;
600
+ vertical-align: baseline;
601
+ color: #38aebd;
602
+ background-color: transparent;
603
+ border-color: #38aebd;
604
+ width: 100%;
605
+ max-width: 870px;
606
+ margin-bottom: 20px;
607
+ margin-left: 20px;
608
+ }
609
+ div#loadMore:hover {
610
+ text-decoration: none;
611
+ opacity: 0.8;
612
+ }
613
+ td.image {
614
+ width: 15%;
615
+ }
admin/css/sidebar-widget.css CHANGED
@@ -63,13 +63,13 @@
63
  .wp-admin .opinionstage-sidebar-widget input[type=checkbox] {
64
  margin: 10px 5px 10px 0;
65
  }
66
- .opinionstage-sidebar-widget .os-icon {
67
  float: left;
68
  font-size: 16px;
69
  margin-right: 7px;
70
  margin-left: 5px;
71
  }
72
- .opinionstage-sidebar-widget .os-icon.icon-os-poll-client {
73
  margin-top: 4px;
74
  }
75
  .opinionstage-sidebar-widget .os-button {
63
  .wp-admin .opinionstage-sidebar-widget input[type=checkbox] {
64
  margin: 10px 5px 10px 0;
65
  }
66
+ .opinionstage-sidebar-widget .os-icon-plugin {
67
  float: left;
68
  font-size: 16px;
69
  margin-right: 7px;
70
  margin-left: 5px;
71
  }
72
+ .opinionstage-sidebar-widget .os-icon-plugin.icon-os-poll-client {
73
  margin-top: 4px;
74
  }
75
  .opinionstage-sidebar-widget .os-button {
admin/init.php CHANGED
@@ -10,5 +10,6 @@ require( plugin_dir_path( __FILE__ ).'deactivate-feedback.php' );
10
  require( plugin_dir_path( __FILE__ ).'admin-page-loader.php' );
11
  require( plugin_dir_path( __FILE__ ).'menu-target.php' );
12
  require( plugin_dir_path( __FILE__ ).'opinionstage-tracking-user-notice.php' );
 
13
 
14
  ?>
10
  require( plugin_dir_path( __FILE__ ).'admin-page-loader.php' );
11
  require( plugin_dir_path( __FILE__ ).'menu-target.php' );
12
  require( plugin_dir_path( __FILE__ ).'opinionstage-tracking-user-notice.php' );
13
+ require( plugin_dir_path( __FILE__ ).'message-handler.php' );
14
 
15
  ?>
admin/menu-page.php CHANGED
@@ -18,10 +18,10 @@ function opinionstage_register_menu_page() {
18
  '25.234323221'
19
  );
20
  add_submenu_page(OPINIONSTAGE_MENU_SLUG, 'Create...', 'Create...', 'edit_posts', OPINIONSTAGE_MENU_SLUG);
 
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
  add_submenu_page(OPINIONSTAGE_MENU_SLUG, 'Settings', 'Settings', 'edit_posts', 'opinionstage-settings-track','opinionstage_load_template');
26
  }else{
27
  add_menu_page(
@@ -37,8 +37,7 @@ function opinionstage_register_menu_page() {
37
  add_submenu_page(OPINIONSTAGE_GETTING_STARTED_SLUG, 'Create...', 'Create...', 'edit_posts', OPINIONSTAGE_MENU_SLUG, 'opinionstage_load_template');
38
  add_submenu_page(OPINIONSTAGE_GETTING_STARTED_SLUG, 'Placements', 'Placements', 'edit_posts', OPINIONSTAGE_PLACEMENT_SLUG , 'opinionstage_load_template' );
39
  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' );
40
- 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' );
41
- add_submenu_page(OPINIONSTAGE_MENU_SLUG, 'Settings', 'Settings', 'edit_posts', 'opinionstage-settings-track','opinionstage_load_template');
42
  }
43
  }
44
  }
@@ -47,5 +46,4 @@ function opinionstage_register_menu_page() {
47
  $OSAPL = OpinionStageAdminPageLoader::getInstance();
48
  $OSAPL->OSAPL_LoadTemplateFile();
49
  }
50
-
51
- ?>
18
  '25.234323221'
19
  );
20
  add_submenu_page(OPINIONSTAGE_MENU_SLUG, 'Create...', 'Create...', 'edit_posts', OPINIONSTAGE_MENU_SLUG);
21
+ add_submenu_page(OPINIONSTAGE_MENU_SLUG, 'View My Items', 'My Items', 'edit_posts','opinionstage-view-my-items','opinionstage_load_template');
22
  add_submenu_page(OPINIONSTAGE_MENU_SLUG, 'Placements', 'Placements', 'edit_posts', OPINIONSTAGE_PLACEMENT_SLUG , 'opinionstage_load_template' );
23
  add_submenu_page(OPINIONSTAGE_MENU_SLUG, 'Getting Started', 'Getting Started', 'edit_posts', OPINIONSTAGE_GETTING_STARTED_SLUG,'opinionstage_load_template' );
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, 'Settings', 'Settings', 'edit_posts', 'opinionstage-settings-track','opinionstage_load_template');
26
  }else{
27
  add_menu_page(
37
  add_submenu_page(OPINIONSTAGE_GETTING_STARTED_SLUG, 'Create...', 'Create...', 'edit_posts', OPINIONSTAGE_MENU_SLUG, 'opinionstage_load_template');
38
  add_submenu_page(OPINIONSTAGE_GETTING_STARTED_SLUG, 'Placements', 'Placements', 'edit_posts', OPINIONSTAGE_PLACEMENT_SLUG , 'opinionstage_load_template' );
39
  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' );
40
+ add_submenu_page(OPINIONSTAGE_GETTING_STARTED_SLUG, 'Settings', 'Settings', 'edit_posts', 'opinionstage-settings-track','opinionstage_load_template');
 
41
  }
42
  }
43
  }
46
  $OSAPL = OpinionStageAdminPageLoader::getInstance();
47
  $OSAPL->OSAPL_LoadTemplateFile();
48
  }
49
+ ?>
 
admin/menu-target.php CHANGED
@@ -4,7 +4,6 @@ add_action('admin_footer', 'OpinionStage_addMenuTargetLink');
4
  function OpinionStage_addMenuTargetLink(){ ?>
5
  <script type="text/javascript">
6
  jQuery(document).ready(function(){
7
- jQuery("li.toplevel_page_opinionstage-getting-started ul li:nth-last-child(3) a,li.toplevel_page_opinionstage-settings ul li:nth-last-child(3) a").attr('target', '_blank');
8
  jQuery("li.toplevel_page_opinionstage-getting-started ul li:nth-last-child(2) a,li.toplevel_page_opinionstage-settings ul li:nth-last-child(2) a").attr('target', '_blank');
9
  });
10
  </script>
4
  function OpinionStage_addMenuTargetLink(){ ?>
5
  <script type="text/javascript">
6
  jQuery(document).ready(function(){
 
7
  jQuery("li.toplevel_page_opinionstage-getting-started ul li:nth-last-child(2) a,li.toplevel_page_opinionstage-settings ul li:nth-last-child(2) a").attr('target', '_blank');
8
  });
9
  </script>
admin/message-handler.php ADDED
@@ -0,0 +1,72 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ // block direct access to plugin PHP files:
3
+ defined( 'ABSPATH' ) or die();
4
+ if ( function_exists('curl_init') ) {
5
+
6
+ add_action( 'admin_init', 'opinionstage_message_handler' );
7
+ function opinionstage_message_handler(){
8
+ $last_api_call_time = get_option('oswp_message_last_call_time'); // last api call time
9
+ $last_activity_time = get_option('oswp_message_activity_time'); // last activity time
10
+ if($last_activity_time == false){
11
+ $last_activity_time = 1;
12
+ }
13
+
14
+ if(
15
+ $last_api_call_time == false ||
16
+ ($last_api_call_time != false && strtotime("+6 hours", $last_api_call_time) < time() )
17
+ ){
18
+ opinionstage_message_api_call($last_activity_time);
19
+ }
20
+
21
+ $message_title = get_option('oswp_message_title');
22
+ $message_content = get_option('oswp_message_content');
23
+
24
+ // display message if available
25
+ if( $message_title != false && $message_content != false ){
26
+ add_action( 'admin_notices', 'opinionstage_display_wp_message');
27
+ }
28
+ }
29
+
30
+ function opinionstage_message_api_call($last_activity_time){
31
+ $api_url = OPINIONSTAGE_MESSAGE_API."?api_call_time=".$last_activity_time;
32
+ $client = curl_init($api_url);
33
+ curl_setopt($client, CURLOPT_RETURNTRANSFER, true);
34
+ $response = curl_exec($client);
35
+ $result = json_decode($response);
36
+ update_option('oswp_message_last_call_time', time());
37
+ // save if message is available
38
+ if(isset($result->message) && count($result->message) > 0){
39
+ update_option('oswp_message_title', $result->message->title);
40
+ update_option('oswp_message_content', $result->message->content);
41
+ }
42
+ }
43
+
44
+ function opinionstage_display_wp_message(){
45
+ $message_title_display = get_option('oswp_message_title');
46
+ $message_content_display = get_option('oswp_message_content');
47
+ $message_content_display = str_replace('\\','',htmlspecialchars_decode($message_content_display));
48
+ echo '<div class="notice notice-success" id="oswp_hide_div" style="overflow: hidden; position: relative;padding-top: 10px; padding-bottom: 20px;"><img style="margin-top:8px;float: left;width:70px;margin-right: 20px;" src="https://dipika.embien.co.uk/wp-content/plugins/opinionstage-wordpress-plugin-menu-changes/admin/images/opinionstage-tracking-notice.png"><h3 style="margin-bottom:0px;margin-top: 10px;margin-left: 10px;float: none;">'.$message_title_display.'</h3><p> '.$message_content_display.'</p><div style="clear:both;"></div><button id="read_message" type="submit" class="button button-primary button-large" style="margin-left: 90px;margin-top: 10px;">Mark as Read</button><button type="button" class="notice-dismiss"><span class="screen-reader-text">Dismiss this notice.</span></button></div>';
49
+ }
50
+
51
+ add_action( 'admin_footer', 'my_action_javascript' );
52
+
53
+ function my_action_javascript() { ?>
54
+ <script type="text/javascript">
55
+ jQuery(document).ready(function($){
56
+ $('button#read_message , button.notice-dismiss').on('click', function(event) {
57
+ event.preventDefault();
58
+ var data = {
59
+ 'action': 'osa_message_delete',
60
+ 'delete_options_oswp' : true
61
+ };
62
+ jQuery.post(ajaxurl, data, function(response) {
63
+ if(response){
64
+ $('#oswp_hide_div').hide(800);
65
+ }
66
+ });
67
+ });
68
+ });
69
+
70
+ </script>
71
+ <?php }
72
+ }
admin/opinionstage-login-callback.php CHANGED
@@ -44,7 +44,7 @@ function opinionstage_login_callback() {
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 ) ) {
44
  );
45
 
46
 
47
+ $redirect_url = get_admin_url(null, '', 'admin').'admin.php?page='.OPINIONSTAGE_MENU_SLUG;
48
 
49
  error_log('[opinionstage plugin] user logged in, redirect to '.$redirect_url);
50
  if ( wp_redirect( $redirect_url, 302 ) ) {
admin/opinionstage-tracking-user-notice.php CHANGED
@@ -10,9 +10,8 @@ function opinionstage_tracking(){
10
  function opinionstage_tracking_user_info() {
11
  $message_title_display = 'Love using OpinionStage? Become a super contributor by opting in to our anonymous plugin data collection and to our updates. We guarantee no sensitive data is collected. ';
12
  if(!get_option('oswp_tracking_user_site_data') && get_option('oswp_tracking_user_site_data') == false){
13
- echo '<div class="notice" id="oswp_hide_tracking_notice" style="overflow: hidden; padding-top: 10px; padding-bottom: 20px;"><img style="margin-top:8px;float: left;width:70px; " src="' . esc_url( plugins_url( 'admin/images/opinionstage-tracking-notice.png', plugin_dir_path(__FILE__) ) ) . '"><p style="margin-top: 6px;margin-left: 10px;float: none;margin-bottom: 10px;">'.$message_title_display.'&nbsp;<span><a href="https://help.opinionstage.com/wordpress-plugin/wordpress-plugin-usage-data-tracking" target="_blank">Learn more. </a></span></p><button id="track_user_data" type="submit" class="button button-primary button-large">Sure I\'d love to help</button><button style="margin-left: 10px;" id="track_user_data_no_thanks" class="button button-large">No thanks</button></div>';
14
  }
15
-
16
  }
17
 
18
  add_action( 'admin_footer', 'tracking_user_js_opinionstage' ); // Write our JS below here
10
  function opinionstage_tracking_user_info() {
11
  $message_title_display = 'Love using OpinionStage? Become a super contributor by opting in to our anonymous plugin data collection and to our updates. We guarantee no sensitive data is collected. ';
12
  if(!get_option('oswp_tracking_user_site_data') && get_option('oswp_tracking_user_site_data') == false){
13
+ echo '<div class="notice notice-success" id="oswp_hide_tracking_notice" style="overflow: hidden; padding-top: 10px; padding-bottom: 20px;"><img style="margin-right: 20px;margin-top:8px;float: left;width:70px; " src="' . esc_url( plugins_url( 'admin/images/opinionstage-tracking-notice.png', plugin_dir_path(__FILE__) ) ) . '"><p style="margin-top: 6px;margin-left: 10px;float: none;margin-bottom: 10px;">'.$message_title_display.'&nbsp;<span><a href="https://help.opinionstage.com/wordpress-plugin/usage-data-tracking" target="_blank">Learn more. </a></span></p><button id="track_user_data" type="submit" class="button button-primary button-large">Sure I\'d love to help</button><button style="margin-left: 10px;" id="track_user_data_no_thanks" class="button button-large">No thanks</button></div>';
14
  }
 
15
  }
16
 
17
  add_action( 'admin_footer', 'tracking_user_js_opinionstage' ); // Write our JS below here
admin/opinionstage-usage-tracking-code.php CHANGED
@@ -1,7 +1,9 @@
1
  <?php
2
  // block direct access to plugin PHP files:
3
  defined( 'ABSPATH' ) or die();
 
4
 
 
5
  if(get_option('oswp_tracking_user_site_data') == 'yes'){ ?>
6
  <!-- Hotjar Tracking Code for https://wordpress.org/plugins/social-polls-by-opinionstage/ -->
7
  <script>
@@ -14,4 +16,5 @@ if(get_option('oswp_tracking_user_site_data') == 'yes'){ ?>
14
  a.appendChild(r);
15
  })(window,document,'https://static.hotjar.com/c/hotjar-','.js?sv=');
16
  </script>
17
- <?php }
 
1
  <?php
2
  // block direct access to plugin PHP files:
3
  defined( 'ABSPATH' ) or die();
4
+ add_action( 'admin_head', 'add_tracking_hotjar_oswp');
5
 
6
+ function add_tracking_hotjar_oswp(){
7
  if(get_option('oswp_tracking_user_site_data') == 'yes'){ ?>
8
  <!-- Hotjar Tracking Code for https://wordpress.org/plugins/social-polls-by-opinionstage/ -->
9
  <script>
16
  a.appendChild(r);
17
  })(window,document,'https://static.hotjar.com/c/hotjar-','.js?sv=');
18
  </script>
19
+ <?php }
20
+ }
admin/resources/common.php CHANGED
@@ -12,9 +12,8 @@ function opinionstage_common_load_resources(){
12
  // Load common assets
13
  opinionstage_enqueue_css_asset('menu-page');
14
  opinionstage_enqueue_css_asset('icon-font');
15
- opinionstage_enqueue_js_asset('menu-page');
16
-
17
- }
18
 
19
  function opinionstage_common_load_header(){
20
  if(get_option('oswp_tracking_user_site_data') == 'yes'){ ?>
@@ -31,7 +30,7 @@ function opinionstage_common_load_header(){
31
  </script>
32
  <?php }
33
  }
34
- function opinionstage_common_load_footer(){
35
 
36
  }
37
- ?>
12
  // Load common assets
13
  opinionstage_enqueue_css_asset('menu-page');
14
  opinionstage_enqueue_css_asset('icon-font');
15
+ opinionstage_enqueue_js_asset('menu-page'); ?>
16
+ <?php }
 
17
 
18
  function opinionstage_common_load_header(){
19
  if(get_option('oswp_tracking_user_site_data') == 'yes'){ ?>
30
  </script>
31
  <?php }
32
  }
33
+ function opinionstage_common_load_footer(){
34
 
35
  }
36
+ ?>
admin/views/getting_started.php CHANGED
@@ -11,20 +11,20 @@ defined( 'ABSPATH' ) or die();
11
  <div class="opinionstage-status-content">
12
  <div class='opinionstage-status-title'><b>Connect WordPress with Opinion Stage to Get Started</b></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">
@@ -50,10 +50,7 @@ defined( 'ABSPATH' ) or die();
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>
11
  <div class="opinionstage-status-content">
12
  <div class='opinionstage-status-title'><b>Connect WordPress with Opinion Stage to Get Started</b></div>
13
  <form action="<?php echo OPINIONSTAGE_LOGIN_PATH ?>" method="get" class="opinionstage-connect-form">
14
+ <i class="os-icon-plugin 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 required>
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-plugin 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">
50
  <p><b>Need more information?</b></p>
51
  <ul>
52
  <li>
53
+ <a href="https://help.opinionstage.com/wordpress-plugin/how-to-use-the-wordpress-plugin" target="_blank">Getting started tutorial</a>
 
 
 
54
  </li>
55
  <li>
56
  <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>
admin/views/my_placements.php CHANGED
@@ -11,20 +11,20 @@ defined( 'ABSPATH' ) or die();
11
  <div class="opinionstage-status-content">
12
  <div class='opinionstage-status-title'><b>Connect WordPress with Opinion Stage to Get Started</b></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">
@@ -62,7 +62,7 @@ defined( 'ABSPATH' ) or die();
62
  <div class="opinionstage-section-cell opinionstage-btns-cell">
63
  <a href="<?php echo opinionstage_flyout_edit_url('content'); ?>" class='opinionstage-blue-bordered-btn opinionstage-edit-content <?php echo( $os_client_logged_in ? '' : 'disabled' ) ?>' target="_blank">EDIT CONTENT</a>
64
  <a href="<?php echo opinionstage_flyout_edit_url('settings'); ?>" class='opinionstage-blue-bordered-btn opinionstage-edit-settings <?php echo( $os_client_logged_in ? '' : 'disabled' ) ?>' target="_blank">
65
- <div class="os-icon icon-os-common-settings"></div>
66
  </a>
67
  </div>
68
  </div>
@@ -87,7 +87,7 @@ defined( 'ABSPATH' ) or die();
87
  <div class="opinionstage-section-cell opinionstage-btns-cell">
88
  <a href="<?php echo opinionstage_article_placement_edit_url('content'); ?>" class='opinionstage-blue-bordered-btn opinionstage-edit-content <?php echo( $os_client_logged_in ? '' : 'disabled' ) ?>' target="_blank">EDIT CONTENT</a>
89
  <a href="<?php echo opinionstage_article_placement_edit_url('settings'); ?>" class='opinionstage-blue-bordered-btn opinionstage-edit-settings <?php echo( $os_client_logged_in ? '' : 'disabled' ) ?>' target="_blank">
90
- <div class="os-icon icon-os-common-settings"></div>
91
  </a>
92
  </div>
93
  </div>
@@ -120,13 +120,14 @@ defined( 'ABSPATH' ) or die();
120
  <div class="opinionstage-section-cell opinionstage-btns-cell">
121
  <a href="<?php echo opinionstage_sidebar_placement_edit_url('content'); ?>" class='opinionstage-blue-bordered-btn opinionstage-edit-content <?php echo( $os_client_logged_in ? '' : 'disabled' ) ?>' target="_blank">EDIT CONTENT</a>
122
  <a href="<?php echo opinionstage_sidebar_placement_edit_url('settings'); ?>" class='opinionstage-blue-bordered-btn opinionstage-edit-settings <?php echo( $os_client_logged_in ? '' : 'disabled' ) ?>' target="_blank">
123
- <div class="os-icon icon-os-common-settings"></div>
124
  </a>
125
  </div>
126
  </div>
127
  </div>
128
  </div>
129
  </div>
 
130
  </div>
131
  </div>
132
  </div>
11
  <div class="opinionstage-status-content">
12
  <div class='opinionstage-status-title'><b>Connect WordPress with Opinion Stage to Get Started</b></div>
13
  <form action="<?php echo OPINIONSTAGE_LOGIN_PATH ?>" method="get" class="opinionstage-connect-form">
14
+ <i class="os-icon-plugin 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 required>
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-plugin 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">
62
  <div class="opinionstage-section-cell opinionstage-btns-cell">
63
  <a href="<?php echo opinionstage_flyout_edit_url('content'); ?>" class='opinionstage-blue-bordered-btn opinionstage-edit-content <?php echo( $os_client_logged_in ? '' : 'disabled' ) ?>' target="_blank">EDIT CONTENT</a>
64
  <a href="<?php echo opinionstage_flyout_edit_url('settings'); ?>" class='opinionstage-blue-bordered-btn opinionstage-edit-settings <?php echo( $os_client_logged_in ? '' : 'disabled' ) ?>' target="_blank">
65
+ <div class="os-icon-plugin icon-os-common-settings"></div>
66
  </a>
67
  </div>
68
  </div>
87
  <div class="opinionstage-section-cell opinionstage-btns-cell">
88
  <a href="<?php echo opinionstage_article_placement_edit_url('content'); ?>" class='opinionstage-blue-bordered-btn opinionstage-edit-content <?php echo( $os_client_logged_in ? '' : 'disabled' ) ?>' target="_blank">EDIT CONTENT</a>
89
  <a href="<?php echo opinionstage_article_placement_edit_url('settings'); ?>" class='opinionstage-blue-bordered-btn opinionstage-edit-settings <?php echo( $os_client_logged_in ? '' : 'disabled' ) ?>' target="_blank">
90
+ <div class="os-icon-plugin icon-os-common-settings"></div>
91
  </a>
92
  </div>
93
  </div>
120
  <div class="opinionstage-section-cell opinionstage-btns-cell">
121
  <a href="<?php echo opinionstage_sidebar_placement_edit_url('content'); ?>" class='opinionstage-blue-bordered-btn opinionstage-edit-content <?php echo( $os_client_logged_in ? '' : 'disabled' ) ?>' target="_blank">EDIT CONTENT</a>
122
  <a href="<?php echo opinionstage_sidebar_placement_edit_url('settings'); ?>" class='opinionstage-blue-bordered-btn opinionstage-edit-settings <?php echo( $os_client_logged_in ? '' : 'disabled' ) ?>' target="_blank">
123
+ <div class="os-icon-plugin icon-os-common-settings"></div>
124
  </a>
125
  </div>
126
  </div>
127
  </div>
128
  </div>
129
  </div>
130
+ <p style="font-weight: 600; font-size: 15px;"><a href="https://help.opinionstage.com/wordpress-plugin/how-to-add-items-to-your-site-using-placements" target="_blank">Need help with Placements?</a></p>
131
  </div>
132
  </div>
133
  </div>
admin/views/settings.php CHANGED
@@ -12,20 +12,20 @@ defined( 'ABSPATH' ) or die();
12
  <div class="opinionstage-status-content">
13
  <div class='opinionstage-status-title'><b>Connect WordPress with Opinion Stage to Get Started</b></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">
@@ -38,15 +38,12 @@ defined( 'ABSPATH' ) or die();
38
  <div class="opinionstage-dashboard-left">
39
  <div id="opinionstage-section-create" class="opinionstage-dashboard-section">
40
  <div class="opinionstage-section-header">
41
- <div class="opinionstage-section-title">Create 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">
47
  <div class="opinionstage-section-raw">
48
  <div class="opinionstage-section-cell opinionstage-icon-cell">
49
- <div class="os-icon icon-os-reports-polls"></div>
50
  </div>
51
  <div class="opinionstage-section-cell opinionstage-description-cell">
52
  <div class="title">Poll</div>
@@ -54,23 +51,25 @@ defined( 'ABSPATH' ) or die();
54
  </div>
55
  <div class="opinionstage-section-cell opinionstage-btn-cell">
56
  <?php echo opinionstage_create_poll_link('opinionstage-blue-btn opinionstage-create-btn'); ?>
 
57
  </div>
58
  </div>
59
  <div class="opinionstage-section-raw">
60
  <div class="opinionstage-section-cell opinionstage-icon-cell">
61
- <div class="os-icon icon-os-reports-set"></div>
62
  </div>
63
  <div class="opinionstage-section-cell opinionstage-description-cell">
64
- <div class="title">Survey</div>
65
- <div class="example">Gather feedback from your users</div>
66
  </div>
67
  <div class="opinionstage-section-cell opinionstage-btn-cell">
68
- <?php echo opinionstage_create_widget_link('survey', 'opinionstage-blue-btn opinionstage-create-btn'); ?>
 
69
  </div>
70
  </div>
71
  <div class="opinionstage-section-raw">
72
  <div class="opinionstage-section-cell opinionstage-icon-cell">
73
- <div class="os-icon icon-os-reports-trivia"></div>
74
  </div>
75
  <div class="opinionstage-section-cell opinionstage-description-cell">
76
  <div class="title">Trivia Quiz</div>
@@ -78,23 +77,25 @@ defined( 'ABSPATH' ) or die();
78
  </div>
79
  <div class="opinionstage-section-cell opinionstage-btn-cell">
80
  <?php echo opinionstage_create_widget_link('quiz', 'opinionstage-blue-btn opinionstage-create-btn'); ?>
 
81
  </div>
82
  </div>
83
  <div class="opinionstage-section-raw">
84
  <div class="opinionstage-section-cell opinionstage-icon-cell">
85
- <div class="os-icon icon-os-reports-personality"></div>
86
  </div>
87
  <div class="opinionstage-section-cell opinionstage-description-cell">
88
- <div class="title">Personality Quiz</div>
89
- <div class="example">Create a personality or service selector</div>
90
  </div>
91
  <div class="opinionstage-section-cell opinionstage-btn-cell">
92
- <?php echo opinionstage_create_widget_link('outcome', 'opinionstage-blue-btn opinionstage-create-btn'); ?>
 
93
  </div>
94
  </div>
95
  <div class="opinionstage-section-raw">
96
  <div class="opinionstage-section-cell opinionstage-icon-cell">
97
- <div class="os-icon icon-os-widget-slideshow"></div>
98
  </div>
99
  <div class="opinionstage-section-cell opinionstage-description-cell">
100
  <div class="title">Slideshow</div>
@@ -102,39 +103,42 @@ defined( 'ABSPATH' ) or die();
102
  </div>
103
  <div class="opinionstage-section-cell opinionstage-btn-cell">
104
  <?php echo opinionstage_create_slideshow_link( 'opinionstage-blue-btn opinionstage-create-btn' ); ?>
 
105
  </div>
106
  </div>
107
  <div class="opinionstage-section-raw">
108
  <div class="opinionstage-section-cell opinionstage-icon-cell">
109
- <div class="os-icon icon-os-widget-form"></div>
110
  </div>
111
  <div class="opinionstage-section-cell opinionstage-description-cell">
112
- <div class="title">Form</div>
113
- <div class="example">Gather information from your users</div>
114
  </div>
115
  <div class="opinionstage-section-cell opinionstage-btn-cell">
116
- <?php echo opinionstage_create_widget_link('contact_form', 'opinionstage-blue-btn opinionstage-create-btn'); ?>
 
117
  </div>
118
  </div>
119
  <div class="opinionstage-section-raw">
120
  <div class="opinionstage-section-cell opinionstage-icon-cell">
121
- <div class="os-icon icon-os-reports-list"></div>
122
  </div>
123
  <div class="opinionstage-section-cell opinionstage-description-cell">
124
- <div class="title">List</div>
125
- <div class="example">Create a listacle of anything</div>
126
  </div>
127
  <div class="opinionstage-section-cell opinionstage-btn-cell">
128
- <?php echo opinionstage_create_widget_link('list', 'opinionstage-blue-btn opinionstage-create-btn'); ?>
 
129
  </div>
130
  </div>
131
  <div class="opinionstage-section-raw">
132
  <div class="opinionstage-section-cell opinionstage-icon-cell">
133
- <div class="os-icon icon-os-icon-story"></div>
134
  </div>
135
  <div class="opinionstage-section-cell opinionstage-description-cell">
136
  <div class="title">Story Article</div>
137
- <div class="example">Create an article using interactive elements</div>
138
  </div>
139
  <div class="opinionstage-section-cell opinionstage-btn-cell">
140
  <?php echo opinionstage_create_widget_link('story', 'opinionstage-blue-btn opinionstage-create-btn'); ?>
@@ -142,6 +146,8 @@ defined( 'ABSPATH' ) or die();
142
  </div>
143
  </div>
144
  </div>
 
 
145
  </div>
146
  </div>
147
- </div>
12
  <div class="opinionstage-status-content">
13
  <div class='opinionstage-status-title'><b>Connect WordPress with Opinion Stage to Get Started</b></div>
14
  <form action="<?php echo OPINIONSTAGE_LOGIN_PATH ?>" method="get" class="opinionstage-connect-form">
15
+ <i class="os-icon-plugin 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 required>
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-plugin 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">
38
  <div class="opinionstage-dashboard-left">
39
  <div id="opinionstage-section-create" class="opinionstage-dashboard-section">
40
  <div class="opinionstage-section-header">
41
+ <div class="opinionstage-section-title">Create</div>
 
 
 
42
  </div>
43
  <div class="opinionstage-section-content">
44
  <div class="opinionstage-section-raw">
45
  <div class="opinionstage-section-cell opinionstage-icon-cell">
46
+ <div class="os-icon-plugin icon-os-reports-polls"></div>
47
  </div>
48
  <div class="opinionstage-section-cell opinionstage-description-cell">
49
  <div class="title">Poll</div>
51
  </div>
52
  <div class="opinionstage-section-cell opinionstage-btn-cell">
53
  <?php echo opinionstage_create_poll_link('opinionstage-blue-btn opinionstage-create-btn'); ?>
54
+ <?php echo opinionstage_template_poll_link('opinionstage-blue-btn opinionstage-create-btn template'); ?>
55
  </div>
56
  </div>
57
  <div class="opinionstage-section-raw">
58
  <div class="opinionstage-section-cell opinionstage-icon-cell">
59
+ <div class="os-icon-plugin icon-os-reports-personality"></div>
60
  </div>
61
  <div class="opinionstage-section-cell opinionstage-description-cell">
62
+ <div class="title">Personality Quiz</div>
63
+ <div class="example">Create a personality test or a product/service selector</div>
64
  </div>
65
  <div class="opinionstage-section-cell opinionstage-btn-cell">
66
+ <?php echo opinionstage_create_widget_link('outcome', 'opinionstage-blue-btn opinionstage-create-btn'); ?>
67
+ <?php echo opinionstage_template_personality_quiz_link('opinionstage-blue-btn opinionstage-create-btn template') ?>
68
  </div>
69
  </div>
70
  <div class="opinionstage-section-raw">
71
  <div class="opinionstage-section-cell opinionstage-icon-cell">
72
+ <div class="os-icon-plugin icon-os-reports-trivia"></div>
73
  </div>
74
  <div class="opinionstage-section-cell opinionstage-description-cell">
75
  <div class="title">Trivia Quiz</div>
77
  </div>
78
  <div class="opinionstage-section-cell opinionstage-btn-cell">
79
  <?php echo opinionstage_create_widget_link('quiz', 'opinionstage-blue-btn opinionstage-create-btn'); ?>
80
+ <?php echo opinionstage_template_trivia_link('opinionstage-blue-btn opinionstage-create-btn template'); ?>
81
  </div>
82
  </div>
83
  <div class="opinionstage-section-raw">
84
  <div class="opinionstage-section-cell opinionstage-icon-cell">
85
+ <div class="os-icon-plugin icon-os-reports-set"></div>
86
  </div>
87
  <div class="opinionstage-section-cell opinionstage-description-cell">
88
+ <div class="title">Survey</div>
89
+ <div class="example">Gather feedback from your users</div>
90
  </div>
91
  <div class="opinionstage-section-cell opinionstage-btn-cell">
92
+ <?php echo opinionstage_create_widget_link('survey', 'opinionstage-blue-btn opinionstage-create-btn'); ?>
93
+ <?php echo opinionstage_template_survey_link('opinionstage-blue-btn opinionstage-create-btn template'); ?>
94
  </div>
95
  </div>
96
  <div class="opinionstage-section-raw">
97
  <div class="opinionstage-section-cell opinionstage-icon-cell">
98
+ <div class="os-icon-plugin icon-os-widget-slideshow"></div>
99
  </div>
100
  <div class="opinionstage-section-cell opinionstage-description-cell">
101
  <div class="title">Slideshow</div>
103
  </div>
104
  <div class="opinionstage-section-cell opinionstage-btn-cell">
105
  <?php echo opinionstage_create_slideshow_link( 'opinionstage-blue-btn opinionstage-create-btn' ); ?>
106
+ <?php echo opinionstage_template_slideshow_link('opinionstage-blue-btn opinionstage-create-btn template') ?>
107
  </div>
108
  </div>
109
  <div class="opinionstage-section-raw">
110
  <div class="opinionstage-section-cell opinionstage-icon-cell">
111
+ <div class="os-icon-plugin icon-os-reports-list"></div>
112
  </div>
113
  <div class="opinionstage-section-cell opinionstage-description-cell">
114
+ <div class="title">List</div>
115
+ <div class="example">Create a listacle of anything</div>
116
  </div>
117
  <div class="opinionstage-section-cell opinionstage-btn-cell">
118
+ <?php echo opinionstage_create_widget_link('list', 'opinionstage-blue-btn opinionstage-create-btn'); ?>
119
+ <?php echo opinionstage_template_list_link('opinionstage-blue-btn opinionstage-create-btn template'); ?>
120
  </div>
121
  </div>
122
  <div class="opinionstage-section-raw">
123
  <div class="opinionstage-section-cell opinionstage-icon-cell">
124
+ <div class="os-icon-plugin icon-os-widget-form"></div>
125
  </div>
126
  <div class="opinionstage-section-cell opinionstage-description-cell">
127
+ <div class="title">Form</div>
128
+ <div class="example">Gather information from your users</div>
129
  </div>
130
  <div class="opinionstage-section-cell opinionstage-btn-cell">
131
+ <?php echo opinionstage_create_widget_link('contact_form', 'opinionstage-blue-btn opinionstage-create-btn'); ?>
132
+ <?php echo opinionstage_template_form_link('opinionstage-blue-btn opinionstage-create-btn template'); ?>
133
  </div>
134
  </div>
135
  <div class="opinionstage-section-raw">
136
  <div class="opinionstage-section-cell opinionstage-icon-cell">
137
+ <div class="os-icon-plugin icon-os-icon-plugin-story"></div>
138
  </div>
139
  <div class="opinionstage-section-cell opinionstage-description-cell">
140
  <div class="title">Story Article</div>
141
+ <div class="example">Create an article using visual & interactive elements</div>
142
  </div>
143
  <div class="opinionstage-section-cell opinionstage-btn-cell">
144
  <?php echo opinionstage_create_widget_link('story', 'opinionstage-blue-btn opinionstage-create-btn'); ?>
146
  </div>
147
  </div>
148
  </div>
149
+ <p style="font-weight: 600; font-size: 15px;"><a href="https://help.opinionstage.com/getting-started/content-creation-tutorials" target="_blank">Need help creating items?</a></p>
150
+ <p style="font-weight: 600; font-size: 15px;"><a href="https://help.opinionstage.com/wordpress-plugin/how-to-add-items-to-your-wordpress-site" target="_blank">Need help adding items you created to your site?</a></p>
151
  </div>
152
  </div>
153
+ </div>
admin/views/settings_track.php CHANGED
@@ -24,7 +24,7 @@ $usage_enabled = get_option('oswp_tracking_user_site_data');
24
  <label>
25
  <input type="checkbox" name="opinionstage_allow_tracking" value="yes" <?php echo ($usage_enabled=='yes') ? 'checked="checked"' : ''; ?> >
26
  Opt-in to our anonymous plugin data collection and to updates. We guarantee no sensitive data is collected.
27
- <a href="https://help.opinionstage.com/wordpress-plugin/wordpress-plugin-usage-data-tracking" target="_blank">Learn more.</a>
28
  </label>
29
  </td>
30
  </tr>
24
  <label>
25
  <input type="checkbox" name="opinionstage_allow_tracking" value="yes" <?php echo ($usage_enabled=='yes') ? 'checked="checked"' : ''; ?> >
26
  Opt-in to our anonymous plugin data collection and to updates. We guarantee no sensitive data is collected.
27
+ <a href="https://help.opinionstage.com/wordpress-plugin/usage-data-tracking" target="_blank">Learn more.</a>
28
  </label>
29
  </td>
30
  </tr>
admin/views/view_my_items.php ADDED
@@ -0,0 +1,115 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ // block direct access to plugin PHP files:
3
+ defined( 'ABSPATH' ) or die(1); ?>
4
+
5
+ <div class="wrap">
6
+ <div id="opinionstage-content">
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'><b>Connect WordPress with Opinion Stage to Get Started</b></div>
14
+ <form action="<?php echo OPINIONSTAGE_LOGIN_PATH ?>" method="get" class="opinionstage-connect-form">
15
+ <i class="os-icon-plugin 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-plugin 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>
38
+ <div id="container" style="background: #fff;overflow: hidden;">
39
+ <div class="opinionstage-section-header">
40
+ <div class="opinionstage-section-title">My Items</div>
41
+ <a href="https://help.opinionstage.com/wordpress-plugin/how-to-add-items-to-your-wordpress-site" target="_blank" class="">Need help adding items to your site?</a>
42
+ </div>
43
+ <table id="check" style="background: #fff;margin-left: 20px;margin-top: 20px;margin-bottom: 20px;"></table>
44
+ <div id="loadMore" class="btn btn_aqua btn_full-width" style="display: none;">CLICK FOR MORE</div>
45
+ <div id="showLess" style="display: none;">Show less</div>
46
+ </div>
47
+ </div>
48
+ <script type="text/javascript">
49
+ // This is our actual script
50
+ jQuery(document).ready(function($){
51
+ $.ajax({
52
+ url: 'https://www.opinionstage.com/api/wp/v1/my/widgets?type=all&page=1&per_page=99',
53
+ headers: {
54
+ 'Accept':'application/vnd.api+json',
55
+ 'Content-Type':'application/vnd.api+json',
56
+ 'OSWP-Plugin-Version':'<?php echo OPINIONSTAGE_WIDGET_VERSION ?>',
57
+ 'OSWP-Client-Token': '<?php echo opinionstage_user_access_token() ?>'
58
+ },
59
+ method: 'GET',
60
+ dataType: 'json',
61
+ success: function(data){
62
+ dropdownOptions = data;
63
+ if(dropdownOptions.data.length == 0){
64
+ var adminUrlCreateLink = "<?php echo admin_url( 'admin.php?page=opinionstage-settings'); ?>";
65
+ var viewtext = '<tbody><tr><td><p><span style="font-weight: 600; font-size: 15px; color:#3499c2;">No items found, </span><a href="'+adminUrlCreateLink+'" style="font-weight: 600; font-size: 15px; color:#3499c2;">Create your first one.</a></p></td></tr></tbody>';
66
+ $(viewtext).appendTo('#container table#check');
67
+ }else{
68
+ for (var i = 0; i < dropdownOptions.data.length; i++) {
69
+ var previewBlockOsTitle = dropdownOptions.data[i].attributes['title'];
70
+ var previewBlockOsType = dropdownOptions.data[i].attributes['type'];
71
+ var previewBlockOsDate = dropdownOptions.data[i].attributes['updated-at'];
72
+ previewBlockOsDate = new Date(previewBlockOsDate);
73
+ previewBlockOsDate = previewBlockOsDate.toDateString();
74
+ var resDateOs = previewBlockOsDate.split(" ");
75
+ previewBlockOsDate = resDateOs[2]+' '+resDateOs[1]+' '+resDateOs[3];
76
+ var previewBlockOsImageUrl = dropdownOptions.data[i].attributes['image-url'];
77
+ var previewBlockOsView = dropdownOptions.data[i].attributes['landing-page-url'];
78
+ var previewBlockOsEdit = dropdownOptions.data[i].attributes['edit-url'];
79
+ var previewBlockOsStatistics = dropdownOptions.data[i].attributes['stats-url'];
80
+ var viewtext = '<tbody id="count"><tr class="settingBorderOs"><td class="image"><div class="content-item-image quiz"><img height="90" src="'+previewBlockOsImageUrl+'" width="120"><div class="content-item-label">'+previewBlockOsType+'</div></div></td><td class="long"><div style="position: relative;height: 85px;"><a href="'+previewBlockOsEdit+'" target="_blank">'+previewBlockOsTitle+'</a><table><tbody><tr><td><span class="os-icon-plugin icon-os-common-date"></span><div class="label">'+previewBlockOsDate+'</div></td></tr></tbody></table></div></td><td class="action"><a href="'+previewBlockOsView+'" class="opinionstage-blue-bordered-btn opinionstage-edit-content " target="_blank"> View </a><a href="'+previewBlockOsEdit+'" class="opinionstage-blue-bordered-btn opinionstage-edit-content " target="_blank"> Edit </a><a href="'+previewBlockOsStatistics+'" class="opinionstage-blue-bordered-btn opinionstage-edit-content " target="_blank"> Statistics </a></td></tr></tbody>';
81
+ $(viewtext).appendTo('#container table#check');
82
+ }
83
+ }
84
+ },
85
+ complete: function(data) {
86
+ size_li = $("table#check tbody#count").size();
87
+ if(dropdownOptions.data.length == size_li){
88
+ setTimeout(function(){$('#showLess').trigger('click');},500);
89
+ }
90
+ // Show the div in 5s
91
+ var countItemOS = 10;
92
+ if(dropdownOptions.data.length > countItemOS){
93
+ $("#loadMore").delay(2000).fadeIn(500);
94
+ }
95
+ x=10;
96
+ $('table#check ttbody#count:lt('+x+')').show();
97
+ $('#loadMore').click(function () {
98
+ x= (x+10 <= size_li) ? x+10 : size_li;
99
+ $('table#check tbody#count:lt('+x+')').show(500);
100
+ if(size_li == x){
101
+ $("#loadMore").hide(500);
102
+ }
103
+ });
104
+ $('#showLess').live( 'click', function () {
105
+ x=(x-0<0) ? 10 : x-0;
106
+ $('table#check tbody#count').not(':lt('+x+')').hide();
107
+ });
108
+ },
109
+ error: function(){
110
+ console.log(data.statusText);
111
+ }
112
+ });
113
+
114
+ });
115
+ </script>
includes/opinionstage-utility-functions.php CHANGED
@@ -16,6 +16,11 @@ function opinionstage_link($caption, $path, $css_class = '', $query_data = array
16
 
17
  return "<a href='{$link}' target='_blank' class='{$css_class}'>{$caption}</a>";
18
  }
 
 
 
 
 
19
 
20
  function opinionstage_register_javascript_asset( $name, $relative_path, $deps=array(), $in_footer=true ) {
21
  $registered = wp_register_script(
@@ -89,20 +94,52 @@ function opinionstage_sidebar_placement_edit_url($tab) {
89
  return OPINIONSTAGE_SERVER_BASE.'/containers/'.$os_options['sidebar_placement_id'].'/edit?selected_tab='.$tab;
90
  }
91
 
92
- function opinionstage_create_poll_link($css_class, $title='CREATE') {
93
  return opinionstage_link($title, 'api/wp/redirects/widgets/new', $css_class, array('w_type' => 'poll'));
94
 
95
  }
96
 
97
- function opinionstage_create_poll_set_link($css_class, $title='CREATE') {
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
98
  return opinionstage_link($title, 'sets/new', $css_class);
99
  }
100
 
101
- function opinionstage_create_widget_link($w_type, $css_class, $title='CREATE') {
102
  return opinionstage_link($title, 'api/wp/redirects/widgets/new', $css_class, array('w_type' => $w_type));
103
  }
104
 
105
- function opinionstage_create_slideshow_link( $css_class, $title='CREATE' ) {
106
  return opinionstage_link($title, 'api/wp/redirects/widgets/new', $css_class, array('w_type' => 'slideshow'));
107
  }
108
  /**
@@ -155,4 +192,4 @@ function opinionstage_parse_client_data($raw_data) {
155
  update_option(OPINIONSTAGE_OPTIONS_KEY, $os_options);
156
  }
157
  }
158
- ?>
16
 
17
  return "<a href='{$link}' target='_blank' class='{$css_class}'>{$caption}</a>";
18
  }
19
+ function opinionstage_template_link($caption, $path, $css_class = '') {
20
+ $link = OPINIONSTAGE_SERVER_BASE.'/'.$path;
21
+ return "<a href='{$link}' target='_blank' class='{$css_class}'>{$caption}</a>";
22
+ }
23
+
24
 
25
  function opinionstage_register_javascript_asset( $name, $relative_path, $deps=array(), $in_footer=true ) {
26
  $registered = wp_register_script(
94
  return OPINIONSTAGE_SERVER_BASE.'/containers/'.$os_options['sidebar_placement_id'].'/edit?selected_tab='.$tab;
95
  }
96
 
97
+ function opinionstage_create_poll_link($css_class, $title='CREATE NEW') {
98
  return opinionstage_link($title, 'api/wp/redirects/widgets/new', $css_class, array('w_type' => 'poll'));
99
 
100
  }
101
 
102
+ function opinionstage_template_poll_link($css_class, $title='USE A TEMPLATE') {
103
+ return opinionstage_template_link($title, 'dashboard/content/templates?types%5B%5D=poll', $css_class); // %5B%5D --> []
104
+ }
105
+
106
+ function opinionstage_template_survey_link($css_class, $title='USE A TEMPLATE') {
107
+ return opinionstage_template_link($title, 'dashboard/content/templates?types%5B%5D=survey', $css_class); // %5B%5D --> []
108
+ }
109
+
110
+ function opinionstage_template_trivia_link($css_class, $title='USE A TEMPLATE') {
111
+ return opinionstage_template_link($title, 'dashboard/content/templates?types%5B%5D=trivia_quiz', $css_class); // %5B%5D --> []
112
+ }
113
+
114
+ function opinionstage_template_personality_quiz_link($css_class, $title='USE A TEMPLATE') {
115
+ return opinionstage_template_link($title, 'dashboard/content/templates?types%5B%5D=personality_quiz', $css_class); // %5B%5D --> []
116
+ }
117
+
118
+ function opinionstage_template_slideshow_link($css_class, $title='USE A TEMPLATE') {
119
+ return opinionstage_template_link($title, 'dashboard/content/templates?types%5B%5D=slideshow', $css_class); // %5B%5D --> []
120
+ }
121
+
122
+ function opinionstage_template_form_link($css_class, $title='USE A TEMPLATE') {
123
+ return opinionstage_template_link($title, 'dashboard/content/templates?types%5B%5D=form', $css_class); // %5B%5D --> []
124
+ }
125
+
126
+ function opinionstage_template_list_link($css_class, $title='USE A TEMPLATE') {
127
+ return opinionstage_template_link($title, 'dashboard/content/templates?types%5B%5D=list', $css_class); // %5B%5D --> []
128
+ }
129
+
130
+ function opinionstage_template_story_link($css_class, $title='USE A TEMPLATE') {
131
+ return opinionstage_template_link($title, 'dashboard/content/templates?types%5B%5D=story', $css_class); // %5B%5D --> []
132
+ }
133
+
134
+ function opinionstage_create_poll_set_link($css_class, $title='CREATE NEW') {
135
  return opinionstage_link($title, 'sets/new', $css_class);
136
  }
137
 
138
+ function opinionstage_create_widget_link($w_type, $css_class, $title='CREATE NEW') {
139
  return opinionstage_link($title, 'api/wp/redirects/widgets/new', $css_class, array('w_type' => $w_type));
140
  }
141
 
142
+ function opinionstage_create_slideshow_link( $css_class, $title='CREATE NEW' ) {
143
  return opinionstage_link($title, 'api/wp/redirects/widgets/new', $css_class, array('w_type' => 'slideshow'));
144
  }
145
  /**
192
  update_option(OPINIONSTAGE_OPTIONS_KEY, $os_options);
193
  }
194
  }
195
+ ?>
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.12
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.13
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.12
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.12');
28
 
29
  define('OPINIONSTAGE_TEXT_DOMAIN', 'social-polls-by-opinionstage');
30
 
@@ -35,6 +35,7 @@ define('OPINIONSTAGE_CONTENT_POPUP_CLIENT_WIDGETS_API', OPINIONSTAGE_SERVER_BASE
35
  define('OPINIONSTAGE_CONTENT_POPUP_SHARED_WIDGETS_API', OPINIONSTAGE_SERVER_BASE.'/api/wp/v1/shared_widgets');
36
  define('OPINIONSTAGE_CONTENT_POPUP_CLIENT_WIDGETS_API_RECENT_UPDATE', OPINIONSTAGE_SERVER_BASE.'/api/wp/v1/my/widgets/recent-update');
37
  define('OPINIONSTAGE_DEACTIVATE_FEEDBACK_API', OPINIONSTAGE_SERVER_BASE.'/api/wp/v1/events');
 
38
 
39
  define('OPINIONSTAGE_WIDGET_API_KEY', 'wp35e8');
40
  define('OPINIONSTAGE_UTM_SOURCE', 'wordpress');
@@ -89,8 +90,9 @@ if (opinionstage_check_plugin_available('opinionstage_popup')) {
89
  require( plugin_dir_path( __FILE__ ).'public/init.php' );
90
  }
91
  }
92
- //Check For Gutenberg
93
- if( function_exists( 'is_gutenberg_page' ) ) {
 
94
  require( plugin_dir_path( __FILE__ ).'gutenberg/init.php' );
95
  }
96
  add_action('widgets_init', 'opinionstage_init_widget');
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.13
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.13');
28
 
29
  define('OPINIONSTAGE_TEXT_DOMAIN', 'social-polls-by-opinionstage');
30
 
35
  define('OPINIONSTAGE_CONTENT_POPUP_SHARED_WIDGETS_API', OPINIONSTAGE_SERVER_BASE.'/api/wp/v1/shared_widgets');
36
  define('OPINIONSTAGE_CONTENT_POPUP_CLIENT_WIDGETS_API_RECENT_UPDATE', OPINIONSTAGE_SERVER_BASE.'/api/wp/v1/my/widgets/recent-update');
37
  define('OPINIONSTAGE_DEACTIVATE_FEEDBACK_API', OPINIONSTAGE_SERVER_BASE.'/api/wp/v1/events');
38
+ define('OPINIONSTAGE_MESSAGE_API', 'https://www.opinionstage.com/wp/msg-app/api/index.php');
39
 
40
  define('OPINIONSTAGE_WIDGET_API_KEY', 'wp35e8');
41
  define('OPINIONSTAGE_UTM_SOURCE', 'wordpress');
90
  require( plugin_dir_path( __FILE__ ).'public/init.php' );
91
  }
92
  }
93
+ // Block editor since 5.0.
94
+ $block_editor_oswp = version_compare( $GLOBALS['wp_version'], '5.0-beta', '>' );
95
+ if( function_exists( 'is_gutenberg_page' ) || $block_editor_oswp) {
96
  require( plugin_dir_path( __FILE__ ).'gutenberg/init.php' );
97
  }
98
  add_action('widgets_init', 'opinionstage_init_widget');
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.12
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,10 @@ Polls include one question and are used for getting a quick answer on a question
162
  N/A
163
 
164
  == Changelog ==
 
 
 
 
165
  = 19.6.12 =
166
  * readme update
167
  = 19.6.11 =
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.13
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.13 =
166
+ * My Items page
167
+ * updated Content Popup
168
+ * Design update
169
  = 19.6.12 =
170
  * readme update
171
  = 19.6.11 =