Version Description
- Oct 12, 2020 =
- Fixed: On the plugin settings page, the height of the buttons is too small compared to the width.
- Enhancement: The plugin settings page has been redesigned. The sidebar added to all tabs for better usability.
Download this release
Release Info
Developer | Arthur Gareginyan |
Plugin | Head and Footer Scripts Inserter |
Version | 4.47 |
Comparing to | |
See all releases |
Code changes from version 4.46 to 4.47
- header-and-footer-scripts-inserter.php +1 -1
- inc/css/admin.css +3 -0
- inc/php/page.php +3 -4
- inc/php/tabs/faq.php +296 -288
- inc/php/tabs/support.php +47 -39
- inc/php/tabs/usage.php +35 -27
- readme.txt +7 -3
header-and-footer-scripts-inserter.php
CHANGED
@@ -5,7 +5,7 @@
|
|
5 |
* Description: Easily and safely add your custom HTML code (plus JavaScript, CSS, etc.) to your WordPress website, directly out of the WordPress Admin Area, without the need to have an external editor.
|
6 |
* Author: Space X-Chimp
|
7 |
* Author URI: https://www.spacexchimp.com
|
8 |
-
* Version: 4.
|
9 |
* License: GPL3
|
10 |
* Text Domain: header-and-footer-scripts-inserter
|
11 |
* Domain Path: /languages/
|
5 |
* Description: Easily and safely add your custom HTML code (plus JavaScript, CSS, etc.) to your WordPress website, directly out of the WordPress Admin Area, without the need to have an external editor.
|
6 |
* Author: Space X-Chimp
|
7 |
* Author URI: https://www.spacexchimp.com
|
8 |
+
* Version: 4.47
|
9 |
* License: GPL3
|
10 |
* Text Domain: header-and-footer-scripts-inserter
|
11 |
* Domain Path: /languages/
|
inc/css/admin.css
CHANGED
@@ -19,6 +19,9 @@ p {
|
|
19 |
.postbox a {
|
20 |
text-decoration: none;
|
21 |
}
|
|
|
|
|
|
|
22 |
|
23 |
/* Title and Description of page
|
24 |
-------------------------------------------------------------- */
|
19 |
.postbox a {
|
20 |
text-decoration: none;
|
21 |
}
|
22 |
+
.postbox button.btn {
|
23 |
+
height: 34px;
|
24 |
+
}
|
25 |
|
26 |
/* Title and Description of page
|
27 |
-------------------------------------------------------------- */
|
inc/php/page.php
CHANGED
@@ -48,12 +48,11 @@ function spacexchimp_p006_render_submenu_page() {
|
|
48 |
</ul>
|
49 |
<!-- END-TABS NAVIGATION MENU -->
|
50 |
|
|
|
|
|
|
|
51 |
<!-- TAB MAIN -->
|
52 |
<div class="tab-page fade active in" id="tab-core">
|
53 |
-
|
54 |
-
<!-- INCLUDE SIDEBAR -->
|
55 |
-
<?php require_once( $plugin['path'] . 'inc/php/sidebar.php' ); ?>
|
56 |
-
|
57 |
<?php require_once( $plugin['path'] . 'inc/php/tabs/settings.php' ); ?>
|
58 |
|
59 |
<!-- INCLUDE PHP-JS FILE -->
|
48 |
</ul>
|
49 |
<!-- END-TABS NAVIGATION MENU -->
|
50 |
|
51 |
+
<!-- INCLUDE SIDEBAR -->
|
52 |
+
<?php require_once( $plugin['path'] . 'inc/php/sidebar.php' ); ?>
|
53 |
+
|
54 |
<!-- TAB MAIN -->
|
55 |
<div class="tab-page fade active in" id="tab-core">
|
|
|
|
|
|
|
|
|
56 |
<?php require_once( $plugin['path'] . 'inc/php/tabs/settings.php' ); ?>
|
57 |
|
58 |
<!-- INCLUDE PHP-JS FILE -->
|
inc/php/tabs/faq.php
CHANGED
@@ -9,155 +9,159 @@ defined( 'ABSPATH' ) or die( "Restricted access!" );
|
|
9 |
* Render FAQ Tab Content
|
10 |
*/
|
11 |
?>
|
12 |
-
<div class="
|
13 |
-
<
|
14 |
-
|
15 |
|
16 |
-
|
17 |
-
|
18 |
-
|
19 |
|
20 |
-
|
21 |
-
|
22 |
-
|
23 |
-
for ( $i = 1; $i <= $loopvalue; $i++ ) {
|
24 |
-
echo '<div class="panel panel-default">
|
25 |
-
<div class="panel-heading">
|
26 |
-
<a data-toggle="collapse" data-parent="#collapse-group" href="#element' . $i . '">
|
27 |
-
<h4 class="panel-title"></h4>
|
28 |
-
</a>
|
29 |
-
</div>
|
30 |
-
<div id="element' . $i . '" class="panel-collapse collapse">
|
31 |
-
<div class="panel-body">
|
32 |
-
</div>
|
33 |
-
</div>
|
34 |
-
</div>';
|
35 |
-
}
|
36 |
-
?>
|
37 |
-
</div>
|
38 |
|
39 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
40 |
|
41 |
-
|
42 |
-
<?php _e( 'Where can I find a documentation for this plugin?', $plugin['text'] ); ?>
|
43 |
-
</div>
|
44 |
-
<div class="answer-<?php echo $i; $i++ ?>">
|
45 |
-
<?php
|
46 |
-
printf(
|
47 |
-
__( 'Please visit our %s Documentation site %s to view documentation.', $plugin['text'] ),
|
48 |
-
'<a href="https://docs.spacexchimp.com" target="_blank">',
|
49 |
-
'</a>'
|
50 |
-
);
|
51 |
-
?>
|
52 |
-
</div>
|
53 |
|
54 |
-
|
55 |
-
|
56 |
-
|
57 |
-
|
58 |
-
|
59 |
-
|
60 |
-
|
61 |
-
|
62 |
-
|
63 |
-
|
64 |
-
|
65 |
-
|
66 |
-
);
|
67 |
-
?>
|
68 |
-
</div>
|
69 |
|
70 |
-
|
71 |
-
|
72 |
-
|
73 |
-
|
74 |
-
|
75 |
-
|
76 |
-
|
77 |
-
|
78 |
-
|
79 |
-
|
80 |
-
|
|
|
|
|
|
|
|
|
81 |
|
82 |
-
|
83 |
-
|
84 |
-
|
85 |
-
|
86 |
-
|
87 |
-
|
88 |
-
|
89 |
-
|
90 |
-
|
91 |
-
|
92 |
-
|
93 |
|
94 |
-
|
95 |
-
|
96 |
-
|
97 |
-
|
98 |
-
|
99 |
-
|
100 |
-
|
101 |
-
|
102 |
-
|
103 |
-
|
104 |
-
|
105 |
-
<?php
|
106 |
-
printf(
|
107 |
-
__( 'If you want to help translate this plugin, please visit the %s.', $plugin['text'] ),
|
108 |
-
'<a href="https://translate.wordpress.org/projects/wp-plugins/' . $plugin['slug'] . '" target="_blank">translation page</a>'
|
109 |
-
);
|
110 |
-
?>
|
111 |
-
<?php _e( 'You can also use the POT file that is included and placed in the "languages" folder to create a translation PO file.', $plugin['text'] ); ?>
|
112 |
-
<?php
|
113 |
-
printf(
|
114 |
-
__( 'Just send the PO file to us ( %s ) and we will include this translation within the next plugin update.', $plugin['text'] ),
|
115 |
-
'<a href="mailto:support@spacexchimp.com?subject=New translation of the ' . $plugin['name'] . ' plugin">support@spacexchimp.com</a>'
|
116 |
-
);
|
117 |
-
?>
|
118 |
-
</div>
|
119 |
|
120 |
-
|
121 |
-
|
122 |
-
|
123 |
-
|
124 |
-
|
125 |
-
|
126 |
-
|
127 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
128 |
|
129 |
-
|
130 |
-
|
131 |
-
|
132 |
-
|
133 |
-
|
134 |
-
|
|
|
|
|
135 |
|
136 |
-
|
137 |
-
|
138 |
-
|
139 |
-
|
140 |
-
|
141 |
-
|
142 |
-
</div>
|
143 |
|
144 |
-
|
145 |
-
|
146 |
-
|
147 |
-
|
148 |
-
|
149 |
-
|
150 |
-
|
151 |
|
152 |
-
|
153 |
-
|
154 |
-
|
155 |
-
|
156 |
-
|
157 |
-
|
158 |
-
|
159 |
-
|
160 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
161 |
<pre><code>function my_custom_html_code() {
|
162 |
|
163 |
// Stop the function if this is not the Home page of website
|
@@ -170,169 +174,173 @@ defined( 'ABSPATH' ) or die( "Restricted access!" );
|
|
170 |
|
171 |
}
|
172 |
add_action( 'wp_head', 'my_custom_html_code' );</code></pre>
|
173 |
-
|
174 |
-
|
175 |
-
|
176 |
-
|
177 |
-
|
178 |
-
|
179 |
-
|
180 |
|
181 |
-
|
182 |
-
|
183 |
-
|
184 |
-
|
185 |
-
|
186 |
-
|
187 |
-
|
188 |
-
|
189 |
-
|
190 |
-
|
191 |
-
|
192 |
-
|
193 |
-
|
194 |
-
|
195 |
-
|
196 |
|
197 |
-
|
198 |
-
|
199 |
-
|
200 |
-
|
201 |
-
|
202 |
-
|
203 |
-
|
204 |
-
|
205 |
-
|
206 |
-
|
207 |
-
|
208 |
-
|
209 |
-
|
210 |
|
211 |
-
|
212 |
-
|
213 |
-
|
214 |
-
|
215 |
-
|
216 |
-
|
217 |
-
|
218 |
-
|
219 |
-
|
220 |
-
|
221 |
|
222 |
-
|
223 |
-
|
224 |
-
|
225 |
-
|
226 |
-
|
227 |
-
|
228 |
-
|
229 |
-
|
230 |
-
|
231 |
-
|
232 |
-
|
233 |
-
|
234 |
-
|
235 |
-
|
236 |
-
|
237 |
-
|
238 |
-
|
239 |
-
|
240 |
-
|
241 |
-
|
242 |
-
|
243 |
-
|
244 |
-
|
245 |
-
|
246 |
-
|
247 |
-
|
248 |
-
|
249 |
-
|
250 |
|
251 |
-
|
252 |
-
|
253 |
-
|
254 |
-
|
255 |
-
|
256 |
-
|
257 |
-
|
258 |
-
|
259 |
-
|
260 |
-
|
261 |
-
|
262 |
-
|
263 |
-
|
264 |
-
|
265 |
-
|
266 |
|
267 |
-
|
268 |
-
|
269 |
-
|
270 |
-
|
271 |
-
|
272 |
-
|
273 |
-
|
274 |
-
|
275 |
-
|
276 |
-
|
277 |
-
|
278 |
-
|
279 |
-
|
280 |
-
|
281 |
-
|
282 |
|
283 |
-
|
284 |
-
|
285 |
-
|
286 |
-
|
287 |
-
|
288 |
-
|
289 |
-
|
290 |
-
|
291 |
-
|
292 |
-
|
293 |
-
|
294 |
-
|
295 |
|
296 |
-
|
297 |
-
|
298 |
-
|
299 |
-
|
300 |
-
|
301 |
-
|
302 |
-
|
303 |
-
|
304 |
-
|
305 |
-
|
306 |
-
|
307 |
-
|
308 |
|
309 |
-
|
310 |
-
|
311 |
-
|
312 |
-
|
313 |
-
|
314 |
-
|
315 |
-
|
316 |
-
|
317 |
-
|
318 |
-
|
319 |
-
|
320 |
-
|
321 |
|
322 |
-
|
323 |
-
|
324 |
-
|
325 |
-
|
326 |
-
|
327 |
-
|
328 |
-
|
329 |
-
|
330 |
-
|
331 |
-
|
332 |
-
|
333 |
-
|
334 |
-
|
335 |
|
|
|
|
|
|
|
|
|
336 |
</div>
|
337 |
</div>
|
338 |
<?php
|
9 |
* Render FAQ Tab Content
|
10 |
*/
|
11 |
?>
|
12 |
+
<div class="has-sidebar sm-padded">
|
13 |
+
<div id="post-body-content" class="has-sidebar-content">
|
14 |
+
<div class="meta-box-sortabless">
|
15 |
|
16 |
+
<div class="postbox">
|
17 |
+
<h3 class="title"><?php _e( 'Frequently Asked Questions', $plugin['text'] ); ?></h3>
|
18 |
+
<div class="inside">
|
19 |
|
20 |
+
<p class="note">
|
21 |
+
<?php _e( 'If you have a question, please read the Frequently Asked Questions below to see if the answer is here.', $plugin['text'] ); ?>
|
22 |
+
</p>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
23 |
|
24 |
+
<div class="panel-group" id="collapse-group">
|
25 |
+
<?php
|
26 |
+
$loopvalue = '20';
|
27 |
+
for ( $i = 1; $i <= $loopvalue; $i++ ) {
|
28 |
+
echo '<div class="panel panel-default">
|
29 |
+
<div class="panel-heading">
|
30 |
+
<a data-toggle="collapse" data-parent="#collapse-group" href="#element' . $i . '">
|
31 |
+
<h4 class="panel-title"></h4>
|
32 |
+
</a>
|
33 |
+
</div>
|
34 |
+
<div id="element' . $i . '" class="panel-collapse collapse">
|
35 |
+
<div class="panel-body">
|
36 |
+
</div>
|
37 |
+
</div>
|
38 |
+
</div>';
|
39 |
+
}
|
40 |
+
?>
|
41 |
+
</div>
|
42 |
|
43 |
+
<?php $i = 1; ?>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
44 |
|
45 |
+
<div class="question-<?php echo $i; ?>">
|
46 |
+
<?php _e( 'Where can I find a documentation for this plugin?', $plugin['text'] ); ?>
|
47 |
+
</div>
|
48 |
+
<div class="answer-<?php echo $i; $i++ ?>">
|
49 |
+
<?php
|
50 |
+
printf(
|
51 |
+
__( 'Please visit our %s Documentation site %s to view documentation.', $plugin['text'] ),
|
52 |
+
'<a href="https://docs.spacexchimp.com" target="_blank">',
|
53 |
+
'</a>'
|
54 |
+
);
|
55 |
+
?>
|
56 |
+
</div>
|
|
|
|
|
|
|
57 |
|
58 |
+
<div class="question-<?php echo $i; ?>">
|
59 |
+
<?php _e( 'Will this plugin work on my wordpress.COM website?', $plugin['text'] ); ?>
|
60 |
+
</div>
|
61 |
+
<div class="answer-<?php echo $i; $i++ ?>">
|
62 |
+
<?php _e( 'Sorry, this plugin is available for use only on self-hosted (wordpress.ORG) websites.', $plugin['text'] ); ?>
|
63 |
+
<br><br>
|
64 |
+
<?php _e( 'Please note that there is a difference between wordpress.COM and wordpress.ORG.', $plugin['text'] ); ?>
|
65 |
+
<?php _e( 'The wordpress.COM is a blog hosting service that offers a limited version of the popular self-hosted WordPress software.', $plugin['text'] ); ?>
|
66 |
+
<?php
|
67 |
+
printf(
|
68 |
+
__( 'You can learn more about the difference here: %s .', $plugin['text'] ),
|
69 |
+
'<a href="https://en.support.wordpress.com/com-vs-org/" target="_blank">https://en.support.wordpress.com/com-vs-org/</a>'
|
70 |
+
);
|
71 |
+
?>
|
72 |
+
</div>
|
73 |
|
74 |
+
<div class="question-<?php echo $i; ?>">
|
75 |
+
<?php _e( 'Will this plugin work/compatible with the theme I use?', $plugin['text'] ); ?>
|
76 |
+
</div>
|
77 |
+
<div class="answer-<?php echo $i; $i++ ?>">
|
78 |
+
<?php _e( 'This plugin is compatible with most themes.', $plugin['text'] ); ?>
|
79 |
+
<?php _e( 'But, unfortunately, we cannot check it with all third-party themes (especially paid ones) for compatibility, therefore there are cases when this plugin does not work with a third-party theme.', $plugin['text'] ); ?>
|
80 |
+
<?php _e( 'We constantly check this plugin for compatibility with third-party themes.', $plugin['text'] ); ?>
|
81 |
+
<?php _e( 'If we find that this plugin is incompatible with a third-party theme, and if we can fix it on our part, we release an update of our plugin to fix the problem.', $plugin['text'] ); ?>
|
82 |
+
<br><br>
|
83 |
+
<?php _e( 'If you find a conflict between our plugin and a third-party theme, please let us know and we will definitely release an update of our plugin to fix the problem.', $plugin['text'] ); ?>
|
84 |
+
</div>
|
85 |
|
86 |
+
<div class="question-<?php echo $i; ?>">
|
87 |
+
<?php _e( 'Will this plugin work/compatible with other plugins that I use?', $plugin['text'] ); ?>
|
88 |
+
</div>
|
89 |
+
<div class="answer-<?php echo $i; $i++ ?>">
|
90 |
+
<?php _e( 'This plugin is compatible with most plugins.', $plugin['text'] ); ?>
|
91 |
+
<?php _e( 'But, unfortunately, we cannot check it with all third-party plugins (especially paid ones) for compatibility, therefore there are cases when this plugin does not work with a third-party plugin.', $plugin['text'] ); ?>
|
92 |
+
<?php _e( 'We constantly check this plugin for compatibility with third-party plugins.', $plugin['text'] ); ?>
|
93 |
+
<?php _e( 'If we find that this plugin is incompatible with a third-party plugin, and if we can fix it on our part, we release an update of our plugin to fix the problem.', $plugin['text'] ); ?>
|
94 |
+
<br><br>
|
95 |
+
<?php _e( 'If you find a conflict between our plugin and a third-party plugin, please let us know and we will definitely release an update of our plugin to fix the problem.', $plugin['text'] ); ?>
|
96 |
+
</div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
97 |
|
98 |
+
<div class="question-<?php echo $i; ?>">
|
99 |
+
<?php _e( 'Can I use this plugin on my language?', $plugin['text'] ); ?>
|
100 |
+
</div>
|
101 |
+
<div class="answer-<?php echo $i; $i++ ?>">
|
102 |
+
<?php _e( 'Yes.', $plugin['text'] ); ?>
|
103 |
+
<?php _e( 'This plugin is ready for translation and has already been translated into several languages.', $plugin['text'] ); ?>
|
104 |
+
<?php _e( 'But If your language is not available then you can make one.', $plugin['text'] ); ?>
|
105 |
+
<?php _e( 'It is also possible that not all existing translations are up-to-date or correct, so you are welcome to make corrections.', $plugin['text'] ); ?>
|
106 |
+
<?php _e( 'Many of plugin users would be delighted if you share your translation with the community.', $plugin['text'] ); ?>
|
107 |
+
<?php _e( 'Thanks for your contribution!', $plugin['text'] ); ?>
|
108 |
+
<br><br>
|
109 |
+
<?php
|
110 |
+
printf(
|
111 |
+
__( 'If you want to help translate this plugin, please visit the %s.', $plugin['text'] ),
|
112 |
+
'<a href="https://translate.wordpress.org/projects/wp-plugins/' . $plugin['slug'] . '" target="_blank">translation page</a>'
|
113 |
+
);
|
114 |
+
?>
|
115 |
+
<?php _e( 'You can also use the POT file that is included and placed in the "languages" folder to create a translation PO file.', $plugin['text'] ); ?>
|
116 |
+
<?php
|
117 |
+
printf(
|
118 |
+
__( 'Just send the PO file to us ( %s ) and we will include this translation within the next plugin update.', $plugin['text'] ),
|
119 |
+
'<a href="mailto:support@spacexchimp.com?subject=New translation of the ' . $plugin['name'] . ' plugin">support@spacexchimp.com</a>'
|
120 |
+
);
|
121 |
+
?>
|
122 |
+
</div>
|
123 |
|
124 |
+
<div class="question-<?php echo $i; ?>">
|
125 |
+
<?php _e( 'How does it work?', $plugin['text'] ); ?>
|
126 |
+
</div>
|
127 |
+
<div class="answer-<?php echo $i; $i++ ?>">
|
128 |
+
<?php _e( 'On the "Main" tab, place your custom HTML code in the code editor field and click the "Save changes" button.', $plugin['text'] ); ?>
|
129 |
+
<?php _e( 'Enjoy the result of applying your custom HTML code.', $plugin['text'] ); ?>
|
130 |
+
<?php _e( 'It\'s that simple!', $plugin['text'] ); ?>
|
131 |
+
</div>
|
132 |
|
133 |
+
<div class="question-<?php echo $i; ?>">
|
134 |
+
<?php _e( 'How much of HTML code (characters) I can enter in the code editor?', $plugin['text'] ); ?>
|
135 |
+
</div>
|
136 |
+
<div class="answer-<?php echo $i; $i++ ?>">
|
137 |
+
<?php _e( 'We don\'t limit the number of characters.', $plugin['text'] ); ?>
|
138 |
+
</div>
|
|
|
139 |
|
140 |
+
<div class="question-<?php echo $i; ?>">
|
141 |
+
<?php _e( 'Does this plugin requires any modification of the theme?', $plugin['text'] ); ?>
|
142 |
+
</div>
|
143 |
+
<div class="answer-<?php echo $i; $i++ ?>">
|
144 |
+
<?php _e( 'Absolutely not.', $plugin['text'] ); ?>
|
145 |
+
<?php _e( 'This plugin is configurable entirely from the plugin settings page.', $plugin['text'] ); ?>
|
146 |
+
</div>
|
147 |
|
148 |
+
<div class="question-<?php echo $i; ?>">
|
149 |
+
<?php _e( 'Does this require any knowledge of HTML or CSS?', $plugin['text'] ); ?>
|
150 |
+
</div>
|
151 |
+
<div class="answer-<?php echo $i; $i++ ?>">
|
152 |
+
<?php _e( 'This plugin can be configured with no knowledge of HTML or CSS, using an easy-to-use plugin settings page.', $plugin['text'] ); ?>
|
153 |
+
<?php _e( 'But you need to know the HTML or CSS in order to add/remove/modify the HTML or CSS code by using this plugin.', $plugin['text'] ); ?>
|
154 |
+
</div>
|
155 |
+
|
156 |
+
<div class="question-<?php echo $i; ?>">
|
157 |
+
<?php _e( 'Can I add my custom HTML code to a specific page of my website?', $plugin['text'] ); ?>
|
158 |
+
</div>
|
159 |
+
<div class="answer-<?php echo $i; $i++ ?>">
|
160 |
+
<?php _e( 'For now, this plugin does not have an option to apply the custom HTML code only on specific pages.', $plugin['text'] ); ?>
|
161 |
+
<?php _e( 'We plan to add this feature soon.', $plugin['text'] ); ?>
|
162 |
+
<?php _e( 'But for now in order to apply your custom HTML code only on specific pages of your website, you need to wrap your custom HTML code in a PHP code that will determine the page you want.', $plugin['text'] ); ?>
|
163 |
+
<?php _e( 'You need something like this:', $plugin['text'] ); ?>
|
164 |
+
<br><br>
|
165 |
<pre><code>function my_custom_html_code() {
|
166 |
|
167 |
// Stop the function if this is not the Home page of website
|
174 |
|
175 |
}
|
176 |
add_action( 'wp_head', 'my_custom_html_code' );</code></pre>
|
177 |
+
<?php
|
178 |
+
printf(
|
179 |
+
__( 'To apply the PHP code on a website, we can recommend you to use another our plugin called %s.', $plugin['text'] ),
|
180 |
+
'<a href="https://wordpress.org/plugins/my-custom-functions/" target="_blank">My Custom Functions</a>'
|
181 |
+
);
|
182 |
+
?>
|
183 |
+
</div>
|
184 |
|
185 |
+
<div class="question-<?php echo $i; ?> question-red">
|
186 |
+
<?php _e( 'It\'s not working.', $plugin['text'] ); ?>
|
187 |
+
<?php _e( 'What could be wrong?', $plugin['text'] ); ?>
|
188 |
+
</div>
|
189 |
+
<div class="answer-<?php echo $i; $i++ ?>">
|
190 |
+
<?php _e( 'As with every plugin, it\'s possible that things don\'t work.', $plugin['text'] ); ?>
|
191 |
+
<?php _e( 'It\'s impossible to tell what could be wrong exactly.', $plugin['text'] ); ?>
|
192 |
+
<?php _e( 'The most common reason for this is a web browser\'s cache.', $plugin['text'] ); ?>
|
193 |
+
<?php _e( 'Every web browser stores a cache of the websites you visit (pages, images, and etc.) to reduce bandwidth usage and server load.', $plugin['text'] ); ?>
|
194 |
+
<?php _e( 'This is called the browser\'s cache.', $plugin['text'] ); ?>
|
195 |
+
<?php _e( 'Clearing your browser\'s cache may solve the problem.', $plugin['text'] ); ?>
|
196 |
+
<br><br>
|
197 |
+
<?php _e( 'If you post a support request in the plugin\'s support forum on WordPress.org, we\'d be happy to give it a look and try to help out.', $plugin['text'] ); ?>
|
198 |
+
<?php _e( 'Please include as much information as possible, including a link to your website where the problem can be seen.', $plugin['text'] ); ?>
|
199 |
+
</div>
|
200 |
|
201 |
+
<div class="question-<?php echo $i; ?> question-red">
|
202 |
+
<?php _e( 'My custom HTML code is not working.', $plugin['text'] ); ?>
|
203 |
+
<?php _e( 'What could be wrong?', $plugin['text'] ); ?>
|
204 |
+
</div>
|
205 |
+
<div class="answer-<?php echo $i; $i++ ?>">
|
206 |
+
<?php _e( 'It happens that your custom HTML code that you insert on the plugin page does not work, even if an error message does not appear.', $plugin['text'] ); ?>
|
207 |
+
<?php _e( 'Here are a few of the most likely causes of the issue:', $plugin['text'] ); ?>
|
208 |
+
<ol class="custom-list">
|
209 |
+
<li><?php _e( 'You have a typo during the insertion of your custom HTML code.', $plugin['text'] ); ?></li>
|
210 |
+
<li><?php _e( 'Your custom HTML code has a syntax error.', $plugin['text'] ); ?></li>
|
211 |
+
<li><?php _e( 'Your custom HTML code is incorrect and may not work.', $plugin['text'] ); ?></li>
|
212 |
+
</ol>
|
213 |
+
</div>
|
214 |
|
215 |
+
<div class="question-<?php echo $i; ?> question-red">
|
216 |
+
<?php _e( 'The last WordPress update is preventing me from editing my website that is using this plugin.', $plugin['text'] ); ?>
|
217 |
+
<?php _e( 'Why is this?', $plugin['text'] ); ?>
|
218 |
+
</div>
|
219 |
+
<div class="answer-<?php echo $i; $i++ ?>">
|
220 |
+
<?php _e( 'This plugin can not cause such problem.', $plugin['text'] ); ?>
|
221 |
+
<?php _e( 'More likely, the problem are related to the settings of the website.', $plugin['text'] ); ?>
|
222 |
+
<?php _e( 'It could just be a cache, so please try to clear your website\'s cache (may be you using a caching plugin, or some web service such as the CloudFlare) and then the cache of your web browser.', $plugin['text'] ); ?>
|
223 |
+
<?php _e( 'Also please try to re-login to the website, this too can help.', $plugin['text'] ); ?>
|
224 |
+
</div>
|
225 |
|
226 |
+
<div class="question-<?php echo $i; ?> question-red">
|
227 |
+
<?php _e( 'Where to report bug if found?', $plugin['text'] ); ?>
|
228 |
+
</div>
|
229 |
+
<div class="answer-<?php echo $i; $i++ ?>">
|
230 |
+
<?php _e( 'Bug reports are very welcome!', $plugin['text'] ); ?>
|
231 |
+
<?php
|
232 |
+
printf(
|
233 |
+
__( 'Please visit our %s contact page %s and report.', $plugin['text'] ),
|
234 |
+
'<a href="https://www.spacexchimp.com/contact.html" target="_blank">',
|
235 |
+
'</a>'
|
236 |
+
);
|
237 |
+
?>
|
238 |
+
<?php _e( 'Please do not forget to specify the name of the plugin.', $plugin['text'] ); ?>
|
239 |
+
<?php _e( 'Thank you!', $plugin['text'] ); ?>
|
240 |
+
<br><br>
|
241 |
+
<?php _e( 'Please include as much information as possible, including a link to your website where the problem can be seen.', $plugin['text'] ); ?>
|
242 |
+
<?php _e( 'Describe in more detail what exactly you are seeing.', $plugin['text'] ); ?>
|
243 |
+
<?php _e( 'Here are some examples:', $plugin['text'] ); ?>
|
244 |
+
<br><br>
|
245 |
+
<ul class="custom-list">
|
246 |
+
<li><?php _e( 'Elements of the plugin settings page are not working.', $plugin['text'] ); ?></li>
|
247 |
+
<li><?php _e( 'An error message is displayed on the plugin settings page.', $plugin['text'] ); ?></li>
|
248 |
+
<li><?php _e( 'An error message is displayed on the front end of website.', $plugin['text'] ); ?></li>
|
249 |
+
<li><?php _e( 'An error message is displayed on the back end of website.', $plugin['text'] ); ?></li>
|
250 |
+
<li><?php _e( 'Custom code is inserted on the plugin settings page, but it is not applied on the website.', $plugin['text'] ); ?></li>
|
251 |
+
<li><?php _e( 'Website is crashed.', $plugin['text'] ); ?></li>
|
252 |
+
</ul>
|
253 |
+
</div>
|
254 |
|
255 |
+
<div class="question-<?php echo $i; ?>">
|
256 |
+
<?php _e( 'Where to share any ideas or suggestions to make the plugin better?', $plugin['text'] ); ?>
|
257 |
+
</div>
|
258 |
+
<div class="answer-<?php echo $i; $i++ ?>">
|
259 |
+
<?php _e( 'Any suggestions are very welcome!', $plugin['text'] ); ?>
|
260 |
+
<?php
|
261 |
+
printf(
|
262 |
+
__( 'Please visit our %s contact page %s.', $plugin['text'] ),
|
263 |
+
'<a href="https://www.spacexchimp.com/contact.html" target="_blank">',
|
264 |
+
'</a>'
|
265 |
+
);
|
266 |
+
?>
|
267 |
+
<?php _e( 'Please do not forget to specify the name of the plugin.', $plugin['text'] ); ?>
|
268 |
+
<?php _e( 'Thank you!', $plugin['text'] ); ?>
|
269 |
+
</div>
|
270 |
|
271 |
+
<div class="question-<?php echo $i; ?>">
|
272 |
+
<?php _e( 'I love this plugin!', $plugin['text'] ); ?>
|
273 |
+
<?php _e( 'Can I help somehow?', $plugin['text'] ); ?>
|
274 |
+
</div>
|
275 |
+
<div class="answer-<?php echo $i; $i++ ?>">
|
276 |
+
<?php _e( 'Yes, any contributions are very welcome!', $plugin['text'] ); ?>
|
277 |
+
<?php
|
278 |
+
printf(
|
279 |
+
__( 'Please visit our %s Support Us %s page.', $plugin['text'] ),
|
280 |
+
'<a href="https://www.spacexchimp.com/donate.html" target="_blank">',
|
281 |
+
'</a>'
|
282 |
+
);
|
283 |
+
?>
|
284 |
+
<?php _e( 'Thank you!', $plugin['text'] ); ?>
|
285 |
+
</div>
|
286 |
|
287 |
+
<div class="question-<?php echo $i; ?>">
|
288 |
+
<?php _e( 'Where can I find information about your licenses, payment process and refunds?', $plugin['text'] ); ?>
|
289 |
+
</div>
|
290 |
+
<div class="answer-<?php echo $i; $i++ ?>">
|
291 |
+
<?php
|
292 |
+
printf(
|
293 |
+
__( 'Answers to common questions about our licenses, payment process and refunds can be found on our %s Common Questions %s page.', $plugin['text'] ),
|
294 |
+
'<a href="https://www.spacexchimp.com/faq.html" target="_blank">',
|
295 |
+
'</a>'
|
296 |
+
);
|
297 |
+
?>
|
298 |
+
</div>
|
299 |
|
300 |
+
<div class="question-<?php echo $i; ?>">
|
301 |
+
<?php _e( 'Where can I find information about your customer support?', $plugin['text'] ); ?>
|
302 |
+
</div>
|
303 |
+
<div class="answer-<?php echo $i; $i++ ?>">
|
304 |
+
<?php
|
305 |
+
printf(
|
306 |
+
__( 'Answers to common questions about our customer support can be found on our %s Common Questions %s page.', $plugin['text'] ),
|
307 |
+
'<a href="https://www.spacexchimp.com/faq.html" target="_blank">',
|
308 |
+
'</a>'
|
309 |
+
);
|
310 |
+
?>
|
311 |
+
</div>
|
312 |
|
313 |
+
<div class="question-<?php echo $i; ?>">
|
314 |
+
<?php _e( 'Where can I find information about your affiliate program?', $plugin['text'] ); ?>
|
315 |
+
</div>
|
316 |
+
<div class="answer-<?php echo $i; $i++ ?>">
|
317 |
+
<?php
|
318 |
+
printf(
|
319 |
+
__( 'Answers to common questions about our affiliate program can be found on our %s Common Questions %s page.', $plugin['text'] ),
|
320 |
+
'<a href="https://www.spacexchimp.com/faq.html" target="_blank">',
|
321 |
+
'</a>'
|
322 |
+
);
|
323 |
+
?>
|
324 |
+
</div>
|
325 |
|
326 |
+
<div class="question-<?php echo $i; ?>">
|
327 |
+
<?php _e( 'My question wasn\'t answered here.', $plugin['text'] ); ?>
|
328 |
+
</div>
|
329 |
+
<div class="answer-<?php echo $i; $i++ ?>">
|
330 |
+
<?php
|
331 |
+
printf(
|
332 |
+
__( 'You can ask your question on %s this page %s.', $plugin['text'] ),
|
333 |
+
'<a href="https://www.spacexchimp.com/contact.html" target="_blank">',
|
334 |
+
'</a>'
|
335 |
+
);
|
336 |
+
?>
|
337 |
+
<?php _e( 'But please keep in mind that this plugin is free, and there is no a special support team, so we have no way to answer everyone.', $plugin['text'] ); ?>
|
338 |
+
</div>
|
339 |
|
340 |
+
</div>
|
341 |
+
</div>
|
342 |
+
|
343 |
+
</div>
|
344 |
</div>
|
345 |
</div>
|
346 |
<?php
|
inc/php/tabs/support.php
CHANGED
@@ -9,45 +9,53 @@ defined( 'ABSPATH' ) or die( "Restricted access!" );
|
|
9 |
* Render Support Us Tab Content
|
10 |
*/
|
11 |
?>
|
12 |
-
<div class="
|
13 |
-
<
|
14 |
-
|
15 |
-
|
16 |
-
<
|
17 |
-
|
18 |
-
<
|
19 |
-
<
|
20 |
-
|
21 |
-
|
22 |
-
|
23 |
-
|
24 |
-
|
25 |
-
|
26 |
-
|
27 |
-
|
28 |
-
|
29 |
-
|
30 |
-
|
31 |
-
|
32 |
-
|
33 |
-
|
34 |
-
|
35 |
-
|
36 |
-
|
37 |
-
|
38 |
-
|
39 |
-
|
40 |
-
|
41 |
-
|
42 |
-
|
43 |
-
|
44 |
-
|
45 |
-
|
46 |
-
|
47 |
-
|
48 |
-
|
49 |
-
|
50 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
51 |
</div>
|
52 |
</div>
|
53 |
<?php
|
9 |
* Render Support Us Tab Content
|
10 |
*/
|
11 |
?>
|
12 |
+
<div class="has-sidebar sm-padded">
|
13 |
+
<div id="post-body-content" class="has-sidebar-content">
|
14 |
+
<div class="meta-box-sortabless">
|
15 |
+
|
16 |
+
<div class="postbox">
|
17 |
+
<h3 class="title"><?php _e( 'Support Us', $plugin['text'] ); ?></h3>
|
18 |
+
<div class="inside">
|
19 |
+
<span class="image-with-button pull-left">
|
20 |
+
<img src="<?php echo $plugin['url'] . 'inc/img/thanks.png'; ?>" alt="Thanks!">
|
21 |
+
<a href="https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=8A88KC7TFF6CS" target="_blank" class="btn btn-default button-labeled">
|
22 |
+
<span class="btn-label">
|
23 |
+
<img src="<?php echo $plugin['url'] . 'inc/img/paypal.svg'; ?>" alt="PayPal">
|
24 |
+
</span>
|
25 |
+
<?php _e( 'Donate with PayPal', $plugin['text'] ); ?>
|
26 |
+
</a>
|
27 |
+
</span>
|
28 |
+
<p>
|
29 |
+
<?php _e( 'Hello!', $plugin['text'] ); ?>
|
30 |
+
<?php
|
31 |
+
printf(
|
32 |
+
__( 'My name is %s Arthur %s, I\'m the founder of %s Space X-Chimp %s, which unites a small international team of young people.', $plugin['text'] ),
|
33 |
+
'<a href="https://www.instagram.com/arthur_gareginyan/" target="_blank">',
|
34 |
+
'</a>',
|
35 |
+
'<a href="https://www.spacexchimp.com" target="_blank">',
|
36 |
+
'</a>'
|
37 |
+
);
|
38 |
+
?>
|
39 |
+
</p>
|
40 |
+
<p>
|
41 |
+
<?php _e( 'Our intention is to create projects that will make this world a better place.', $plugin['text'] ); ?>
|
42 |
+
<?php _e( 'Our motto is - «Follow your dreams and don’t give up».', $plugin['text'] ); ?>
|
43 |
+
<?php _e( 'We are really passionate about our work, we like what we are doing and hope that you will be enriched by our projects too.', $plugin['text'] ); ?>
|
44 |
+
</p>
|
45 |
+
<p>
|
46 |
+
<?php _e( 'We spend a lot of time and effort trying to make sure that the themes, plugins and other things we build are useful, and the ultimate proof of that for us is that you actually want to use them.', $plugin['text'] ); ?>
|
47 |
+
<?php _e( 'But we are an independent developers, without a regular income, so every little contribution helps to cover our costs and allows us to spend more time creating things for awesome people like you to enjoy.', $plugin['text'] ); ?>
|
48 |
+
</p>
|
49 |
+
<p>
|
50 |
+
<?php _e( 'If you appreciate our work, you can buy us a cup of coffee!', $plugin['text'] ); ?>
|
51 |
+
</p>
|
52 |
+
<p>
|
53 |
+
<?php _e( 'Thank you for your support!', $plugin['text'] ); ?>
|
54 |
+
</p>
|
55 |
+
</div>
|
56 |
+
</div>
|
57 |
+
|
58 |
+
</div>
|
59 |
</div>
|
60 |
</div>
|
61 |
<?php
|
inc/php/tabs/usage.php
CHANGED
@@ -9,33 +9,41 @@ defined( 'ABSPATH' ) or die( "Restricted access!" );
|
|
9 |
* Render Usage Tab Content
|
10 |
*/
|
11 |
?>
|
12 |
-
<div class="
|
13 |
-
<
|
14 |
-
|
15 |
-
|
16 |
-
|
17 |
-
|
18 |
-
|
19 |
-
|
20 |
-
|
21 |
-
|
22 |
-
|
23 |
-
|
24 |
-
|
25 |
-
|
26 |
-
|
27 |
-
|
28 |
-
|
29 |
-
|
30 |
-
|
31 |
-
|
32 |
-
|
33 |
-
|
34 |
-
|
35 |
-
|
36 |
-
|
37 |
-
|
38 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
39 |
</div>
|
40 |
</div>
|
41 |
<?php
|
9 |
* Render Usage Tab Content
|
10 |
*/
|
11 |
?>
|
12 |
+
<div class="has-sidebar sm-padded">
|
13 |
+
<div id="post-body-content" class="has-sidebar-content">
|
14 |
+
<div class="meta-box-sortabless">
|
15 |
+
|
16 |
+
<div class="postbox">
|
17 |
+
<h3 class="title"><?php _e( 'Usage Instructions', $plugin['text'] ); ?></h3>
|
18 |
+
<div class="inside">
|
19 |
+
<p><?php _e( 'To add your custom HTML code (plus JavaScript, CSS, etc.) to your website, simply follow these steps:', $plugin['text'] ); ?></p>
|
20 |
+
<ol class="custom-counter">
|
21 |
+
<li><?php _e( 'Go to the "Main" tab on this page.', $plugin['text'] ); ?></li>
|
22 |
+
<li>
|
23 |
+
<?php _e( 'Place your custom HTML code in the code editor field.', $plugin['text'] ); ?>
|
24 |
+
<br><br>
|
25 |
+
<p class="note">
|
26 |
+
<b><?php _e( 'Note!', $plugin['text'] ); ?></b>
|
27 |
+
<?php _e( 'The JavaScript and CSS code must be wrapped in HTML tags.', $plugin['text'] ); ?>
|
28 |
+
<?php _e( 'For JavaScript code use the <code><script></code> tag, and for CSS code use the <code><style></code> tag.', $plugin['text'] ); ?>
|
29 |
+
</p>
|
30 |
+
</li>
|
31 |
+
<li><?php _e( 'Click the "Save changes" button.', $plugin['text'] ); ?></li>
|
32 |
+
<li><?php _e( 'Enjoy the result of applying your custom HTML code.', $plugin['text'] ); ?> <?php _e( 'It\'s that simple!', $plugin['text'] ); ?></li>
|
33 |
+
</ol>
|
34 |
+
<p class="note">
|
35 |
+
<?php
|
36 |
+
printf(
|
37 |
+
__( 'If you want more options, then %s let us know %s and we will be happy to add them.', $plugin['text'] ),
|
38 |
+
'<a href="https://www.spacexchimp.com/contact.html" target="_blank">',
|
39 |
+
'</a>'
|
40 |
+
);
|
41 |
+
?>
|
42 |
+
</p>
|
43 |
+
</div>
|
44 |
+
</div>
|
45 |
+
|
46 |
+
</div>
|
47 |
</div>
|
48 |
</div>
|
49 |
<?php
|
readme.txt
CHANGED
@@ -5,7 +5,7 @@ Donate link: https://www.spacexchimp.com/donate.html
|
|
5 |
Requires at least: 4.9
|
6 |
Tested up to: 5.5
|
7 |
Requires PHP: 5.6
|
8 |
-
Stable tag: 4.
|
9 |
License: GPL3
|
10 |
License URI: http://www.gnu.org/licenses/gpl-3.0.html
|
11 |
|
@@ -224,9 +224,13 @@ Commercial licensing (e.g. for projects that can’t use an open-source license)
|
|
224 |
|
225 |
== Changelog ==
|
226 |
|
|
|
|
|
|
|
|
|
227 |
= 4.46 - Oct 3, 2020 =
|
228 |
-
* New feature: Restoring screen position after saving changes. No more annoying return to the top of the page after clicking the "Save" button.
|
229 |
-
* Maintenance: Loading of dynamic content on the settings page has been updated to more versatile.
|
230 |
|
231 |
= 4.45 - Aug 10, 2020 =
|
232 |
* Maintenance: Ensure compatibility with upcoming WordPress 5.5.
|
5 |
Requires at least: 4.9
|
6 |
Tested up to: 5.5
|
7 |
Requires PHP: 5.6
|
8 |
+
Stable tag: 4.47
|
9 |
License: GPL3
|
10 |
License URI: http://www.gnu.org/licenses/gpl-3.0.html
|
11 |
|
224 |
|
225 |
== Changelog ==
|
226 |
|
227 |
+
= 4.47 - Oct 12, 2020 =
|
228 |
+
* Fixed: On the plugin settings page, the height of the buttons is too small compared to the width.
|
229 |
+
* Enhancement: The plugin settings page has been redesigned. The sidebar added to all tabs for better usability.
|
230 |
+
|
231 |
= 4.46 - Oct 3, 2020 =
|
232 |
+
* New feature: Restoring screen position after saving changes. No more annoying return to the top of the page after clicking the "Save" button on the plugin settings page.
|
233 |
+
* Maintenance: Loading of dynamic content on the plugin settings page has been updated to more versatile.
|
234 |
|
235 |
= 4.45 - Aug 10, 2020 =
|
236 |
* Maintenance: Ensure compatibility with upcoming WordPress 5.5.
|