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

Version Description

  • bugfixes
Download this release

Release Info

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

Code changes from version 19.6.19 to 19.6.20

.gitignore CHANGED
@@ -2,6 +2,8 @@
2
  /dev.ini
3
  # Windows artefacts:
4
  /Thumbs.db
 
 
5
  # plugin builds:
6
  /*.zip
7
 
2
  /dev.ini
3
  # Windows artefacts:
4
  /Thumbs.db
5
+ # OSX artefacts
6
+ .DS_Store
7
  # plugin builds:
8
  /*.zip
9
 
admin/views/getting_started.php CHANGED
@@ -16,9 +16,9 @@ defined( 'ABSPATH' ) or die();
16
  </div>
17
  </div>
18
  <div class="gettingBlockContainer">
19
- <?php echo opinionstage_link('TEMPLATE <br/> GALLERY', 'dashboard/content/templates', 'gettingTemplateGallery'); ?>
20
- <?php echo opinionstage_link('SOLUTIONS & <br/>USE CASES', 'solutions', 'gettingTemplateSolution') ?>
21
- <a href="https://help.opinionstage.com/wordpress-plugin/how-to-use-the-wordpress-plugin?utm_source=wordpress&utm_campaign=WPMainPI&utm_medium=link&o=wp35e8" target="_blank"><div class="gettingTemplateTutorial">GETTING STARTED <br/>TUTORIALS</div></a>
22
  </div>
23
  </div>
24
  <?php }else{ ?>
@@ -38,9 +38,9 @@ defined( 'ABSPATH' ) or die();
38
  </div>
39
  </div>
40
  <div class="gettingBlockContainer">
41
- <?php echo opinionstage_link('TEMPLATE <br/> GALLERY', 'dashboard/content/templates', 'gettingTemplateGallery'); ?>
42
- <?php echo opinionstage_link('SOLUTIONS & <br/>USE CASES', 'solutions', 'gettingTemplateSolution') ?>
43
- <a href="https://help.opinionstage.com/wordpress-plugin/how-to-use-the-wordpress-plugin?utm_source=wordpress&utm_campaign=WPMainPI&utm_medium=link&o=wp35e8" target="_blank"><div class="gettingTemplateTutorial">GETTING STARTED <br/>TUTORIALS</div></a>
44
  </div>
45
  </div>
46
 
@@ -54,25 +54,35 @@ defined( 'ABSPATH' ) or die();
54
  var href = jQuery(this).attr('href');
55
  var target = jQuery(this).attr('target');
56
 
57
- swal({
58
- title: "Leave without connecting?",
59
- text: "To use this plugin you need to first connect WordPress with Opinion Stage.",
60
- icon: "warning",
61
- buttons: ["Cancel", "Leave"],
62
- })
63
- .then((willDelete) => {
64
- if (willDelete) {
65
- if(target !== undefined) {
66
- window.open(href, target);
67
- }
68
- else {
69
- window.location.href = href;
 
 
 
 
 
 
 
 
 
 
70
  }
71
- }
72
- else {
73
- jQuery('#os-email').focus();
74
- }
75
- });
76
  };
77
  }
78
  </script>
16
  </div>
17
  </div>
18
  <div class="gettingBlockContainer">
19
+ <?php echo opinionstage_link('TEMPLATE <br/> GALLERY', 'dashboard/content/templates', 'gettingTemplateGallery help-link'); ?>
20
+ <?php echo opinionstage_link('SOLUTIONS & <br/>USE CASES', 'solutions', 'gettingTemplateSolution help-link') ?>
21
+ <a href="https://help.opinionstage.com/wordpress-plugin/how-to-use-the-wordpress-plugin?utm_source=wordpress&utm_campaign=WPMainPI&utm_medium=link&o=wp35e8" target="_blank" class="help-link"><div class="gettingTemplateTutorial">GETTING STARTED <br/>TUTORIALS</div></a>
22
  </div>
23
  </div>
24
  <?php }else{ ?>
38
  </div>
39
  </div>
40
  <div class="gettingBlockContainer">
41
+ <?php echo opinionstage_link('TEMPLATE <br/> GALLERY', 'dashboard/content/templates', 'gettingTemplateGallery help-link'); ?>
42
+ <?php echo opinionstage_link('SOLUTIONS & <br/>USE CASES', 'solutions', 'gettingTemplateSolution help-link') ?>
43
+ <a href="https://help.opinionstage.com/wordpress-plugin/how-to-use-the-wordpress-plugin?utm_source=wordpress&utm_campaign=WPMainPI&utm_medium=link&o=wp35e8" target="_blank" class="help-link"><div class="gettingTemplateTutorial help-link">GETTING STARTED <br/>TUTORIALS</div></a>
44
  </div>
45
  </div>
46
 
54
  var href = jQuery(this).attr('href');
55
  var target = jQuery(this).attr('target');
56
 
57
+ console.log(e.target.classList);
58
+ if(e.target.classList.contains('help-link')){
59
+ if(target !== undefined) {
60
+ window.open(href, target);
61
+ }
62
+ else {
63
+ window.location.href = href;
64
+ }
65
+ }else{
66
+ swal({
67
+ title: "Leave without connecting?",
68
+ text: "To use this plugin you need to first connect WordPress with Opinion Stage.",
69
+ icon: "warning",
70
+ buttons: ["Cancel", "Leave"],
71
+ })
72
+ .then((willDelete) => {
73
+ if (willDelete) {
74
+ if(target !== undefined) {
75
+ window.open(href, target);
76
+ }
77
+ else {
78
+ window.location.href = href;
79
+ }
80
  }
81
+ else {
82
+ jQuery('#os-email').focus();
83
+ }
84
+ });
85
+ }
86
  };
87
  }
88
  </script>
gutenberg/.editorconfig CHANGED
@@ -1,21 +1,21 @@
1
- # This file is for unifying the coding style for different editors and IDEs
2
- # editorconfig.org
3
-
4
- # WordPress Coding Standards
5
- # https://make.wordpress.org/core/handbook/coding-standards/
6
-
7
- root = true
8
-
9
- [*]
10
- charset = utf-8
11
- end_of_line = lf
12
- insert_final_newline = true
13
- trim_trailing_whitespace = true
14
- indent_style = tab
15
-
16
- [*.yml]
17
- indent_style = space
18
- indent_size = 2
19
-
20
- [*.md]
21
- trim_trailing_whitespace = false
1
+ # This file is for unifying the coding style for different editors and IDEs
2
+ # editorconfig.org
3
+
4
+ # WordPress Coding Standards
5
+ # https://make.wordpress.org/core/handbook/coding-standards/
6
+
7
+ root = true
8
+
9
+ [*]
10
+ charset = utf-8
11
+ end_of_line = lf
12
+ insert_final_newline = true
13
+ trim_trailing_whitespace = true
14
+ indent_style = tab
15
+
16
+ [*.yml]
17
+ indent_style = space
18
+ indent_size = 2
19
+
20
+ [*.md]
21
+ trim_trailing_whitespace = false
gutenberg/.eslintignore CHANGED
@@ -1,9 +1,9 @@
1
- **/*.min.js
2
- **/*.build.js
3
- **/node_modules/**
4
- **/vendor/**
5
- build
6
- coverage
7
- cypress
8
- node_modules
9
- vendor
1
+ **/*.min.js
2
+ **/*.build.js
3
+ **/node_modules/**
4
+ **/vendor/**
5
+ build
6
+ coverage
7
+ cypress
8
+ node_modules
9
+ vendor
gutenberg/.eslintrc.json CHANGED
@@ -1,192 +1,192 @@
1
- {
2
- "root": true,
3
- "parser": "babel-eslint",
4
- "extends": [
5
- "wordpress",
6
- "plugin:react/recommended",
7
- "plugin:jsx-a11y/recommended",
8
- "plugin:jest/recommended"
9
- ],
10
- "env": {
11
- "browser": false,
12
- "es6": true,
13
- "node": true,
14
- "mocha": true,
15
- "jest/globals": true
16
- },
17
- "parserOptions": {
18
- "sourceType": "module",
19
- "ecmaFeatures": {
20
- "jsx": true
21
- }
22
- },
23
- "globals": {
24
- "wp": true,
25
- "wpApiSettings": true,
26
- "window": true,
27
- "document": true
28
- },
29
- "plugins": ["react", "jsx-a11y", "jest"],
30
- "settings": {
31
- "react": {
32
- "pragma": "wp"
33
- }
34
- },
35
- "rules": {
36
- "array-bracket-spacing": ["error", "always"],
37
- "brace-style": ["error", "1tbs"],
38
- "camelcase": ["error", { "properties": "never" }],
39
- "comma-dangle": ["error", "always-multiline"],
40
- "comma-spacing": "error",
41
- "comma-style": "error",
42
- "computed-property-spacing": ["error", "always"],
43
- "constructor-super": "error",
44
- "dot-notation": "error",
45
- "eol-last": "error",
46
- "eqeqeq": "error",
47
- "func-call-spacing": "error",
48
- "indent": ["error", "tab", { "SwitchCase": 1 }],
49
- "jsx-a11y/label-has-for": [
50
- "error",
51
- {
52
- "required": "id"
53
- }
54
- ],
55
- "jsx-a11y/media-has-caption": "off",
56
- "jsx-a11y/no-noninteractive-tabindex": "off",
57
- "jsx-a11y/role-has-required-aria-props": "off",
58
- "jsx-quotes": "error",
59
- "key-spacing": "error",
60
- "keyword-spacing": "error",
61
- "lines-around-comment": "off",
62
- "no-alert": "error",
63
- "no-bitwise": "error",
64
- "no-caller": "error",
65
- "no-console": "error",
66
- "no-const-assign": "error",
67
- "no-debugger": "error",
68
- "no-dupe-args": "error",
69
- "no-dupe-class-members": "error",
70
- "no-dupe-keys": "error",
71
- "no-duplicate-case": "error",
72
- "no-duplicate-imports": "error",
73
- "no-else-return": "error",
74
- "no-eval": "error",
75
- "no-extra-semi": "error",
76
- "no-fallthrough": "error",
77
- "no-lonely-if": "error",
78
- "no-mixed-operators": "error",
79
- "no-mixed-spaces-and-tabs": "error",
80
- "no-multiple-empty-lines": ["error", { "max": 1 }],
81
- "no-multi-spaces": "error",
82
- "no-multi-str": "off",
83
- "no-negated-in-lhs": "error",
84
- "no-nested-ternary": "error",
85
- "no-redeclare": "error",
86
- "no-restricted-syntax": [
87
- "error",
88
- {
89
- "selector":
90
- "ImportDeclaration[source.value=/^@wordpress\\u002F.+\\u002F/]",
91
- "message": "Path access on WordPress dependencies is not allowed."
92
- },
93
- {
94
- "selector": "ImportDeclaration[source.value=/^blocks$/]",
95
- "message": "Use @wordpress/blocks as import path instead."
96
- },
97
- {
98
- "selector": "ImportDeclaration[source.value=/^components$/]",
99
- "message": "Use @wordpress/components as import path instead."
100
- },
101
- {
102
- "selector": "ImportDeclaration[source.value=/^date$/]",
103
- "message": "Use @wordpress/date as import path instead."
104
- },
105
- {
106
- "selector": "ImportDeclaration[source.value=/^editor$/]",
107
- "message": "Use @wordpress/editor as import path instead."
108
- },
109
- {
110
- "selector": "ImportDeclaration[source.value=/^element$/]",
111
- "message": "Use @wordpress/element as import path instead."
112
- },
113
- {
114
- "selector": "ImportDeclaration[source.value=/^i18n$/]",
115
- "message": "Use @wordpress/i18n as import path instead."
116
- },
117
- {
118
- "selector": "ImportDeclaration[source.value=/^data$/]",
119
- "message": "Use @wordpress/data as import path instead."
120
- },
121
- {
122
- "selector": "ImportDeclaration[source.value=/^utils$/]",
123
- "message": "Use @wordpress/utils as import path instead."
124
- },
125
- {
126
- "selector":
127
- "CallExpression[callee.name=/^__|_n|_x$/]:not([arguments.0.type=/^Literal|BinaryExpression$/])",
128
- "message": "Translate function arguments must be string literals."
129
- },
130
- {
131
- "selector":
132
- "CallExpression[callee.name=/^_n|_x$/]:not([arguments.1.type=/^Literal|BinaryExpression$/])",
133
- "message": "Translate function arguments must be string literals."
134
- },
135
- {
136
- "selector":
137
- "CallExpression[callee.name=_nx]:not([arguments.2.type=/^Literal|BinaryExpression$/])",
138
- "message": "Translate function arguments must be string literals."
139
- }
140
- ],
141
- "no-shadow": "error",
142
- "no-undef": "error",
143
- "no-undef-init": "error",
144
- "no-unreachable": "error",
145
- "no-unsafe-negation": "error",
146
- "no-unused-expressions": "error",
147
- "no-unused-vars": "error",
148
- "no-useless-computed-key": "error",
149
- "no-useless-constructor": "error",
150
- "no-useless-return": "error",
151
- "no-var": "error",
152
- "no-whitespace-before-property": "error",
153
- "object-curly-spacing": ["error", "always"],
154
- "padded-blocks": ["error", "never"],
155
- "prefer-const": "error",
156
- "quote-props": ["error", "as-needed"],
157
- "react/display-name": "off",
158
- "react/jsx-curly-spacing": [
159
- "error",
160
- {
161
- "when": "always",
162
- "children": true
163
- }
164
- ],
165
- "react/jsx-equals-spacing": "error",
166
- "react/jsx-indent": ["error", "tab"],
167
- "react/jsx-indent-props": ["error", "tab"],
168
- "react/jsx-key": "error",
169
- "react/jsx-tag-spacing": "error",
170
- "react/no-children-prop": "off",
171
- "react/no-find-dom-node": "warn",
172
- "react/prop-types": "off",
173
- "semi": "error",
174
- "semi-spacing": "error",
175
- "space-before-blocks": ["error", "always"],
176
- "space-before-function-paren": ["error", "never"],
177
- "space-in-parens": ["error", "always"],
178
- "space-infix-ops": ["error", { "int32Hint": false }],
179
- "space-unary-ops": [
180
- "error",
181
- {
182
- "overrides": {
183
- "!": true
184
- }
185
- }
186
- ],
187
- "template-curly-spacing": ["error", "always"],
188
- "valid-jsdoc": ["error", { "requireReturn": false }],
189
- "valid-typeof": "error",
190
- "yoda": "off"
191
- }
192
- }
1
+ {
2
+ "root": true,
3
+ "parser": "babel-eslint",
4
+ "extends": [
5
+ "wordpress",
6
+ "plugin:react/recommended",
7
+ "plugin:jsx-a11y/recommended",
8
+ "plugin:jest/recommended"
9
+ ],
10
+ "env": {
11
+ "browser": false,
12
+ "es6": true,
13
+ "node": true,
14
+ "mocha": true,
15
+ "jest/globals": true
16
+ },
17
+ "parserOptions": {
18
+ "sourceType": "module",
19
+ "ecmaFeatures": {
20
+ "jsx": true
21
+ }
22
+ },
23
+ "globals": {
24
+ "wp": true,
25
+ "wpApiSettings": true,
26
+ "window": true,
27
+ "document": true
28
+ },
29
+ "plugins": ["react", "jsx-a11y", "jest"],
30
+ "settings": {
31
+ "react": {
32
+ "pragma": "wp"
33
+ }
34
+ },
35
+ "rules": {
36
+ "array-bracket-spacing": ["error", "always"],
37
+ "brace-style": ["error", "1tbs"],
38
+ "camelcase": ["error", { "properties": "never" }],
39
+ "comma-dangle": ["error", "always-multiline"],
40
+ "comma-spacing": "error",
41
+ "comma-style": "error",
42
+ "computed-property-spacing": ["error", "always"],
43
+ "constructor-super": "error",
44
+ "dot-notation": "error",
45
+ "eol-last": "error",
46
+ "eqeqeq": "error",
47
+ "func-call-spacing": "error",
48
+ "indent": ["error", "tab", { "SwitchCase": 1 }],
49
+ "jsx-a11y/label-has-for": [
50
+ "error",
51
+ {
52
+ "required": "id"
53
+ }
54
+ ],
55
+ "jsx-a11y/media-has-caption": "off",
56
+ "jsx-a11y/no-noninteractive-tabindex": "off",
57
+ "jsx-a11y/role-has-required-aria-props": "off",
58
+ "jsx-quotes": "error",
59
+ "key-spacing": "error",
60
+ "keyword-spacing": "error",
61
+ "lines-around-comment": "off",
62
+ "no-alert": "error",
63
+ "no-bitwise": "error",
64
+ "no-caller": "error",
65
+ "no-console": "error",
66
+ "no-const-assign": "error",
67
+ "no-debugger": "error",
68
+ "no-dupe-args": "error",
69
+ "no-dupe-class-members": "error",
70
+ "no-dupe-keys": "error",
71
+ "no-duplicate-case": "error",
72
+ "no-duplicate-imports": "error",
73
+ "no-else-return": "error",
74
+ "no-eval": "error",
75
+ "no-extra-semi": "error",
76
+ "no-fallthrough": "error",
77
+ "no-lonely-if": "error",
78
+ "no-mixed-operators": "error",
79
+ "no-mixed-spaces-and-tabs": "error",
80
+ "no-multiple-empty-lines": ["error", { "max": 1 }],
81
+ "no-multi-spaces": "error",
82
+ "no-multi-str": "off",
83
+ "no-negated-in-lhs": "error",
84
+ "no-nested-ternary": "error",
85
+ "no-redeclare": "error",
86
+ "no-restricted-syntax": [
87
+ "error",
88
+ {
89
+ "selector":
90
+ "ImportDeclaration[source.value=/^@wordpress\\u002F.+\\u002F/]",
91
+ "message": "Path access on WordPress dependencies is not allowed."
92
+ },
93
+ {
94
+ "selector": "ImportDeclaration[source.value=/^blocks$/]",
95
+ "message": "Use @wordpress/blocks as import path instead."
96
+ },
97
+ {
98
+ "selector": "ImportDeclaration[source.value=/^components$/]",
99
+ "message": "Use @wordpress/components as import path instead."
100
+ },
101
+ {
102
+ "selector": "ImportDeclaration[source.value=/^date$/]",
103
+ "message": "Use @wordpress/date as import path instead."
104
+ },
105
+ {
106
+ "selector": "ImportDeclaration[source.value=/^editor$/]",
107
+ "message": "Use @wordpress/editor as import path instead."
108
+ },
109
+ {
110
+ "selector": "ImportDeclaration[source.value=/^element$/]",
111
+ "message": "Use @wordpress/element as import path instead."
112
+ },
113
+ {
114
+ "selector": "ImportDeclaration[source.value=/^i18n$/]",
115
+ "message": "Use @wordpress/i18n as import path instead."
116
+ },
117
+ {
118
+ "selector": "ImportDeclaration[source.value=/^data$/]",
119
+ "message": "Use @wordpress/data as import path instead."
120
+ },
121
+ {
122
+ "selector": "ImportDeclaration[source.value=/^utils$/]",
123
+ "message": "Use @wordpress/utils as import path instead."
124
+ },
125
+ {
126
+ "selector":
127
+ "CallExpression[callee.name=/^__|_n|_x$/]:not([arguments.0.type=/^Literal|BinaryExpression$/])",
128
+ "message": "Translate function arguments must be string literals."
129
+ },
130
+ {
131
+ "selector":
132
+ "CallExpression[callee.name=/^_n|_x$/]:not([arguments.1.type=/^Literal|BinaryExpression$/])",
133
+ "message": "Translate function arguments must be string literals."
134
+ },
135
+ {
136
+ "selector":
137
+ "CallExpression[callee.name=_nx]:not([arguments.2.type=/^Literal|BinaryExpression$/])",
138
+ "message": "Translate function arguments must be string literals."
139
+ }
140
+ ],
141
+ "no-shadow": "error",
142
+ "no-undef": "error",
143
+ "no-undef-init": "error",
144
+ "no-unreachable": "error",
145
+ "no-unsafe-negation": "error",
146
+ "no-unused-expressions": "error",
147
+ "no-unused-vars": "error",
148
+ "no-useless-computed-key": "error",
149
+ "no-useless-constructor": "error",
150
+ "no-useless-return": "error",
151
+ "no-var": "error",
152
+ "no-whitespace-before-property": "error",
153
+ "object-curly-spacing": ["error", "always"],
154
+ "padded-blocks": ["error", "never"],
155
+ "prefer-const": "error",
156
+ "quote-props": ["error", "as-needed"],
157
+ "react/display-name": "off",
158
+ "react/jsx-curly-spacing": [
159
+ "error",
160
+ {
161
+ "when": "always",
162
+ "children": true
163
+ }
164
+ ],
165
+ "react/jsx-equals-spacing": "error",
166
+ "react/jsx-indent": ["error", "tab"],
167
+ "react/jsx-indent-props": ["error", "tab"],
168
+ "react/jsx-key": "error",
169
+ "react/jsx-tag-spacing": "error",
170
+ "react/no-children-prop": "off",
171
+ "react/no-find-dom-node": "warn",
172
+ "react/prop-types": "off",
173
+ "semi": "error",
174
+ "semi-spacing": "error",
175
+ "space-before-blocks": ["error", "always"],
176
+ "space-before-function-paren": ["error", "never"],
177
+ "space-in-parens": ["error", "always"],
178
+ "space-infix-ops": ["error", { "int32Hint": false }],
179
+ "space-unary-ops": [
180
+ "error",
181
+ {
182
+ "overrides": {
183
+ "!": true
184
+ }
185
+ }
186
+ ],
187
+ "template-curly-spacing": ["error", "always"],
188
+ "valid-jsdoc": ["error", { "requireReturn": false }],
189
+ "valid-typeof": "error",
190
+ "yoda": "off"
191
+ }
192
+ }
gutenberg/.gitignore CHANGED
@@ -1,85 +1,85 @@
1
- # Packages #
2
- ############
3
- *.7z
4
- *.dmg
5
- *.gz
6
- *.bz2
7
- *.iso
8
- *.jar
9
- *.rar
10
- *.tar
11
- *.zip
12
- *.tgz
13
- *.map
14
-
15
- # Logs and databases #
16
- ######################
17
- *.log
18
- *.sql
19
-
20
- # OS generated files #
21
- ######################
22
- **.DS_Store*
23
- ehthumbs.db
24
- Icon?
25
- Thumbs.db
26
- ._*
27
-
28
- # Vim generated files #
29
- ######################
30
- *.un~
31
-
32
- # SASS #
33
- ##########
34
- **/.sass-cache
35
- **/.sass-cache/*
36
- **/.map
37
-
38
- # Composer #
39
- ##########
40
- vendors/composer/
41
- !assets/js/vendor/
42
- wpcs/
43
- composer.lock
44
-
45
- # Bower #
46
- ##########
47
- assets/bower_components/*
48
-
49
- # Codekit #
50
- ##########
51
- /codekit-config.json
52
- *.codekit
53
- **.codekit-cache/*
54
-
55
- # NPM #
56
- ##########
57
- node_modules
58
- **/node_modules/**
59
-
60
- # Compiled Files and Build Dirs #
61
- ##########
62
- /README.html
63
-
64
- # PhpStrom Project Files #
65
- .idea/
66
- library/vendors/composer
67
- assets/img/.DS_Store
68
- assets/sass/HTML
69
- assets/sass/Rails
70
- HTML
71
- Rails
72
-
73
- # CGB
74
- .idea/
75
- .vscode/
76
- node_modules/
77
- .DS_Store
78
- *.tgz
79
- my-app*
80
- template/src/__tests__/__snapshots__/
81
- lerna-debug.log
82
- npm-debug.log*
83
- yarn-debug.log*
84
- yarn-error.log*
85
  /.changelog
1
+ # Packages #
2
+ ############
3
+ *.7z
4
+ *.dmg
5
+ *.gz
6
+ *.bz2
7
+ *.iso
8
+ *.jar
9
+ *.rar
10
+ *.tar
11
+ *.zip
12
+ *.tgz
13
+ *.map
14
+
15
+ # Logs and databases #
16
+ ######################
17
+ *.log
18
+ *.sql
19
+
20
+ # OS generated files #
21
+ ######################
22
+ **.DS_Store*
23
+ ehthumbs.db
24
+ Icon?
25
+ Thumbs.db
26
+ ._*
27
+
28
+ # Vim generated files #
29
+ ######################
30
+ *.un~
31
+
32
+ # SASS #
33
+ ##########
34
+ **/.sass-cache
35
+ **/.sass-cache/*
36
+ **/.map
37
+
38
+ # Composer #
39
+ ##########
40
+ vendors/composer/
41
+ !assets/js/vendor/
42
+ wpcs/
43
+ composer.lock
44
+
45
+ # Bower #
46
+ ##########
47
+ assets/bower_components/*
48
+
49
+ # Codekit #
50
+ ##########
51
+ /codekit-config.json
52
+ *.codekit
53
+ **.codekit-cache/*
54
+
55
+ # NPM #
56
+ ##########
57
+ node_modules
58
+ **/node_modules/**
59
+
60
+ # Compiled Files and Build Dirs #
61
+ ##########
62
+ /README.html
63
+
64
+ # PhpStrom Project Files #
65
+ .idea/
66
+ library/vendors/composer
67
+ assets/img/.DS_Store
68
+ assets/sass/HTML
69
+ assets/sass/Rails
70
+ HTML
71
+ Rails
72
+
73
+ # CGB
74
+ .idea/
75
+ .vscode/
76
+ node_modules/
77
+ .DS_Store
78
+ *.tgz
79
+ my-app*
80
+ template/src/__tests__/__snapshots__/
81
+ lerna-debug.log
82
+ npm-debug.log*
83
+ yarn-debug.log*
84
+ yarn-error.log*
85
  /.changelog
gutenberg/form/src/.DS_Store DELETED
Binary file
gutenberg/personality/src/.DS_Store DELETED
Binary file
gutenberg/poll/src/.DS_Store DELETED
Binary file
gutenberg/slideshow/src/.DS_Store DELETED
Binary file
gutenberg/survey/src/.DS_Store DELETED
Binary file
gutenberg/trivia/src/.DS_Store DELETED
Binary file
includes/opinionstage-article-placement-functions.php CHANGED
@@ -1,37 +1,37 @@
1
- <?php
2
-
3
- // block direct access to plugin PHP files:
4
- defined( 'ABSPATH' ) or die();
5
-
6
- class OpinionStageArticlePlacement {
7
- static function initialize() {
8
- add_filter($hook = 'the_content', array(__CLASS__, $hook));
9
- }
10
- // Adds the article placement shortcode to each post
11
- static function the_content($content) {
12
- global $post;
13
- if( !(isset($post) && is_object($post)) ){
14
- return $content;
15
- }
16
- $type = $post->post_type;
17
- if (is_front_page() && is_home()) {
18
- return $content;
19
- }
20
- if($type == "post") {
21
- $os_options = (array) get_option(OPINIONSTAGE_OPTIONS_KEY);
22
- if (!empty($os_options['article_placement_id']) && $os_options['article_placement_active'] == 'true' && !is_admin() ) {
23
- $shortcode = do_shortcode(
24
- sprintf(
25
- '[osplacement id="%s"]',
26
- $os_options['article_placement_id']
27
- )
28
- );
29
- return $content . $shortcode;
30
- }
31
- }
32
- return $content;
33
- }
34
-
35
- }
36
- return OpinionStageArticlePlacement::initialize();
37
- ?>
1
+ <?php
2
+
3
+ // block direct access to plugin PHP files:
4
+ defined( 'ABSPATH' ) or die();
5
+
6
+ class OpinionStageArticlePlacement {
7
+ static function initialize() {
8
+ add_filter($hook = 'the_content', array(__CLASS__, $hook));
9
+ }
10
+ // Adds the article placement shortcode to each post
11
+ static function the_content($content) {
12
+ global $post;
13
+ if( !(isset($post) && is_object($post)) ){
14
+ return $content;
15
+ }
16
+ $type = $post->post_type;
17
+ if (is_front_page() && is_home()) {
18
+ return $content;
19
+ }
20
+ if($type == "post") {
21
+ $os_options = (array) get_option(OPINIONSTAGE_OPTIONS_KEY);
22
+ if (!empty($os_options['article_placement_id']) && $os_options['article_placement_active'] == 'true' && !is_admin() ) {
23
+ $shortcode = do_shortcode(
24
+ sprintf(
25
+ '[osplacement id="%s"]',
26
+ $os_options['article_placement_id']
27
+ )
28
+ );
29
+ return $content . $shortcode;
30
+ }
31
+ }
32
+ return $content;
33
+ }
34
+
35
+ }
36
+ return OpinionStageArticlePlacement::initialize();
37
+ ?>
includes/opinionstage-functions.php CHANGED
@@ -1,93 +1,93 @@
1
- <?php
2
-
3
- // block direct access to plugin PHP files:
4
- defined( 'ABSPATH' ) or die();
5
-
6
- /* --- Wordpress Hooks Implementations --- */
7
-
8
- /**
9
- * Initialize the plugin
10
- */
11
- function opinionstage_init() {
12
- $os_options = (array) get_option(OPINIONSTAGE_OPTIONS_KEY);
13
- $os_options['version'] = OPINIONSTAGE_WIDGET_VERSION;
14
-
15
- // For backward compatibility
16
- if ( !isset($os_options['sidebar_placement_active']) ) {
17
- $os_options['sidebar_placement_active'] = 'false';
18
- }
19
-
20
- update_option(OPINIONSTAGE_OPTIONS_KEY, $os_options);
21
- }
22
-
23
- /**
24
- * Remove the plugin data
25
- */
26
- function opinionstage_uninstall() {
27
- delete_option(OPINIONSTAGE_OPTIONS_KEY);
28
- }
29
-
30
- /**
31
- * Check if the requested plugin is already available
32
- */
33
- function opinionstage_check_plugin_available($plugin_key) {
34
- $other_widget = (array) get_option($plugin_key); // Check the key of the other plugin
35
-
36
- // Check if OpinionStage plugin already installed.
37
- return (isset($other_widget['uid']) ||
38
- isset($other_widget['email']));
39
- }
40
- /**
41
- * Notify about other OpinionStage plugin already available
42
- */
43
- function opinionstage_other_plugin_installed_warning() {
44
- 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>";
45
- }
46
-
47
- /**
48
- * Add the flyout embed code to the page header
49
- */
50
- function opinionstage_add_flyout() {
51
- $os_options = (array) get_option(OPINIONSTAGE_OPTIONS_KEY);
52
-
53
- if (!empty($os_options['fly_id']) && $os_options['fly_out_active'] == 'true' && !is_admin() ) {
54
- // Will be added to the head of the page
55
- ?>
56
- <script type="text/javascript">//<![CDATA[
57
- window.AutoEngageSettings = {
58
- id : '<?php echo $os_options['fly_id']; ?>'
59
- };
60
- (function(d, s, id){
61
- var js,
62
- fjs = d.getElementsByTagName(s)[0],
63
- r = Math.floor(new Date().getTime() / 1000000);
64
- if (d.getElementById(id)) {return;}
65
- js = d.createElement(s); js.id = id; js.async=1;
66
- js.src = '<?php echo OPINIONSTAGE_SERVER_BASE; ?>' + '/assets/autoengage.js?' + r;
67
- fjs.parentNode.insertBefore(js, fjs);
68
- }(document, 'script', 'os-jssdk'));
69
-
70
- //]]></script>
71
-
72
- <?php
73
- }
74
- }
75
- function opinionstage_is_guten_enabled(){
76
- $block_editor_oswp = version_compare( $GLOBALS['wp_version'], '5.0-beta', '>' );
77
- if($block_editor_oswp == false){
78
- if( function_exists( 'is_gutenberg_page' ) && is_gutenberg_page() ){
79
- return true;
80
- }else{
81
- return false;
82
- }
83
- }else{
84
- global $current_screen;
85
- $current_screen = get_current_screen();
86
- if( method_exists($current_screen, 'is_block_editor') && $current_screen->is_block_editor() ){
87
- return true;
88
- }else{
89
- return false;
90
- }
91
- }
92
- }
93
- ?>
1
+ <?php
2
+
3
+ // block direct access to plugin PHP files:
4
+ defined( 'ABSPATH' ) or die();
5
+
6
+ /* --- Wordpress Hooks Implementations --- */
7
+
8
+ /**
9
+ * Initialize the plugin
10
+ */
11
+ function opinionstage_init() {
12
+ $os_options = (array) get_option(OPINIONSTAGE_OPTIONS_KEY);
13
+ $os_options['version'] = OPINIONSTAGE_WIDGET_VERSION;
14
+
15
+ // For backward compatibility
16
+ if ( !isset($os_options['sidebar_placement_active']) ) {
17
+ $os_options['sidebar_placement_active'] = 'false';
18
+ }
19
+
20
+ update_option(OPINIONSTAGE_OPTIONS_KEY, $os_options);
21
+ }
22
+
23
+ /**
24
+ * Remove the plugin data
25
+ */
26
+ function opinionstage_uninstall() {
27
+ delete_option(OPINIONSTAGE_OPTIONS_KEY);
28
+ }
29
+
30
+ /**
31
+ * Check if the requested plugin is already available
32
+ */
33
+ function opinionstage_check_plugin_available($plugin_key) {
34
+ $other_widget = (array) get_option($plugin_key); // Check the key of the other plugin
35
+
36
+ // Check if OpinionStage plugin already installed.
37
+ return (isset($other_widget['uid']) ||
38
+ isset($other_widget['email']));
39
+ }
40
+ /**
41
+ * Notify about other OpinionStage plugin already available
42
+ */
43
+ function opinionstage_other_plugin_installed_warning() {
44
+ 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>";
45
+ }
46
+
47
+ /**
48
+ * Add the flyout embed code to the page header
49
+ */
50
+ function opinionstage_add_flyout() {
51
+ $os_options = (array) get_option(OPINIONSTAGE_OPTIONS_KEY);
52
+
53
+ if (!empty($os_options['fly_id']) && $os_options['fly_out_active'] == 'true' && !is_admin() ) {
54
+ // Will be added to the head of the page
55
+ ?>
56
+ <script type="text/javascript">//<![CDATA[
57
+ window.AutoEngageSettings = {
58
+ id : '<?php echo $os_options['fly_id']; ?>'
59
+ };
60
+ (function(d, s, id){
61
+ var js,
62
+ fjs = d.getElementsByTagName(s)[0],
63
+ r = Math.floor(new Date().getTime() / 1000000);
64
+ if (d.getElementById(id)) {return;}
65
+ js = d.createElement(s); js.id = id; js.async=1;
66
+ js.src = '<?php echo OPINIONSTAGE_SERVER_BASE; ?>' + '/assets/autoengage.js?' + r;
67
+ fjs.parentNode.insertBefore(js, fjs);
68
+ }(document, 'script', 'os-jssdk'));
69
+
70
+ //]]></script>
71
+
72
+ <?php
73
+ }
74
+ }
75
+ function opinionstage_is_guten_enabled(){
76
+ $block_editor_oswp = version_compare( $GLOBALS['wp_version'], '5.0-beta', '>' );
77
+ if($block_editor_oswp == false){
78
+ if( function_exists( 'is_gutenberg_page' ) && is_gutenberg_page() ){
79
+ return true;
80
+ }else{
81
+ return false;
82
+ }
83
+ }else{
84
+ global $current_screen;
85
+ $current_screen = get_current_screen();
86
+ if( method_exists($current_screen, 'is_block_editor') && $current_screen->is_block_editor() ){
87
+ return true;
88
+ }else{
89
+ return false;
90
+ }
91
+ }
92
+ }
93
+ ?>
opinionstage-polls.php CHANGED
@@ -3,7 +3,7 @@
3
  Plugin Name: Poll, Survey, Form & Quiz Maker by OpinionStage (Deprecated)
