Version Description
N/A
Download this release
Release Info
Developer | opinionstage |
Plugin | Poll, Survey, Quiz, Slideshow, Form, Story & Landing Page |
Version | 16.2.0 |
Comparing to | |
See all releases |
Code changes from version 16.0.0 to 16.2.0
- opinionstage-ajax-functions.php +23 -23
- opinionstage-article-placement-functions.php +29 -29
- opinionstage-callback.php +23 -23
- opinionstage-font.css +307 -307
- opinionstage-functions.php +406 -406
- opinionstage-polls.php +54 -54
- opinionstage-widget.php +137 -137
- opinionstage_plugin.js +22 -22
- readme.txt +637 -633
opinionstage-ajax-functions.php
CHANGED
@@ -1,24 +1,24 @@
|
|
1 |
-
<?php
|
2 |
-
|
3 |
-
add_action( 'wp_ajax_opinionstage_ajax_toggle_flyout', 'opinionstage_ajax_toggle_flyout');
|
4 |
-
add_action( 'wp_ajax_opinionstage_ajax_toggle_article_placement', 'opinionstage_ajax_toggle_article_placement');
|
5 |
-
add_action( 'wp_ajax_opinionstage_ajax_toggle_sidebar_placement', 'opinionstage_ajax_toggle_sidebar_placement');
|
6 |
-
// Toggle the flyout placement activation flag
|
7 |
-
function opinionstage_ajax_toggle_flyout() {
|
8 |
-
$os_options = (array) get_option(OPINIONSTAGE_OPTIONS_KEY);
|
9 |
-
$os_options['fly_out_active'] = $_POST['activate'];
|
10 |
-
update_option(OPINIONSTAGE_OPTIONS_KEY, $os_options);
|
11 |
-
}
|
12 |
-
// Toggle the article placement activation flag
|
13 |
-
function opinionstage_ajax_toggle_article_placement() {
|
14 |
-
$os_options = (array) get_option(OPINIONSTAGE_OPTIONS_KEY);
|
15 |
-
$os_options['article_placement_active'] = $_POST['activate'];
|
16 |
-
update_option(OPINIONSTAGE_OPTIONS_KEY, $os_options);
|
17 |
-
}
|
18 |
-
// Toggle the sidebar placement activation flag
|
19 |
-
function opinionstage_ajax_toggle_sidebar_placement() {
|
20 |
-
$os_options = (array) get_option(OPINIONSTAGE_OPTIONS_KEY);
|
21 |
-
$os_options['sidebar_placement_active'] = $_POST['activate'];
|
22 |
-
update_option(OPINIONSTAGE_OPTIONS_KEY, $os_options);
|
23 |
-
}
|
24 |
?>
|
1 |
+
<?php
|
2 |
+
|
3 |
+
add_action( 'wp_ajax_opinionstage_ajax_toggle_flyout', 'opinionstage_ajax_toggle_flyout');
|
4 |
+
add_action( 'wp_ajax_opinionstage_ajax_toggle_article_placement', 'opinionstage_ajax_toggle_article_placement');
|
5 |
+
add_action( 'wp_ajax_opinionstage_ajax_toggle_sidebar_placement', 'opinionstage_ajax_toggle_sidebar_placement');
|
6 |
+
// Toggle the flyout placement activation flag
|
7 |
+
function opinionstage_ajax_toggle_flyout() {
|
8 |
+
$os_options = (array) get_option(OPINIONSTAGE_OPTIONS_KEY);
|
9 |
+
$os_options['fly_out_active'] = $_POST['activate'];
|
10 |
+
update_option(OPINIONSTAGE_OPTIONS_KEY, $os_options);
|
11 |
+
}
|
12 |
+
// Toggle the article placement activation flag
|
13 |
+
function opinionstage_ajax_toggle_article_placement() {
|
14 |
+
$os_options = (array) get_option(OPINIONSTAGE_OPTIONS_KEY);
|
15 |
+
$os_options['article_placement_active'] = $_POST['activate'];
|
16 |
+
update_option(OPINIONSTAGE_OPTIONS_KEY, $os_options);
|
17 |
+
}
|
18 |
+
// Toggle the sidebar placement activation flag
|
19 |
+
function opinionstage_ajax_toggle_sidebar_placement() {
|
20 |
+
$os_options = (array) get_option(OPINIONSTAGE_OPTIONS_KEY);
|
21 |
+
$os_options['sidebar_placement_active'] = $_POST['activate'];
|
22 |
+
update_option(OPINIONSTAGE_OPTIONS_KEY, $os_options);
|
23 |
+
}
|
24 |
?>
|
opinionstage-article-placement-functions.php
CHANGED
@@ -1,30 +1,30 @@
|
|
1 |
-
<?php
|
2 |
-
class OpinionStageArticlePlacement {
|
3 |
-
static function initialize() {
|
4 |
-
add_filter($hook = 'the_content', array(__CLASS__, $hook));
|
5 |
-
}
|
6 |
-
// Adds the article placement shortcode to each post
|
7 |
-
static function the_content($content) {
|
8 |
-
global $post;
|
9 |
-
$type = $post->post_type;
|
10 |
-
if (is_front_page() && is_home()) {
|
11 |
-
return $content;
|
12 |
-
}
|
13 |
-
if($type == "post") {
|
14 |
-
$os_options = (array) get_option(OPINIONSTAGE_OPTIONS_KEY);
|
15 |
-
if (!empty($os_options['article_placement_id']) && $os_options['article_placement_active'] == 'true' && !is_admin() ) {
|
16 |
-
$shortcode = do_shortcode(
|
17 |
-
sprintf(
|
18 |
-
'[osplacement id="%s"]',
|
19 |
-
$os_options['article_placement_id']
|
20 |
-
)
|
21 |
-
);
|
22 |
-
return $content . $shortcode;
|
23 |
-
}
|
24 |
-
}
|
25 |
-
return $content;
|
26 |
-
}
|
27 |
-
|
28 |
-
}
|
29 |
-
return OpinionStageArticlePlacement::initialize();
|
30 |
?>
|
1 |
+
<?php
|
2 |
+
class OpinionStageArticlePlacement {
|
3 |
+
static function initialize() {
|
4 |
+
add_filter($hook = 'the_content', array(__CLASS__, $hook));
|
5 |
+
}
|
6 |
+
// Adds the article placement shortcode to each post
|
7 |
+
static function the_content($content) {
|
8 |
+
global $post;
|
9 |
+
$type = $post->post_type;
|
10 |
+
if (is_front_page() && is_home()) {
|
11 |
+
return $content;
|
12 |
+
}
|
13 |
+
if($type == "post") {
|
14 |
+
$os_options = (array) get_option(OPINIONSTAGE_OPTIONS_KEY);
|
15 |
+
if (!empty($os_options['article_placement_id']) && $os_options['article_placement_active'] == 'true' && !is_admin() ) {
|
16 |
+
$shortcode = do_shortcode(
|
17 |
+
sprintf(
|
18 |
+
'[osplacement id="%s"]',
|
19 |
+
$os_options['article_placement_id']
|
20 |
+
)
|
21 |
+
);
|
22 |
+
return $content . $shortcode;
|
23 |
+
}
|
24 |
+
}
|
25 |
+
return $content;
|
26 |
+
}
|
27 |
+
|
28 |
+
}
|
29 |
+
return OpinionStageArticlePlacement::initialize();
|
30 |
?>
|
opinionstage-callback.php
CHANGED
@@ -1,23 +1,23 @@
|
|
1 |
-
<?php
|
2 |
-
$success = $_GET['success'];
|
3 |
-
$uid = $_GET['uid'];
|
4 |
-
$token = $_GET['token'];
|
5 |
-
$email = $_GET['email'];
|
6 |
-
$fly_id = $_GET['fly_id'];
|
7 |
-
$article_placement_id = $_GET['article_placement_id'];
|
8 |
-
$sidebar_placement_id = $_GET['sidebar_placement_id'];
|
9 |
-
opinionstage_uninstall();
|
10 |
-
opinionstage_parse_client_data(compact(
|
11 |
-
'success',
|
12 |
-
'uid',
|
13 |
-
'token',
|
14 |
-
'email',
|
15 |
-
'fly_id',
|
16 |
-
'article_placement_id',
|
17 |
-
'sidebar_placement_id'));
|
18 |
-
|
19 |
-
$redirect_url = get_admin_url('', '', 'admin').'admin.php?page='.OPINIONSTAGE_WIDGET_UNIQUE_ID.'/opinionstage-polls.php';
|
20 |
-
?>
|
21 |
-
<script type="text/javascript">
|
22 |
-
window.location = "<?php echo($redirect_url) ?>";
|
23 |
-
</script>
|
1 |
+
<?php
|
2 |
+
$success = $_GET['success'];
|
3 |
+
$uid = $_GET['uid'];
|
4 |
+
$token = $_GET['token'];
|
5 |
+
$email = $_GET['email'];
|
6 |
+
$fly_id = $_GET['fly_id'];
|
7 |
+
$article_placement_id = $_GET['article_placement_id'];
|
8 |
+
$sidebar_placement_id = $_GET['sidebar_placement_id'];
|
9 |
+
opinionstage_uninstall();
|
10 |
+
opinionstage_parse_client_data(compact(
|
11 |
+
'success',
|
12 |
+
'uid',
|
13 |
+
'token',
|
14 |
+
'email',
|
15 |
+
'fly_id',
|
16 |
+
'article_placement_id',
|
17 |
+
'sidebar_placement_id'));
|
18 |
+
|
19 |
+
$redirect_url = get_admin_url('', '', 'admin').'admin.php?page='.OPINIONSTAGE_WIDGET_UNIQUE_ID.'/opinionstage-polls.php';
|
20 |
+
?>
|
21 |
+
<script type="text/javascript">
|
22 |
+
window.location = "<?php echo($redirect_url) ?>";
|
23 |
+
</script>
|
opinionstage-font.css
CHANGED
@@ -1,308 +1,308 @@
|
|
1 |
-
@font-face {
|
2 |
-
font-family: 'osiconfont_v20';
|
3 |
-
src: local('osiconfont_v20'),
|
4 |
-
url('fonts/osiconfont_v20.eot?jcd4t4#iefix') format('embedded-opentype'),
|
5 |
-
url('fonts/osiconfont_v20.ttf?jcd4t4') format('truetype'),
|
6 |
-
url('fonts/osiconfont_v20.woff?jcd4t4') format('woff'),
|
7 |
-
url('fonts/osiconfont_v20.svg?jcd4t4#osiconfont_v20') format('svg');
|
8 |
-
font-weight: normal;
|
9 |
-
font-style: normal;
|
10 |
-
}
|
11 |
-
.os-icon {
|
12 |
-
font-family: 'osiconfont_v20';
|
13 |
-
speak: none;
|
14 |
-
font-style: normal;
|
15 |
-
font-weight: normal;
|
16 |
-
font-variant: normal;
|
17 |
-
text-transform: none;
|
18 |
-
line-height: 1;
|
19 |
-
|
20 |
-
-webkit-font-smoothing: antialiased;
|
21 |
-
-moz-osx-font-smoothing: grayscale;
|
22 |
-
|
23 |
-
&:before {
|
24 |
-
font-family: 'osiconfont_v20' !important;
|
25 |
-
}
|
26 |
-
}
|
27 |
-
.icon-os-brand-logo-small:before {
|
28 |
-
content: "\e900";
|
29 |
-
}
|
30 |
-
.icon-os-brand-logo:before {
|
31 |
-
content: "\e901";
|
32 |
-
}
|
33 |
-
.icon-os-common-addnew:before {
|
34 |
-
content: "\e902";
|
35 |
-
}
|
36 |
-
.icon-os-common-arrow-left:before {
|
37 |
-
content: "\e903";
|
38 |
-
}
|
39 |
-
.icon-os-common-arrow-left2:before {
|
40 |
-
content: "\e904";
|
41 |
-
}
|
42 |
-
.icon-os-common-arrow-right:before {
|
43 |
-
content: "\e905";
|
44 |
-
}
|
45 |
-
.icon-os-common-arrow-right2:before {
|
46 |
-
content: "\e906";
|
47 |
-
}
|
48 |
-
.icon-os-common-checkbox-blank:before {
|
49 |
-
content: "\e907";
|
50 |
-
}
|
51 |
-
.icon-os-common-checkbox-checked:before {
|
52 |
-
content: "\e908";
|
53 |
-
}
|
54 |
-
.icon-os-common-close:before {
|
55 |
-
content: "\e909";
|
56 |
-
}
|
57 |
-
.icon-os-common-date:before {
|
58 |
-
content: "\e90a";
|
59 |
-
}
|
60 |
-
.icon-os-common-dot:before {
|
61 |
-
content: "\e90b";
|
62 |
-
}
|
63 |
-
.icon-os-common-down:before {
|
64 |
-
content: "\e90c";
|
65 |
-
}
|
66 |
-
.icon-os-common-help:before {
|
67 |
-
content: "\e90d";
|
68 |
-
}
|
69 |
-
.icon-os-common-link:before {
|
70 |
-
content: "\e90e";
|
71 |
-
}
|
72 |
-
.icon-os-common-menu-dd-closed:before {
|
73 |
-
content: "\e90f";
|
74 |
-
}
|
75 |
-
.icon-os-common-menu-dd-open:before {
|
76 |
-
content: "\e910";
|
77 |
-
}
|
78 |
-
.icon-os-common-menu-medium:before {
|
79 |
-
content: "\e911";
|
80 |
-
}
|
81 |
-
.icon-os-common-menu:before {
|
82 |
-
content: "\e912";
|
83 |
-
}
|
84 |
-
.icon-os-common-minimize:before {
|
85 |
-
content: "\e913";
|
86 |
-
}
|
87 |
-
.icon-os-common-more:before {
|
88 |
-
content: "\e914";
|
89 |
-
}
|
90 |
-
.icon-os-common-plus:before {
|
91 |
-
content: "\e915";
|
92 |
-
}
|
93 |
-
.icon-os-common-poll:before {
|
94 |
-
content: "\e916";
|
95 |
-
}
|
96 |
-
.icon-os-common-search:before {
|
97 |
-
content: "\e917";
|
98 |
-
}
|
99 |
-
.icon-os-common-settings:before {
|
100 |
-
content: "\e918";
|
101 |
-
}
|
102 |
-
.icon-os-common-tip:before {
|
103 |
-
content: "\e919";
|
104 |
-
}
|
105 |
-
.icon-os-common-up:before {
|
106 |
-
content: "\e91a";
|
107 |
-
}
|
108 |
-
.icon-os-filter-all:before {
|
109 |
-
content: "\e91b";
|
110 |
-
}
|
111 |
-
.icon-os-filter-facebook:before {
|
112 |
-
content: "\e91c";
|
113 |
-
}
|
114 |
-
.icon-os-filter-female:before {
|
115 |
-
content: "\e91d";
|
116 |
-
}
|
117 |
-
.icon-os-filter-friends:before {
|
118 |
-
content: "\e91e";
|
119 |
-
}
|
120 |
-
.icon-os-filter-gplus:before {
|
121 |
-
content: "\e91f";
|
122 |
-
}
|
123 |
-
.icon-os-filter-hidden:before {
|
124 |
-
content: "\e920";
|
125 |
-
}
|
126 |
-
.icon-os-filter-male:before {
|
127 |
-
content: "\e921";
|
128 |
-
}
|
129 |
-
.icon-os-filter-public:before {
|
130 |
-
content: "\e922";
|
131 |
-
}
|
132 |
-
.icon-os-filter-seperator:before {
|
133 |
-
content: "\e923";
|
134 |
-
}
|
135 |
-
.icon-os-filter-twitter:before {
|
136 |
-
content: "\e924";
|
137 |
-
}
|
138 |
-
.icon-os-form-check:before {
|
139 |
-
content: "\e925";
|
140 |
-
}
|
141 |
-
.icon-os-form-drag:before {
|
142 |
-
content: "\e926";
|
143 |
-
}
|
144 |
-
.icon-os-form-error:before {
|
145 |
-
content: "\e927";
|
146 |
-
}
|
147 |
-
.icon-os-form-image:before {
|
148 |
-
content: "\e928";
|
149 |
-
}
|
150 |
-
.icon-os-form-success:before {
|
151 |
-
content: "\e929";
|
152 |
-
}
|
153 |
-
.icon-os-form-user:before {
|
154 |
-
content: "\e92a";
|
155 |
-
}
|
156 |
-
.icon-os-form-video:before {
|
157 |
-
content: "\e92b";
|
158 |
-
}
|
159 |
-
.icon-os-hp-engagement:before {
|
160 |
-
content: "\e92c";
|
161 |
-
}
|
162 |
-
.icon-os-hp-insights:before {
|
163 |
-
content: "\e92d";
|
164 |
-
}
|
165 |
-
.icon-os-hp-revenue:before {
|
166 |
-
content: "\e92e";
|
167 |
-
}
|
168 |
-
.icon-os-hp-traffic:before {
|
169 |
-
content: "\e92f";
|
170 |
-
}
|
171 |
-
.icon-os-layout-h2h:before {
|
172 |
-
content: "\e930";
|
173 |
-
}
|
174 |
-
.icon-os-layout-image-poll:before {
|
175 |
-
content: "\e931";
|
176 |
-
}
|
177 |
-
.icon-os-layout-mc:before {
|
178 |
-
content: "\e932";
|
179 |
-
}
|
180 |
-
.icon-os-layout-thumbnails:before {
|
181 |
-
content: "\e933";
|
182 |
-
}
|
183 |
-
.icon-os-menu-content:before {
|
184 |
-
content: "\e934";
|
185 |
-
}
|
186 |
-
.icon-os-menu-placements:before {
|
187 |
-
content: "\e935";
|
188 |
-
}
|
189 |
-
.icon-os-menu-reports:before {
|
190 |
-
content: "\e936";
|
191 |
-
}
|
192 |
-
.icon-os-menu-revenue:before {
|
193 |
-
content: "\e937";
|
194 |
-
}
|
195 |
-
.icon-os-pinterest:before {
|
196 |
-
content: "\e938";
|
197 |
-
}
|
198 |
-
.icon-os-poll-client:before {
|
199 |
-
content: "\e939";
|
200 |
-
}
|
201 |
-
.icon-os-poll-voter:before {
|
202 |
-
content: "\e93a";
|
203 |
-
}
|
204 |
-
.icon-os-quiz-correct:before {
|
205 |
-
content: "\e93b";
|
206 |
-
}
|
207 |
-
.icon-os-quiz-restart:before {
|
208 |
-
content: "\e93c";
|
209 |
-
}
|
210 |
-
.icon-os-quiz-wrong:before {
|
211 |
-
content: "\e93d";
|
212 |
-
}
|
213 |
-
.icon-os-report-contacts:before {
|
214 |
-
content: "\e93e";
|
215 |
-
}
|
216 |
-
.icon-os-report-discovery:before {
|
217 |
-
content: "\e93f";
|
218 |
-
}
|
219 |
-
.icon-os-report-revenue:before {
|
220 |
-
content: "\e940";
|
221 |
-
}
|
222 |
-
.icon-os-report-stats:before {
|
223 |
-
content: "\e941";
|
224 |
-
}
|
225 |
-
.icon-os-report-time:before {
|
226 |
-
content: "\e942";
|
227 |
-
}
|
228 |
-
.icon-os-report-views:before {
|
229 |
-
content: "\e943";
|
230 |
-
}
|
231 |
-
.icon-os-reports-emails:before {
|
232 |
-
content: "\e944";
|
233 |
-
}
|
234 |
-
.icon-os-reports-list:before {
|
235 |
-
content: "\e945";
|
236 |
-
}
|
237 |
-
.icon-os-reports-personality:before {
|
238 |
-
content: "\e946";
|
239 |
-
}
|
240 |
-
.icon-os-reports-poll:before {
|
241 |
-
content: "\e947";
|
242 |
-
}
|
243 |
-
.icon-os-reports-polls:before {
|
244 |
-
content: "\e948";
|
245 |
-
}
|
246 |
-
.icon-os-reports-revenue:before {
|
247 |
-
content: "\e949";
|
248 |
-
}
|
249 |
-
.icon-os-reports-set:before {
|
250 |
-
content: "\e94a";
|
251 |
-
}
|
252 |
-
.icon-os-reports-sets:before {
|
253 |
-
content: "\e94b";
|
254 |
-
}
|
255 |
-
.icon-os-reports-time:before {
|
256 |
-
content: "\e94c";
|
257 |
-
}
|
258 |
-
.icon-os-reports-traffic:before {
|
259 |
-
content: "\e94d";
|
260 |
-
}
|
261 |
-
.icon-os-reports-trivia:before {
|
262 |
-
content: "\e94e";
|
263 |
-
}
|
264 |
-
.icon-os-reports-votes:before {
|
265 |
-
content: "\e94f";
|
266 |
-
}
|
267 |
-
.icon-os-set-arrow-left:before {
|
268 |
-
content: "\e950";
|
269 |
-
}
|
270 |
-
.icon-os-set-arrow-right:before {
|
271 |
-
content: "\e951";
|
272 |
-
}
|
273 |
-
.icon-os-sn-embed:before {
|
274 |
-
content: "\e952";
|
275 |
-
}
|
276 |
-
.icon-os-sn-facebook:before {
|
277 |
-
content: "\e953";
|
278 |
-
}
|
279 |
-
.icon-os-sn-gplus:before {
|
280 |
-
content: "\e954";
|
281 |
-
}
|
282 |
-
.icon-os-sn-pinterest:before {
|
283 |
-
content: "\e955";
|
284 |
-
}
|
285 |
-
.icon-os-sn-reddit:before {
|
286 |
-
content: "\e956";
|
287 |
-
}
|
288 |
-
.icon-os-sn-tumblr:before {
|
289 |
-
content: "\e957";
|
290 |
-
}
|
291 |
-
.icon-os-sn-twitter:before {
|
292 |
-
content: "\e958";
|
293 |
-
}
|
294 |
-
.icon-os-sn-whatsapp:before {
|
295 |
-
content: "\e959";
|
296 |
-
}
|
297 |
-
.icon-os-status-closed:before {
|
298 |
-
content: "\e95a";
|
299 |
-
}
|
300 |
-
.icon-os-status-draft:before {
|
301 |
-
content: "\e95b";
|
302 |
-
}
|
303 |
-
.icon-os-status-open:before {
|
304 |
-
content: "\e95c";
|
305 |
-
}
|
306 |
-
.icon-os-status-published:before {
|
307 |
-
content: "\e95d";
|
308 |
}
|
1 |
+
@font-face {
|
2 |
+
font-family: 'osiconfont_v20';
|
3 |
+
src: local('osiconfont_v20'),
|
4 |
+
url('fonts/osiconfont_v20.eot?jcd4t4#iefix') format('embedded-opentype'),
|
5 |
+
url('fonts/osiconfont_v20.ttf?jcd4t4') format('truetype'),
|
6 |
+
url('fonts/osiconfont_v20.woff?jcd4t4') format('woff'),
|
7 |
+
url('fonts/osiconfont_v20.svg?jcd4t4#osiconfont_v20') format('svg');
|
8 |
+
font-weight: normal;
|
9 |
+
font-style: normal;
|
10 |
+
}
|
11 |
+
.os-icon {
|
12 |
+
font-family: 'osiconfont_v20';
|
13 |
+
speak: none;
|
14 |
+
font-style: normal;
|
15 |
+
font-weight: normal;
|
16 |
+
font-variant: normal;
|
17 |
+
text-transform: none;
|
18 |
+
line-height: 1;
|
19 |
+
|
20 |
+
-webkit-font-smoothing: antialiased;
|
21 |
+
-moz-osx-font-smoothing: grayscale;
|
22 |
+
|
23 |
+
&:before {
|
24 |
+
font-family: 'osiconfont_v20' !important;
|
25 |
+
}
|
26 |
+
}
|
27 |
+
.icon-os-brand-logo-small:before {
|
28 |
+
content: "\e900";
|
29 |
+
}
|
30 |
+
.icon-os-brand-logo:before {
|
31 |
+
content: "\e901";
|
32 |
+
}
|
33 |
+
.icon-os-common-addnew:before {
|
34 |
+
content: "\e902";
|
35 |
+
}
|
36 |
+
.icon-os-common-arrow-left:before {
|
37 |
+
content: "\e903";
|
38 |
+
}
|
39 |
+
.icon-os-common-arrow-left2:before {
|
40 |
+
content: "\e904";
|
41 |
+
}
|
42 |
+
.icon-os-common-arrow-right:before {
|
43 |
+
content: "\e905";
|
44 |
+
}
|
45 |
+
.icon-os-common-arrow-right2:before {
|
46 |
+
content: "\e906";
|
47 |
+
}
|
48 |
+
.icon-os-common-checkbox-blank:before {
|
49 |
+
content: "\e907";
|
50 |
+
}
|
51 |
+
.icon-os-common-checkbox-checked:before {
|
52 |
+
content: "\e908";
|
53 |
+
}
|
54 |
+
.icon-os-common-close:before {
|
55 |
+
content: "\e909";
|
56 |
+
}
|
57 |
+
.icon-os-common-date:before {
|
58 |
+
content: "\e90a";
|
59 |
+
}
|
60 |
+
.icon-os-common-dot:before {
|
61 |
+
content: "\e90b";
|
62 |
+
}
|
63 |
+
.icon-os-common-down:before {
|
64 |
+
content: "\e90c";
|
65 |
+
}
|
66 |
+
.icon-os-common-help:before {
|
67 |
+
content: "\e90d";
|
68 |
+
}
|
69 |
+
.icon-os-common-link:before {
|
70 |
+
content: "\e90e";
|
71 |
+
}
|
72 |
+
.icon-os-common-menu-dd-closed:before {
|
73 |
+
content: "\e90f";
|
74 |
+
}
|
75 |
+
.icon-os-common-menu-dd-open:before {
|
76 |
+
content: "\e910";
|
77 |
+
}
|
78 |
+
.icon-os-common-menu-medium:before {
|
79 |
+
content: "\e911";
|
80 |
+
}
|
81 |
+
.icon-os-common-menu:before {
|
82 |
+
content: "\e912";
|
83 |
+
}
|
84 |
+
.icon-os-common-minimize:before {
|
85 |
+
content: "\e913";
|
86 |
+
}
|
87 |
+
.icon-os-common-more:before {
|
88 |
+
content: "\e914";
|
89 |
+
}
|
90 |
+
.icon-os-common-plus:before {
|
91 |
+
content: "\e915";
|
92 |
+
}
|
93 |
+
.icon-os-common-poll:before {
|
94 |
+
content: "\e916";
|
95 |
+
}
|
96 |
+
.icon-os-common-search:before {
|
97 |
+
content: "\e917";
|
98 |
+
}
|
99 |
+
.icon-os-common-settings:before {
|
100 |
+
content: "\e918";
|
101 |
+
}
|
102 |
+
.icon-os-common-tip:before {
|
103 |
+
content: "\e919";
|
104 |
+
}
|
105 |
+
.icon-os-common-up:before {
|
106 |
+
content: "\e91a";
|
107 |
+
}
|
108 |
+
.icon-os-filter-all:before {
|
109 |
+
content: "\e91b";
|
110 |
+
}
|
111 |
+
.icon-os-filter-facebook:before {
|
112 |
+
content: "\e91c";
|
113 |
+
}
|
114 |
+
.icon-os-filter-female:before {
|
115 |
+
content: "\e91d";
|
116 |
+
}
|
117 |
+
.icon-os-filter-friends:before {
|
118 |
+
content: "\e91e";
|
119 |
+
}
|
120 |
+
.icon-os-filter-gplus:before {
|
121 |
+
content: "\e91f";
|
122 |
+
}
|
123 |
+
.icon-os-filter-hidden:before {
|
124 |
+
content: "\e920";
|
125 |
+
}
|
126 |
+
.icon-os-filter-male:before {
|
127 |
+
content: "\e921";
|
128 |
+
}
|
129 |
+
.icon-os-filter-public:before {
|
130 |
+
content: "\e922";
|
131 |
+
}
|
132 |
+
.icon-os-filter-seperator:before {
|
133 |
+
content: "\e923";
|
134 |
+
}
|
135 |
+
.icon-os-filter-twitter:before {
|
136 |
+
content: "\e924";
|
137 |
+
}
|
138 |
+
.icon-os-form-check:before {
|
139 |
+
content: "\e925";
|
140 |
+
}
|
141 |
+
.icon-os-form-drag:before {
|
142 |
+
content: "\e926";
|
143 |
+
}
|
144 |
+
.icon-os-form-error:before {
|
145 |
+
content: "\e927";
|
146 |
+
}
|
147 |
+
.icon-os-form-image:before {
|
148 |
+
content: "\e928";
|
149 |
+
}
|
150 |
+
.icon-os-form-success:before {
|
151 |
+
content: "\e929";
|
152 |
+
}
|
153 |
+
.icon-os-form-user:before {
|
154 |
+
content: "\e92a";
|
155 |
+
}
|
156 |
+
.icon-os-form-video:before {
|
157 |
+
content: "\e92b";
|
158 |
+
}
|
159 |
+
.icon-os-hp-engagement:before {
|
160 |
+
content: "\e92c";
|
161 |
+
}
|
162 |
+
.icon-os-hp-insights:before {
|
163 |
+
content: "\e92d";
|
164 |
+
}
|
165 |
+
.icon-os-hp-revenue:before {
|
166 |
+
content: "\e92e";
|
167 |
+
}
|
168 |
+
.icon-os-hp-traffic:before {
|
169 |
+
content: "\e92f";
|
170 |
+
}
|
171 |
+
.icon-os-layout-h2h:before {
|
172 |
+
content: "\e930";
|
173 |
+
}
|
174 |
+
.icon-os-layout-image-poll:before {
|
175 |
+
content: "\e931";
|
176 |
+
}
|
177 |
+
.icon-os-layout-mc:before {
|
178 |
+
content: "\e932";
|
179 |
+
}
|
180 |
+
.icon-os-layout-thumbnails:before {
|
181 |
+
content: "\e933";
|
182 |
+
}
|
183 |
+
.icon-os-menu-content:before {
|
184 |
+
content: "\e934";
|
185 |
+
}
|
186 |
+
.icon-os-menu-placements:before {
|
187 |
+
content: "\e935";
|
188 |
+
}
|
189 |
+
.icon-os-menu-reports:before {
|
190 |
+
content: "\e936";
|
191 |
+
}
|
192 |
+
.icon-os-menu-revenue:before {
|
193 |
+
content: "\e937";
|
194 |
+
}
|
195 |
+
.icon-os-pinterest:before {
|
196 |
+
content: "\e938";
|
197 |
+
}
|
198 |
+
.icon-os-poll-client:before {
|
199 |
+
content: "\e939";
|
200 |
+
}
|
201 |
+
.icon-os-poll-voter:before {
|
202 |
+
content: "\e93a";
|
203 |
+
}
|
204 |
+
.icon-os-quiz-correct:before {
|
205 |
+
content: "\e93b";
|
206 |
+
}
|
207 |
+
.icon-os-quiz-restart:before {
|
208 |
+
content: "\e93c";
|
209 |
+
}
|
210 |
+
.icon-os-quiz-wrong:before {
|
211 |
+
content: "\e93d";
|
212 |
+
}
|
213 |
+
.icon-os-report-contacts:before {
|
214 |
+
content: "\e93e";
|
215 |
+
}
|
216 |
+
.icon-os-report-discovery:before {
|
217 |
+
content: "\e93f";
|
218 |
+
}
|
219 |
+
.icon-os-report-revenue:before {
|
220 |
+
content: "\e940";
|
221 |
+
}
|
222 |
+
.icon-os-report-stats:before {
|
223 |
+
content: "\e941";
|
224 |
+
}
|
225 |
+
.icon-os-report-time:before {
|
226 |
+
content: "\e942";
|
227 |
+
}
|
228 |
+
.icon-os-report-views:before {
|
229 |
+
content: "\e943";
|
230 |
+
}
|
231 |
+
.icon-os-reports-emails:before {
|
232 |
+
content: "\e944";
|
233 |
+
}
|
234 |
+
.icon-os-reports-list:before {
|
235 |
+
content: "\e945";
|
236 |
+
}
|
237 |
+
.icon-os-reports-personality:before {
|
238 |
+
content: "\e946";
|
239 |
+
}
|
240 |
+
.icon-os-reports-poll:before {
|
241 |
+
content: "\e947";
|
242 |
+
}
|
243 |
+
.icon-os-reports-polls:before {
|
244 |
+
content: "\e948";
|
245 |
+
}
|
246 |
+
.icon-os-reports-revenue:before {
|
247 |
+
content: "\e949";
|
248 |
+
}
|
249 |
+
.icon-os-reports-set:before {
|
250 |
+
content: "\e94a";
|
251 |
+
}
|
252 |
+
.icon-os-reports-sets:before {
|
253 |
+
content: "\e94b";
|
254 |
+
}
|
255 |
+
.icon-os-reports-time:before {
|
256 |
+
content: "\e94c";
|
257 |
+
}
|
258 |
+
.icon-os-reports-traffic:before {
|
259 |
+
content: "\e94d";
|
260 |
+
}
|
261 |
+
.icon-os-reports-trivia:before {
|
262 |
+
content: "\e94e";
|
263 |
+
}
|
264 |
+
.icon-os-reports-votes:before {
|
265 |
+
content: "\e94f";
|
266 |
+
}
|
267 |
+
.icon-os-set-arrow-left:before {
|
268 |
+
content: "\e950";
|
269 |
+
}
|
270 |
+
.icon-os-set-arrow-right:before {
|
271 |
+
content: "\e951";
|
272 |
+
}
|
273 |
+
.icon-os-sn-embed:before {
|
274 |
+
content: "\e952";
|
275 |
+
}
|
276 |
+
.icon-os-sn-facebook:before {
|
277 |
+
content: "\e953";
|
278 |
+
}
|
279 |
+
.icon-os-sn-gplus:before {
|
280 |
+
content: "\e954";
|
281 |
+
}
|
282 |
+
.icon-os-sn-pinterest:before {
|
283 |
+
content: "\e955";
|
284 |
+
}
|
285 |
+
.icon-os-sn-reddit:before {
|
286 |
+
content: "\e956";
|
287 |
+
}
|
288 |
+
.icon-os-sn-tumblr:before {
|
289 |
+
content: "\e957";
|
290 |
+
}
|
291 |
+
.icon-os-sn-twitter:before {
|
292 |
+
content: "\e958";
|
293 |
+
}
|
294 |
+
.icon-os-sn-whatsapp:before {
|
295 |
+
content: "\e959";
|
296 |
+
}
|
297 |
+
.icon-os-status-closed:before {
|
298 |
+
content: "\e95a";
|
299 |
+
}
|
300 |
+
.icon-os-status-draft:before {
|
301 |
+
content: "\e95b";
|
302 |
+
}
|
303 |
+
.icon-os-status-open:before {
|
304 |
+
content: "\e95c";
|
305 |
+
}
|
306 |
+
.icon-os-status-published:before {
|
307 |
+
content: "\e95d";
|
308 |
}
|
opinionstage-functions.php
CHANGED
@@ -1,407 +1,407 @@
|
|
1 |
-
<?php
|
2 |
-
/* --- Wordpress Hooks Implementations --- */
|
3 |
-
|
4 |
-
/**
|
5 |
-
* Initialize the plugin
|
6 |
-
*/
|
7 |
-
function opinionstage_init() {
|
8 |
-
opinionstage_initialize_data();
|
9 |
-
register_uninstall_hook(OPINIONSTAGE_WIDGET_UNIQUE_LOCATION, 'opinionstage_uninstall');
|
10 |
-
}
|
11 |
-
|
12 |
-
/**
|
13 |
-
* Initialiaze the data options
|
14 |
-
*/
|
15 |
-
function opinionstage_initialize_data() {
|
16 |
-
$os_options = (array) get_option(OPINIONSTAGE_OPTIONS_KEY);
|
17 |
-
$os_options['version'] = OPINIONSTAGE_WIDGET_VERSION;
|
18 |
-
|
19 |
-
// For backward compatibility
|
20 |
-
if (!isset($os_options['sidebar_placement_active'])) {
|
21 |
-
$os_options['sidebar_placement_active'] = 'false';
|
22 |
-
}
|
23 |
-
|
24 |
-
update_option(OPINIONSTAGE_OPTIONS_KEY, $os_options);
|
25 |
-
}
|
26 |
-
|
27 |
-
/**
|
28 |
-
* Remove the plugin data
|
29 |
-
*/
|
30 |
-
function opinionstage_uninstall() {
|
31 |
-
delete_option(OPINIONSTAGE_OPTIONS_KEY);
|
32 |
-
}
|
33 |
-
|
34 |
-
/**
|
35 |
-
* Sidebar menu
|
36 |
-
*/
|
37 |
-
function opinionstage_poll_menu() {
|
38 |
-
if (function_exists('add_menu_page')) {
|
39 |
-
add_menu_page(__(OPINIONSTAGE_WIDGET_MENU_NAME, OPINIONSTAGE_WIDGET_UNIQUE_ID), __(OPINIONSTAGE_WIDGET_MENU_NAME, OPINIONSTAGE_WIDGET_MENU_NAME), 'edit_posts', OPINIONSTAGE_WIDGET_UNIQUE_LOCATION, 'opinionstage_add_poll_page',
|
40 |
-
plugins_url(OPINIONSTAGE_WIDGET_UNIQUE_ID.'/images/os.png'), '25.234323221');
|
41 |
-
add_submenu_page(null, __('', OPINIONSTAGE_WIDGET_MENU_NAME), __('', OPINIONSTAGE_WIDGET_MENU_NAME), 'edit_posts', OPINIONSTAGE_WIDGET_UNIQUE_ID.'/opinionstage-callback.php');
|
42 |
-
}
|
43 |
-
}
|
44 |
-
|
45 |
-
/**
|
46 |
-
* Check if the requested plugin is already available
|
47 |
-
*/
|
48 |
-
function opinionstage_check_plugin_available($plugin_key) {
|
49 |
-
$other_widget = (array) get_option($plugin_key); // Check the key of the other plugin
|
50 |
-
|
51 |
-
// Check if OpinionStage plugin already installed.
|
52 |
-
return (isset($other_widget['uid']) ||
|
53 |
-
isset($other_widget['email']));
|
54 |
-
}
|
55 |
-
/**
|
56 |
-
* Notify about other OpinionStage plugin already available
|
57 |
-
*/
|
58 |
-
function opinionstage_other_plugin_installed_warning() {
|
59 |
-
echo "<div id='opinionstage-warning' class='error'><p><B>".__("Opinion Stage Plugin is already installed")."</B>".__(', please remove "<B>Popup for Interactive Content by Opinion Stage</B>" and use the available "<B>Poll & Quiz tools by Opinion Stage</B>" plugin')."</p></div>";
|
60 |
-
}
|
61 |
-
|
62 |
-
/**
|
63 |
-
* Instructions page for adding a poll
|
64 |
-
*/
|
65 |
-
function opinionstage_add_poll_page() {
|
66 |
-
opinionstage_add_stylesheet();
|
67 |
-
$os_options = (array) get_option(OPINIONSTAGE_OPTIONS_KEY);
|
68 |
-
if (empty($os_options["uid"])) {
|
69 |
-
$first_time = true;
|
70 |
-
} else {
|
71 |
-
$first_time = false;
|
72 |
-
}
|
73 |
-
?>
|
74 |
-
<script type='text/javascript'>
|
75 |
-
jQuery(document).ready(function($) {
|
76 |
-
var callbackURL = "<?php echo opinionstage_callback_url()?>";
|
77 |
-
var toggleSettingsAjax = function(currObject, action) {
|
78 |
-
$.post(ajaxurl, {action: action, activate: currObject.is(':checked')}, function(response) { });
|
79 |
-
};
|
80 |
-
var updatePageLink = function() {
|
81 |
-
var page_id = $('select.os-page-select').val();
|
82 |
-
var edit_url = "<?php echo admin_url()?>" + 'post.php?post=' + page_id +'&action=edit';
|
83 |
-
$("a.os-edit-page").attr("href", edit_url);
|
84 |
-
}
|
85 |
-
$('#os-start-login').click(function(){
|
86 |
-
var emailInput = $('#os-email');
|
87 |
-
var email = $(emailInput).val();
|
88 |
-
if (email == emailInput.data('watermark')) {
|
89 |
-
email = "";
|
90 |
-
}
|
91 |
-
var new_location = "http://" + "<?php echo OPINIONSTAGE_LOGIN_PATH.'?o='.OPINIONSTAGE_WIDGET_API_KEY.'&callback=' ?>" + encodeURIComponent(callbackURL) + "&email=" + email;
|
92 |
-
window.location = new_location;
|
93 |
-
});
|
94 |
-
|
95 |
-
$('#os-switch-email').click(function(){
|
96 |
-
var new_location = "http://" + "<?php echo OPINIONSTAGE_LOGIN_PATH.'?o='.OPINIONSTAGE_WIDGET_API_KEY.'&callback=' ?>" + encodeURIComponent(callbackURL);
|
97 |
-
window.location = new_location;
|
98 |
-
});
|
99 |
-
|
100 |
-
$('#os-email').keypress(function(e){
|
101 |
-
if (e.keyCode == 13) {
|
102 |
-
$('#os-start-login').click();
|
103 |
-
}
|
104 |
-
});
|
105 |
-
|
106 |
-
$('#fly-out-switch').change(function(){
|
107 |
-
toggleSettingsAjax($(this), "opinionstage_ajax_toggle_flyout");
|
108 |
-
});
|
109 |
-
|
110 |
-
$('#article-placement-switch').change(function(){
|
111 |
-
toggleSettingsAjax($(this), "opinionstage_ajax_toggle_article_placement");
|
112 |
-
});
|
113 |
-
|
114 |
-
$('#sidebar-placement-switch').change(function(){
|
115 |
-
toggleSettingsAjax($(this), "opinionstage_ajax_toggle_sidebar_placement");
|
116 |
-
});
|
117 |
-
$("input[name='os-section']").change(function(e){
|
118 |
-
if ($('#feed_top_content').is(':checked')) {
|
119 |
-
$('#os-section-shortcode').val('[os-section]');
|
120 |
-
} else {
|
121 |
-
$('#os-section-shortcode').val('[os-section kind="my"]');
|
122 |
-
}
|
123 |
-
});
|
124 |
-
$('select.os-page-select').change(function() {
|
125 |
-
updatePageLink();
|
126 |
-
});
|
127 |
-
$('#opinionstage-content').on('click', '#os-section-shortcode', function(e) {
|
128 |
-
$(this).focus();
|
129 |
-
$(this).select();
|
130 |
-
});
|
131 |
-
|
132 |
-
updatePageLink();
|
133 |
-
});
|
134 |
-
|
135 |
-
</script>
|
136 |
-
<div id="opinionstage-content">
|
137 |
-
<div id="opinionstage-frame">
|
138 |
-
<div class="opinionstage-header-wrapper">
|
139 |
-
<div class="opinionstage-menu-wrapper">
|
140 |
-
<div class="opinionstage-logo-wrapper">
|
141 |
-
<div class="opinionstage-logo"></div>
|
142 |
-
</div>
|
143 |
-
</div>
|
144 |
-
<div class="opinionstage-status-wrapper">
|
145 |
-
<div class="opinionstage-status-content">
|
146 |
-
<?php if($first_time) {?>
|
147 |
-
<div class='opinionstage-status-title'>Connect WordPress with Opinion Stage to enable all features</div>
|
148 |
-
<div class="os-icon icon-os-poll-client"></div>
|
149 |
-
<input id="os-email" type="text" value="" class="watermark" data-watermark="Enter Your Email"/>
|
150 |
-
<a href="javascript:void(0)" class="opinionstage-blue-btn" id="os-start-login">CONNECT</a>
|
151 |
-
<?php } else { ?>
|
152 |
-
<div class='opinionstage-status-title'><b>You are connected</b> to Opinion Stage with the following email</div>
|
153 |
-
<div class="os-icon icon-os-form-success"></div>
|
154 |
-
<label class="checked" for="user-email"></label>
|
155 |
-
<input id="os-email" type="text" disabled="disabled" value="<?php echo($os_options["email"]) ?>"/>
|
156 |
-
<a href="javascript:void(0)" id="os-switch-email" >Switch account</a>
|
157 |
-
<?php } ?>
|
158 |
-
</div>
|
159 |
-
</div>
|
160 |
-
</div>
|
161 |
-
<div class="opinionstage-dashboard">
|
162 |
-
<div class="opinionstage-dashboard-left">
|
163 |
-
<div id="opinionstage-section-create" class="opinionstage-dashboard-section">
|
164 |
-
<div class="opinionstage-section-header">
|
165 |
-
<div class="opinionstage-section-title">Content</div>
|
166 |
-
<?php if(!$first_time) {?>
|
167 |
-
<a href="<?php echo 'http://'.OPINIONSTAGE_SERVER_BASE.'/dashboard/content'; ?>" target="_blank" class="opinionstage-section-action opinionstage-blue-bordered-btn">VIEW MY CONTENT</a>
|
168 |
-
<?php } ?>
|
169 |
-
</div>
|
170 |
-
<div class="opinionstage-section-content">
|
171 |
-
<div class="opinionstage-section-raw">
|
172 |
-
<div class="opinionstage-section-cell opinionstage-icon-cell">
|
173 |
-
<div class="os-icon icon-os-reports-polls"></div>
|
174 |
-
</div>
|
175 |
-
<div class="opinionstage-section-cell opinionstage-description-cell">
|
176 |
-
<div class="title">Poll</div>
|
177 |
-
<div class="example">e.g. What's your favorite color?</div>
|
178 |
-
</div>
|
179 |
-
<div class="opinionstage-section-cell opinionstage-btn-cell">
|
180 |
-
<?php echo opinionstage_create_poll_link('opinionstage-blue-btn'); ?>
|
181 |
-
</div>
|
182 |
-
</div>
|
183 |
-
<div class="opinionstage-section-raw">
|
184 |
-
<div class="opinionstage-section-cell opinionstage-icon-cell">
|
185 |
-
<div class="os-icon icon-os-reports-set"></div>
|
186 |
-
</div>
|
187 |
-
<div class="opinionstage-section-cell opinionstage-description-cell">
|
188 |
-
<div class="title">Survey</div>
|
189 |
-
<div class="example">e.g. Help us improve our site</div>
|
190 |
-
</div>
|
191 |
-
<div class="opinionstage-section-cell opinionstage-btn-cell">
|
192 |
-
<?php echo opinionstage_create_widget_link('survey', 'opinionstage-blue-btn'); ?>
|
193 |
-
</div>
|
194 |
-
</div>
|
195 |
-
<div class="opinionstage-section-raw">
|
196 |
-
<div class="opinionstage-section-cell opinionstage-icon-cell">
|
197 |
-
<div class="os-icon icon-os-reports-trivia"></div>
|
198 |
-
</div>
|
199 |
-
<div class="opinionstage-section-cell opinionstage-description-cell">
|
200 |
-
<div class="title">Trivia Quiz</div>
|
201 |
-
<div class="example">e.g. How well do you know dogs?</div>
|
202 |
-
</div>
|
203 |
-
<div class="opinionstage-section-cell opinionstage-btn-cell">
|
204 |
-
<?php echo opinionstage_create_widget_link('quiz', 'opinionstage-blue-btn'); ?>
|
205 |
-
</div>
|
206 |
-
</div>
|
207 |
-
<div class="opinionstage-section-raw">
|
208 |
-
<div class="opinionstage-section-cell opinionstage-icon-cell">
|
209 |
-
<div class="os-icon icon-os-reports-personality"></div>
|
210 |
-
</div>
|
211 |
-
<div class="opinionstage-section-cell opinionstage-description-cell">
|
212 |
-
<div class="title">Outcome Quiz</div>
|
213 |
-
<div class="example">e.g. What's your most dominant trait?</div>
|
214 |
-
</div>
|
215 |
-
<div class="opinionstage-section-cell opinionstage-btn-cell">
|
216 |
-
<?php echo opinionstage_create_widget_link('outcome', 'opinionstage-blue-btn'); ?>
|
217 |
-
</div>
|
218 |
-
</div>
|
219 |
-
<div class="opinionstage-section-raw">
|
220 |
-
<div class="opinionstage-section-cell opinionstage-icon-cell">
|
221 |
-
<div class="os-icon icon-os-reports-list"></div>
|
222 |
-
</div>
|
223 |
-
<div class="opinionstage-section-cell opinionstage-description-cell">
|
224 |
-
<div class="title">Contact Form</div>
|
225 |
-
<div class="example">e.g. Collect email addresses</div>
|
226 |
-
</div>
|
227 |
-
<div class="opinionstage-section-cell opinionstage-btn-cell">
|
228 |
-
<?php echo opinionstage_create_widget_link('contact_form', 'opinionstage-blue-btn'); ?>
|
229 |
-
</div>
|
230 |
-
</div>
|
231 |
-
<div class="opinionstage-section-raw">
|
232 |
-
<div class="opinionstage-section-cell opinionstage-icon-cell">
|
233 |
-
<div class="os-icon icon-os-reports-list"></div>
|
234 |
-
</div>
|
235 |
-
<div class="opinionstage-section-cell opinionstage-description-cell">
|
236 |
-
<div class="title">List</div>
|
237 |
-
<div class="example">e.g. Top 10 movies of all times</div>
|
238 |
-
</div>
|
239 |
-
<div class="opinionstage-section-cell opinionstage-btn-cell">
|
240 |
-
<?php echo opinionstage_create_widget_link('list', 'opinionstage-blue-btn'); ?>
|
241 |
-
</div>
|
242 |
-
</div>
|
243 |
-
</div>
|
244 |
-
</div>
|
245 |
-
</div>
|
246 |
-
<div class="opinionstage-dashboard-right">
|
247 |
-
<div id="opinionstage-section-placements" class="opinionstage-dashboard-section <?php echo($first_time ? "opinionstage-disabled-section" : "")?>">
|
248 |
-
<div class="opinionstage-section-header">
|
249 |
-
<div class="opinionstage-section-title">Placements</div>
|
250 |
-
</div>
|
251 |
-
<div class="opinionstage-section-content-wrapper">
|
252 |
-
<div class="opinionstage-section-content">
|
253 |
-
<div class="opinionstage-section-raw">
|
254 |
-
<div class="opinionstage-section-cell opinionstage-toggle-cell">
|
255 |
-
<div class="opinionstage-onoffswitch <?php echo($first_time ? "disabled" : "")?>">
|
256 |
-
<input type="checkbox" name="fly-out-switch" class="opinionstage-onoffswitch-checkbox" <?php echo($first_time ? "disabled" : "")?> id="fly-out-switch" <?php echo(!$first_time && $os_options['fly_out_active'] == 'true' ? "checked" : "") ?>>
|
257 |
-
<label class="opinionstage-onoffswitch-label" for="fly-out-switch">
|
258 |
-
<div class="opinionstage-onoffswitch-inner"></div>
|
259 |
-
<div class="opinionstage-onoffswitch-switch"></div>
|
260 |
-
</label>
|
261 |
-
</div>
|
262 |
-
</div>
|
263 |
-
<div class="opinionstage-section-cell opinionstage-description-cell">
|
264 |
-
<div class="title">Popup</div>
|
265 |
-
<div class="example">Add a content popup to your site</div>
|
266 |
-
</div>
|
267 |
-
<div class="opinionstage-section-cell opinionstage-btns-cell">
|
268 |
-
<a href="<?php echo opinionstage_flyout_edit_url('content'); ?>" class='opinionstage-blue-bordered-btn opinionstage-edit-content <?php echo($first_time ? "disabled" : "")?>' target="_blank">EDIT CONTENT</a>
|
269 |
-
<a href="<?php echo opinionstage_flyout_edit_url('settings'); ?>" class='opinionstage-blue-bordered-btn opinionstage-edit-settings <?php echo($first_time ? "disabled" : "")?>' target="_blank">
|
270 |
-
<div class="os-icon icon-os-common-settings"></div>
|
271 |
-
</a>
|
272 |
-
</div>
|
273 |
-
</div>
|
274 |
-
<div class="opinionstage-section-raw">
|
275 |
-
<div class="opinionstage-section-cell opinionstage-toggle-cell">
|
276 |
-
<div class="opinionstage-onoffswitch <?php echo($first_time ? "disabled" : "")?>">
|
277 |
-
<input type="checkbox" name="article-placement-switch" class="opinionstage-onoffswitch-checkbox" <?php echo($first_time ? "disabled" : "")?> id="article-placement-switch" <?php echo(!$first_time && $os_options['article_placement_active'] == 'true' ? "checked" : "") ?>>
|
278 |
-
<label class="opinionstage-onoffswitch-label" for="article-placement-switch">
|
279 |
-
<div class="opinionstage-onoffswitch-inner"></div>
|
280 |
-
<div class="opinionstage-onoffswitch-switch"></div>
|
281 |
-
</label>
|
282 |
-
</div>
|
283 |
-
</div>
|
284 |
-
<div class="opinionstage-section-cell opinionstage-description-cell">
|
285 |
-
<div class="title">Article</div>
|
286 |
-
<div class="example">Add a content section to all posts</div>
|
287 |
-
</div>
|
288 |
-
<div class="opinionstage-section-cell opinionstage-btns-cell">
|
289 |
-
<a href="<?php echo opinionstage_article_placement_edit_url('content'); ?>" class='opinionstage-blue-bordered-btn opinionstage-edit-content <?php echo($first_time ? "disabled" : "")?>' target="_blank">EDIT CONTENT</a>
|
290 |
-
<a href="<?php echo opinionstage_article_placement_edit_url('settings'); ?>" class='opinionstage-blue-bordered-btn opinionstage-edit-settings <?php echo($first_time ? "disabled" : "")?>' target="_blank">
|
291 |
-
<div class="os-icon icon-os-common-settings"></div>
|
292 |
-
</a>
|
293 |
-
</div>
|
294 |
-
</div>
|
295 |
-
<div class="opinionstage-section-raw">
|
296 |
-
<div class="opinionstage-section-cell opinionstage-toggle-cell">
|
297 |
-
<div class="opinionstage-onoffswitch <?php echo($first_time ? "disabled" : "")?>">
|
298 |
-
<input type="checkbox" name="sidebar-placement-switch" class="opinionstage-onoffswitch-checkbox" <?php echo($first_time ? "disabled" : "")?> id="sidebar-placement-switch" <?php echo(!$first_time && $os_options['sidebar_placement_active'] == 'true' ? "checked" : "") ?>>
|
299 |
-
<label class="opinionstage-onoffswitch-label" for="sidebar-placement-switch">
|
300 |
-
<div class="opinionstage-onoffswitch-inner"></div>
|
301 |
-
<div class="opinionstage-onoffswitch-switch"></div>
|
302 |
-
</label>
|
303 |
-
</div>
|
304 |
-
</div>
|
305 |
-
<div class="opinionstage-section-cell opinionstage-description-cell">
|
306 |
-
<div class="title">Sidebar Widget</div>
|
307 |
-
<div class="example">
|
308 |
-
<?php if($first_time) {?>
|
309 |
-
Add content to your sidebar
|
310 |
-
<?php } else { ?>
|
311 |
-
<div class="os-long-text">
|
312 |
-
<a href="<?php echo $url = get_admin_url('', '', 'admin') . 'widgets.php' ?>">Add widget to your sidebar</a>
|
313 |
-
</div>
|
314 |
-
<?php } ?>
|
315 |
-
</div>
|
316 |
-
</div>
|
317 |
-
<div class="opinionstage-section-cell opinionstage-btns-cell">
|
318 |
-
<a href="<?php echo opinionstage_sidebar_placement_edit_url('content'); ?>" class='opinionstage-blue-bordered-btn opinionstage-edit-content <?php echo($first_time ? "disabled" : "")?>' target="_blank">EDIT CONTENT</a>
|
319 |
-
<a href="<?php echo opinionstage_sidebar_placement_edit_url('settings'); ?>" class='opinionstage-blue-bordered-btn opinionstage-edit-settings <?php echo($first_time ? "disabled" : "")?>' target="_blank">
|
320 |
-
<div class="os-icon icon-os-common-settings"></div>
|
321 |
-
</a>
|
322 |
-
</div>
|
323 |
-
</div>
|
324 |
-
</div>
|
325 |
-
</div>
|
326 |
-
</div>
|
327 |
-
</div>
|
328 |
-
<div class="opinionstage-dashboard-left">
|
329 |
-
<div id="opinionstage-section-help" class="opinionstage-dashboard-section">
|
330 |
-
<div class="opinionstage-section-header">
|
331 |
-
<div class="opinionstage-section-title">Help</div>
|
332 |
-
</div>
|
333 |
-
<div class="opinionstage-section-content-wrapper">
|
334 |
-
<div class="opinionstage-section-content">
|
335 |
-
<div class="opinionstage-section-raw">
|
336 |
-
<div class="opinionstage-section-cell">
|
337 |
-
<a href="http://blog.opinionstage.com/how-to-add-interactive-content-on-wordpress/?o=wp35e8" target="_blank">How to use this plugin</a>
|
338 |
-
</div>
|
339 |
-
</div>
|
340 |
-
<div class="opinionstage-section-raw">
|
341 |
-
<div class="opinionstage-section-cell">
|
342 |
-
<?php echo opinionstage_create_link('Poll examples', 'showcase'); ?>
|
343 |
-
</div>
|
344 |
-
</div>
|
345 |
-
<div class="opinionstage-section-raw">
|
346 |
-
<div class="opinionstage-section-cell">
|
347 |
-
<?php echo opinionstage_create_link('Quiz examples', 'discover'); ?>
|
348 |
-
</div>
|
349 |
-
</div>
|
350 |
-
<div class="opinionstage-section-raw">
|
351 |
-
<div class="opinionstage-section-cell">
|
352 |
-
<?php echo opinionstage_logged_in_link('Monetize your traffic', "http://".OPINIONSTAGE_SERVER_BASE."/advanced-solutions"); ?>
|
353 |
-
</div>
|
354 |
-
</div>
|
355 |
-
<div class="opinionstage-section-raw">
|
356 |
-
<div class="opinionstage-section-cell">
|
357 |
-
<a href="https://opinionstage.zendesk.com/anonymous_requests/new" target="_blank">Contact Us</a>
|
358 |
-
</div>
|
359 |
-
</div>
|
360 |
-
</div>
|
361 |
-
</div>
|
362 |
-
</div>
|
363 |
-
</div>
|
364 |
-
</div>
|
365 |
-
</div>
|
366 |
-
</div>
|
367 |
-
<?php
|
368 |
-
}
|
369 |
-
|
370 |
-
/**
|
371 |
-
* Load the js script
|
372 |
-
*/
|
373 |
-
function opinionstage_load_scripts() {
|
374 |
-
wp_enqueue_script( 'ospolls', plugins_url(OPINIONSTAGE_WIDGET_UNIQUE_ID.'/opinionstage_plugin.js'), array( 'jquery', 'thickbox' ), '3' );
|
375 |
-
}
|
376 |
-
|
377 |
-
/**
|
378 |
-
* Add the flyout embed code to the page header
|
379 |
-
*/
|
380 |
-
function opinionstage_add_flyout() {
|
381 |
-
$os_options = (array) get_option(OPINIONSTAGE_OPTIONS_KEY);
|
382 |
-
|
383 |
-
if (!empty($os_options['fly_id']) && $os_options['fly_out_active'] == 'true' && !is_admin() ) {
|
384 |
-
// Will be added to the head of the page
|
385 |
-
?>
|
386 |
-
<script type="text/javascript">//<![CDATA[
|
387 |
-
window.AutoEngageSettings = {
|
388 |
-
id : '<?php echo $os_options['fly_id']; ?>'
|
389 |
-
};
|
390 |
-
(function(d, s, id){
|
391 |
-
var js,
|
392 |
-
fjs = d.getElementsByTagName(s)[0],
|
393 |
-
p = (('https:' == d.location.protocol) ? 'https://' : 'http://'),
|
394 |
-
r = Math.floor(new Date().getTime() / 1000000);
|
395 |
-
if (d.getElementById(id)) {return;}
|
396 |
-
js = d.createElement(s); js.id = id; js.async=1;
|
397 |
-
js.src = p + '<?php echo OPINIONSTAGE_SERVER_BASE; ?>' + '/assets/autoengage.js?' + r;
|
398 |
-
fjs.parentNode.insertBefore(js, fjs);
|
399 |
-
}(document, 'script', 'os-jssdk'));
|
400 |
-
|
401 |
-
//]]></script>
|
402 |
-
|
403 |
-
<?php
|
404 |
-
}
|
405 |
-
}
|
406 |
-
|
407 |
?>
|
1 |
+
<?php
|
2 |
+
/* --- Wordpress Hooks Implementations --- */
|
3 |
+
|
4 |
+
/**
|
5 |
+
* Initialize the plugin
|
6 |
+
*/
|
7 |
+
function opinionstage_init() {
|
8 |
+
opinionstage_initialize_data();
|
9 |
+
register_uninstall_hook(OPINIONSTAGE_WIDGET_UNIQUE_LOCATION, 'opinionstage_uninstall');
|
10 |
+
}
|
11 |
+
|
12 |
+
/**
|
13 |
+
* Initialiaze the data options
|
14 |
+
*/
|
15 |
+
function opinionstage_initialize_data() {
|
16 |
+
$os_options = (array) get_option(OPINIONSTAGE_OPTIONS_KEY);
|
17 |
+
$os_options['version'] = OPINIONSTAGE_WIDGET_VERSION;
|
18 |
+
|
19 |
+
// For backward compatibility
|
20 |
+
if (!isset($os_options['sidebar_placement_active'])) {
|
21 |
+
$os_options['sidebar_placement_active'] = 'false';
|
22 |
+
}
|
23 |
+
|
24 |
+
update_option(OPINIONSTAGE_OPTIONS_KEY, $os_options);
|
25 |
+
}
|
26 |
+
|
27 |
+
/**
|
28 |
+
* Remove the plugin data
|
29 |
+
*/
|
30 |
+
function opinionstage_uninstall() {
|
31 |
+
delete_option(OPINIONSTAGE_OPTIONS_KEY);
|
32 |
+
}
|
33 |
+
|
34 |
+
/**
|
35 |
+
* Sidebar menu
|
36 |
+
*/
|
37 |
+
function opinionstage_poll_menu() {
|
38 |
+
if (function_exists('add_menu_page')) {
|
39 |
+
add_menu_page(__(OPINIONSTAGE_WIDGET_MENU_NAME, OPINIONSTAGE_WIDGET_UNIQUE_ID), __(OPINIONSTAGE_WIDGET_MENU_NAME, OPINIONSTAGE_WIDGET_MENU_NAME), 'edit_posts', OPINIONSTAGE_WIDGET_UNIQUE_LOCATION, 'opinionstage_add_poll_page',
|
40 |
+
plugins_url(OPINIONSTAGE_WIDGET_UNIQUE_ID.'/images/os.png'), '25.234323221');
|
41 |
+
add_submenu_page(null, __('', OPINIONSTAGE_WIDGET_MENU_NAME), __('', OPINIONSTAGE_WIDGET_MENU_NAME), 'edit_posts', OPINIONSTAGE_WIDGET_UNIQUE_ID.'/opinionstage-callback.php');
|
42 |
+
}
|
43 |
+
}
|
44 |
+
|
45 |
+
/**
|
46 |
+
* Check if the requested plugin is already available
|
47 |
+
*/
|
48 |
+
function opinionstage_check_plugin_available($plugin_key) {
|
49 |
+
$other_widget = (array) get_option($plugin_key); // Check the key of the other plugin
|
50 |
+
|
51 |
+
// Check if OpinionStage plugin already installed.
|
52 |
+
return (isset($other_widget['uid']) ||
|
53 |
+
isset($other_widget['email']));
|
54 |
+
}
|
55 |
+
/**
|
56 |
+
* Notify about other OpinionStage plugin already available
|
57 |
+
*/
|
58 |
+
function opinionstage_other_plugin_installed_warning() {
|
59 |
+
echo "<div id='opinionstage-warning' class='error'><p><B>".__("Opinion Stage Plugin is already installed")."</B>".__(', please remove "<B>Popup for Interactive Content by Opinion Stage</B>" and use the available "<B>Poll & Quiz tools by Opinion Stage</B>" plugin')."</p></div>";
|
60 |
+
}
|
61 |
+
|
62 |
+
/**
|
63 |
+
* Instructions page for adding a poll
|
64 |
+
*/
|
65 |
+
function opinionstage_add_poll_page() {
|
66 |
+
opinionstage_add_stylesheet();
|
67 |
+
$os_options = (array) get_option(OPINIONSTAGE_OPTIONS_KEY);
|
68 |
+
if (empty($os_options["uid"])) {
|
69 |
+
$first_time = true;
|
70 |
+
} else {
|
71 |
+
$first_time = false;
|
72 |
+
}
|
73 |
+
?>
|
74 |
+
<script type='text/javascript'>
|
75 |
+
jQuery(document).ready(function($) {
|
76 |
+
var callbackURL = "<?php echo opinionstage_callback_url()?>";
|
77 |
+
var toggleSettingsAjax = function(currObject, action) {
|
78 |
+
$.post(ajaxurl, {action: action, activate: currObject.is(':checked')}, function(response) { });
|
79 |
+
};
|
80 |
+
var updatePageLink = function() {
|
81 |
+
var page_id = $('select.os-page-select').val();
|
82 |
+
var edit_url = "<?php echo admin_url()?>" + 'post.php?post=' + page_id +'&action=edit';
|
83 |
+
$("a.os-edit-page").attr("href", edit_url);
|
84 |
+
}
|
85 |
+
$('#os-start-login').click(function(){
|
86 |
+
var emailInput = $('#os-email');
|
87 |
+
var email = $(emailInput).val();
|
88 |
+
if (email == emailInput.data('watermark')) {
|
89 |
+
email = "";
|
90 |
+
}
|
91 |
+
var new_location = "http://" + "<?php echo OPINIONSTAGE_LOGIN_PATH.'?o='.OPINIONSTAGE_WIDGET_API_KEY.'&callback=' ?>" + encodeURIComponent(callbackURL) + "&email=" + email;
|
92 |
+
window.location = new_location;
|
93 |
+
});
|
94 |
+
|
95 |
+
$('#os-switch-email').click(function(){
|
96 |
+
var new_location = "http://" + "<?php echo OPINIONSTAGE_LOGIN_PATH.'?o='.OPINIONSTAGE_WIDGET_API_KEY.'&callback=' ?>" + encodeURIComponent(callbackURL);
|
97 |
+
window.location = new_location;
|
98 |
+
});
|
99 |
+
|
100 |
+
$('#os-email').keypress(function(e){
|
101 |
+
if (e.keyCode == 13) {
|
102 |
+
$('#os-start-login').click();
|
103 |
+
}
|
104 |
+
});
|
105 |
+
|
106 |
+
$('#fly-out-switch').change(function(){
|
107 |
+
toggleSettingsAjax($(this), "opinionstage_ajax_toggle_flyout");
|
108 |
+
});
|
109 |
+
|
110 |
+
$('#article-placement-switch').change(function(){
|
111 |
+
toggleSettingsAjax($(this), "opinionstage_ajax_toggle_article_placement");
|
112 |
+
});
|
113 |
+
|
114 |
+
$('#sidebar-placement-switch').change(function(){
|
115 |
+
toggleSettingsAjax($(this), "opinionstage_ajax_toggle_sidebar_placement");
|
116 |
+
});
|
117 |
+
$("input[name='os-section']").change(function(e){
|
118 |
+
if ($('#feed_top_content').is(':checked')) {
|
119 |
+
$('#os-section-shortcode').val('[os-section]');
|
120 |
+
} else {
|
121 |
+
$('#os-section-shortcode').val('[os-section kind="my"]');
|
122 |
+
}
|
123 |
+
});
|
124 |
+
$('select.os-page-select').change(function() {
|
125 |
+
updatePageLink();
|
126 |
+
});
|
127 |
+
$('#opinionstage-content').on('click', '#os-section-shortcode', function(e) {
|
128 |
+
$(this).focus();
|
129 |
+
$(this).select();
|
130 |
+
});
|
131 |
+
|
132 |
+
updatePageLink();
|
133 |
+
});
|
134 |
+
|
135 |
+
</script>
|
136 |
+
<div id="opinionstage-content">
|
137 |
+
<div id="opinionstage-frame">
|
138 |
+
<div class="opinionstage-header-wrapper">
|
139 |
+
<div class="opinionstage-menu-wrapper">
|
140 |
+
<div class="opinionstage-logo-wrapper">
|
141 |
+
<div class="opinionstage-logo"></div>
|
142 |
+
</div>
|
143 |
+
</div>
|
144 |
+
<div class="opinionstage-status-wrapper">
|
145 |
+
<div class="opinionstage-status-content">
|
146 |
+
<?php if($first_time) {?>
|
147 |
+
<div class='opinionstage-status-title'>Connect WordPress with Opinion Stage to enable all features</div>
|
148 |
+
<div class="os-icon icon-os-poll-client"></div>
|
149 |
+
<input id="os-email" type="text" value="" class="watermark" data-watermark="Enter Your Email"/>
|
150 |
+
<a href="javascript:void(0)" class="opinionstage-blue-btn" id="os-start-login">CONNECT</a>
|
151 |
+
<?php } else { ?>
|
152 |
+
<div class='opinionstage-status-title'><b>You are connected</b> to Opinion Stage with the following email</div>
|
153 |
+
<div class="os-icon icon-os-form-success"></div>
|
154 |
+
<label class="checked" for="user-email"></label>
|
155 |
+
<input id="os-email" type="text" disabled="disabled" value="<?php echo($os_options["email"]) ?>"/>
|
156 |
+
<a href="javascript:void(0)" id="os-switch-email" >Switch account</a>
|
157 |
+
<?php } ?>
|
158 |
+
</div>
|
159 |
+
</div>
|
160 |
+
</div>
|
161 |
+
<div class="opinionstage-dashboard">
|
162 |
+
<div class="opinionstage-dashboard-left">
|
163 |
+
<div id="opinionstage-section-create" class="opinionstage-dashboard-section">
|
164 |
+
<div class="opinionstage-section-header">
|
165 |
+
<div class="opinionstage-section-title">Content</div>
|
166 |
+
<?php if(!$first_time) {?>
|
167 |
+
<a href="<?php echo 'http://'.OPINIONSTAGE_SERVER_BASE.'/dashboard/content'; ?>" target="_blank" class="opinionstage-section-action opinionstage-blue-bordered-btn">VIEW MY CONTENT</a>
|
168 |
+
<?php } ?>
|
169 |
+
</div>
|
170 |
+
<div class="opinionstage-section-content">
|
171 |
+
<div class="opinionstage-section-raw">
|
172 |
+
<div class="opinionstage-section-cell opinionstage-icon-cell">
|
173 |
+
<div class="os-icon icon-os-reports-polls"></div>
|
174 |
+
</div>
|
175 |
+
<div class="opinionstage-section-cell opinionstage-description-cell">
|
176 |
+
<div class="title">Poll</div>
|
177 |
+
<div class="example">e.g. What's your favorite color?</div>
|
178 |
+
</div>
|
179 |
+
<div class="opinionstage-section-cell opinionstage-btn-cell">
|
180 |
+
<?php echo opinionstage_create_poll_link('opinionstage-blue-btn'); ?>
|
181 |
+
</div>
|
182 |
+
</div>
|
183 |
+
<div class="opinionstage-section-raw">
|
184 |
+
<div class="opinionstage-section-cell opinionstage-icon-cell">
|
185 |
+
<div class="os-icon icon-os-reports-set"></div>
|
186 |
+
</div>
|
187 |
+
<div class="opinionstage-section-cell opinionstage-description-cell">
|
188 |
+
<div class="title">Survey</div>
|
189 |
+
<div class="example">e.g. Help us improve our site</div>
|
190 |
+
</div>
|
191 |
+
<div class="opinionstage-section-cell opinionstage-btn-cell">
|
192 |
+
<?php echo opinionstage_create_widget_link('survey', 'opinionstage-blue-btn'); ?>
|
193 |
+
</div>
|
194 |
+
</div>
|
195 |
+
<div class="opinionstage-section-raw">
|
196 |
+
<div class="opinionstage-section-cell opinionstage-icon-cell">
|
197 |
+
<div class="os-icon icon-os-reports-trivia"></div>
|
198 |
+
</div>
|
199 |
+
<div class="opinionstage-section-cell opinionstage-description-cell">
|
200 |
+
<div class="title">Trivia Quiz</div>
|
201 |
+
<div class="example">e.g. How well do you know dogs?</div>
|
202 |
+
</div>
|
203 |
+
<div class="opinionstage-section-cell opinionstage-btn-cell">
|
204 |
+
<?php echo opinionstage_create_widget_link('quiz', 'opinionstage-blue-btn'); ?>
|
205 |
+
</div>
|
206 |
+
</div>
|
207 |
+
<div class="opinionstage-section-raw">
|
208 |
+
<div class="opinionstage-section-cell opinionstage-icon-cell">
|
209 |
+
<div class="os-icon icon-os-reports-personality"></div>
|
210 |
+
</div>
|
211 |
+
<div class="opinionstage-section-cell opinionstage-description-cell">
|
212 |
+
<div class="title">Outcome Quiz</div>
|
213 |
+
<div class="example">e.g. What's your most dominant trait?</div>
|
214 |
+
</div>
|
215 |
+
<div class="opinionstage-section-cell opinionstage-btn-cell">
|
216 |
+
<?php echo opinionstage_create_widget_link('outcome', 'opinionstage-blue-btn'); ?>
|
217 |
+
</div>
|
218 |
+
</div>
|
219 |
+
<div class="opinionstage-section-raw">
|
220 |
+
<div class="opinionstage-section-cell opinionstage-icon-cell">
|
221 |
+
<div class="os-icon icon-os-reports-list"></div>
|
222 |
+
</div>
|
223 |
+
<div class="opinionstage-section-cell opinionstage-description-cell">
|
224 |
+
<div class="title">Contact Form</div>
|
225 |
+
<div class="example">e.g. Collect email addresses</div>
|
226 |
+
</div>
|
227 |
+
<div class="opinionstage-section-cell opinionstage-btn-cell">
|
228 |
+
<?php echo opinionstage_create_widget_link('contact_form', 'opinionstage-blue-btn'); ?>
|
229 |
+
</div>
|
230 |
+
</div>
|
231 |
+
<div class="opinionstage-section-raw">
|
232 |
+
<div class="opinionstage-section-cell opinionstage-icon-cell">
|
233 |
+
<div class="os-icon icon-os-reports-list"></div>
|
234 |
+
</div>
|
235 |
+
<div class="opinionstage-section-cell opinionstage-description-cell">
|
236 |
+
<div class="title">List</div>
|
237 |
+
<div class="example">e.g. Top 10 movies of all times</div>
|
238 |
+
</div>
|
239 |
+
<div class="opinionstage-section-cell opinionstage-btn-cell">
|
240 |
+
<?php echo opinionstage_create_widget_link('list', 'opinionstage-blue-btn'); ?>
|
241 |
+
</div>
|
242 |
+
</div>
|
243 |
+
</div>
|
244 |
+
</div>
|
245 |
+
</div>
|
246 |
+
<div class="opinionstage-dashboard-right">
|
247 |
+
<div id="opinionstage-section-placements" class="opinionstage-dashboard-section <?php echo($first_time ? "opinionstage-disabled-section" : "")?>">
|
248 |
+
<div class="opinionstage-section-header">
|
249 |
+
<div class="opinionstage-section-title">Placements</div>
|
250 |
+
</div>
|
251 |
+
<div class="opinionstage-section-content-wrapper">
|
252 |
+
<div class="opinionstage-section-content">
|
253 |
+
<div class="opinionstage-section-raw">
|
254 |
+
<div class="opinionstage-section-cell opinionstage-toggle-cell">
|
255 |
+
<div class="opinionstage-onoffswitch <?php echo($first_time ? "disabled" : "")?>">
|
256 |
+
<input type="checkbox" name="fly-out-switch" class="opinionstage-onoffswitch-checkbox" <?php echo($first_time ? "disabled" : "")?> id="fly-out-switch" <?php echo(!$first_time && $os_options['fly_out_active'] == 'true' ? "checked" : "") ?>>
|
257 |
+
<label class="opinionstage-onoffswitch-label" for="fly-out-switch">
|
258 |
+
<div class="opinionstage-onoffswitch-inner"></div>
|
259 |
+
<div class="opinionstage-onoffswitch-switch"></div>
|
260 |
+
</label>
|
261 |
+
</div>
|
262 |
+
</div>
|
263 |
+
<div class="opinionstage-section-cell opinionstage-description-cell">
|
264 |
+
<div class="title">Popup</div>
|
265 |
+
<div class="example">Add a content popup to your site</div>
|
266 |
+
</div>
|
267 |
+
<div class="opinionstage-section-cell opinionstage-btns-cell">
|
268 |
+
<a href="<?php echo opinionstage_flyout_edit_url('content'); ?>" class='opinionstage-blue-bordered-btn opinionstage-edit-content <?php echo($first_time ? "disabled" : "")?>' target="_blank">EDIT CONTENT</a>
|
269 |
+
<a href="<?php echo opinionstage_flyout_edit_url('settings'); ?>" class='opinionstage-blue-bordered-btn opinionstage-edit-settings <?php echo($first_time ? "disabled" : "")?>' target="_blank">
|
270 |
+
<div class="os-icon icon-os-common-settings"></div>
|
271 |
+
</a>
|
272 |
+
</div>
|
273 |
+
</div>
|
274 |
+
<div class="opinionstage-section-raw">
|
275 |
+
<div class="opinionstage-section-cell opinionstage-toggle-cell">
|
276 |
+
<div class="opinionstage-onoffswitch <?php echo($first_time ? "disabled" : "")?>">
|
277 |
+
<input type="checkbox" name="article-placement-switch" class="opinionstage-onoffswitch-checkbox" <?php echo($first_time ? "disabled" : "")?> id="article-placement-switch" <?php echo(!$first_time && $os_options['article_placement_active'] == 'true' ? "checked" : "") ?>>
|
278 |
+
<label class="opinionstage-onoffswitch-label" for="article-placement-switch">
|
279 |
+
<div class="opinionstage-onoffswitch-inner"></div>
|
280 |
+
<div class="opinionstage-onoffswitch-switch"></div>
|
281 |
+
</label>
|
282 |
+
</div>
|
283 |
+
</div>
|
284 |
+
<div class="opinionstage-section-cell opinionstage-description-cell">
|
285 |
+
<div class="title">Article</div>
|
286 |
+
<div class="example">Add a content section to all posts</div>
|
287 |
+
</div>
|
288 |
+
<div class="opinionstage-section-cell opinionstage-btns-cell">
|
289 |
+
<a href="<?php echo opinionstage_article_placement_edit_url('content'); ?>" class='opinionstage-blue-bordered-btn opinionstage-edit-content <?php echo($first_time ? "disabled" : "")?>' target="_blank">EDIT CONTENT</a>
|
290 |
+
<a href="<?php echo opinionstage_article_placement_edit_url('settings'); ?>" class='opinionstage-blue-bordered-btn opinionstage-edit-settings <?php echo($first_time ? "disabled" : "")?>' target="_blank">
|
291 |
+
<div class="os-icon icon-os-common-settings"></div>
|
292 |
+
</a>
|
293 |
+
</div>
|
294 |
+
</div>
|
295 |
+
<div class="opinionstage-section-raw">
|
296 |
+
<div class="opinionstage-section-cell opinionstage-toggle-cell">
|
297 |
+
<div class="opinionstage-onoffswitch <?php echo($first_time ? "disabled" : "")?>">
|
298 |
+
<input type="checkbox" name="sidebar-placement-switch" class="opinionstage-onoffswitch-checkbox" <?php echo($first_time ? "disabled" : "")?> id="sidebar-placement-switch" <?php echo(!$first_time && $os_options['sidebar_placement_active'] == 'true' ? "checked" : "") ?>>
|
299 |
+
<label class="opinionstage-onoffswitch-label" for="sidebar-placement-switch">
|
300 |
+
<div class="opinionstage-onoffswitch-inner"></div>
|
301 |
+
<div class="opinionstage-onoffswitch-switch"></div>
|
302 |
+
</label>
|
303 |
+
</div>
|
304 |
+
</div>
|
305 |
+
<div class="opinionstage-section-cell opinionstage-description-cell">
|
306 |
+
<div class="title">Sidebar Widget</div>
|
307 |
+
<div class="example">
|
308 |
+
<?php if($first_time) {?>
|
309 |
+
Add content to your sidebar
|
310 |
+
<?php } else { ?>
|
311 |
+
<div class="os-long-text">
|
312 |
+
<a href="<?php echo $url = get_admin_url('', '', 'admin') . 'widgets.php' ?>">Add widget to your sidebar</a>
|
313 |
+
</div>
|
314 |
+
<?php } ?>
|
315 |
+
</div>
|
316 |
+
</div>
|
317 |
+
<div class="opinionstage-section-cell opinionstage-btns-cell">
|
318 |
+
<a href="<?php echo opinionstage_sidebar_placement_edit_url('content'); ?>" class='opinionstage-blue-bordered-btn opinionstage-edit-content <?php echo($first_time ? "disabled" : "")?>' target="_blank">EDIT CONTENT</a>
|
319 |
+
<a href="<?php echo opinionstage_sidebar_placement_edit_url('settings'); ?>" class='opinionstage-blue-bordered-btn opinionstage-edit-settings <?php echo($first_time ? "disabled" : "")?>' target="_blank">
|
320 |
+
<div class="os-icon icon-os-common-settings"></div>
|
321 |
+
</a>
|
322 |
+
</div>
|
323 |
+
</div>
|
324 |
+
</div>
|
325 |
+
</div>
|
326 |
+
</div>
|
327 |
+
</div>
|
328 |
+
<div class="opinionstage-dashboard-left">
|
329 |
+
<div id="opinionstage-section-help" class="opinionstage-dashboard-section">
|
330 |
+
<div class="opinionstage-section-header">
|
331 |
+
<div class="opinionstage-section-title">Help</div>
|
332 |
+
</div>
|
333 |
+
<div class="opinionstage-section-content-wrapper">
|
334 |
+
<div class="opinionstage-section-content">
|
335 |
+
<div class="opinionstage-section-raw">
|
336 |
+
<div class="opinionstage-section-cell">
|
337 |
+
<a href="http://blog.opinionstage.com/how-to-add-interactive-content-on-wordpress/?o=wp35e8" target="_blank">How to use this plugin</a>
|
338 |
+
</div>
|
339 |
+
</div>
|
340 |
+
<div class="opinionstage-section-raw">
|
341 |
+
<div class="opinionstage-section-cell">
|
342 |
+
<?php echo opinionstage_create_link('Poll examples', 'showcase'); ?>
|
343 |
+
</div>
|
344 |
+
</div>
|
345 |
+
<div class="opinionstage-section-raw">
|
346 |
+
<div class="opinionstage-section-cell">
|
347 |
+
<?php echo opinionstage_create_link('Quiz examples', 'discover'); ?>
|
348 |
+
</div>
|
349 |
+
</div>
|
350 |
+
<div class="opinionstage-section-raw">
|
351 |
+
<div class="opinionstage-section-cell">
|
352 |
+
<?php echo opinionstage_logged_in_link('Monetize your traffic', "http://".OPINIONSTAGE_SERVER_BASE."/advanced-solutions"); ?>
|
353 |
+
</div>
|
354 |
+
</div>
|
355 |
+
<div class="opinionstage-section-raw">
|
356 |
+
<div class="opinionstage-section-cell">
|
357 |
+
<a href="https://opinionstage.zendesk.com/anonymous_requests/new" target="_blank">Contact Us</a>
|
358 |
+
</div>
|
359 |
+
</div>
|
360 |
+
</div>
|
361 |
+
</div>
|
362 |
+
</div>
|
363 |
+
</div>
|
364 |
+
</div>
|
365 |
+
</div>
|
366 |
+
</div>
|
367 |
+
<?php
|
368 |
+
}
|
369 |
+
|
370 |
+
/**
|
371 |
+
* Load the js script
|
372 |
+
*/
|
373 |
+
function opinionstage_load_scripts() {
|
374 |
+
wp_enqueue_script( 'ospolls', plugins_url(OPINIONSTAGE_WIDGET_UNIQUE_ID.'/opinionstage_plugin.js'), array( 'jquery', 'thickbox' ), '3' );
|
375 |
+
}
|
376 |
+
|
377 |
+
/**
|
378 |
+
* Add the flyout embed code to the page header
|
379 |
+
*/
|
380 |
+
function opinionstage_add_flyout() {
|
381 |
+
$os_options = (array) get_option(OPINIONSTAGE_OPTIONS_KEY);
|
382 |
+
|
383 |
+
if (!empty($os_options['fly_id']) && $os_options['fly_out_active'] == 'true' && !is_admin() ) {
|
384 |
+
// Will be added to the head of the page
|
385 |
+
?>
|
386 |
+
<script type="text/javascript">//<![CDATA[
|
387 |
+
window.AutoEngageSettings = {
|
388 |
+
id : '<?php echo $os_options['fly_id']; ?>'
|
389 |
+
};
|
390 |
+
(function(d, s, id){
|
391 |
+
var js,
|
392 |
+
fjs = d.getElementsByTagName(s)[0],
|
393 |
+
p = (('https:' == d.location.protocol) ? 'https://' : 'http://'),
|
394 |
+
r = Math.floor(new Date().getTime() / 1000000);
|
395 |
+
if (d.getElementById(id)) {return;}
|
396 |
+
js = d.createElement(s); js.id = id; js.async=1;
|
397 |
+
js.src = p + '<?php echo OPINIONSTAGE_SERVER_BASE; ?>' + '/assets/autoengage.js?' + r;
|
398 |
+
fjs.parentNode.insertBefore(js, fjs);
|
399 |
+
}(document, 'script', 'os-jssdk'));
|
400 |
+
|
401 |
+
//]]></script>
|
402 |
+
|
403 |
+
<?php
|
404 |
+
}
|
405 |
+
}
|
406 |
+
|
407 |
?>
|
opinionstage-polls.php
CHANGED
@@ -1,55 +1,55 @@
|
|
1 |
-
<?php
|
2 |
-
/*
|
3 |
-
Plugin Name: Poll, Survey, Quiz & Form by OpinionStage
|
4 |
-
Plugin URI: http://www.opinionstage.com
|
5 |
-
Description: Add a highly engaging poll, survey, quiz or form to your site. Easily add a poll, survey, quiz or form to any post/page or to your site sidebar.
|
6 |
-
Version: 16.
|
7 |
-
Author: OpinionStage.com
|
8 |
-
Author URI: http://www.opinionstage.com
|
9 |
-
Text Domain: social-polls-by-opinionstage
|
10 |
-
*/
|
11 |
-
|
12 |
-
/* --- Static initializer for Wordpress hooks --- */
|
13 |
-
|
14 |
-
define('OPINIONSTAGE_SERVER_BASE', "www.opinionstage.com"); /* Don't include the protocol, added dynamically */
|
15 |
-
define('OPINIONSTAGE_WIDGET_VERSION', '16.
|
16 |
-
define('OPINIONSTAGE_WIDGET_PLUGIN_NAME', 'Poll, Survey, Quiz & Form by OpinionStage');
|
17 |
-
define('OPINIONSTAGE_WIDGET_API_KEY', 'wp35e8');
|
18 |
-
define('OPINIONSTAGE_OPTIONS_KEY', 'opinionstage_widget');
|
19 |
-
define('OPINIONSTAGE_POLL_SHORTCODE', 'socialpoll');
|
20 |
-
define('OPINIONSTAGE_WIDGET_SHORTCODE', 'os-widget');
|
21 |
-
define('OPINIONSTAGE_FEED_SHORTCODE', 'os-section');
|
22 |
-
define('OPINIONSTAGE_PLACEMENT_SHORTCODE', 'osplacement');
|
23 |
-
define('OPINIONSTAGE_WIDGET_UNIQUE_ID', 'social-polls-by-opinionstage');
|
24 |
-
define('OPINIONSTAGE_WIDGET_UNIQUE_LOCATION', __FILE__);
|
25 |
-
define('OPINIONSTAGE_WIDGET_MENU_NAME', 'Poll, Survey, Quiz & Form');
|
26 |
-
define('OPINIONSTAGE_LOGIN_PATH', OPINIONSTAGE_SERVER_BASE."/integrations/wordpress/new");
|
27 |
-
define('OPINIONSTAGE_API_PATH', OPINIONSTAGE_SERVER_BASE."/api/v1");
|
28 |
-
|
29 |
-
require_once(WP_PLUGIN_DIR."/".OPINIONSTAGE_WIDGET_UNIQUE_ID."/opinionstage-utility-functions.php");
|
30 |
-
require_once(WP_PLUGIN_DIR."/".OPINIONSTAGE_WIDGET_UNIQUE_ID."/opinionstage-functions.php");
|
31 |
-
require_once(WP_PLUGIN_DIR."/".OPINIONSTAGE_WIDGET_UNIQUE_ID."/opinionstage-ajax-functions.php");
|
32 |
-
require_once(WP_PLUGIN_DIR."/".OPINIONSTAGE_WIDGET_UNIQUE_ID."/opinionstage-article-placement-functions.php");
|
33 |
-
require_once(WP_PLUGIN_DIR."/".OPINIONSTAGE_WIDGET_UNIQUE_ID."/opinionstage-widget.php");
|
34 |
-
|
35 |
-
/* --- Static initializer for Wordpress hooks --- */
|
36 |
-
|
37 |
-
// Check if OpinionStage plugin already installed.
|
38 |
-
if (opinionstage_check_plugin_available('opinionstage_popup')) {
|
39 |
-
add_action('admin_notices', 'opinionstage_other_plugin_installed_warning');
|
40 |
-
} else {
|
41 |
-
add_shortcode(OPINIONSTAGE_POLL_SHORTCODE, 'opinionstage_add_poll_or_set');
|
42 |
-
add_shortcode(OPINIONSTAGE_WIDGET_SHORTCODE, 'opinionstage_add_widget');
|
43 |
-
add_shortcode(OPINIONSTAGE_FEED_SHORTCODE, 'opinionstage_add_feed');
|
44 |
-
add_shortcode(OPINIONSTAGE_PLACEMENT_SHORTCODE, 'opinionstage_add_placement');
|
45 |
-
|
46 |
-
add_action('plugins_loaded', 'opinionstage_init');
|
47 |
-
|
48 |
-
// Side menu
|
49 |
-
add_action('admin_menu', 'opinionstage_poll_menu');
|
50 |
-
add_action('admin_enqueue_scripts', 'opinionstage_load_scripts');
|
51 |
-
|
52 |
-
// Add fly-out to header
|
53 |
-
add_action('wp_head', 'opinionstage_add_flyout');
|
54 |
-
}
|
55 |
?>
|
1 |
+
<?php
|
2 |
+
/*
|
3 |
+
Plugin Name: Poll, Survey, Quiz & Form by OpinionStage
|
4 |
+
Plugin URI: http://www.opinionstage.com
|
5 |
+
Description: Add a highly engaging poll, survey, quiz or form to your site. Easily add a poll, survey, quiz or form to any post/page or to your site sidebar.
|
6 |
+
Version: 16.2.0
|
7 |
+
Author: OpinionStage.com
|
8 |
+
Author URI: http://www.opinionstage.com
|
9 |
+
Text Domain: social-polls-by-opinionstage
|
10 |
+
*/
|
11 |
+
|
12 |
+
/* --- Static initializer for Wordpress hooks --- */
|
13 |
+
|
14 |
+
define('OPINIONSTAGE_SERVER_BASE', "www.opinionstage.com"); /* Don't include the protocol, added dynamically */
|
15 |
+
define('OPINIONSTAGE_WIDGET_VERSION', '16.2.0');
|
16 |
+
define('OPINIONSTAGE_WIDGET_PLUGIN_NAME', 'Poll, Survey, Quiz & Form by OpinionStage');
|
17 |
+
define('OPINIONSTAGE_WIDGET_API_KEY', 'wp35e8');
|
18 |
+
define('OPINIONSTAGE_OPTIONS_KEY', 'opinionstage_widget');
|
19 |
+
define('OPINIONSTAGE_POLL_SHORTCODE', 'socialpoll');
|
20 |
+
define('OPINIONSTAGE_WIDGET_SHORTCODE', 'os-widget');
|
21 |
+
define('OPINIONSTAGE_FEED_SHORTCODE', 'os-section');
|
22 |
+
define('OPINIONSTAGE_PLACEMENT_SHORTCODE', 'osplacement');
|
23 |
+
define('OPINIONSTAGE_WIDGET_UNIQUE_ID', 'social-polls-by-opinionstage');
|
24 |
+
define('OPINIONSTAGE_WIDGET_UNIQUE_LOCATION', __FILE__);
|
25 |
+
define('OPINIONSTAGE_WIDGET_MENU_NAME', 'Poll, Survey, Quiz & Form');
|
26 |
+
define('OPINIONSTAGE_LOGIN_PATH', OPINIONSTAGE_SERVER_BASE."/integrations/wordpress/new");
|
27 |
+
define('OPINIONSTAGE_API_PATH', OPINIONSTAGE_SERVER_BASE."/api/v1");
|
28 |
+
|
29 |
+
require_once(WP_PLUGIN_DIR."/".OPINIONSTAGE_WIDGET_UNIQUE_ID."/opinionstage-utility-functions.php");
|
30 |
+
require_once(WP_PLUGIN_DIR."/".OPINIONSTAGE_WIDGET_UNIQUE_ID."/opinionstage-functions.php");
|
31 |
+
require_once(WP_PLUGIN_DIR."/".OPINIONSTAGE_WIDGET_UNIQUE_ID."/opinionstage-ajax-functions.php");
|
32 |
+
require_once(WP_PLUGIN_DIR."/".OPINIONSTAGE_WIDGET_UNIQUE_ID."/opinionstage-article-placement-functions.php");
|
33 |
+
require_once(WP_PLUGIN_DIR."/".OPINIONSTAGE_WIDGET_UNIQUE_ID."/opinionstage-widget.php");
|
34 |
+
|
35 |
+
/* --- Static initializer for Wordpress hooks --- */
|
36 |
+
|
37 |
+
// Check if OpinionStage plugin already installed.
|
38 |
+
if (opinionstage_check_plugin_available('opinionstage_popup')) {
|
39 |
+
add_action('admin_notices', 'opinionstage_other_plugin_installed_warning');
|
40 |
+
} else {
|
41 |
+
add_shortcode(OPINIONSTAGE_POLL_SHORTCODE, 'opinionstage_add_poll_or_set');
|
42 |
+
add_shortcode(OPINIONSTAGE_WIDGET_SHORTCODE, 'opinionstage_add_widget');
|
43 |
+
add_shortcode(OPINIONSTAGE_FEED_SHORTCODE, 'opinionstage_add_feed');
|
44 |
+
add_shortcode(OPINIONSTAGE_PLACEMENT_SHORTCODE, 'opinionstage_add_placement');
|
45 |
+
|
46 |
+
add_action('plugins_loaded', 'opinionstage_init');
|
47 |
+
|
48 |
+
// Side menu
|
49 |
+
add_action('admin_menu', 'opinionstage_poll_menu');
|
50 |
+
add_action('admin_enqueue_scripts', 'opinionstage_load_scripts');
|
51 |
+
|
52 |
+
// Add fly-out to header
|
53 |
+
add_action('wp_head', 'opinionstage_add_flyout');
|
54 |
+
}
|
55 |
?>
|
opinionstage-widget.php
CHANGED
@@ -1,138 +1,138 @@
|
|
1 |
-
<?php
|
2 |
-
// Sidebar widget class for embeding the Opinion Stage sidebar placement
|
3 |
-
class OpinionStageWidget extends WP_Widget {
|
4 |
-
function __construct() {
|
5 |
-
// register new widget
|
6 |
-
$widget_ops = array(
|
7 |
-
'classname' => 'opinionstage_widget',
|
8 |
-
'description' => __('Adds a highly engaging polls to your widget section.', OPINIONSTAGE_WIDGET_UNIQUE_ID)
|
9 |
-
);
|
10 |
-
parent::__construct(
|
11 |
-
'opinionstage_widget',
|
12 |
-
__( 'Opinion Stage Sidebar Widget', OPINIONSTAGE_WIDGET_UNIQUE_ID ),
|
13 |
-
$widget_ops
|
14 |
-
);
|
15 |
-
}
|
16 |
-
|
17 |
-
/*
|
18 |
-
* Returns the widget content - including the title and the sidebar placement content (once enabled)
|
19 |
-
*/
|
20 |
-
function widget($args, $instance) {
|
21 |
-
extract($args);
|
22 |
-
echo $before_widget;
|
23 |
-
$title = @$instance['title'];
|
24 |
-
$os_options = (array) get_option(OPINIONSTAGE_OPTIONS_KEY);
|
25 |
-
|
26 |
-
// Show the title once widget is enabled
|
27 |
-
if (!empty($title) && $os_options['sidebar_placement_active'] == 'true') echo $before_title . apply_filters('widget_title', $title) . $after_title;
|
28 |
-
|
29 |
-
// Add the placement shortcode once widget is enabled
|
30 |
-
if (!empty($os_options["sidebar_placement_id"]) && $os_options['sidebar_placement_active'] == 'true') {
|
31 |
-
echo opinionstage_create_placement_embed_code($os_options["sidebar_placement_id"]);
|
32 |
-
}
|
33 |
-
|
34 |
-
echo $after_widget;
|
35 |
-
}
|
36 |
-
|
37 |
-
/*
|
38 |
-
* Updates the widget settings (title and enabled flag)
|
39 |
-
*/
|
40 |
-
function update($new_instance, $old_instance) {
|
41 |
-
$instance = $old_instance;
|
42 |
-
$instance['title'] = strip_tags($new_instance['title']);
|
43 |
-
$instance['enabled'] = strip_tags($new_instance['enabled']);
|
44 |
-
$os_options = (array) get_option(OPINIONSTAGE_OPTIONS_KEY);
|
45 |
-
$os_options['sidebar_placement_active'] = ('1' == $instance['enabled']);
|
46 |
-
update_option(OPINIONSTAGE_OPTIONS_KEY, $os_options);
|
47 |
-
return $instance;
|
48 |
-
}
|
49 |
-
|
50 |
-
/*
|
51 |
-
* Generates the admin form for the widget.
|
52 |
-
*/
|
53 |
-
function form($instance) {
|
54 |
-
$os_options = (array) get_option(OPINIONSTAGE_OPTIONS_KEY);
|
55 |
-
$title = isset($instance['title']) ? esc_attr($instance['title']) : '';
|
56 |
-
$enabled = $os_options['sidebar_placement_active'] == 'true' ? '1' : '';
|
57 |
-
if (empty($os_options["uid"])) {
|
58 |
-
$first_time = true;
|
59 |
-
} else {
|
60 |
-
$first_time = false;
|
61 |
-
}
|
62 |
-
|
63 |
-
?>
|
64 |
-
<script type="text/javascript">
|
65 |
-
jQuery(document).ready(function($) {
|
66 |
-
var callbackURL = function() {
|
67 |
-
return "<?php echo $url = get_admin_url('', '', 'admin') . 'admin.php?page='.OPINIONSTAGE_WIDGET_UNIQUE_ID.'/opinionstage-callback.php' ?>";
|
68 |
-
};
|
69 |
-
$('.opinionstage-sidebar-widget').on('click', '.start-login', function(){
|
70 |
-
var emailInput = $('#os-email');
|
71 |
-
var email = $(emailInput).val();
|
72 |
-
if (email == emailInput.data('watermark')) {
|
73 |
-
email = "";
|
74 |
-
}
|
75 |
-
var new_location = "http://" + "<?php echo OPINIONSTAGE_LOGIN_PATH.'?callback=' ?>" + encodeURIComponent(callbackURL()) + "&email=" + email;
|
76 |
-
window.location = new_location;
|
77 |
-
});
|
78 |
-
|
79 |
-
$('.opinionstage-sidebar-widget').on('click', '.switch-email', function(){
|
80 |
-
var new_location = "http://" + "<?php echo OPINIONSTAGE_LOGIN_PATH.'?callback=' ?>" + encodeURIComponent(callbackURL());
|
81 |
-
window.location = new_location;
|
82 |
-
});
|
83 |
-
|
84 |
-
$('#os-email').keypress(function(e){
|
85 |
-
if (e.keyCode == 13) {
|
86 |
-
$('#os-start-login').click();
|
87 |
-
}
|
88 |
-
});
|
89 |
-
});
|
90 |
-
</script>
|
91 |
-
|
92 |
-
<div class="opinionstage-sidebar-widget">
|
93 |
-
<?php if($first_time) {?>
|
94 |
-
<p>Connect WordPress with Opinion Stage to enable the widget</p>
|
95 |
-
<div class="os-icon icon-os-poll-client"></div>
|
96 |
-
<input id="os-email" type="text" value="" class="watermark os-email" data-watermark="Enter Your Email"/>
|
97 |
-
<a href="javascript:void(0)" class="os-button start-login" id="os-start-login">Connect</a>
|
98 |
-
<?php } else { ?>
|
99 |
-
<div class="opinionstage-sidebar-connected">
|
100 |
-
<div class="os-icon icon-os-form-success"></div>
|
101 |
-
<div class="opinionstage-connected-info">
|
102 |
-
<div class="opinionstage-connected-title"><b>You are connected</b> to Opinion Stage with:</div>
|
103 |
-
<input id="os-email" type="text" disabled="disabled" value="<?php echo($os_options["email"]) ?>"/>
|
104 |
-
<a href="javascript:void(0)" class="switch-email" id="os-switch-email" >Switch Account</a>
|
105 |
-
</div>
|
106 |
-
</div>
|
107 |
-
<p>
|
108 |
-
<label for="<?php echo $this->get_field_id('title'); ?>"><?php _e('Title', OPINIONSTAGE_WIDGET_UNIQUE_ID); ?></label>
|
109 |
-
<input class="widefat" id="<?php echo $this->get_field_id('title'); ?>" name="<?php echo $this->get_field_name('title'); ?>" type="text" class="watermark" data-watermark="Enter the title here" value="<?php echo $title; ?>" />
|
110 |
-
</p>
|
111 |
-
<div class="opinionstage-sidebar-actions">
|
112 |
-
<div class="opinionstage-sidebar-enabled">
|
113 |
-
<input type="checkbox" id="<?php echo $this->get_field_id('enabled'); ?>" name="<?php echo $this->get_field_name('enabled'); ?>" value="1" <?php echo($enabled == '1' ? "checked" : "") ?> />
|
114 |
-
<label for="<?php echo $this->get_field_id('enabled'); ?>">Enabled</label>
|
115 |
-
</div>
|
116 |
-
<div class="opinionstage-sidebar-config">
|
117 |
-
<a href="<?php echo opinionstage_sidebar_placement_edit_url('content'); ?>" target="_blank" class='opinionstage-blue-bordered-btn'>EDIT CONTENT</a>
|
118 |
-
<a href="<?php echo opinionstage_sidebar_placement_edit_url('settings'); ?>" class='opinionstage-blue-bordered-btn opinionstage-edit-settings <?php echo($first_time ? "disabled" : "")?>' target="_blank">
|
119 |
-
<div class="os-icon icon-os-common-settings"></div>
|
120 |
-
</a>
|
121 |
-
</div>
|
122 |
-
</div>
|
123 |
-
<?php } ?>
|
124 |
-
</div>
|
125 |
-
<?php
|
126 |
-
}
|
127 |
-
}
|
128 |
-
|
129 |
-
/*
|
130 |
-
* Register Sidebar Placement Widget
|
131 |
-
*/
|
132 |
-
function opinionstage_init_widget() {
|
133 |
-
register_widget('OpinionStageWidget');
|
134 |
-
opinionstage_add_stylesheet();
|
135 |
-
}
|
136 |
-
|
137 |
-
add_action('widgets_init', 'opinionstage_init_widget');
|
138 |
?>
|
1 |
+
<?php
|
2 |
+
// Sidebar widget class for embeding the Opinion Stage sidebar placement
|
3 |
+
class OpinionStageWidget extends WP_Widget {
|
4 |
+
function __construct() {
|
5 |
+
// register new widget
|
6 |
+
$widget_ops = array(
|
7 |
+
'classname' => 'opinionstage_widget',
|
8 |
+
'description' => __('Adds a highly engaging polls to your widget section.', OPINIONSTAGE_WIDGET_UNIQUE_ID)
|
9 |
+
);
|
10 |
+
parent::__construct(
|
11 |
+
'opinionstage_widget',
|
12 |
+
__( 'Opinion Stage Sidebar Widget', OPINIONSTAGE_WIDGET_UNIQUE_ID ),
|
13 |
+
$widget_ops
|
14 |
+
);
|
15 |
+
}
|
16 |
+
|
17 |
+
/*
|
18 |
+
* Returns the widget content - including the title and the sidebar placement content (once enabled)
|
19 |
+
*/
|
20 |
+
function widget($args, $instance) {
|
21 |
+
extract($args);
|
22 |
+
echo $before_widget;
|
23 |
+
$title = @$instance['title'];
|
24 |
+
$os_options = (array) get_option(OPINIONSTAGE_OPTIONS_KEY);
|
25 |
+
|
26 |
+
// Show the title once widget is enabled
|
27 |
+
if (!empty($title) && $os_options['sidebar_placement_active'] == 'true') echo $before_title . apply_filters('widget_title', $title) . $after_title;
|
28 |
+
|
29 |
+
// Add the placement shortcode once widget is enabled
|
30 |
+
if (!empty($os_options["sidebar_placement_id"]) && $os_options['sidebar_placement_active'] == 'true') {
|
31 |
+
echo opinionstage_create_placement_embed_code($os_options["sidebar_placement_id"]);
|
32 |
+
}
|
33 |
+
|
34 |
+
echo $after_widget;
|
35 |
+
}
|
36 |
+
|
37 |
+
/*
|
38 |
+
* Updates the widget settings (title and enabled flag)
|
39 |
+
*/
|
40 |
+
function update($new_instance, $old_instance) {
|
41 |
+
$instance = $old_instance;
|
42 |
+
$instance['title'] = strip_tags($new_instance['title']);
|
43 |
+
$instance['enabled'] = strip_tags($new_instance['enabled']);
|
44 |
+
$os_options = (array) get_option(OPINIONSTAGE_OPTIONS_KEY);
|
45 |
+
$os_options['sidebar_placement_active'] = ('1' == $instance['enabled']);
|
46 |
+
update_option(OPINIONSTAGE_OPTIONS_KEY, $os_options);
|
47 |
+
return $instance;
|
48 |
+
}
|
49 |
+
|
50 |
+
/*
|
51 |
+
* Generates the admin form for the widget.
|
52 |
+
*/
|
53 |
+
function form($instance) {
|
54 |
+
$os_options = (array) get_option(OPINIONSTAGE_OPTIONS_KEY);
|
55 |
+
$title = isset($instance['title']) ? esc_attr($instance['title']) : '';
|
56 |
+
$enabled = $os_options['sidebar_placement_active'] == 'true' ? '1' : '';
|
57 |
+
if (empty($os_options["uid"])) {
|
58 |
+
$first_time = true;
|
59 |
+
} else {
|
60 |
+
$first_time = false;
|
61 |
+
}
|
62 |
+
|
63 |
+
?>
|
64 |
+
<script type="text/javascript">
|
65 |
+
jQuery(document).ready(function($) {
|
66 |
+
var callbackURL = function() {
|
67 |
+
return "<?php echo $url = get_admin_url('', '', 'admin') . 'admin.php?page='.OPINIONSTAGE_WIDGET_UNIQUE_ID.'/opinionstage-callback.php' ?>";
|
68 |
+
};
|
69 |
+
$('.opinionstage-sidebar-widget').on('click', '.start-login', function(){
|
70 |
+
var emailInput = $('#os-email');
|
71 |
+
var email = $(emailInput).val();
|
72 |
+
if (email == emailInput.data('watermark')) {
|
73 |
+
email = "";
|
74 |
+
}
|
75 |
+
var new_location = "http://" + "<?php echo OPINIONSTAGE_LOGIN_PATH.'?callback=' ?>" + encodeURIComponent(callbackURL()) + "&email=" + email;
|
76 |
+
window.location = new_location;
|
77 |
+
});
|
78 |
+
|
79 |
+
$('.opinionstage-sidebar-widget').on('click', '.switch-email', function(){
|
80 |
+
var new_location = "http://" + "<?php echo OPINIONSTAGE_LOGIN_PATH.'?callback=' ?>" + encodeURIComponent(callbackURL());
|
81 |
+
window.location = new_location;
|
82 |
+
});
|
83 |
+
|
84 |
+
$('#os-email').keypress(function(e){
|
85 |
+
if (e.keyCode == 13) {
|
86 |
+
$('#os-start-login').click();
|
87 |
+
}
|
88 |
+
});
|
89 |
+
});
|
90 |
+
</script>
|
91 |
+
|
92 |
+
<div class="opinionstage-sidebar-widget">
|
93 |
+
<?php if($first_time) {?>
|
94 |
+
<p>Connect WordPress with Opinion Stage to enable the widget</p>
|
95 |
+
<div class="os-icon icon-os-poll-client"></div>
|
96 |
+
<input id="os-email" type="text" value="" class="watermark os-email" data-watermark="Enter Your Email"/>
|
97 |
+
<a href="javascript:void(0)" class="os-button start-login" id="os-start-login">Connect</a>
|
98 |
+
<?php } else { ?>
|
99 |
+
<div class="opinionstage-sidebar-connected">
|
100 |
+
<div class="os-icon icon-os-form-success"></div>
|
101 |
+
<div class="opinionstage-connected-info">
|
102 |
+
<div class="opinionstage-connected-title"><b>You are connected</b> to Opinion Stage with:</div>
|
103 |
+
<input id="os-email" type="text" disabled="disabled" value="<?php echo($os_options["email"]) ?>"/>
|
104 |
+
<a href="javascript:void(0)" class="switch-email" id="os-switch-email" >Switch Account</a>
|
105 |
+
</div>
|
106 |
+
</div>
|
107 |
+
<p>
|
108 |
+
<label for="<?php echo $this->get_field_id('title'); ?>"><?php _e('Title', OPINIONSTAGE_WIDGET_UNIQUE_ID); ?></label>
|
109 |
+
<input class="widefat" id="<?php echo $this->get_field_id('title'); ?>" name="<?php echo $this->get_field_name('title'); ?>" type="text" class="watermark" data-watermark="Enter the title here" value="<?php echo $title; ?>" />
|
110 |
+
</p>
|
111 |
+
<div class="opinionstage-sidebar-actions">
|
112 |
+
<div class="opinionstage-sidebar-enabled">
|
113 |
+
<input type="checkbox" id="<?php echo $this->get_field_id('enabled'); ?>" name="<?php echo $this->get_field_name('enabled'); ?>" value="1" <?php echo($enabled == '1' ? "checked" : "") ?> />
|
114 |
+
<label for="<?php echo $this->get_field_id('enabled'); ?>">Enabled</label>
|
115 |
+
</div>
|
116 |
+
<div class="opinionstage-sidebar-config">
|
117 |
+
<a href="<?php echo opinionstage_sidebar_placement_edit_url('content'); ?>" target="_blank" class='opinionstage-blue-bordered-btn'>EDIT CONTENT</a>
|
118 |
+
<a href="<?php echo opinionstage_sidebar_placement_edit_url('settings'); ?>" class='opinionstage-blue-bordered-btn opinionstage-edit-settings <?php echo($first_time ? "disabled" : "")?>' target="_blank">
|
119 |
+
<div class="os-icon icon-os-common-settings"></div>
|
120 |
+
</a>
|
121 |
+
</div>
|
122 |
+
</div>
|
123 |
+
<?php } ?>
|
124 |
+
</div>
|
125 |
+
<?php
|
126 |
+
}
|
127 |
+
}
|
128 |
+
|
129 |
+
/*
|
130 |
+
* Register Sidebar Placement Widget
|
131 |
+
*/
|
132 |
+
function opinionstage_init_widget() {
|
133 |
+
register_widget('OpinionStageWidget');
|
134 |
+
opinionstage_add_stylesheet();
|
135 |
+
}
|
136 |
+
|
137 |
+
add_action('widgets_init', 'opinionstage_init_widget');
|
138 |
?>
|
opinionstage_plugin.js
CHANGED
@@ -1,23 +1,23 @@
|
|
1 |
-
(function(){
|
2 |
-
jQuery(document).ready(function($) {
|
3 |
-
var handleWatermark = function(input){
|
4 |
-
if(input.val().trim() != "") {
|
5 |
-
input.removeClass('os-watermark');
|
6 |
-
} else {
|
7 |
-
input.val(input.data('watermark'));
|
8 |
-
input.addClass('os-watermark');
|
9 |
-
}
|
10 |
-
};
|
11 |
-
$('input#os-email.watermark').focus(function(){
|
12 |
-
var input = $(this);
|
13 |
-
if (input.data('watermark') == input.val()) {
|
14 |
-
input.val("");
|
15 |
-
input.removeClass('os-watermark');
|
16 |
-
}
|
17 |
-
}).each(function(){
|
18 |
-
handleWatermark($(this));
|
19 |
-
}).blur(function(){
|
20 |
-
handleWatermark($(this));
|
21 |
-
});
|
22 |
-
});
|
23 |
})();
|
1 |
+
(function(){
|
2 |
+
jQuery(document).ready(function($) {
|
3 |
+
var handleWatermark = function(input){
|
4 |
+
if(input.val().trim() != "") {
|
5 |
+
input.removeClass('os-watermark');
|
6 |
+
} else {
|
7 |
+
input.val(input.data('watermark'));
|
8 |
+
input.addClass('os-watermark');
|
9 |
+
}
|
10 |
+
};
|
11 |
+
$('input#os-email.watermark').focus(function(){
|
12 |
+
var input = $(this);
|
13 |
+
if (input.data('watermark') == input.val()) {
|
14 |
+
input.val("");
|
15 |
+
input.removeClass('os-watermark');
|
16 |
+
}
|
17 |
+
}).each(function(){
|
18 |
+
handleWatermark($(this));
|
19 |
+
}).blur(function(){
|
20 |
+
handleWatermark($(this));
|
21 |
+
});
|
22 |
+
});
|
23 |
})();
|
readme.txt
CHANGED
@@ -1,634 +1,638 @@
|
|
1 |
-
=== Poll, Survey, Quiz & Form by OpinionStage ===
|
2 |
-
Contributors: OpinionStage.com
|
3 |
-
Donate link:
|
4 |
-
Tags: poll plugin, create poll, create polls, quiz plugin, survey, form, survey plugin, form plugin, create quiz, create quizzes, trivia quiz, personality quiz, social poll, standard poll, responsive poll, multiple poll, head-to-head poll, popup poll, sidebar poll, article poll, poll section, do a poll, it poll, shared poll, custom poll, custom polls, premade polls, flash poll, html poll, online poll, online polls, page poll, poll, pol, poll builder, poll directory, poll widget, premade user polls, polling, Polling System, polls, post poll, user polls, voting polls, easy polls, gallery poll, gallery polls, wordpress poll, wordpress poll widget, WordPress polls, wppolls, yop poll, polldaddy, polldaddy polls, video poll, video polls, image poll, image polls, wp polls, questionnaire, quiz, quizzes, quizes, post survey, sidebar survey, survey, survey form, survey form builder, survey plugin, survey tool, survey widget, surveys, user survey, wordpress survey, wp survey, wpsurvey, vote, votes, voting, debate, feedback, list, lists, top 10 list, top 5 list, top 50 list, top 100 list, ranking list rating list, rate list, product list, social list, listicles, content marketing list, opinion, opinion stage, opinionstage, responsive list, resource list, resource list, listing, listing search, listings, product listings
|
5 |
-
|
6 |
-
|
7 |
-
Requires at least: 2.8
|
8 |
-
Tested up to: 4.5
|
9 |
-
Stable tag: trunk
|
10 |
-
|
11 |
-
Add a powerful poll, survey, quiz & form service to your site. Create a beatiful poll, survey, quiz or form.
|
12 |
-
|
13 |
-
== Description ==
|
14 |
-
|
15 |
-
The Opinion Stage poll, survey, quiz & form plug-in allows you to easily add a poll, quiz, survey or form to your website.
|
16 |
-
|
17 |
-
= Poll Examples: =
|
18 |
-
|
19 |
-
For poll examples, checkout the <a href="http://www.opinionstage.com/showcase?o=wp35e8" target="_blank">Poll Showcase.</a>
|
20 |
-
|
21 |
-
http://www.youtube.com/watch?v=P7xKNlWbk0s
|
22 |
-
|
23 |
-
= Quiz Example: =
|
24 |
-
|
25 |
-
For a quiz example, checkout this <a href="http://www.opinionstage.com/polldiscovery/can-we-guess-how-educated-you-are?o=wp35e8" target="_blank">Quiz.</a>
|
26 |
-
|
27 |
-
= Survey Example: =
|
28 |
-
|
29 |
-
For a Survey example, checkout this <a href="http://www.opinionstage.com/rsacks/help-us-improve-opinion-stage?o=wp35e8" target="_blank">Survey.</a>
|
30 |
-
|
31 |
-
= Form Example: =
|
32 |
-
|
33 |
-
For a Form example, checkout this <a href="http://www.opinionstage.com/assafparag/submit-email?o=wp35e8" target="_blank">Form.</a>
|
34 |
-
|
35 |
-
= Why Opinion Stage? =
|
36 |
-
|
37 |
-
* Discover opinions
|
38 |
-
* Boost enagement - poll, survey, quiz and form participation increases time-on-site, page views & shares
|
39 |
-
* Drive traffic from poll, survey, quiz and form shares in social networks
|
40 |
-
* Run contests and sweepstakes
|
41 |
-
* Generate revenue by integrating ads in the poll, survey, quiz and form
|
42 |
-
* Gather contact info such as emails & social profiles, while your audience participates in the poll, survey, quiz and form
|
43 |
-
* Get up and going with your first poll, survey, quiz and form in minutes" -> "Get up and going with your first poll, survey, quiz and form in minutes, creating polls, surveys, quizzes and forms with the service is highly intuitive and help is avialable when needed
|
44 |
-
|
45 |
-
= Main Poll Features: =
|
46 |
-
|
47 |
-
* Manage all your WordPress polls from one dashboard
|
48 |
-
* Poll your site visitors using their social network identities or anonymously
|
49 |
-
* View the full poll participant list social profiles
|
50 |
-
* Filter the poll participant list according to poll side votes
|
51 |
-
* Filter the poll results using social & demographic filters. You can filter the poll results by social network belonging, gender, location, time-frame and more
|
52 |
-
* Get the poll question & poll votes shared in social networks, driving social traffic to your poll and site
|
53 |
-
* Set the details of the poll social shares (e.g. poll title text, poll main image image & poll share displayed in the social share) to optimize the poll share for improved visibility and click rates
|
54 |
-
* Customize the poll feature to match your needs (e.g. show/don't show number of poll votes, show poll results before / after voting, order poll sides by most poll votes or as configured, etc)
|
55 |
-
* Customize the poll size, poll font, poll colour theme yourself or select from pre-defined poll styles and poll sizes.
|
56 |
-
* Embed the polls in different locations. You can add a sidebar poll, an article poll, or polls in a poll section on your site
|
57 |
-
* Prevent repeat voting in the poll. Use cookie based, IP based and social profile based methods to block repeat voting in your poll
|
58 |
-
* Redirect voters after they vote in the poll. You can configure to redirect the voters, based on their vote in the poll
|
59 |
-
* Set an expiry date for the poll, you can configure the time in which the poll will be automatically closed. You can also always manually open or close the poll
|
60 |
-
* Set a correct answer in the poll, to create a trivia poll
|
61 |
-
* Add a branded logo to your poll
|
62 |
-
* Add an email collection form to the poll, so that users are requested to leave their email before viewing the poll results
|
63 |
-
* View detailed statistics of the poll, including the users that voted on the poll, the time stamp of the poll votes, graphs that display the poll results and more
|
64 |
-
* ... much more!
|
65 |
-
|
66 |
-
= Main Poll Benefits: =
|
67 |
-
|
68 |
-
* Discover opinions & people - discover opinions & the people behind them. You can view the social profiles of the public voters and learn about the opinions of your audience using aggregated poll reports
|
69 |
-
* Engage your audience - opinion polls are one of the most engaging types of content. Opinion Stage’s social layer further increases the poll engagement by allowing voters to discover who the participants are, view the poll results by various filters and more
|
70 |
-
* Drive traffic from social networks to your poll and site - after voting, participants are automatically prompted to share their votes in the various social networks, driving new traffic from social networks to your site
|
71 |
-
* Research the poll results and gain insights - Filter poll results by demographic & social attributes such as gender, location, social network belonging, time frame, and more. Learn how effective your polls are by discovering their level of engagement, how many of the poll votes are shared and how much traffic the polls generate
|
72 |
-
* Run profile based competitions & elections - conducting competitions & elections using social profiles, is a great way to achieve more authentic voting. Competitions become much more appealing, and tend to generate many social shares that drive traffic from social networks to your site
|
73 |
-
* Design polls that fit to your site - opinion Stage includes an online poll design studio that lets you design polls that perfectly fit into your site. You can set the poll size, font, colors, logo and more
|
74 |
-
* Polls works seamlessly on all platforms - Opinion Stage uses responsive design techniques to fully support all platforms & screen sizes, including desktops, tablets and mobile devices. Reach your target audience wherever they are
|
75 |
-
* Easy content creation - creating polls is an easy way to produce engaging and relevant content. Deploy your first polls in minutes and easily manage all your polls from a simple and intuitive dashboard
|
76 |
-
|
77 |
-
= Main Quiz Features: =
|
78 |
-
|
79 |
-
* Manage all your WordPress quizzes from one dashboard
|
80 |
-
* Get the quiz shared in social networks, driving social traffic to your quiz and site
|
81 |
-
* Customize the quiz features to match your needs
|
82 |
-
* Customize the quiz size, font, colors
|
83 |
-
* Create different quiz types, such as personality quiz and trivia quiz
|
84 |
-
* Quiz repository that demonstrates quiz best practices, including quiz examples, such as trivia quiz examples and personality quiz examples
|
85 |
-
* Discover top quizzes, from a list of quizzes hand-picked by the Opinion Stage editors
|
86 |
-
* Various customizations that will make your quizzes stand out and make the quizzes perfectly fit to your site
|
87 |
-
|
88 |
-
= Main Quiz Benefits: =
|
89 |
-
|
90 |
-
* Engage your audience - quiz tools are one of the most engaging types of content
|
91 |
-
* Drive traffic from social networks to your quiz and site - after completing the quiz, participants are prompted to share the quiz results in the various social networks, driving new traffic from social networks to the quiz on your site
|
92 |
-
* Research the quiz results and gain insights
|
93 |
-
* Design the quiz so that it fits to your site
|
94 |
-
* The Quiz works seamlessly on all platforms - Opinion Stage uses responsive design techniques to fully support all platforms & screen sizes, including desktops, tablets and mobile devices
|
95 |
-
* Easy quiz creation - creating a quiz is an easy way to produce engaging and relevant content. Deploy your first quiz in minutes and easily manage all your quizzes from a simple and intuitive quiz dashboard
|
96 |
-
* Add intro media such as image or video to the quiz
|
97 |
-
* Embed your quiz on your site or use the Opinion Stage quiz landing page
|
98 |
-
|
99 |
-
= Main Survey Features: =
|
100 |
-
|
101 |
-
* Survey as many users as you like
|
102 |
-
* Survey users with various survey question types
|
103 |
-
* Surveys includes title, text, image & social network integrations
|
104 |
-
* Add images & videos to the Survey
|
105 |
-
* View the survey entries in the survey stats screen
|
106 |
-
* Export the Survey results
|
107 |
-
* Embed the Survey anywhere
|
108 |
-
* Share Surveys in Facebook, Twitter & Google+
|
109 |
-
|
110 |
-
= Main Form Features: =
|
111 |
-
|
112 |
-
* Add as many fields to the form as you like
|
113 |
-
* Forms includes title, text, image & social network integrations
|
114 |
-
* Add images to the form
|
115 |
-
* View the form entries in the form stats screen
|
116 |
-
* Export the form results
|
117 |
-
* Embed the form anywhere
|
118 |
-
* Share Forms in Facebook, Twitter & Google+
|
119 |
-
|
120 |
-
|
121 |
-
= Language support =
|
122 |
-
|
123 |
-
Opinion Stage supports over 42 languages, missing a language? Let us know!
|
124 |
-
|
125 |
-
= About Opinion Stage: =
|
126 |
-
|
127 |
-
Opinion Stage offers web sites a highly engaging poll, survey, quiz & form solution. For more details on Opinion Stage's poll, survey, quiz & Form solutions, visit <a href="http://www.opinionstage.com?o=wp35e8" target="_blank">the Opinion Stage site.</a>
|
128 |
-
|
129 |
-
== Installation ==
|
130 |
-
|
131 |
-
1. Upload the "poll, survey, quiz & form by Opinion Stage" plug-in to your blog (or search for it) and then install the "poll, survey, quiz & form by Opinion Stage" plugin on your plug-ins page
|
132 |
-
2. Active it to start creating a poll, survey, quiz or form from the polls, survey, quiz & form creation dashboard
|
133 |
-
|
134 |
-
== Frequently Asked Questions ==
|
135 |
-
|
136 |
-
= What sets Opinion Stage online polls apart from other online polling solutions? =
|
137 |
-
|
138 |
-
While Opinion Stage offers all the standard features expected from an advanced and professional polling solutions, Opinion Stage also offers some unique functionality which you won't find in most other solutions. This includes:
|
139 |
-
|
140 |
-
1. Generate revenue from your polling service (mostly relevant for high volume sites) by integrating different types of advertisements
|
141 |
-
2. Get your polls shared in the popular social networks driving traffic back to your site
|
142 |
-
3. An advanced reporting dashboard that let's you discover the engagement level of your polls, how many people shared them in social networks and the traffic that generated for your site
|
143 |
-
4. A lead generation component, that lets you gather emails and social network profiles
|
144 |
-
5. A social voting module that lets you require or make it optional to vote with a social profile. Using the module, you can filter the poll results by social, demographic and behavioral filters including geo location, time, gender, social network and more
|
145 |
-
6. A special module for using the online polls for running elections, contests and sweepstakes
|
146 |
-
7. Advanced customizations of the polls including setting the size, color, font, and more attributes so that the poll fits perfectly into your site
|
147 |
-
8. Advanced integrations with images & videos to make your polls appealing, beautiful and more informative
|
148 |
-
9. Poll sets that let you group many polls together, letting your
|
149 |
-
10. Placements let you easily add polls to your sidebar, to an article section or as an auto-engage popup displayed on your site
|
150 |
-
And many more...
|
151 |
-
|
152 |
-
= How do I add a poll, quiz, survey or form to my post/page? =
|
153 |
-
|
154 |
-
1. Create a new poll, quiz, survey or form from the poll, quiz, survey or form
|
155 |
-
2. After the poll, quiz, survey or form was created, click "Embed" link and then click the "WordPress" tab
|
156 |
-
3. Copy the WordPress poll, quiz, survey or form embed code and paste it into the blog post/page
|
157 |
-
|
158 |
-
= Can I embed a poll, quiz, survey or form manually? =
|
159 |
-
|
160 |
-
Yes, just post the wordpress shortcode into any post/page
|
161 |
-
|
162 |
-
= How do users share the poll, quiz, survey or form in social networks? =
|
163 |
-
|
164 |
-
Users can either share the poll, quiz, survey or form question from the social (e.g.Users can either share the poll, quiz, survey or form by clicking on the social (e.g. Facebook, Twitter & Google+) sharing or by sharing their poll/vote directly in the social sharing dialog that is displayed automatically after they vote in the poll or participate in the quiz, survey or form. Opinion Stage never shares anything on the users' behalf without getting explicit permission for it.
|
165 |
-
|
166 |
-
= What types of online polls do you support? =
|
167 |
-
|
168 |
-
We support both regular multiple-sided polls and a special head-to-head poll flavor (for the 2-sided polls)
|
169 |
-
|
170 |
-
= What is a social poll? =
|
171 |
-
|
172 |
-
Opinion Stage supports both standard annoymous polls and social polls which are polls in which you need to use your social profile for voting. You can configure the polls, so that the polls voting is anonymous, the polls voting requires a social profile for voting or the polls voting can either be done using a social profile or anonymously.
|
173 |
-
|
174 |
-
= How can I block cheat voting in the polls? =
|
175 |
-
|
176 |
-
The polls include 3 mechanisms to prevent from cheat voting in the polls. You can block multiple votes in the poll by Cookies, you can blick multiple votes in the poll by IP and you can block multiple voting in the polls by requiring a social profile to vote
|
177 |
-
|
178 |
-
= What polls settings do you support =
|
179 |
-
|
180 |
-
Opinion Stagte supports many poll settings. You can configure look & feel polls settings, setting the polls font, the polls width, the polls colors and more. You can configure the polls general settings, such as when the poll results are displayed, if the poll result is displayed in number or % or both, in what order the poll answers are displayed, and more. You can configure the poll social settings, such as whether to add to the poll facebook comments, attach social sharing buttons to the polls, and other poll social settings.You can also configure the poll language. Finally, you can configure advanced poll setings, such as poll election settings, collecting leads from the poll respondants, redircting after the poll vote and more
|
181 |
-
|
182 |
-
= What types of quizzes do you support? =
|
183 |
-
|
184 |
-
You can select between a trivia quiz and an outcome quiz, we plan to offer a few more quiz types in the future. If there is a quiz type you are missing, please notify us!
|
185 |
-
|
186 |
-
= Do you offer ready-made polls, quizzes, surveys or form? =
|
187 |
-
|
188 |
-
Yes - our editors hand-pick polls, quizzes, form and surveys to showcase as examples. You can browse the Opinion discover site and discover these polls, quizzes. surveys and forms.
|
189 |
-
|
190 |
-
|
191 |
-
== Screenshots ==
|
192 |
-
|
193 |
-
1. **Multiple-choice poll** - example of a multiple-choice layout poll, the poll include a lot of features including, selecting if users can select one side or more in the poll, allowing users to add their own answer to the poll, different methods of organizing the poll side order, setting the poll color, setting the poll font, preventing repeat voting in the poll, voting with a social profile in the poll, setting the poll result display, setting an expiry date for the poll, alignment of the poll title, setting the poll width, setting poll sharing bar, and much more
|
194 |
-
2. **Head-to-head poll** - example of a head-to-head layout poll
|
195 |
-
3. **Trivia quiz** - example of a Trivia quiz result. Set the correct answer in each of the quiz questions, and following users answers to the quiz, give them a quiz result with the number of correct quiz answers. Trivia quizzes are one of the most engaging type of content.
|
196 |
-
4. **Personality quiz** - example of a personality quiz. Using a personality quiz, you can ask you users different quiz questions, and based on their answers to the quiz questions, offer them different quiz results. Personality quizzes usually produce a lot of social shares.
|
197 |
-
5. **Content creation dashboard** - example of the Opinion Stage interactive content (e.g. poll, quiz, list) creation dashboard
|
198 |
-
|
199 |
-
== Other Notes ==
|
200 |
-
|
201 |
-
The Opinion Stage poll, survey, quiz and form plugin lets you display polls, quizzes, surveys & forms on your WordPress.org site
|
202 |
-
|
203 |
-
Running polls, quizzes, surveys & forms on your site let's you increase engagement, drive more traffic to your blog, and learn more about what your readers think and their opinions
|
204 |
-
|
205 |
-
To access the Opinion Stage Poll, quiz, survey & form WordPress dashboard:
|
206 |
-
|
207 |
-
Click on poll, quiz, survey and form link on the left-hand sidebar of your WordPress admin panel
|
208 |
-
|
209 |
-
To connect the poll, quiz, survey and form plugin with your Opinion Stage account:
|
210 |
-
|
211 |
-
1. In the main poll, survey, quiz and form screen, enter your Opinion Stage account’s email address and click “Connect” at the top of the widget page. (After connecting the poll, survey, quiz & form plugin to an account once, you can click “Switch” in the same place to associate the poll, survey, quiz and form plugin with a different Opinion Stage account.)
|
212 |
-
|
213 |
-
2. You will be redirected to a log-in screen on the Opinion Stage. Enter your credentials to connect your account. You will be redirected back to the widget page afterwards.
|
214 |
-
|
215 |
-
If you haven’t yet created an account on Opinion Stage, click the Signup at the bottom right corner to create one. After completing signup, you will be directed to the poll, survey, quiz and form creation dashboard, where you can start creating your polls, surveys, quizzes and forms.
|
216 |
-
|
217 |
-
To add a poll, survey, quiz, or form to any post/page:
|
218 |
-
|
219 |
-
1. Create your content (poll, survey, quiz or form) on your content dashboard
|
220 |
-
2. After the poll, quiz, survey or form is created, click the Embed link in the poll, survey, quiz or form creation form (you can also find this link in the content Dashboard)
|
221 |
-
3. From the poll, quiz, survey or form, click “Embed” dialog, click the “WordPress” tab and copy the poll, survey, quiz or form shortcode
|
222 |
-
4. Paste the poll, quiz, survey or form shortcode in any post/page
|
223 |
-
|
224 |
-
To add a poll, quiz, survey or form to a popup placement:
|
225 |
-
|
226 |
-
In your Opinion Stage dashboard on WordPress, under placements, switch “Popup” on and click configure.
|
227 |
-
|
228 |
-
Under “fill your placement,” select the poll, quiz, survey or form you would like presented in your popup.
|
229 |
-
|
230 |
-
To add a poll, quiz, survey or form to an article section placement:
|
231 |
-
|
232 |
-
In your Opinion Stage dashboard on WordPress, under placements, switch on “Article Section” and click configure
|
233 |
-
|
234 |
-
Under fill placement, select the poll, survey, quiz or form you would like presented in your article section.
|
235 |
-
|
236 |
-
To add a poll, quiz, survey or form to a sidebar placement:
|
237 |
-
|
238 |
-
1. In your Opinion Stage dashboard on WordPress, under placements, switch on “Sidebar Widget”
|
239 |
-
|
240 |
-
2. Select “Configure” next to Sidebar Widgets to be redirected to the Widgets menu
|
241 |
-
|
242 |
-
3. Under “Available Widgets” look for “Opinion Stage Sidebar Widget“
|
243 |
-
|
244 |
-
4. Click and drag that widget on to one of the options on the right-hand side to determine where your to place your interactive content
|
245 |
-
|
246 |
-
5. Open the “Opinion Stage Sidebar Widget” for configuration
|
247 |
-
|
248 |
-
a. “Title” adds a title to your sidebar poll. You can check or un-check the “Enabled” box to toggle this feature.
|
249 |
-
b. Clicking “Configure content” will redirect you to your Opinion Stage sidebar placement page. Here you can select which poll, quiz, survey or form to display in the sidebar.
|
250 |
-
|
251 |
-
Type of polls you can create
|
252 |
-
|
253 |
-
You can create many different types of polls: image poll, video poll, head-to-head poll, multiple-sided poll, thumbnail poll, fly-out poll, popup poll, feedback poll, gallery poll, opinion poll, survey poll, poll set, and more
|
254 |
-
Poll features
|
255 |
-
|
256 |
-
The poll supports the following features: setting the poll language, poll look & feel, poll title alignment, poll fixed width, poll auto-set width, poll theme color, poll font, poll voting type, poll voting restrictions (block poll vote by cookie, block vote poll by IP, block poll vote by social profile login, allow repeat voting), poll share in facebook, poll share in twitter, poll share in google+, poll redirect after vote, gathering emails after voting in the poll, display poll results only after voting in poll, display poll results at all times, don't display poll results, poll result format in % only, poll result format in both number & percent, allow users to change vote after voting in poll, display order of poll results in different methods, closing the poll at a specified time, add facebook comments to the poll, add a branded logo to the poll, set poll defaults, poll engagement stats, poll sharing stats, poll traffic growth stats, poll gender stats, poll geo location stats, poll time-span stats, poll public/private stats, poll social network stats, poll stats in pie display, poll stats in bar display
|
257 |
-
|
258 |
-
Type of quizzes you can create
|
259 |
-
|
260 |
-
You can create many different types of quizzes: Trivia quiz, personality quiz, image quiz, video quiz, fly-out quiz, popup quiz and more
|
261 |
-
|
262 |
-
|
263 |
-
== Upgrade Notice ==
|
264 |
-
|
265 |
-
N/A
|
266 |
-
|
267 |
-
== Changelog ==
|
268 |
-
= Poll, Survey, Quiz & Form Version 16.
|
269 |
-
*
|
270 |
-
= Poll, Survey, Quiz & Form Version
|
271 |
-
*
|
272 |
-
= Poll, Survey, Quiz & Form Version
|
273 |
-
*
|
274 |
-
= Poll, Survey, Quiz & Form Version 15.
|
275 |
-
*
|
276 |
-
= Poll, Survey, Quiz & Form Version 15.
|
277 |
-
*
|
278 |
-
= Poll, Survey, Quiz & Form Version 15.
|
279 |
-
*
|
280 |
-
= Poll, Survey, Quiz & Form Version 15.
|
281 |
-
* Added
|
282 |
-
= Poll, Survey, Quiz & Form Version 15.
|
283 |
-
*
|
284 |
-
= Poll, Survey, Quiz & Form Version 15.
|
285 |
-
*
|
286 |
-
= Poll, Survey, Quiz & Form Version 15.
|
287 |
-
*
|
288 |
-
= Poll, Survey, Quiz & Form Version 15.
|
289 |
-
* Various optimizations
|
290 |
-
= Poll, Survey, Quiz & Form Version
|
291 |
-
*
|
292 |
-
= Poll, Survey, Quiz & Form Version
|
293 |
-
*
|
294 |
-
|
295 |
-
* Added
|
296 |
-
= Poll, Survey, Quiz & Form Version 14.
|
297 |
-
*
|
298 |
-
|
299 |
-
*
|
300 |
-
= Poll, Survey, Quiz & Form Version 14.
|
301 |
-
*
|
302 |
-
= Poll, Survey, Quiz & Form Version 14.
|
303 |
-
*
|
304 |
-
|
305 |
-
*
|
306 |
-
= Poll, Survey, Quiz & Form Version 14.
|
307 |
-
*
|
308 |
-
|
309 |
-
*
|
310 |
-
= Poll, Survey, Quiz & Form Version 14.
|
311 |
-
*
|
312 |
-
= Poll, Survey, Quiz & Form Version 14.
|
313 |
-
*
|
314 |
-
|
315 |
-
|
316 |
-
|
317 |
-
*
|
318 |
-
|
319 |
-
|
320 |
-
* Added
|
321 |
-
|
322 |
-
|
323 |
-
|
324 |
-
* Added
|
325 |
-
= Poll, Survey, Quiz & Form Version 13.
|
326 |
-
*
|
327 |
-
= Poll, Survey, Quiz & Form Version 13.
|
328 |
-
* Added
|
329 |
-
= Poll, Survey, Quiz & Form Version 13.
|
330 |
-
*
|
331 |
-
|
332 |
-
|
333 |
-
|
334 |
-
* Trivia Quiz
|
335 |
-
|
336 |
-
|
337 |
-
|
338 |
-
*
|
339 |
-
= Poll, Survey, Quiz & Form Version
|
340 |
-
*
|
341 |
-
|
342 |
-
|
343 |
-
|
344 |
-
|
345 |
-
*
|
346 |
-
|
347 |
-
*
|
348 |
-
= Poll, Survey, Quiz & Form Version 12.
|
349 |
-
*
|
350 |
-
*
|
351 |
-
|
352 |
-
|
353 |
-
*
|
354 |
-
|
355 |
-
|
356 |
-
|
357 |
-
* Added
|
358 |
-
= Poll, Survey, Quiz & Form Version 12.
|
359 |
-
* Added
|
360 |
-
|
361 |
-
*
|
362 |
-
= Poll, Survey, Quiz & Form Version 12.
|
363 |
-
*
|
364 |
-
|
365 |
-
*
|
366 |
-
|
367 |
-
|
368 |
-
|
369 |
-
|
370 |
-
*
|
371 |
-
= Poll, Survey, Quiz & Form Version 11.
|
372 |
-
*
|
373 |
-
= Poll, Survey, Quiz & Form Version 11.
|
374 |
-
*
|
375 |
-
= Poll, Survey, Quiz & Form Version 11.
|
376 |
-
*
|
377 |
-
= Poll, Survey, Quiz & Form Version 11.
|
378 |
-
*
|
379 |
-
= Poll, Survey, Quiz & Form Version 11.
|
380 |
-
*
|
381 |
-
= Poll, Survey, Quiz & Form Version 11.
|
382 |
-
*
|
383 |
-
= Poll, Survey, Quiz & Form Version 11.
|
384 |
-
*
|
385 |
-
= Poll, Survey, Quiz & Form Version 11.
|
386 |
-
*
|
387 |
-
= Poll, Survey, Quiz & Form Version
|
388 |
-
*
|
389 |
-
= Poll, Survey, Quiz & Form Version
|
390 |
-
*
|
391 |
-
= Poll, Survey, Quiz & Form Version 10.
|
392 |
-
*
|
393 |
-
= Poll, Survey, Quiz & Form Version 10.
|
394 |
-
*
|
395 |
-
= Poll, Survey, Quiz & Form Version 10.
|
396 |
-
*
|
397 |
-
= Poll, Survey, Quiz & Form Version 10.
|
398 |
-
*
|
399 |
-
|
400 |
-
*
|
401 |
-
|
402 |
-
*
|
403 |
-
= Poll, Survey, Quiz & Form Version 10.
|
404 |
-
*
|
405 |
-
= Poll, Survey, Quiz & Form Version 10.
|
406 |
-
*
|
407 |
-
= Poll, Survey, Quiz & Form Version
|
408 |
-
*
|
409 |
-
= Poll, Survey, Quiz & Form Version
|
410 |
-
*
|
411 |
-
= Poll, Survey, Quiz & Form Version 9.
|
412 |
-
*
|
413 |
-
= Poll, Survey, Quiz & Form Version 9.
|
414 |
-
*
|
415 |
-
= Poll, Survey, Quiz & Form Version 9.
|
416 |
-
*
|
417 |
-
= Poll, Survey, Quiz & Form Version 9.
|
418 |
-
*
|
419 |
-
|
420 |
-
|
421 |
-
|
422 |
-
*
|
423 |
-
|
424 |
-
|
425 |
-
* Support
|
426 |
-
|
427 |
-
|
428 |
-
*
|
429 |
-
|
430 |
-
|
431 |
-
*
|
432 |
-
|
433 |
-
|
434 |
-
*
|
435 |
-
|
436 |
-
|
437 |
-
*
|
438 |
-
|
439 |
-
|
440 |
-
*
|
441 |
-
|
442 |
-
|
443 |
-
*
|
444 |
-
|
445 |
-
|
446 |
-
*
|
447 |
-
|
448 |
-
|
449 |
-
*
|
450 |
-
|
451 |
-
|
452 |
-
*
|
453 |
-
|
454 |
-
|
455 |
-
*
|
456 |
-
*
|
457 |
-
= Poll, Survey, Quiz & Form Version 8.
|
458 |
-
*
|
459 |
-
*
|
460 |
-
*
|
461 |
-
= Poll, Survey, Quiz & Form Version 8.
|
462 |
-
*
|
463 |
-
|
464 |
-
*
|
465 |
-
|
466 |
-
|
467 |
-
|
468 |
-
|
469 |
-
*
|
470 |
-
= Poll, Survey, Quiz & Form Version 7.
|
471 |
-
*
|
472 |
-
|
473 |
-
|
474 |
-
|
475 |
-
|
476 |
-
*
|
477 |
-
= Poll, Survey, Quiz & Form Version 7.
|
478 |
-
*
|
479 |
-
= Poll, Survey, Quiz & Form Version 7.
|
480 |
-
*
|
481 |
-
= Poll, Survey, Quiz & Form Version 7.
|
482 |
-
*
|
483 |
-
= Poll, Survey, Quiz & Form Version 7.
|
484 |
-
*
|
485 |
-
= Poll, Survey, Quiz & Form Version
|
486 |
-
*
|
487 |
-
|
488 |
-
*
|
489 |
-
= Poll, Survey, Quiz & Form Version 6.
|
490 |
-
*
|
491 |
-
*
|
492 |
-
* Fix
|
493 |
-
= Poll, Survey, Quiz & Form Version 6.
|
494 |
-
*
|
495 |
-
*
|
496 |
-
|
497 |
-
|
498 |
-
*
|
499 |
-
|
500 |
-
|
501 |
-
|
502 |
-
*
|
503 |
-
|
504 |
-
|
505 |
-
|
506 |
-
* New
|
507 |
-
|
508 |
-
|
509 |
-
* New
|
510 |
-
|
511 |
-
|
512 |
-
* Poll
|
513 |
-
|
514 |
-
|
515 |
-
|
516 |
-
*
|
517 |
-
= Poll, Survey, Quiz & Form Version
|
518 |
-
* Added
|
519 |
-
|
520 |
-
*
|
521 |
-
= Poll, Survey, Quiz & Form Version 5.
|
522 |
-
* Added
|
523 |
-
|
524 |
-
*
|
525 |
-
= Poll, Survey, Quiz & Form Version 5.
|
526 |
-
*
|
527 |
-
|
528 |
-
|
529 |
-
|
530 |
-
|
531 |
-
*
|
532 |
-
|
533 |
-
|
534 |
-
|
535 |
-
*
|
536 |
-
|
537 |
-
|
538 |
-
*
|
539 |
-
|
540 |
-
|
541 |
-
*
|
542 |
-
*
|
543 |
-
|
544 |
-
|
545 |
-
*
|
546 |
-
*
|
547 |
-
|
548 |
-
|
549 |
-
|
550 |
-
*
|
551 |
-
|
552 |
-
*
|
553 |
-
= Poll, Survey, Quiz & Form Version 4.
|
554 |
-
*
|
555 |
-
*
|
556 |
-
*
|
557 |
-
= Poll, Survey, Quiz & Form Version 4.5.
|
558 |
-
*
|
559 |
-
*
|
560 |
-
*
|
561 |
-
|
562 |
-
|
563 |
-
*
|
564 |
-
*
|
565 |
-
|
566 |
-
|
567 |
-
*
|
568 |
-
*
|
569 |
-
|
570 |
-
*
|
571 |
-
|
572 |
-
*
|
573 |
-
*
|
574 |
-
|
575 |
-
|
576 |
-
*
|
577 |
-
|
578 |
-
|
579 |
-
|
580 |
-
*
|
581 |
-
|
582 |
-
*
|
583 |
-
= Poll, Survey, Quiz & Form Version 3.
|
584 |
-
*
|
585 |
-
|
586 |
-
*
|
587 |
-
= Poll, Survey, Quiz & Form Version
|
588 |
-
*
|
589 |
-
|
590 |
-
*
|
591 |
-
= Poll, Survey, Quiz & Form Version 2.
|
592 |
-
*
|
593 |
-
* Additional
|
594 |
-
|
595 |
-
|
596 |
-
*
|
597 |
-
|
598 |
-
|
599 |
-
|
600 |
-
*
|
601 |
-
|
602 |
-
*
|
603 |
-
= Poll, Survey, Quiz & Form Version 2.
|
604 |
-
*
|
605 |
-
*
|
606 |
-
*
|
607 |
-
= Poll, Survey, Quiz & Form Version 2.
|
608 |
-
*
|
609 |
-
*
|
610 |
-
*
|
611 |
-
= Poll, Survey, Quiz & Form Version 2.
|
612 |
-
* Polls are now
|
613 |
-
*
|
614 |
-
*
|
615 |
-
|
616 |
-
*
|
617 |
-
*
|
618 |
-
|
619 |
-
*
|
620 |
-
*
|
621 |
-
*
|
622 |
-
= Poll, Survey, Quiz & Form Version
|
623 |
-
*
|
624 |
-
*
|
625 |
-
*
|
626 |
-
= Poll, Survey, Quiz & Form Version 1.
|
627 |
-
*
|
628 |
-
*
|
629 |
-
*
|
630 |
-
|
631 |
-
|
632 |
-
*
|
633 |
-
|
|
|
|
|
|
|
|
|
634 |
* First social poll version
|
1 |
+
=== Poll, Survey, Quiz & Form by OpinionStage ===
|
2 |
+
Contributors: OpinionStage.com
|
3 |
+
Donate link:
|
4 |
+
Tags: poll plugin, create poll, create polls, quiz plugin, survey plugin, form, survey plugin, form plugin, create quiz, create quizzes, trivia quiz, personality quiz, social poll, standard poll, responsive poll, multiple poll, head-to-head poll, popup poll, sidebar poll, article poll, poll section, do a poll, it poll, shared poll, custom poll, custom polls, premade polls, flash poll, html poll, online poll, online polls, page poll, poll, pol, poll builder, poll directory, poll widget, premade user polls, polling, Polling System, polls, post poll, user polls, voting polls, easy polls, gallery poll, gallery polls, wordpress poll, wordpress poll widget, WordPress polls, wppolls, yop poll, polldaddy, polldaddy polls, video poll, video polls, image poll, image polls, wp polls, questionnaire, quiz, quizzes, quizes, post survey, sidebar survey, survey, survey form, survey form builder, survey plugin, survey tool, survey widget, surveys, user survey, wordpress survey, wp survey, wpsurvey, vote, votes, voting, debate, feedback, list, lists, top 10 list, top 5 list, top 50 list, top 100 list, ranking list rating list, rate list, product list, social list, listicles, content marketing list, opinion, opinion stage, opinionstage, responsive list, resource list, resource list, listing, listing search, listings, product listings
|
5 |
+
|
6 |
+
|
7 |
+
Requires at least: 2.8
|
8 |
+
Tested up to: 4.5
|
9 |
+
Stable tag: trunk
|
10 |
+
|
11 |
+
Add a powerful poll, survey, quiz & form service to your site. Create a beatiful poll, survey, quiz or form.
|
12 |
+
|
13 |
+
== Description ==
|
14 |
+
|
15 |
+
The Opinion Stage poll, survey, quiz & form plug-in allows you to easily add a poll, quiz, survey or form to your website.
|
16 |
+
|
17 |
+
= Poll Examples: =
|
18 |
+
|
19 |
+
For poll examples, checkout the <a href="http://www.opinionstage.com/showcase?o=wp35e8" target="_blank">Poll Showcase.</a>
|
20 |
+
|
21 |
+
http://www.youtube.com/watch?v=P7xKNlWbk0s
|
22 |
+
|
23 |
+
= Quiz Example: =
|
24 |
+
|
25 |
+
For a quiz example, checkout this <a href="http://www.opinionstage.com/polldiscovery/can-we-guess-how-educated-you-are?o=wp35e8" target="_blank">Quiz.</a>
|
26 |
+
|
27 |
+
= Survey Example: =
|
28 |
+
|
29 |
+
For a Survey example, checkout this <a href="http://www.opinionstage.com/rsacks/help-us-improve-opinion-stage?o=wp35e8" target="_blank">Survey.</a>
|
30 |
+
|
31 |
+
= Form Example: =
|
32 |
+
|
33 |
+
For a Form example, checkout this <a href="http://www.opinionstage.com/assafparag/submit-email?o=wp35e8" target="_blank">Form.</a>
|
34 |
+
|
35 |
+
= Why Opinion Stage? =
|
36 |
+
|
37 |
+
* Discover opinions
|
38 |
+
* Boost enagement - poll, survey, quiz and form participation increases time-on-site, page views & shares
|
39 |
+
* Drive traffic from poll, survey, quiz and form shares in social networks
|
40 |
+
* Run contests and sweepstakes
|
41 |
+
* Generate revenue by integrating ads in the poll, survey, quiz and form
|
42 |
+
* Gather contact info such as emails & social profiles, while your audience participates in the poll, survey, quiz and form
|
43 |
+
* Get up and going with your first poll, survey, quiz and form in minutes" -> "Get up and going with your first poll, survey, quiz and form in minutes, creating polls, surveys, quizzes and forms with the service is highly intuitive and help is avialable when needed
|
44 |
+
|
45 |
+
= Main Poll Features: =
|
46 |
+
|
47 |
+
* Manage all your WordPress polls from one dashboard
|
48 |
+
* Poll your site visitors using their social network identities or anonymously
|
49 |
+
* View the full poll participant list social profiles
|
50 |
+
* Filter the poll participant list according to poll side votes
|
51 |
+
* Filter the poll results using social & demographic filters. You can filter the poll results by social network belonging, gender, location, time-frame and more
|
52 |
+
* Get the poll question & poll votes shared in social networks, driving social traffic to your poll and site
|
53 |
+
* Set the details of the poll social shares (e.g. poll title text, poll main image image & poll share displayed in the social share) to optimize the poll share for improved visibility and click rates
|
54 |
+
* Customize the poll feature to match your needs (e.g. show/don't show number of poll votes, show poll results before / after voting, order poll sides by most poll votes or as configured, etc)
|
55 |
+
* Customize the poll size, poll font, poll colour theme yourself or select from pre-defined poll styles and poll sizes.
|
56 |
+
* Embed the polls in different locations. You can add a sidebar poll, an article poll, or polls in a poll section on your site
|
57 |
+
* Prevent repeat voting in the poll. Use cookie based, IP based and social profile based methods to block repeat voting in your poll
|
58 |
+
* Redirect voters after they vote in the poll. You can configure to redirect the voters, based on their vote in the poll
|
59 |
+
* Set an expiry date for the poll, you can configure the time in which the poll will be automatically closed. You can also always manually open or close the poll
|
60 |
+
* Set a correct answer in the poll, to create a trivia poll
|
61 |
+
* Add a branded logo to your poll
|
62 |
+
* Add an email collection form to the poll, so that users are requested to leave their email before viewing the poll results
|
63 |
+
* View detailed statistics of the poll, including the users that voted on the poll, the time stamp of the poll votes, graphs that display the poll results and more
|
64 |
+
* ... much more!
|
65 |
+
|
66 |
+
= Main Poll Benefits: =
|
67 |
+
|
68 |
+
* Discover opinions & people - discover opinions & the people behind them. You can view the social profiles of the public voters and learn about the opinions of your audience using aggregated poll reports
|
69 |
+
* Engage your audience - opinion polls are one of the most engaging types of content. Opinion Stage’s social layer further increases the poll engagement by allowing voters to discover who the participants are, view the poll results by various filters and more
|
70 |
+
* Drive traffic from social networks to your poll and site - after voting, participants are automatically prompted to share their votes in the various social networks, driving new traffic from social networks to your site
|
71 |
+
* Research the poll results and gain insights - Filter poll results by demographic & social attributes such as gender, location, social network belonging, time frame, and more. Learn how effective your polls are by discovering their level of engagement, how many of the poll votes are shared and how much traffic the polls generate
|
72 |
+
* Run profile based competitions & elections - conducting competitions & elections using social profiles, is a great way to achieve more authentic voting. Competitions become much more appealing, and tend to generate many social shares that drive traffic from social networks to your site
|
73 |
+
* Design polls that fit to your site - opinion Stage includes an online poll design studio that lets you design polls that perfectly fit into your site. You can set the poll size, font, colors, logo and more
|
74 |
+
* Polls works seamlessly on all platforms - Opinion Stage uses responsive design techniques to fully support all platforms & screen sizes, including desktops, tablets and mobile devices. Reach your target audience wherever they are
|
75 |
+
* Easy content creation - creating polls is an easy way to produce engaging and relevant content. Deploy your first polls in minutes and easily manage all your polls from a simple and intuitive dashboard
|
76 |
+
|
77 |
+
= Main Quiz Features: =
|
78 |
+
|
79 |
+
* Manage all your WordPress quizzes from one dashboard
|
80 |
+
* Get the quiz shared in social networks, driving social traffic to your quiz and site
|
81 |
+
* Customize the quiz features to match your needs
|
82 |
+
* Customize the quiz size, font, colors
|
83 |
+
* Create different quiz types, such as personality quiz and trivia quiz
|
84 |
+
* Quiz repository that demonstrates quiz best practices, including quiz examples, such as trivia quiz examples and personality quiz examples
|
85 |
+
* Discover top quizzes, from a list of quizzes hand-picked by the Opinion Stage editors
|
86 |
+
* Various customizations that will make your quizzes stand out and make the quizzes perfectly fit to your site
|
87 |
+
|
88 |
+
= Main Quiz Benefits: =
|
89 |
+
|
90 |
+
* Engage your audience - quiz tools are one of the most engaging types of content
|
91 |
+
* Drive traffic from social networks to your quiz and site - after completing the quiz, participants are prompted to share the quiz results in the various social networks, driving new traffic from social networks to the quiz on your site
|
92 |
+
* Research the quiz results and gain insights
|
93 |
+
* Design the quiz so that it fits to your site
|
94 |
+
* The Quiz works seamlessly on all platforms - Opinion Stage uses responsive design techniques to fully support all platforms & screen sizes, including desktops, tablets and mobile devices
|
95 |
+
* Easy quiz creation - creating a quiz is an easy way to produce engaging and relevant content. Deploy your first quiz in minutes and easily manage all your quizzes from a simple and intuitive quiz dashboard
|
96 |
+
* Add intro media such as image or video to the quiz
|
97 |
+
* Embed your quiz on your site or use the Opinion Stage quiz landing page
|
98 |
+
|
99 |
+
= Main Survey Features: =
|
100 |
+
|
101 |
+
* Survey as many users as you like
|
102 |
+
* Survey users with various survey question types
|
103 |
+
* Surveys includes title, text, image & social network integrations
|
104 |
+
* Add images & videos to the Survey
|
105 |
+
* View the survey entries in the survey stats screen
|
106 |
+
* Export the Survey results
|
107 |
+
* Embed the Survey anywhere
|
108 |
+
* Share Surveys in Facebook, Twitter & Google+
|
109 |
+
|
110 |
+
= Main Form Features: =
|
111 |
+
|
112 |
+
* Add as many fields to the form as you like
|
113 |
+
* Forms includes title, text, image & social network integrations
|
114 |
+
* Add images to the form
|
115 |
+
* View the form entries in the form stats screen
|
116 |
+
* Export the form results
|
117 |
+
* Embed the form anywhere
|
118 |
+
* Share Forms in Facebook, Twitter & Google+
|
119 |
+
|
120 |
+
|
121 |
+
= Language support =
|
122 |
+
|
123 |
+
Opinion Stage supports over 42 languages, missing a language? Let us know!
|
124 |
+
|
125 |
+
= About Opinion Stage: =
|
126 |
+
|
127 |
+
Opinion Stage offers web sites a highly engaging poll, survey, quiz & form solution. For more details on Opinion Stage's poll, survey, quiz & Form solutions, visit <a href="http://www.opinionstage.com?o=wp35e8" target="_blank">the Opinion Stage site.</a>
|
128 |
+
|
129 |
+
== Installation ==
|
130 |
+
|
131 |
+
1. Upload the "poll, survey, quiz & form by Opinion Stage" plug-in to your blog (or search for it) and then install the "poll, survey, quiz & form by Opinion Stage" plugin on your plug-ins page
|
132 |
+
2. Active it to start creating a poll, survey, quiz or form from the polls, survey, quiz & form creation dashboard
|
133 |
+
|
134 |
+
== Frequently Asked Questions ==
|
135 |
+
|
136 |
+
= What sets Opinion Stage online polls apart from other online polling solutions? =
|
137 |
+
|
138 |
+
While Opinion Stage offers all the standard features expected from an advanced and professional polling solutions, Opinion Stage also offers some unique functionality which you won't find in most other solutions. This includes:
|
139 |
+
|
140 |
+
1. Generate revenue from your polling service (mostly relevant for high volume sites) by integrating different types of advertisements
|
141 |
+
2. Get your polls shared in the popular social networks driving traffic back to your site
|
142 |
+
3. An advanced reporting dashboard that let's you discover the engagement level of your polls, how many people shared them in social networks and the traffic that generated for your site
|
143 |
+
4. A lead generation component, that lets you gather emails and social network profiles
|
144 |
+
5. A social voting module that lets you require or make it optional to vote with a social profile. Using the module, you can filter the poll results by social, demographic and behavioral filters including geo location, time, gender, social network and more
|
145 |
+
6. A special module for using the online polls for running elections, contests and sweepstakes
|
146 |
+
7. Advanced customizations of the polls including setting the size, color, font, and more attributes so that the poll fits perfectly into your site
|
147 |
+
8. Advanced integrations with images & videos to make your polls appealing, beautiful and more informative
|
148 |
+
9. Poll sets that let you group many polls together, letting your
|
149 |
+
10. Placements let you easily add polls to your sidebar, to an article section or as an auto-engage popup displayed on your site
|
150 |
+
And many more...
|
151 |
+
|
152 |
+
= How do I add a poll, quiz, survey or form to my post/page? =
|
153 |
+
|
154 |
+
1. Create a new poll, quiz, survey or form from the poll, quiz, survey or form
|
155 |
+
2. After the poll, quiz, survey or form was created, click "Embed" link and then click the "WordPress" tab
|
156 |
+
3. Copy the WordPress poll, quiz, survey or form embed code and paste it into the blog post/page
|
157 |
+
|
158 |
+
= Can I embed a poll, quiz, survey or form manually? =
|
159 |
+
|
160 |
+
Yes, just post the wordpress shortcode into any post/page
|
161 |
+
|
162 |
+
= How do users share the poll, quiz, survey or form in social networks? =
|
163 |
+
|
164 |
+
Users can either share the poll, quiz, survey or form question from the social (e.g.Users can either share the poll, quiz, survey or form by clicking on the social (e.g. Facebook, Twitter & Google+) sharing or by sharing their poll/vote directly in the social sharing dialog that is displayed automatically after they vote in the poll or participate in the quiz, survey or form. Opinion Stage never shares anything on the users' behalf without getting explicit permission for it.
|
165 |
+
|
166 |
+
= What types of online polls do you support? =
|
167 |
+
|
168 |
+
We support both regular multiple-sided polls and a special head-to-head poll flavor (for the 2-sided polls)
|
169 |
+
|
170 |
+
= What is a social poll? =
|
171 |
+
|
172 |
+
Opinion Stage supports both standard annoymous polls and social polls which are polls in which you need to use your social profile for voting. You can configure the polls, so that the polls voting is anonymous, the polls voting requires a social profile for voting or the polls voting can either be done using a social profile or anonymously.
|
173 |
+
|
174 |
+
= How can I block cheat voting in the polls? =
|
175 |
+
|
176 |
+
The polls include 3 mechanisms to prevent from cheat voting in the polls. You can block multiple votes in the poll by Cookies, you can blick multiple votes in the poll by IP and you can block multiple voting in the polls by requiring a social profile to vote
|
177 |
+
|
178 |
+
= What polls settings do you support =
|
179 |
+
|
180 |
+
Opinion Stagte supports many poll settings. You can configure look & feel polls settings, setting the polls font, the polls width, the polls colors and more. You can configure the polls general settings, such as when the poll results are displayed, if the poll result is displayed in number or % or both, in what order the poll answers are displayed, and more. You can configure the poll social settings, such as whether to add to the poll facebook comments, attach social sharing buttons to the polls, and other poll social settings.You can also configure the poll language. Finally, you can configure advanced poll setings, such as poll election settings, collecting leads from the poll respondants, redircting after the poll vote and more
|
181 |
+
|
182 |
+
= What types of quizzes do you support? =
|
183 |
+
|
184 |
+
You can select between a trivia quiz and an outcome quiz, we plan to offer a few more quiz types in the future. If there is a quiz type you are missing, please notify us!
|
185 |
+
|
186 |
+
= Do you offer ready-made polls, quizzes, surveys or form? =
|
187 |
+
|
188 |
+
Yes - our editors hand-pick polls, quizzes, form and surveys to showcase as examples. You can browse the Opinion discover site and discover these polls, quizzes. surveys and forms.
|
189 |
+
|
190 |
+
|
191 |
+
== Screenshots ==
|
192 |
+
|
193 |
+
1. **Multiple-choice poll** - example of a multiple-choice layout poll, the poll include a lot of features including, selecting if users can select one side or more in the poll, allowing users to add their own answer to the poll, different methods of organizing the poll side order, setting the poll color, setting the poll font, preventing repeat voting in the poll, voting with a social profile in the poll, setting the poll result display, setting an expiry date for the poll, alignment of the poll title, setting the poll width, setting poll sharing bar, and much more
|
194 |
+
2. **Head-to-head poll** - example of a head-to-head layout poll
|
195 |
+
3. **Trivia quiz** - example of a Trivia quiz result. Set the correct answer in each of the quiz questions, and following users answers to the quiz, give them a quiz result with the number of correct quiz answers. Trivia quizzes are one of the most engaging type of content.
|
196 |
+
4. **Personality quiz** - example of a personality quiz. Using a personality quiz, you can ask you users different quiz questions, and based on their answers to the quiz questions, offer them different quiz results. Personality quizzes usually produce a lot of social shares.
|
197 |
+
5. **Content creation dashboard** - example of the Opinion Stage interactive content (e.g. poll, quiz, list) creation dashboard
|
198 |
+
|
199 |
+
== Other Notes ==
|
200 |
+
|
201 |
+
The Opinion Stage poll, survey, quiz and form plugin lets you display polls, quizzes, surveys & forms on your WordPress.org site
|
202 |
+
|
203 |
+
Running polls, quizzes, surveys & forms on your site let's you increase engagement, drive more traffic to your blog, and learn more about what your readers think and their opinions
|
204 |
+
|
205 |
+
To access the Opinion Stage Poll, quiz, survey & form WordPress dashboard:
|
206 |
+
|
207 |
+
Click on poll, quiz, survey and form link on the left-hand sidebar of your WordPress admin panel
|
208 |
+
|
209 |
+
To connect the poll, quiz, survey and form plugin with your Opinion Stage account:
|
210 |
+
|
211 |
+
1. In the main poll, survey, quiz and form screen, enter your Opinion Stage account’s email address and click “Connect” at the top of the widget page. (After connecting the poll, survey, quiz & form plugin to an account once, you can click “Switch” in the same place to associate the poll, survey, quiz and form plugin with a different Opinion Stage account.)
|
212 |
+
|
213 |
+
2. You will be redirected to a log-in screen on the Opinion Stage. Enter your credentials to connect your account. You will be redirected back to the widget page afterwards.
|
214 |
+
|
215 |
+
If you haven’t yet created an account on Opinion Stage, click the Signup at the bottom right corner to create one. After completing signup, you will be directed to the poll, survey, quiz and form creation dashboard, where you can start creating your polls, surveys, quizzes and forms.
|
216 |
+
|
217 |
+
To add a poll, survey, quiz, or form to any post/page:
|
218 |
+
|
219 |
+
1. Create your content (poll, survey, quiz or form) on your content dashboard
|
220 |
+
2. After the poll, quiz, survey or form is created, click the Embed link in the poll, survey, quiz or form creation form (you can also find this link in the content Dashboard)
|
221 |
+
3. From the poll, quiz, survey or form, click “Embed” dialog, click the “WordPress” tab and copy the poll, survey, quiz or form shortcode
|
222 |
+
4. Paste the poll, quiz, survey or form shortcode in any post/page
|
223 |
+
|
224 |
+
To add a poll, quiz, survey or form to a popup placement:
|
225 |
+
|
226 |
+
In your Opinion Stage dashboard on WordPress, under placements, switch “Popup” on and click configure.
|
227 |
+
|
228 |
+
Under “fill your placement,” select the poll, quiz, survey or form you would like presented in your popup.
|
229 |
+
|
230 |
+
To add a poll, quiz, survey or form to an article section placement:
|
231 |
+
|
232 |
+
In your Opinion Stage dashboard on WordPress, under placements, switch on “Article Section” and click configure
|
233 |
+
|
234 |
+
Under fill placement, select the poll, survey, quiz or form you would like presented in your article section.
|
235 |
+
|
236 |
+
To add a poll, quiz, survey or form to a sidebar placement:
|
237 |
+
|
238 |
+
1. In your Opinion Stage dashboard on WordPress, under placements, switch on “Sidebar Widget”
|
239 |
+
|
240 |
+
2. Select “Configure” next to Sidebar Widgets to be redirected to the Widgets menu
|
241 |
+
|
242 |
+
3. Under “Available Widgets” look for “Opinion Stage Sidebar Widget“
|
243 |
+
|
244 |
+
4. Click and drag that widget on to one of the options on the right-hand side to determine where your to place your interactive content
|
245 |
+
|
246 |
+
5. Open the “Opinion Stage Sidebar Widget” for configuration
|
247 |
+
|
248 |
+
a. “Title” adds a title to your sidebar poll. You can check or un-check the “Enabled” box to toggle this feature.
|
249 |
+
b. Clicking “Configure content” will redirect you to your Opinion Stage sidebar placement page. Here you can select which poll, quiz, survey or form to display in the sidebar.
|
250 |
+
|
251 |
+
Type of polls you can create
|
252 |
+
|
253 |
+
You can create many different types of polls: image poll, video poll, head-to-head poll, multiple-sided poll, thumbnail poll, fly-out poll, popup poll, feedback poll, gallery poll, opinion poll, survey poll, poll set, and more
|
254 |
+
Poll features
|
255 |
+
|
256 |
+
The poll supports the following features: setting the poll language, poll look & feel, poll title alignment, poll fixed width, poll auto-set width, poll theme color, poll font, poll voting type, poll voting restrictions (block poll vote by cookie, block vote poll by IP, block poll vote by social profile login, allow repeat voting), poll share in facebook, poll share in twitter, poll share in google+, poll redirect after vote, gathering emails after voting in the poll, display poll results only after voting in poll, display poll results at all times, don't display poll results, poll result format in % only, poll result format in both number & percent, allow users to change vote after voting in poll, display order of poll results in different methods, closing the poll at a specified time, add facebook comments to the poll, add a branded logo to the poll, set poll defaults, poll engagement stats, poll sharing stats, poll traffic growth stats, poll gender stats, poll geo location stats, poll time-span stats, poll public/private stats, poll social network stats, poll stats in pie display, poll stats in bar display
|
257 |
+
|
258 |
+
Type of quizzes you can create
|
259 |
+
|
260 |
+
You can create many different types of quizzes: Trivia quiz, personality quiz, image quiz, video quiz, fly-out quiz, popup quiz and more
|
261 |
+
|
262 |
+
|
263 |
+
== Upgrade Notice ==
|
264 |
+
|
265 |
+
N/A
|
266 |
+
|
267 |
+
== Changelog ==
|
268 |
+
= Poll, Survey, Quiz & Form Version 16.2.0 =
|
269 |
+
* Various minor improvements & bug fixes
|
270 |
+
= Poll, Survey, Quiz & Form Version 16.1.0 =
|
271 |
+
* Added chatbot tool integration
|
272 |
+
= Poll, Survey, Quiz & Form Version 16.0.0 =
|
273 |
+
* Updated help for new features
|
274 |
+
= Poll, Survey, Quiz & Form Version 15.9.0 =
|
275 |
+
* Rebranded Quiz name to Outcome, removed the section entry
|
276 |
+
= Poll, Survey, Quiz & Form Version 15.8.0 =
|
277 |
+
* Resolved an issue with the font
|
278 |
+
= Poll, Survey, Quiz & Form Version 15.7.0 =
|
279 |
+
* Added support for creating forms, added to plugin name
|
280 |
+
= Poll, Survey, Quiz & Form Version 15.6.0 =
|
281 |
+
* Added support for creating surveys, renamed plugin
|
282 |
+
= Poll, Survey, Quiz & Form Version 15.5.0 =
|
283 |
+
* Support WP 4.5
|
284 |
+
= Poll, Survey, Quiz & Form Version 15.4.0 =
|
285 |
+
* Added the option to add a content section
|
286 |
+
= Poll, Survey, Quiz & Form Version 15.3.0 =
|
287 |
+
* Modified API path
|
288 |
+
= Poll, Survey, Quiz & Form Version 15.2.0 =
|
289 |
+
* Various optimizations
|
290 |
+
= Poll, Survey, Quiz & Form Version 15.1.0 =
|
291 |
+
* Security fix to limit accses to dashboard
|
292 |
+
= Poll, Survey, Quiz & Form Version 15.0.0 =
|
293 |
+
* Various optimizations
|
294 |
+
= Poll, Survey, Quiz & Form Version 14.9.0 =
|
295 |
+
* Added the option to embed using a fixed width
|
296 |
+
= Poll, Survey, Quiz & Form Version 14.8.0 =
|
297 |
+
* Modified sidebar widget management UI
|
298 |
+
* Replaced dashboard top navigation links with more prominent 'my content' link
|
299 |
+
* Added 'list' to the plugin name
|
300 |
+
= Poll, Survey, Quiz & Form Version 14.7.0 =
|
301 |
+
* Various small optimizations
|
302 |
+
= Poll, Survey, Quiz & Form Version 14.6.0 =
|
303 |
+
* Various UI modifications - added top navigation links, dashboard UI is now more responsive.
|
304 |
+
= Poll, Survey, Quiz & Form Version 14.5.0 =
|
305 |
+
* Renamed style to avoid css caching issues
|
306 |
+
= Poll, Survey, Quiz & Form Version 14.4.0 =
|
307 |
+
* Complete ui revamp
|
308 |
+
* Removed obsolete polls insertion popup and tinymce integration
|
309 |
+
* Handling compatibility issues with other plugin
|
310 |
+
= Poll, Survey, Quiz & Form Version 14.3.0 =
|
311 |
+
* Various Poll, Survey, Quiz & Form improvements
|
312 |
+
= Poll, Survey, Quiz & Form Version 14.2.0 =
|
313 |
+
* Not showing recommendations by default when embedding Trivia quiz and Personality quiz via the widget shortcode
|
314 |
+
= Poll, Survey, Quiz & Form Version 14.1.0 =
|
315 |
+
* Added support for disabling FB comments, sharing buttons and recommendations for Trivia quiz and Personality quiz via the widget shortcode
|
316 |
+
= Poll, Survey, Quiz & Form Version 14.0.0 =
|
317 |
+
* Improved polls & quizzes creation help file
|
318 |
+
* Various small issues
|
319 |
+
= Poll, Survey, Quiz & Form Version 13.9.0 =
|
320 |
+
* Added creation links for trivia quiz, peronsality quiz and lists
|
321 |
+
* Added a link for content discovery
|
322 |
+
= Poll, Survey, Quiz & Form Version 13.8.0 =
|
323 |
+
* Support creating a quiz draft
|
324 |
+
* Added quiz tips and quiz best practicies
|
325 |
+
= Poll, Survey, Quiz & Form Version 13.7.0 =
|
326 |
+
* Better name for widget following feedback
|
327 |
+
= Poll, Survey, Quiz & Form Version 13.6.0 =
|
328 |
+
* Added Presonality quizzes
|
329 |
+
= Poll, Survey, Quiz & Form Version 13.5.0 =
|
330 |
+
* Renamed plugin to better reflect the platform
|
331 |
+
= Poll, Survey, Quiz & Form Version 13.4.0 =
|
332 |
+
* Added shortcodes for trivia and peronsality quizzes
|
333 |
+
= Poll, Survey, Quiz & Form Version 13.3.0 =
|
334 |
+
* Various Trivia Quiz enhancements & fixes
|
335 |
+
* Support for iframe embeds
|
336 |
+
= Poll, Survey, Quiz & Form Version 13.2.0 =
|
337 |
+
* Suport for Basque & Vienamese languages
|
338 |
+
* Trivia Quiz beta
|
339 |
+
= Poll, Survey, Quiz & Form Version 13.1.0 =
|
340 |
+
* Added support for quick addition of any language
|
341 |
+
= Poll, Survey, Quiz & Form Version 13.0.0 =
|
342 |
+
* Added text domain
|
343 |
+
= Poll, Survey, Quiz & Form Version 12.9.0 =
|
344 |
+
* Poll discovery mechanim improvements
|
345 |
+
* Additional tracking capabilities
|
346 |
+
= Poll, Survey, Quiz & Form Version 12.8.0 =
|
347 |
+
* Various bug fixes
|
348 |
+
= Poll, Survey, Quiz & Form Version 12.7.0 =
|
349 |
+
* CSS modifications to better align with desired coding standards. Reverted css file name change.
|
350 |
+
* Minor text changes
|
351 |
+
* Not using PHP 4 Style Constructors any more
|
352 |
+
= Poll, Survey, Quiz & Form Version 12.6.0 =
|
353 |
+
* Fixed broken links to dashboard
|
354 |
+
* Renamed css file
|
355 |
+
= Poll, Survey, Quiz & Form Version 12.5.0 =
|
356 |
+
* Modified css strucutre
|
357 |
+
* Added an option to enable/disable sidebar widget directly via the widget box
|
358 |
+
= Poll, Survey, Quiz & Form Version 12.4.0 =
|
359 |
+
* Added a control switch for the Sidebar placement
|
360 |
+
= Poll, Survey, Quiz & Form Version 12.3.0 =
|
361 |
+
* Added Sidebar placement as a widget
|
362 |
+
= Poll, Survey, Quiz & Form Version 12.2.0 =
|
363 |
+
* Added the option to connect the plugin to Opinion Stage account
|
364 |
+
* Added plug & play integration for fly-out placement
|
365 |
+
* Replaced the option of adding polls to all posts with plug & play article section placement
|
366 |
+
= Poll, Survey, Quiz & Form Version 12.1.0 =
|
367 |
+
* Additional fix for supporting SSL
|
368 |
+
= Poll, Survey, Quiz & Form Version 12.0.0 =
|
369 |
+
* Support for SSL when voting with social profiles
|
370 |
+
* revamp of content recommendation mechanism
|
371 |
+
= Poll, Survey, Quiz & Form Version 11.9.0 =
|
372 |
+
* Poll Placement improvements
|
373 |
+
= Poll, Survey, Quiz & Form Version 11.8.0 =
|
374 |
+
* Plugin minor changes
|
375 |
+
= Poll, Survey, Quiz & Form Version 11.7.0 =
|
376 |
+
* Image cropping
|
377 |
+
= Poll, Survey, Quiz & Form Version 11.6.0 =
|
378 |
+
* New poll recommendation design
|
379 |
+
= Poll, Survey, Quiz & Form Version 11.5.0 =
|
380 |
+
* resolve conflicts
|
381 |
+
= Poll, Survey, Quiz & Form Version 11.4.0 =
|
382 |
+
* Fixed compatibility issues
|
383 |
+
= Poll, Survey, Quiz & Form Version 11.3.0 =
|
384 |
+
* First Trivia poll Poll, Survey, Quiz & Form Version
|
385 |
+
= Poll, Survey, Quiz & Form Version 11.2.0 =
|
386 |
+
* Various functionality & usability improvements
|
387 |
+
= Poll, Survey, Quiz & Form Version 11.1.0 =
|
388 |
+
* Head-to-Head Poll - new revamped UI (first Poll, Survey, Quiz & Form Version)
|
389 |
+
= Poll, Survey, Quiz & Form Version 11.0.0 =
|
390 |
+
* New look & feel settings
|
391 |
+
= Poll, Survey, Quiz & Form Version 10.9.0 =
|
392 |
+
* Allow disabling global poll section for specific posts
|
393 |
+
= Poll, Survey, Quiz & Form Version 10.8.0 =
|
394 |
+
* Texts changes
|
395 |
+
= Poll, Survey, Quiz & Form Version 10.7.0 =
|
396 |
+
* New options for adding polls or sets to all posts
|
397 |
+
= Poll, Survey, Quiz & Form Version 10.6.0 =
|
398 |
+
* Poll sets and poll placements - improved interface
|
399 |
+
= Poll, Survey, Quiz & Form Version 10.5.0 =
|
400 |
+
* Ad integrations (optional) - revamped interface
|
401 |
+
= Poll, Survey, Quiz & Form Version 10.4.0 =
|
402 |
+
* Added UI support for social logins
|
403 |
+
= Poll, Survey, Quiz & Form Version 10.3.0 =
|
404 |
+
* New UI for Multiple Choice Polls
|
405 |
+
= Poll, Survey, Quiz & Form Version 10.2.0 =
|
406 |
+
* Various stability fixes
|
407 |
+
= Poll, Survey, Quiz & Form Version 10.1.0 =
|
408 |
+
* Post vote actions
|
409 |
+
= Poll, Survey, Quiz & Form Version 10.0.0 =
|
410 |
+
* Performance improvements
|
411 |
+
= Poll, Survey, Quiz & Form Version 9.9.0 =
|
412 |
+
* Various fixes
|
413 |
+
= Poll, Survey, Quiz & Form Version 9.8.0 =
|
414 |
+
* Poll discovery first Poll, Survey, Quiz & Form Version
|
415 |
+
= Poll, Survey, Quiz & Form Version 9.7.0 =
|
416 |
+
* Placements first Poll, Survey, Quiz & Form Version
|
417 |
+
= Poll, Survey, Quiz & Form Version 9.6.0 =
|
418 |
+
* Various fixes
|
419 |
+
= Poll, Survey, Quiz & Form Version 9.5.0 =
|
420 |
+
* Smart containers first Poll, Survey, Quiz & Form Version
|
421 |
+
= Poll, Survey, Quiz & Form Version 9.4.0 =
|
422 |
+
* Allow users to add their own answers
|
423 |
+
* Head2Head polls - mobile optimizations
|
424 |
+
= Poll, Survey, Quiz & Form Version 9.3.0 =
|
425 |
+
* Support adding custom texts to the interface
|
426 |
+
* Solve minor UI issues
|
427 |
+
= Poll, Survey, Quiz & Form Version 9.2.0 =
|
428 |
+
* Support displaying ads before showing the results
|
429 |
+
* Support reordering the sides of the poll
|
430 |
+
= Poll, Survey, Quiz & Form Version 9.1.0 =
|
431 |
+
* Added the option to add Facebook comments to the polls
|
432 |
+
* Improvements to poll creation flow
|
433 |
+
= Poll, Survey, Quiz & Form Version 9.0.0 =
|
434 |
+
* New poll head-to-head themes
|
435 |
+
* Poll UI optimizations
|
436 |
+
= Poll, Survey, Quiz & Form Version 8.9.0 =
|
437 |
+
* Various additions and improvements to the poll style studio
|
438 |
+
* Support for wide pages
|
439 |
+
= Poll, Survey, Quiz & Form Version 8.8.0 =
|
440 |
+
* Improved poll built-in UI styles
|
441 |
+
* New capabilities to poll style studio
|
442 |
+
= Poll, Survey, Quiz & Form Version 8.7.0 =
|
443 |
+
* Improved poll reports
|
444 |
+
* Various minor improvements
|
445 |
+
= Poll, Survey, Quiz & Form Version 8.6.0 =
|
446 |
+
* Poll performance improvements for peek scenarios
|
447 |
+
* New banner type ad unit
|
448 |
+
= Poll, Survey, Quiz & Form Version 8.5.0 =
|
449 |
+
* Improve process of adding polls to site
|
450 |
+
* Improve returning traffic tracking mechanism
|
451 |
+
= Poll, Survey, Quiz & Form Version 8.4.0 =
|
452 |
+
* Add first Poll, Survey, Quiz & Form Version of poll discovery feature
|
453 |
+
* Resolve issue with image addition
|
454 |
+
= Poll, Survey, Quiz & Form Version 8.3.0 =
|
455 |
+
* Add the option to integrate advertisement into the polls for generating revenue
|
456 |
+
* Optimizations for poll display in mobile environments
|
457 |
+
= Poll, Survey, Quiz & Form Version 8.2.0 =
|
458 |
+
* Enhancements on contact generation feature
|
459 |
+
* Mobile polls improvements
|
460 |
+
* Additions to default poll settings
|
461 |
+
= Poll, Survey, Quiz & Form Version 8.1.0 =
|
462 |
+
* Poll discovery - first Poll, Survey, Quiz & Form Version
|
463 |
+
* Poll sets improvements
|
464 |
+
* Poll performance improvements
|
465 |
+
= Poll, Survey, Quiz & Form Version 8.0.0 =
|
466 |
+
* Added an account report dashboard
|
467 |
+
= Poll, Survey, Quiz & Form Version 7.9.0 =
|
468 |
+
* Resolved paypal integration issues
|
469 |
+
* Resolved facebook page integration issues
|
470 |
+
= Poll, Survey, Quiz & Form Version 7.8.0 =
|
471 |
+
* Renamed plugin to better reflect the platform
|
472 |
+
= Poll, Survey, Quiz & Form Version 7.7.0 =
|
473 |
+
* Fixed 2 poll display issues
|
474 |
+
= Poll, Survey, Quiz & Form Version 7.6.0 =
|
475 |
+
* Added the ability to insert a shortcode of a set of polls
|
476 |
+
* Added a widget for a container and for a set of polls
|
477 |
+
= Poll, Survey, Quiz & Form Version 7.5.0 =
|
478 |
+
* Created a widget for easily adding polls to site
|
479 |
+
= Poll, Survey, Quiz & Form Version 7.4.0 =
|
480 |
+
* Poll performance optimizations
|
481 |
+
= Poll, Survey, Quiz & Form Version 7.3.0 =
|
482 |
+
* Resolved 2 issues with polls on mobile
|
483 |
+
= Poll, Survey, Quiz & Form Version 7.2.0 =
|
484 |
+
* Add external integration with 3rd parties via API/XML mechanism
|
485 |
+
= Poll, Survey, Quiz & Form Version 7.1.0 =
|
486 |
+
* Support collecting emails from poll voters
|
487 |
+
= Poll, Survey, Quiz & Form Version 7.0.0 =
|
488 |
+
* Fixed potential collisions with other plugins
|
489 |
+
= Poll, Survey, Quiz & Form Version 6.9.0 =
|
490 |
+
* First Poll, Survey, Quiz & Form Version of Poll Sets
|
491 |
+
* First Poll, Survey, Quiz & Form Version of redirect after poll vote
|
492 |
+
* Fix related to languages in poll display
|
493 |
+
= Poll, Survey, Quiz & Form Version 6.8.0 =
|
494 |
+
* Fix issue with Mobile voting
|
495 |
+
* Fix for iframe embed of poll
|
496 |
+
* Fix for uploading images from computer
|
497 |
+
= Poll, Survey, Quiz & Form Version 6.7.0 =
|
498 |
+
* Added Czech language & fix for Polish
|
499 |
+
* Add poll images via URL
|
500 |
+
= Poll, Survey, Quiz & Form Version 6.6.0 =
|
501 |
+
* Improve poll login screen in mobile
|
502 |
+
* Fixes for poll container
|
503 |
+
= Poll, Survey, Quiz & Form Version 6.5.0 =
|
504 |
+
* Fix issues with voting on iphone/ipad (iOS7)
|
505 |
+
= Poll, Survey, Quiz & Form Version 6.4.0 =
|
506 |
+
* New poll container
|
507 |
+
* Improvements to the poll optimization dashboard
|
508 |
+
= Poll, Survey, Quiz & Form Version 6.3.0 =
|
509 |
+
* New graphs for the new reports page
|
510 |
+
* New languages - Romanian, Polish, Indonesian, Danish
|
511 |
+
= Poll, Survey, Quiz & Form Version 6.2.0 =
|
512 |
+
* New Poll navigation bar
|
513 |
+
* New languages - Dutch, Albanian, Lithuanian
|
514 |
+
= Poll, Survey, Quiz & Form Version 6.1.0 =
|
515 |
+
* New dashboard and site header
|
516 |
+
* Poll was translated to the following languages - Swedish, Turkish, Chinese, Japanese, Korean
|
517 |
+
= Poll, Survey, Quiz & Form Version 6.0.0 =
|
518 |
+
* Added the option to login to Opinion Stage with a email/user-name and password combination
|
519 |
+
= Poll, Survey, Quiz & Form Version 5.9.0 =
|
520 |
+
* Added geographic location filter to poll results dashboard
|
521 |
+
= Poll, Survey, Quiz & Form Version 5.8.0 =
|
522 |
+
* Added time filter to poll results dashboard
|
523 |
+
* New design for on site poll page
|
524 |
+
* Various improvements & fixes on poll results dashboard
|
525 |
+
= Poll, Survey, Quiz & Form Version 5.7.0 =
|
526 |
+
* Added the option to block repeat voting in polls by IP
|
527 |
+
= Poll, Survey, Quiz & Form Version 5.6.0 =
|
528 |
+
* Improvements & fixes on poll studio
|
529 |
+
= Poll, Survey, Quiz & Form Version 5.5.0 =
|
530 |
+
* Improvements & fixes on poll reporting statistics
|
531 |
+
* Improvements & fixes on poll core flows
|
532 |
+
= Poll, Survey, Quiz & Form Version 5.4.0 =
|
533 |
+
* Added to the poll results screen the following poll stats: poll engagement stats, poll social stats & poll traffic stats
|
534 |
+
= Poll, Survey, Quiz & Form Version 5.3.0 =
|
535 |
+
* Add a clone function that allows to easily create multiple polls from the same template
|
536 |
+
* Add the option to schedule when the poll will be closed
|
537 |
+
= Poll, Survey, Quiz & Form Version 5.2.0 =
|
538 |
+
* Revamp of the poll social sharing settings
|
539 |
+
* revamp of add poll to website screen
|
540 |
+
= Poll, Survey, Quiz & Form Version 5.1.0 =
|
541 |
+
* Add Facebook comments to polls added to Facebook pages
|
542 |
+
* Add the option to preview the poll in different widths
|
543 |
+
= Poll, Survey, Quiz & Form Version 5.0.0 =
|
544 |
+
* Improvements to poll style studio
|
545 |
+
* Added option to configure head to head polls not to show results before voting
|
546 |
+
* Added the option to configure all types of polls not to show results to voters
|
547 |
+
* Extended width support of head to head polls to 250-740 pxls
|
548 |
+
= Poll, Survey, Quiz & Form Version 4.7.1 =
|
549 |
+
* Additional social filters added to the poll interface & poll report
|
550 |
+
* Optimize poll sharing scenarios
|
551 |
+
= Poll, Survey, Quiz & Form Version 4.7.0 =
|
552 |
+
* Improvements on poll sharing scenarios
|
553 |
+
= Poll, Survey, Quiz & Form Version 4.6.0 =
|
554 |
+
* Add polls to Facebook pages in 2-clicks feature added
|
555 |
+
* Enhanced poll reporting that includes poll result filters
|
556 |
+
* Brightcove video format now supported in the polls
|
557 |
+
= Poll, Survey, Quiz & Form Version 4.5.5 =
|
558 |
+
* Added support for Google+ poll login
|
559 |
+
* Fixed a presentation issue with polls and https sites
|
560 |
+
* Fixed issue with poll display on Facebook pages
|
561 |
+
= Poll, Survey, Quiz & Form Version 4.5.0 =
|
562 |
+
* Localize polls for Russian and French
|
563 |
+
* New design for poll social login dialogue
|
564 |
+
* Polls now auto-detect https environments
|
565 |
+
* Various minor fixes and improvements to poll functionality
|
566 |
+
= Poll, Survey, Quiz & Form Version 4.4.0 =
|
567 |
+
* Polls are now localized for Portuguese
|
568 |
+
* Various minor bug fixes
|
569 |
+
= Poll, Survey, Quiz & Form Version 4.3.0 =
|
570 |
+
* Multiple sided polls are supported for 150 widths and above
|
571 |
+
* Head-to-head polls are supported for 300 widths and above
|
572 |
+
* Poll style studio was improved to included many more poll style options
|
573 |
+
* New improved poll dashboard
|
574 |
+
* Poll showcase was improved to include more poll examples and detailed explanations
|
575 |
+
= Poll, Survey, Quiz & Form Version 4.2.0 =
|
576 |
+
* Multi-sided polls support addition of multimedia (video and image)
|
577 |
+
* Both head-to-head and multi-sided polls - Multimedia support auto-fit for different width (e.g mobile environment)
|
578 |
+
= Poll, Survey, Quiz & Form Version 4.1.0 =
|
579 |
+
* Multi-sided polls support addition of multimedia (video and image)
|
580 |
+
* Both head-to-head and multi-sided polls - Multimedia support auto-fit for different width (e.g mobile environment)
|
581 |
+
= Poll, Survey, Quiz & Form Version 4.0.0 =
|
582 |
+
* UI improvements for the polls (filters, border etc)
|
583 |
+
= Poll, Survey, Quiz & Form Version 3.1.0 =
|
584 |
+
* Poll creator can select number of allowed poll answers
|
585 |
+
* FB poll sharing flow optimizations
|
586 |
+
* Poll results can be shown from the Opinion-Stage poll dashboard
|
587 |
+
= Poll, Survey, Quiz & Form Version 3.0.0 =
|
588 |
+
* New hybrid voting method added to the polls, allowing users to vote either via a social profile or completely anonymously
|
589 |
+
= Poll, Survey, Quiz & Form Version 2.9.0 =
|
590 |
+
* Added support for anonymous poll voting
|
591 |
+
= Poll, Survey, Quiz & Form Version 2.8.0 =
|
592 |
+
* Improved editing process of polls by adding a preview to the poll editing screen
|
593 |
+
* Additional layout customizations for polls - hide top bars, add bottom padding
|
594 |
+
* Polls can now be reset
|
595 |
+
= Poll, Survey, Quiz & Form Version 2.7.0 =
|
596 |
+
* Additional poll languages support (German, Italian, Serbian)
|
597 |
+
* Additional poll customizations for the vote sharing process
|
598 |
+
= Poll, Survey, Quiz & Form Version 2.6.0 =
|
599 |
+
* Additional customizations options to the poll: Define which poll filters to show, poll social sharing bar removal
|
600 |
+
* Hiding vote option can be enabled / disabled by poll creator
|
601 |
+
= Poll, Survey, Quiz & Form Version 2.5.0 =
|
602 |
+
* Added support for multiple selection polls
|
603 |
+
= Poll, Survey, Quiz & Form Version 2.4.0 =
|
604 |
+
* Better support for hiding user votes in the poll
|
605 |
+
* Improved embed options to support both dynamic and constant width for the polls
|
606 |
+
* Polls can now be closed from the Opinion-Stage dashboard
|
607 |
+
= Poll, Survey, Quiz & Form Version 2.3.0 =
|
608 |
+
* Improved creation flow of polls
|
609 |
+
* Added basic report per poll in the Opinion Stage polls dashboard
|
610 |
+
* Added account report in Opinion-Stage poll dashboard
|
611 |
+
= Poll, Survey, Quiz & Form Version 2.2.0 =
|
612 |
+
* Polls are now localized for Arabic
|
613 |
+
* Better support for sidebar polls (300px)
|
614 |
+
* Supporting longer side texts in polls
|
615 |
+
= Poll, Survey, Quiz & Form Version 2.1.0 =
|
616 |
+
* Polls are now displayed properly in mobile environments
|
617 |
+
* Additional built-in poll themes
|
618 |
+
* When clicking on poll participants, the user is now redirected to their social network profile
|
619 |
+
* Polls are now localized for Spanish
|
620 |
+
* You can now set whether you would like to display the number of votes in the poll
|
621 |
+
* Support for election polls (e.g. poll results displayed in points, add a minimum cliff, etc)
|
622 |
+
= Poll, Survey, Quiz & Form Version 2.0.0 =
|
623 |
+
* Support for multiple sided polls
|
624 |
+
* Added the option to configure the URL in which the poll will be hosted. This will allow to direct additional traffic from social network shares and emails back to the location where the poll is hosted
|
625 |
+
* Added the option to set the order in which the poll results are displayed. You can either set it so that the poll sides are located in the order they were configured or set them so that the side with the most votes is displayed on top
|
626 |
+
= Poll, Survey, Quiz & Form Version 1.2.0 =
|
627 |
+
* Poll width can now be set, supported poll widths are 400-620 pxl
|
628 |
+
* Poll widget performance optimizations for high traffic polling deployments
|
629 |
+
* Support customized color themes for the polls
|
630 |
+
= Poll, Survey, Quiz & Form Version 1.1.0 =
|
631 |
+
* Added an optional gender filter to the poll, so that poll results can be viewed by gender
|
632 |
+
* Added a central dashboard for managing all polls
|
633 |
+
* Added the option to display a detailed text description of the poll question to the poll widget
|
634 |
+
* Added the ability to configure which image is shared when sharing the poll or the poll vote on Facebook
|
635 |
+
= Poll, Survey, Quiz & Form Version 1.0.1 =
|
636 |
+
* Improvements in the poll embed flow to ease insertion of polls
|
637 |
+
= Poll, Survey, Quiz & Form Version 1.0.0 =
|
638 |
* First social poll version
|