4
  Plugin URI: https://www.opinionstage.com
5
  Description: Add a highly engaging poll, survey, quiz or contact form builder to your site. You can add the poll, survey, quiz or form to any post/page or to the sidebar.
6
- Version: 19.6.19
7
  Author: OpinionStage.com
8
  Author URI: https://www.opinionstage.com
9
  Text Domain: social-polls-by-opinionstage
3
  Plugin Name: Poll, Survey, Form & Quiz Maker by OpinionStage (Deprecated)
4
  Plugin URI: https://www.opinionstage.com
5
  Description: Add a highly engaging poll, survey, quiz or contact form builder to your site. You can add the poll, survey, quiz or form to any post/page or to the sidebar.
6
+ Version: 19.6.20
7
  Author: OpinionStage.com
8
  Author URI: https://www.opinionstage.com
9
  Text Domain: social-polls-by-opinionstage
plugin.php CHANGED
@@ -3,7 +3,7 @@
3
  Plugin Name: Poll, Survey, Form & Quiz Maker by OpinionStage
4
  Plugin URI: https://www.opinionstage.com
5
  Description: Add a highly engaging poll, survey, quiz or contact form builder to your site. You can add the poll, survey, quiz or form to any post/page or to the sidebar.
6
- Version: 19.6.19
7
  Author: OpinionStage.com
8
  Author URI: https://www.opinionstage.com
9
  Text Domain: social-polls-by-opinionstage
@@ -24,7 +24,7 @@ if ( defined('WP_DEBUG') && true === WP_DEBUG ) {
24
  }
25
  }
26
 
27
- define('OPINIONSTAGE_WIDGET_VERSION', '19.6.19');
28
 
29
  define('OPINIONSTAGE_TEXT_DOMAIN', 'social-polls-by-opinionstage');
30
 
3
  Plugin Name: Poll, Survey, Form & Quiz Maker by OpinionStage
4
  Plugin URI: https://www.opinionstage.com
5
  Description: Add a highly engaging poll, survey, quiz or contact form builder to your site. You can add the poll, survey, quiz or form to any post/page or to the sidebar.
6
+ Version: 19.6.20
7
  Author: OpinionStage.com
8
  Author URI: https://www.opinionstage.com
9
  Text Domain: social-polls-by-opinionstage
24
  }
25
  }
26
 
27
+ define('OPINIONSTAGE_WIDGET_VERSION', '19.6.20');
28
 
29
  define('OPINIONSTAGE_TEXT_DOMAIN', 'social-polls-by-opinionstage');
30
 
readme.txt CHANGED
@@ -4,7 +4,7 @@ Donate link: https://www.opinionstage.com
4
  Tags: poll, quiz, survey, form, interactive content
5
  Requires at least: 2.8
6
  Tested up to: 5.1
7
- Stable tag: 19.6.19
8
 
9
  Add a beautiful & top performing Poll, Survey, Quiz or Form to your site. Create from scratch or use templates. Set it up in Minutes.
10
 
@@ -156,6 +156,8 @@ Opinion Stage offers many built-in customization options such as selecting the c
156
  N/A
157
 
158
  == Changelog ==
 
 
159
  = 19.6.19 =
160
  * readme update
161
  = 19.6.18 =
@@ -686,4 +688,4 @@ N/A
686
  = 1.0.1 =
687
  * Improvements in the poll embed flow to ease insertion of polls
688
  = 1.0.0 =
689
- * First social poll version
4
  Tags: poll, quiz, survey, form, interactive content
5
  Requires at least: 2.8
6
  Tested up to: 5.1
7
+ Stable tag: 19.6.20
8
 
9
  Add a beautiful & top performing Poll, Survey, Quiz or Form to your site. Create from scratch or use templates. Set it up in Minutes.
10
 
156
  N/A
157
 
158
  == Changelog ==
159
+ = 19.6.20 =
160
+ * bugfixes
161
  = 19.6.19 =
162
  * readme update
163
  = 19.6.18 =
688
  = 1.0.1 =
689
  * Improvements in the poll embed flow to ease insertion of polls
690
  = 1.0.0 =
691
+ * First social poll version