My Custom Functions - Version 4.45

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 Icon 128x128 My Custom Functions
Version 4.45
Comparing to
See all releases

Code changes from version 4.44 to 4.45

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_p001_render_submenu_page() {
48
  </ul>
49
  <!-- END-TABS NAVIGATION MENU -->
50
 
 
 
 
51
  <!-- TAB SETTINGS -->
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 SETTINGS -->
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,397 +9,405 @@ defined( 'ABSPATH' ) or die( "Restricted access!" );
9
  * Render FAQ Tab Content
10
  */
11
  ?>
12
- <div class="postbox">
13
- <h3 class="title"><?php _e( 'Frequently Asked Questions', $plugin['text'] ); ?></h3>
14
- <div class="inside">
15
-
16
- <p class="note">
17
- <?php _e( 'If you have a question, please read the Frequently Asked Questions below to see if the answer is here.', $plugin['text'] ); ?>
18
- </p>
19
-
20
- <div class="panel-group" id="collapse-group">
21
- <?php
22
- $loopvalue = '23';
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
- <?php $i = 1; ?>
40
-
41
- <div class="question-<?php echo $i; ?>">
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
- <div class="question-<?php echo $i; ?>">
55
- <?php _e( 'Will this plugin work on my wordpress.COM website?', $plugin['text'] ); ?>
56
- </div>
57
- <div class="answer-<?php echo $i; $i++ ?>">
58
- <?php _e( 'Sorry, this plugin is available for use only on self-hosted (wordpress.ORG) websites.', $plugin['text'] ); ?>
59
- <br><br>
60
- <?php _e( 'Please note that there is a difference between wordpress.COM and wordpress.ORG.', $plugin['text'] ); ?>
61
- <?php _e( 'The wordpress.COM is a blog hosting service that offers a limited version of the popular self-hosted WordPress software.', $plugin['text'] ); ?>
62
- <?php
63
- printf(
64
- __( 'You can learn more about the difference here: %s .', $plugin['text'] ),
65
- '<a href="https://en.support.wordpress.com/com-vs-org/" target="_blank">https://en.support.wordpress.com/com-vs-org/</a>'
66
- );
67
- ?>
68
- </div>
69
-
70
- <div class="question-<?php echo $i; ?>">
71
- <?php _e( 'Will this plugin work/compatible with the theme I use?', $plugin['text'] ); ?>
72
- </div>
73
- <div class="answer-<?php echo $i; $i++ ?>">
74
- <?php _e( 'This plugin is compatible with most themes.', $plugin['text'] ); ?>
75
- <?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'] ); ?>
76
- <?php _e( 'We constantly check this plugin for compatibility with third-party themes.', $plugin['text'] ); ?>
77
- <?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'] ); ?>
78
- <br><br>
79
- <?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'] ); ?>
80
- </div>
81
-
82
- <div class="question-<?php echo $i; ?>">
83
- <?php _e( 'Will this plugin work/compatible with other plugins that I use?', $plugin['text'] ); ?>
84
- </div>
85
- <div class="answer-<?php echo $i; $i++ ?>">
86
- <?php _e( 'This plugin is compatible with most plugins.', $plugin['text'] ); ?>
87
- <?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'] ); ?>
88
- <?php _e( 'We constantly check this plugin for compatibility with third-party plugins.', $plugin['text'] ); ?>
89
- <?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'] ); ?>
90
- <br><br>
91
- <?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'] ); ?>
92
- </div>
93
-
94
- <div class="question-<?php echo $i; ?>">
95
- <?php _e( 'Can I use this plugin on my language?', $plugin['text'] ); ?>
96
- </div>
97
- <div class="answer-<?php echo $i; $i++ ?>">
98
- <?php _e( 'Yes.', $plugin['text'] ); ?>
99
- <?php _e( 'This plugin is ready for translation and has already been translated into several languages.', $plugin['text'] ); ?>
100
- <?php _e( 'But If your language is not available then you can make one.', $plugin['text'] ); ?>
101
- <?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'] ); ?>
102
- <?php _e( 'Many of plugin users would be delighted if you share your translation with the community.', $plugin['text'] ); ?>
103
- <?php _e( 'Thanks for your contribution!', $plugin['text'] ); ?>
104
- <br><br>
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
- <div class="question-<?php echo $i; ?>">
121
- <?php _e( 'How does it work?', $plugin['text'] ); ?>
122
- </div>
123
- <div class="answer-<?php echo $i; $i++ ?>">
124
- <?php _e( 'On the "Main" tab, place your custom PHP code in the code editor field, switch the toggle to the "ON" position and click the "Save changes" button.', $plugin['text'] ); ?>
125
- <?php _e( 'Enjoy the result of applying your custom PHP code.', $plugin['text'] ); ?>
126
- <?php _e( 'It\'s that simple!', $plugin['text'] ); ?>
127
- </div>
128
-
129
- <div class="question-<?php echo $i; ?>">
130
- <?php _e( 'Can I use HTML/CSS/JS code integrated in PHP code?', $plugin['text'] ); ?>
131
- </div>
132
- <div class="answer-<?php echo $i; $i++ ?>">
133
- <?php _e( 'Yes.', $plugin['text'] ); ?>
134
- <?php _e( 'But you need to do it properly, like this:', $plugin['text'] ); ?>
135
- <br><br>
136
- <pre><code>function my_custom_html_code() {
137
-
138
- // Print the custom HTML code
139
- echo '&lt;script&gt;YOUR CUSTOM HTML CODE HERE&lt;/script&gt;';
140
-
141
- }
142
- add_action( 'wp_head', 'my_custom_html_code' );</code></pre>
143
- </div>
144
-
145
- <div class="question-<?php echo $i; ?>">
146
- <?php _e( 'How much of PHP code (characters) I can enter in the code editor?', $plugin['text'] ); ?>
147
- </div>
148
- <div class="answer-<?php echo $i; $i++ ?>">
149
- <?php _e( 'We don\'t limit the number of characters.', $plugin['text'] ); ?>
150
- </div>
151
-
152
- <div class="question-<?php echo $i; ?>">
153
- <?php _e( 'Does this plugin requires any modification of the theme?', $plugin['text'] ); ?>
154
- </div>
155
- <div class="answer-<?php echo $i; $i++ ?>">
156
- <?php _e( 'Absolutely not.', $plugin['text'] ); ?>
157
- <?php _e( 'This plugin is configurable entirely from the plugin settings page.', $plugin['text'] ); ?>
158
- </div>
159
-
160
- <div class="question-<?php echo $i; ?>">
161
- <?php _e( 'Does this require any knowledge of HTML or CSS?', $plugin['text'] ); ?>
162
- </div>
163
- <div class="answer-<?php echo $i; $i++ ?>">
164
- <?php _e( 'Absolutely not.', $plugin['text'] ); ?>
165
- <?php _e( 'This plugin can be configured with no knowledge of HTML or CSS, using an easy-to-use plugin settings page.', $plugin['text'] ); ?>
166
- </div>
167
-
168
- <div class="question-<?php echo $i; ?>">
169
- <?php _e( 'Can I add my custom PHP code to a specific page of my website?', $plugin['text'] ); ?>
170
- </div>
171
- <div class="answer-<?php echo $i; $i++ ?>">
172
- <?php _e( 'For now, this plugin does not have an option to apply the custom PHP code only on specific pages.', $plugin['text'] ); ?>
173
- <?php _e( 'We plan to add this feature soon.', $plugin['text'] ); ?>
174
- <?php _e( 'But for now in order to apply your custom PHP code only on specific pages of your website, you need to wrap your custom PHP code in a PHP function that will determine the page you want.', $plugin['text'] ); ?>
175
- <?php _e( 'You need something like this:', $plugin['text'] ); ?>
176
- <br><br>
177
- <pre><code>function my_custom_php_code() {
178
-
179
- // Stop the function if this is not the Home page of website
180
- if ( ! is_home() ) {
181
- return;
182
- }
183
-
184
- // YOUR CUSTOM PHP CODE HERE
185
-
186
- }
187
- my_custom_php_code();</code></pre>
188
- </div>
189
-
190
- <div class="question-<?php echo $i; ?> question-red">
191
- <?php _e( 'It\'s not working.', $plugin['text'] ); ?>
192
- <?php _e( 'What could be wrong?', $plugin['text'] ); ?>
193
- </div>
194
- <div class="answer-<?php echo $i; $i++ ?>">
195
- <?php _e( 'As with every plugin, it\'s possible that things don\'t work.', $plugin['text'] ); ?>
196
- <?php _e( 'It\'s impossible to tell what could be wrong exactly.', $plugin['text'] ); ?>
197
- <?php _e( 'The most common reason for this is a web browser\'s cache.', $plugin['text'] ); ?>
198
- <?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'] ); ?>
199
- <?php _e( 'This is called the browser\'s cache.', $plugin['text'] ); ?>
200
- <?php _e( 'Clearing your browser\'s cache may solve the problem.', $plugin['text'] ); ?>
201
- <br><br>
202
- <?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'] ); ?>
203
- <?php _e( 'Please include as much information as possible, including a link to your website where the problem can be seen.', $plugin['text'] ); ?>
204
- </div>
205
-
206
- <div class="question-<?php echo $i; ?> question-red">
207
- <?php _e( 'On the plugin settings page, an error message appears.', $plugin['text'] ); ?>
208
- <?php _e( 'What could be wrong?', $plugin['text'] ); ?>
209
- </div>
210
- <div class="answer-<?php echo $i; $i++ ?>">
211
- <?php _e( 'Here are a few of the most likely causes of the error message:', $plugin['text'] ); ?>
212
- <ol class="custom-list">
213
- <li>
214
- <?php _e( 'You make a syntax error in the code that you have entered.', $plugin['text'] ); ?>
215
- <?php _e( 'Check the syntax of your code and try again.', $plugin['text'] ); ?>
216
- </li>
217
- <li>
218
- <?php _e( 'You entered two functions with the same name.', $plugin['text'] ); ?>
219
- <?php _e( 'Use a unique names for your functions.', $plugin['text'] ); ?>
220
- </li>
221
- <li>
222
- <?php _e( 'You have entered function with a name that is already occupied by another function.', $plugin['text'] ); ?>
223
- <?php _e( 'Use a unique name for your function.', $plugin['text'] ); ?>
224
- </li>
225
- <li>
226
- <?php _e( 'You are trying to overwrite an existing function (of WordPress, theme, or plugin).', $plugin['text'] ); ?>
227
- <?php _e( 'Instead, use filters and hooks.', $plugin['text'] ); ?>
228
- </li>
229
- </ol>
230
- </div>
231
-
232
- <div class="question-<?php echo $i; ?> question-red">
233
- <?php _e( 'My custom PHP code is not working.', $plugin['text'] ); ?>
234
- <?php _e( 'What could be wrong?', $plugin['text'] ); ?>
235
- </div>
236
- <div class="answer-<?php echo $i; $i++ ?>">
237
- <?php _e( 'It happens that your custom PHP code that you insert on the plugin page does not work, even if an error message does not appear.', $plugin['text'] ); ?>
238
- <?php _e( 'Here are a few of the most likely causes of the issue:', $plugin['text'] ); ?>
239
- <ol class="custom-list">
240
- <li><?php _e( 'You have a typo during the insertion of your custom PHP code.', $plugin['text'] ); ?></li>
241
- <li><?php _e( 'Your custom PHP code has a syntax error.', $plugin['text'] ); ?></li>
242
- <li><?php _e( 'Your custom PHP code is incorrect and may not work.', $plugin['text'] ); ?></li>
243
- </ol>
244
- </div>
245
-
246
- <div class="question-<?php echo $i; ?> question-red">
247
- <?php _e( 'What to do if this plugin crashed the website?', $plugin['text'] ); ?>
248
- </div>
249
- <div class="answer-<?php echo $i; $i++ ?>">
250
- <?php _e( 'This plugin has a built-in functions for checking the custom code for syntax errors, duplicate functions names, and etc.', $plugin['text'] ); ?>
251
- <?php _e( 'But plugin is not perfect, so there are times when the entered custom code causes the error and white screen (WSOD).', $plugin['text'] ); ?>
252
- <?php _e( 'This is due to the fact that your custom code has a syntax error that this plugin could not detect.', $plugin['text'] ); ?>
253
- <?php _e( 'When this happens with you, please perform the following steps.', $plugin['text'] ); ?>
254
- <ol class="custom-counter">
255
- <li>
256
- <?php _e( 'Access your server via FTP or SFTP.', $plugin['text'] ); ?>
257
- <?php _e( 'If you aren\'t sure how usually your web hosting provider will have instructions somewhere on their website.', $plugin['text'] ); ?>
258
- </li>
259
- <li>
260
- <?php _e( 'Browse to the directory <code>wp-content/plugins/my-custom-functions/</code>.', $plugin['text'] ); ?>
261
- <?php _e( 'Please contact your web hosting company to get help if you can\'t find this folder.', $plugin['text'] ); ?>
262
- </li>
263
- <li>
264
- <?php _e( 'Rename the file <code>START</code> to <code>STOP</code>.', $plugin['text'] ); ?>
265
- <?php _e( 'This will stop the execution of your custom code.', $plugin['text'] ); ?>
266
- </li>
267
- <li><?php _e( 'Log in to Admin Area of your WordPress website.', $plugin['text'] ); ?></li>
268
- <li><?php _e( 'Go to the plugin settings page <code>Settings</code> &#10145; <code>PHP Inserter</code>.', $plugin['text'] ); ?></li>
269
- <li><?php _e( 'Edit/fix your custom PHP code that you entered before the crash.', $plugin['text'] ); ?></li>
270
- <li><?php _e( 'Return to the plugin folder and rename the file <code>STOP</code> to <code>START</code> and you\'re done!', $plugin['text'] ); ?></li>
271
- </ol>
272
- <?php _e( 'This plugin stored you entered code in the database of your website.', $plugin['text'] ); ?>
273
- <?php _e( 'For getting your code, you also can go to the <code>Database</code> &#10145; Table <code>wp_options</code> &#10145; Option <code>spacexchimp_p001_settings</code> &#10145; <code>option_value</code>.', $plugin['text'] ); ?>
274
- <br><br>
275
- <?php _e( 'We are already working on a feature to automatically stop the execution of users custom PHP code for cases when this plugin could not detect the error, and this caused the inaccessibility of the website.', $plugin['text'] ); ?>
276
- </div>
277
-
278
- <div class="question-<?php echo $i; ?> question-red">
279
- <?php _e( 'The last WordPress update is preventing me from editing my website that is using this plugin.', $plugin['text'] ); ?>
280
- <?php _e( 'Why is this?', $plugin['text'] ); ?>
281
- </div>
282
- <div class="answer-<?php echo $i; $i++ ?>">
283
- <?php _e( 'This plugin can not cause such problem.', $plugin['text'] ); ?>
284
- <?php _e( 'More likely, the problem are related to the settings of the website.', $plugin['text'] ); ?>
285
- <?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'] ); ?>
286
- <?php _e( 'Also please try to re-login to the website, this too can help.', $plugin['text'] ); ?>
287
- </div>
288
-
289
- <div class="question-<?php echo $i; ?> question-red">
290
- <?php _e( 'Where to report bug if found?', $plugin['text'] ); ?>
291
- </div>
292
- <div class="answer-<?php echo $i; $i++ ?>">
293
- <?php _e( 'Bug reports are very welcome!', $plugin['text'] ); ?>
294
- <?php
295
- printf(
296
- __( 'Please visit our %s contact page %s and report.', $plugin['text'] ),
297
- '<a href="https://www.spacexchimp.com/contact.html" target="_blank">',
298
- '</a>'
299
- );
300
- ?>
301
- <?php _e( 'Please do not forget to specify the name of the plugin.', $plugin['text'] ); ?>
302
- <?php _e( 'Thank you!', $plugin['text'] ); ?>
303
- <br><br>
304
- <?php _e( 'Please include as much information as possible, including a link to your website where the problem can be seen.', $plugin['text'] ); ?>
305
- <?php _e( 'Describe in more detail what exactly you are seeing.', $plugin['text'] ); ?>
306
- <?php _e( 'Here are some examples:', $plugin['text'] ); ?>
307
- <br><br>
308
- <ul class="custom-list">
309
- <li><?php _e( 'Elements of the plugin settings page are not working.', $plugin['text'] ); ?></li>
310
- <li><?php _e( 'An error message is displayed on the plugin settings page.', $plugin['text'] ); ?></li>
311
- <li><?php _e( 'An error message is displayed on the front end of website.', $plugin['text'] ); ?></li>
312
- <li><?php _e( 'An error message is displayed on the back end of website.', $plugin['text'] ); ?></li>
313
- <li><?php _e( 'Custom code is inserted on the plugin settings page, but it is not applied on the website.', $plugin['text'] ); ?></li>
314
- <li><?php _e( 'Website is crashed.', $plugin['text'] ); ?></li>
315
- </ul>
316
- </div>
317
-
318
- <div class="question-<?php echo $i; ?>">
319
- <?php _e( 'Where to share any ideas or suggestions to make the plugin better?', $plugin['text'] ); ?>
320
- </div>
321
- <div class="answer-<?php echo $i; $i++ ?>">
322
- <?php _e( 'Any suggestions are very welcome!', $plugin['text'] ); ?>
323
- <?php
324
- printf(
325
- __( 'Please visit our %s contact page %s.', $plugin['text'] ),
326
- '<a href="https://www.spacexchimp.com/contact.html" target="_blank">',
327
- '</a>'
328
- );
329
- ?>
330
- <?php _e( 'Please do not forget to specify the name of the plugin.', $plugin['text'] ); ?>
331
- <?php _e( 'Thank you!', $plugin['text'] ); ?>
332
- </div>
333
-
334
- <div class="question-<?php echo $i; ?>">
335
- <?php _e( 'I love this plugin!', $plugin['text'] ); ?>
336
- <?php _e( 'Can I help somehow?', $plugin['text'] ); ?>
337
- </div>
338
- <div class="answer-<?php echo $i; $i++ ?>">
339
- <?php _e( 'Yes, any contributions are very welcome!', $plugin['text'] ); ?>
340
- <?php
341
- printf(
342
- __( 'Please visit our %s Support Us %s page.', $plugin['text'] ),
343
- '<a href="https://www.spacexchimp.com/donate.html" target="_blank">',
344
- '</a>'
345
- );
346
- ?>
347
- <?php _e( 'Thank you!', $plugin['text'] ); ?>
348
- </div>
349
-
350
- <div class="question-<?php echo $i; ?>">
351
- <?php _e( 'Where can I find information about your licenses, payment process and refunds?', $plugin['text'] ); ?>
352
- </div>
353
- <div class="answer-<?php echo $i; $i++ ?>">
354
- <?php
355
- printf(
356
- __( 'Answers to common questions about our licenses, payment process and refunds can be found on our %s Common Questions %s page.', $plugin['text'] ),
357
- '<a href="https://www.spacexchimp.com/faq.html" target="_blank">',
358
- '</a>'
359
- );
360
- ?>
361
- </div>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
362
 
363
- <div class="question-<?php echo $i; ?>">
364
- <?php _e( 'Where can I find information about your customer support?', $plugin['text'] ); ?>
365
- </div>
366
- <div class="answer-<?php echo $i; $i++ ?>">
367
- <?php
368
- printf(
369
- __( 'Answers to common questions about our customer support can be found on our %s Common Questions %s page.', $plugin['text'] ),
370
- '<a href="https://www.spacexchimp.com/faq.html" target="_blank">',
371
- '</a>'
372
- );
373
- ?>
374
- </div>
375
-
376
- <div class="question-<?php echo $i; ?>">
377
- <?php _e( 'Where can I find information about your affiliate program?', $plugin['text'] ); ?>
378
- </div>
379
- <div class="answer-<?php echo $i; $i++ ?>">
380
- <?php
381
- printf(
382
- __( 'Answers to common questions about our affiliate program can be found on our %s Common Questions %s page.', $plugin['text'] ),
383
- '<a href="https://www.spacexchimp.com/faq.html" target="_blank">',
384
- '</a>'
385
- );
386
- ?>
387
  </div>
388
-
389
- <div class="question-<?php echo $i; ?>">
390
- <?php _e( 'My question wasn\'t answered here.', $plugin['text'] ); ?>
391
- </div>
392
- <div class="answer-<?php echo $i; $i++ ?>">
393
- <?php
394
- printf(
395
- __( 'You can ask your question on %s this page %s.', $plugin['text'] ),
396
- '<a href="https://www.spacexchimp.com/contact.html" target="_blank">',
397
- '</a>'
398
- );
399
- ?>
400
- <?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'] ); ?>
401
- </div>
402
-
403
  </div>
404
  </div>
405
  <?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 = '23';
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 PHP code in the code editor field, switch the toggle to the "ON" position and click the "Save changes" button.', $plugin['text'] ); ?>
129
+ <?php _e( 'Enjoy the result of applying your custom PHP 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( 'Can I use HTML/CSS/JS code integrated in PHP code?', $plugin['text'] ); ?>
135
+ </div>
136
+ <div class="answer-<?php echo $i; $i++ ?>">
137
+ <?php _e( 'Yes.', $plugin['text'] ); ?>
138
+ <?php _e( 'But you need to do it properly, like this:', $plugin['text'] ); ?>
139
+ <br><br>
140
+ <pre><code>function my_custom_html_code() {
141
+
142
+ // Print the custom HTML code
143
+ echo '&lt;script&gt;YOUR CUSTOM HTML CODE HERE&lt;/script&gt;';
144
+
145
+ }
146
+ add_action( 'wp_head', 'my_custom_html_code' );</code></pre>
147
+ </div>
148
+
149
+ <div class="question-<?php echo $i; ?>">
150
+ <?php _e( 'How much of PHP code (characters) I can enter in the code editor?', $plugin['text'] ); ?>
151
+ </div>
152
+ <div class="answer-<?php echo $i; $i++ ?>">
153
+ <?php _e( 'We don\'t limit the number of characters.', $plugin['text'] ); ?>
154
+ </div>
155
+
156
+ <div class="question-<?php echo $i; ?>">
157
+ <?php _e( 'Does this plugin requires any modification of the theme?', $plugin['text'] ); ?>
158
+ </div>
159
+ <div class="answer-<?php echo $i; $i++ ?>">
160
+ <?php _e( 'Absolutely not.', $plugin['text'] ); ?>
161
+ <?php _e( 'This plugin is configurable entirely from the plugin settings page.', $plugin['text'] ); ?>
162
+ </div>
163
+
164
+ <div class="question-<?php echo $i; ?>">
165
+ <?php _e( 'Does this require any knowledge of HTML or CSS?', $plugin['text'] ); ?>
166
+ </div>
167
+ <div class="answer-<?php echo $i; $i++ ?>">
168
+ <?php _e( 'Absolutely not.', $plugin['text'] ); ?>
169
+ <?php _e( 'This plugin can be configured with no knowledge of HTML or CSS, using an easy-to-use plugin settings page.', $plugin['text'] ); ?>
170
+ </div>
171
+
172
+ <div class="question-<?php echo $i; ?>">
173
+ <?php _e( 'Can I add my custom PHP code to a specific page of my website?', $plugin['text'] ); ?>
174
+ </div>
175
+ <div class="answer-<?php echo $i; $i++ ?>">
176
+ <?php _e( 'For now, this plugin does not have an option to apply the custom PHP code only on specific pages.', $plugin['text'] ); ?>
177
+ <?php _e( 'We plan to add this feature soon.', $plugin['text'] ); ?>
178
+ <?php _e( 'But for now in order to apply your custom PHP code only on specific pages of your website, you need to wrap your custom PHP code in a PHP function that will determine the page you want.', $plugin['text'] ); ?>
179
+ <?php _e( 'You need something like this:', $plugin['text'] ); ?>
180
+ <br><br>
181
+ <pre><code>function my_custom_php_code() {
182
+
183
+ // Stop the function if this is not the Home page of website
184
+ if ( ! is_home() ) {
185
+ return;
186
+ }
187
+
188
+ // YOUR CUSTOM PHP CODE HERE
189
+
190
+ }
191
+ my_custom_php_code();</code></pre>
192
+ </div>
193
+
194
+ <div class="question-<?php echo $i; ?> question-red">
195
+ <?php _e( 'It\'s not working.', $plugin['text'] ); ?>
196
+ <?php _e( 'What could be wrong?', $plugin['text'] ); ?>
197
+ </div>
198
+ <div class="answer-<?php echo $i; $i++ ?>">
199
+ <?php _e( 'As with every plugin, it\'s possible that things don\'t work.', $plugin['text'] ); ?>
200
+ <?php _e( 'It\'s impossible to tell what could be wrong exactly.', $plugin['text'] ); ?>
201
+ <?php _e( 'The most common reason for this is a web browser\'s cache.', $plugin['text'] ); ?>
202
+ <?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'] ); ?>
203
+ <?php _e( 'This is called the browser\'s cache.', $plugin['text'] ); ?>
204
+ <?php _e( 'Clearing your browser\'s cache may solve the problem.', $plugin['text'] ); ?>
205
+ <br><br>
206
+ <?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'] ); ?>
207
+ <?php _e( 'Please include as much information as possible, including a link to your website where the problem can be seen.', $plugin['text'] ); ?>
208
+ </div>
209
+
210
+ <div class="question-<?php echo $i; ?> question-red">
211
+ <?php _e( 'On the plugin settings page, an error message appears.', $plugin['text'] ); ?>
212
+ <?php _e( 'What could be wrong?', $plugin['text'] ); ?>
213
+ </div>
214
+ <div class="answer-<?php echo $i; $i++ ?>">
215
+ <?php _e( 'Here are a few of the most likely causes of the error message:', $plugin['text'] ); ?>
216
+ <ol class="custom-list">
217
+ <li>
218
+ <?php _e( 'You make a syntax error in the code that you have entered.', $plugin['text'] ); ?>
219
+ <?php _e( 'Check the syntax of your code and try again.', $plugin['text'] ); ?>
220
+ </li>
221
+ <li>
222
+ <?php _e( 'You entered two functions with the same name.', $plugin['text'] ); ?>
223
+ <?php _e( 'Use a unique names for your functions.', $plugin['text'] ); ?>
224
+ </li>
225
+ <li>
226
+ <?php _e( 'You have entered function with a name that is already occupied by another function.', $plugin['text'] ); ?>
227
+ <?php _e( 'Use a unique name for your function.', $plugin['text'] ); ?>
228
+ </li>
229
+ <li>
230
+ <?php _e( 'You are trying to overwrite an existing function (of WordPress, theme, or plugin).', $plugin['text'] ); ?>
231
+ <?php _e( 'Instead, use filters and hooks.', $plugin['text'] ); ?>
232
+ </li>
233
+ </ol>
234
+ </div>
235
+
236
+ <div class="question-<?php echo $i; ?> question-red">
237
+ <?php _e( 'My custom PHP code is not working.', $plugin['text'] ); ?>
238
+ <?php _e( 'What could be wrong?', $plugin['text'] ); ?>
239
+ </div>
240
+ <div class="answer-<?php echo $i; $i++ ?>">
241
+ <?php _e( 'It happens that your custom PHP code that you insert on the plugin page does not work, even if an error message does not appear.', $plugin['text'] ); ?>
242
+ <?php _e( 'Here are a few of the most likely causes of the issue:', $plugin['text'] ); ?>
243
+ <ol class="custom-list">
244
+ <li><?php _e( 'You have a typo during the insertion of your custom PHP code.', $plugin['text'] ); ?></li>
245
+ <li><?php _e( 'Your custom PHP code has a syntax error.', $plugin['text'] ); ?></li>
246
+ <li><?php _e( 'Your custom PHP code is incorrect and may not work.', $plugin['text'] ); ?></li>
247
+ </ol>
248
+ </div>
249
+
250
+ <div class="question-<?php echo $i; ?> question-red">
251
+ <?php _e( 'What to do if this plugin crashed the website?', $plugin['text'] ); ?>
252
+ </div>
253
+ <div class="answer-<?php echo $i; $i++ ?>">
254
+ <?php _e( 'This plugin has a built-in functions for checking the custom code for syntax errors, duplicate functions names, and etc.', $plugin['text'] ); ?>
255
+ <?php _e( 'But plugin is not perfect, so there are times when the entered custom code causes the error and white screen (WSOD).', $plugin['text'] ); ?>
256
+ <?php _e( 'This is due to the fact that your custom code has a syntax error that this plugin could not detect.', $plugin['text'] ); ?>
257
+ <?php _e( 'When this happens with you, please perform the following steps.', $plugin['text'] ); ?>
258
+ <ol class="custom-counter">
259
+ <li>
260
+ <?php _e( 'Access your server via FTP or SFTP.', $plugin['text'] ); ?>
261
+ <?php _e( 'If you aren\'t sure how usually your web hosting provider will have instructions somewhere on their website.', $plugin['text'] ); ?>
262
+ </li>
263
+ <li>
264
+ <?php _e( 'Browse to the directory <code>wp-content/plugins/my-custom-functions/</code>.', $plugin['text'] ); ?>
265
+ <?php _e( 'Please contact your web hosting company to get help if you can\'t find this folder.', $plugin['text'] ); ?>
266
+ </li>
267
+ <li>
268
+ <?php _e( 'Rename the file <code>START</code> to <code>STOP</code>.', $plugin['text'] ); ?>
269
+ <?php _e( 'This will stop the execution of your custom code.', $plugin['text'] ); ?>
270
+ </li>
271
+ <li><?php _e( 'Log in to Admin Area of your WordPress website.', $plugin['text'] ); ?></li>
272
+ <li><?php _e( 'Go to the plugin settings page <code>Settings</code> &#10145; <code>PHP Inserter</code>.', $plugin['text'] ); ?></li>
273
+ <li><?php _e( 'Edit/fix your custom PHP code that you entered before the crash.', $plugin['text'] ); ?></li>
274
+ <li><?php _e( 'Return to the plugin folder and rename the file <code>STOP</code> to <code>START</code> and you\'re done!', $plugin['text'] ); ?></li>
275
+ </ol>
276
+ <?php _e( 'This plugin stored you entered code in the database of your website.', $plugin['text'] ); ?>
277
+ <?php _e( 'For getting your code, you also can go to the <code>Database</code> &#10145; Table <code>wp_options</code> &#10145; Option <code>spacexchimp_p001_settings</code> &#10145; <code>option_value</code>.', $plugin['text'] ); ?>
278
+ <br><br>
279
+ <?php _e( 'We are already working on a feature to automatically stop the execution of users custom PHP code for cases when this plugin could not detect the error, and this caused the inaccessibility of the website.', $plugin['text'] ); ?>
280
+ </div>
281
+
282
+ <div class="question-<?php echo $i; ?> question-red">
283
+ <?php _e( 'The last WordPress update is preventing me from editing my website that is using this plugin.', $plugin['text'] ); ?>
284
+ <?php _e( 'Why is this?', $plugin['text'] ); ?>
285
+ </div>
286
+ <div class="answer-<?php echo $i; $i++ ?>">
287
+ <?php _e( 'This plugin can not cause such problem.', $plugin['text'] ); ?>
288
+ <?php _e( 'More likely, the problem are related to the settings of the website.', $plugin['text'] ); ?>
289
+ <?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'] ); ?>
290
+ <?php _e( 'Also please try to re-login to the website, this too can help.', $plugin['text'] ); ?>
291
+ </div>
292
+
293
+ <div class="question-<?php echo $i; ?> question-red">
294
+ <?php _e( 'Where to report bug if found?', $plugin['text'] ); ?>
295
+ </div>
296
+ <div class="answer-<?php echo $i; $i++ ?>">
297
+ <?php _e( 'Bug reports are very welcome!', $plugin['text'] ); ?>
298
+ <?php
299
+ printf(
300
+ __( 'Please visit our %s contact page %s and report.', $plugin['text'] ),
301
+ '<a href="https://www.spacexchimp.com/contact.html" target="_blank">',
302
+ '</a>'
303
+ );
304
+ ?>
305
+ <?php _e( 'Please do not forget to specify the name of the plugin.', $plugin['text'] ); ?>
306
+ <?php _e( 'Thank you!', $plugin['text'] ); ?>
307
+ <br><br>
308
+ <?php _e( 'Please include as much information as possible, including a link to your website where the problem can be seen.', $plugin['text'] ); ?>
309
+ <?php _e( 'Describe in more detail what exactly you are seeing.', $plugin['text'] ); ?>
310
+ <?php _e( 'Here are some examples:', $plugin['text'] ); ?>
311
+ <br><br>
312
+ <ul class="custom-list">
313
+ <li><?php _e( 'Elements of the plugin settings page are not working.', $plugin['text'] ); ?></li>
314
+ <li><?php _e( 'An error message is displayed on the plugin settings page.', $plugin['text'] ); ?></li>
315
+ <li><?php _e( 'An error message is displayed on the front end of website.', $plugin['text'] ); ?></li>
316
+ <li><?php _e( 'An error message is displayed on the back end of website.', $plugin['text'] ); ?></li>
317
+ <li><?php _e( 'Custom code is inserted on the plugin settings page, but it is not applied on the website.', $plugin['text'] ); ?></li>
318
+ <li><?php _e( 'Website is crashed.', $plugin['text'] ); ?></li>
319
+ </ul>
320
+ </div>
321
+
322
+ <div class="question-<?php echo $i; ?>">
323
+ <?php _e( 'Where to share any ideas or suggestions to make the plugin better?', $plugin['text'] ); ?>
324
+ </div>
325
+ <div class="answer-<?php echo $i; $i++ ?>">
326
+ <?php _e( 'Any suggestions are very welcome!', $plugin['text'] ); ?>
327
+ <?php
328
+ printf(
329
+ __( 'Please visit our %s contact page %s.', $plugin['text'] ),
330
+ '<a href="https://www.spacexchimp.com/contact.html" target="_blank">',
331
+ '</a>'
332
+ );
333
+ ?>
334
+ <?php _e( 'Please do not forget to specify the name of the plugin.', $plugin['text'] ); ?>
335
+ <?php _e( 'Thank you!', $plugin['text'] ); ?>
336
+ </div>
337
+
338
+ <div class="question-<?php echo $i; ?>">
339
+ <?php _e( 'I love this plugin!', $plugin['text'] ); ?>
340
+ <?php _e( 'Can I help somehow?', $plugin['text'] ); ?>
341
+ </div>
342
+ <div class="answer-<?php echo $i; $i++ ?>">
343
+ <?php _e( 'Yes, any contributions are very welcome!', $plugin['text'] ); ?>
344
+ <?php
345
+ printf(
346
+ __( 'Please visit our %s Support Us %s page.', $plugin['text'] ),
347
+ '<a href="https://www.spacexchimp.com/donate.html" target="_blank">',
348
+ '</a>'
349
+ );
350
+ ?>
351
+ <?php _e( 'Thank you!', $plugin['text'] ); ?>
352
+ </div>
353
+
354
+ <div class="question-<?php echo $i; ?>">
355
+ <?php _e( 'Where can I find information about your licenses, payment process and refunds?', $plugin['text'] ); ?>
356
+ </div>
357
+ <div class="answer-<?php echo $i; $i++ ?>">
358
+ <?php
359
+ printf(
360
+ __( 'Answers to common questions about our licenses, payment process and refunds can be found on our %s Common Questions %s page.', $plugin['text'] ),
361
+ '<a href="https://www.spacexchimp.com/faq.html" target="_blank">',
362
+ '</a>'
363
+ );
364
+ ?>
365
+ </div>
366
+
367
+ <div class="question-<?php echo $i; ?>">
368
+ <?php _e( 'Where can I find information about your customer support?', $plugin['text'] ); ?>
369
+ </div>
370
+ <div class="answer-<?php echo $i; $i++ ?>">
371
+ <?php
372
+ printf(
373
+ __( 'Answers to common questions about our customer support can be found on our %s Common Questions %s page.', $plugin['text'] ),
374
+ '<a href="https://www.spacexchimp.com/faq.html" target="_blank">',
375
+ '</a>'
376
+ );
377
+ ?>
378
+ </div>
379
+
380
+ <div class="question-<?php echo $i; ?>">
381
+ <?php _e( 'Where can I find information about your affiliate program?', $plugin['text'] ); ?>
382
+ </div>
383
+ <div class="answer-<?php echo $i; $i++ ?>">
384
+ <?php
385
+ printf(
386
+ __( 'Answers to common questions about our affiliate program can be found on our %s Common Questions %s page.', $plugin['text'] ),
387
+ '<a href="https://www.spacexchimp.com/faq.html" target="_blank">',
388
+ '</a>'
389
+ );
390
+ ?>
391
+ </div>
392
+
393
+ <div class="question-<?php echo $i; ?>">
394
+ <?php _e( 'My question wasn\'t answered here.', $plugin['text'] ); ?>
395
+ </div>
396
+ <div class="answer-<?php echo $i; $i++ ?>">
397
+ <?php
398
+ printf(
399
+ __( 'You can ask your question on %s this page %s.', $plugin['text'] ),
400
+ '<a href="https://www.spacexchimp.com/contact.html" target="_blank">',
401
+ '</a>'
402
+ );
403
+ ?>
404
+ <?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'] ); ?>
405
+ </div>
406
+
407
+ </div>
408
+ </div>
409
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
410
  </div>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
411
  </div>
412
  </div>
413
  <?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="postbox">
13
- <h3 class="title"><?php _e( 'Support Us', $plugin['text'] ); ?></h3>
14
- <div class="inside">
15
- <span class="image-with-button pull-left">
16
- <img src="<?php echo $plugin['url'] . 'inc/img/thanks.png'; ?>" alt="Thanks!">
17
- <a href="https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=8A88KC7TFF6CS" target="_blank" class="btn btn-default button-labeled">
18
- <span class="btn-label">
19
- <img src="<?php echo $plugin['url'] . 'inc/img/paypal.svg'; ?>" alt="PayPal">
20
- </span>
21
- <?php _e( 'Donate with PayPal', $plugin['text'] ); ?>
22
- </a>
23
- </span>
24
- <p>
25
- <?php _e( 'Hello!', $plugin['text'] ); ?>
26
- <?php
27
- printf(
28
- __( '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'] ),
29
- '<a href="https://www.instagram.com/arthur_gareginyan/" target="_blank">',
30
- '</a>',
31
- '<a href="https://www.spacexchimp.com" target="_blank">',
32
- '</a>'
33
- );
34
- ?>
35
- </p>
36
- <p>
37
- <?php _e( 'Our intention is to create projects that will make this world a better place.', $plugin['text'] ); ?>
38
- <?php _e( 'Our motto is - «Follow your dreams and don’t give up».', $plugin['text'] ); ?>
39
- <?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'] ); ?>
40
- </p>
41
- <p>
42
- <?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'] ); ?>
43
- <?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'] ); ?>
44
- </p>
45
- <p>
46
- <?php _e( 'If you appreciate our work, you can buy us a cup of coffee!', $plugin['text'] ); ?>
47
- </p>
48
- <p>
49
- <?php _e( 'Thank you for your support!', $plugin['text'] ); ?>
50
- </p>
 
 
 
 
 
 
 
 
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,43 +9,51 @@ defined( 'ABSPATH' ) or die( "Restricted access!" );
9
  * Render Usage Tab Content
10
  */
11
  ?>
12
- <div class="postbox">
13
- <h3 class="title"><?php _e( 'Usage Instructions', $plugin['text'] ); ?></h3>
14
- <div class="inside">
15
- <p><?php _e( 'To add your custom PHP code to your website, simply follow these steps:', $plugin['text'] ); ?></p>
16
- <ol class="custom-counter">
17
- <li><?php _e( 'Go to the "Main" tab on this page.', $plugin['text'] ); ?></li>
18
- <li>
19
- <?php _e( 'Place your custom PHP code in the code editor field.', $plugin['text'] ); ?>
20
- <br><br>
21
- <p class="note">
22
- <b><?php _e( 'Note!', $plugin['text'] ); ?></b>
23
- <?php _e( 'Do not wrap your custom PHP code in HTML tags, such as <code>&lt;?php</code>...<code>?&gt;</code>.', $plugin['text'] ); ?>
24
- </p>
25
- <p class="note">
26
- <b><?php _e( 'Note!', $plugin['text'] ); ?></b>
27
- <?php
28
- printf(
29
- __( 'Before use, please read the %s instructions %s in our Blog on what to do in case of a website crash.', $plugin['text'] ),
30
- '<a href="https://mycyberuniverse.com/my-custom-functions-plugin-causes-site-failure.html" target="_blank">',
31
- '</a>'
32
- );
33
- ?>
34
- </p>
35
- </li>
36
- <li><?php _e( 'Switch the toggle to the "ON" position.', $plugin['text'] ); ?></li>
37
- <li><?php _e( 'Click the "Save changes" button.', $plugin['text'] ); ?></li>
38
- <li><?php _e( 'Enjoy the result of applying your custom PHP code.', $plugin['text'] ); ?> <?php _e( 'It\'s that simple!', $plugin['text'] ); ?></li>
39
- </ol>
40
- <p class="note">
41
- <?php
42
- printf(
43
- __( 'If you want more options, then %s let us know %s and we will be happy to add them.', $plugin['text'] ),
44
- '<a href="https://www.spacexchimp.com/contact.html" target="_blank">',
45
- '</a>'
46
- );
47
- ?>
48
- </p>
 
 
 
 
 
 
 
 
49
  </div>
50
  </div>
51
  <?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 PHP code 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 PHP 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( 'Do not wrap your custom PHP code in HTML tags, such as <code>&lt;?php</code>...<code>?&gt;</code>.', $plugin['text'] ); ?>
28
+ </p>
29
+ <p class="note">
30
+ <b><?php _e( 'Note!', $plugin['text'] ); ?></b>
31
+ <?php
32
+ printf(
33
+ __( 'Before use, please read the %s instructions %s in our Blog on what to do in case of a website crash.', $plugin['text'] ),
34
+ '<a href="https://mycyberuniverse.com/my-custom-functions-plugin-causes-site-failure.html" target="_blank">',
35
+ '</a>'
36
+ );
37
+ ?>
38
+ </p>
39
+ </li>
40
+ <li><?php _e( 'Switch the toggle to the "ON" position.', $plugin['text'] ); ?></li>
41
+ <li><?php _e( 'Click the "Save changes" button.', $plugin['text'] ); ?></li>
42
+ <li><?php _e( 'Enjoy the result of applying your custom PHP code.', $plugin['text'] ); ?> <?php _e( 'It\'s that simple!', $plugin['text'] ); ?></li>
43
+ </ol>
44
+ <p class="note">
45
+ <?php
46
+ printf(
47
+ __( 'If you want more options, then %s let us know %s and we will be happy to add them.', $plugin['text'] ),
48
+ '<a href="https://www.spacexchimp.com/contact.html" target="_blank">',
49
+ '</a>'
50
+ );
51
+ ?>
52
+ </p>
53
+ </div>
54
+ </div>
55
+
56
+ </div>
57
  </div>
58
  </div>
59
  <?php
my-custom-functions.php CHANGED
@@ -5,7 +5,7 @@
5
  * Description: Easily and safely add your custom PHP code 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.44
9
  * License: GPL3
10
  * Text Domain: my-custom-functions
11
  * Domain Path: /languages/
5
  * Description: Easily and safely add your custom PHP code 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.45
9
  * License: GPL3
10
  * Text Domain: my-custom-functions
11
  * Domain Path: /languages/
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.44
9
  License: GPL3
10
  License URI: http://www.gnu.org/licenses/gpl-3.0.html
11
 
@@ -256,9 +256,13 @@ Commercial licensing (e.g. for projects that can’t use an open-source license)
256
 
257
  == Changelog ==
258
 
 
 
 
 
259
  = 4.44 - Oct 3, 2020 =
260
- * New feature: Restoring screen position after saving changes. No more annoying return to the top of the page after clicking the "Save" button.
261
- * Maintenance: Loading of dynamic content on the settings page has been updated to more versatile.
262
 
263
  = 4.43 - Aug 10, 2020 =
264
  * 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.45
9
  License: GPL3
10
  License URI: http://www.gnu.org/licenses/gpl-3.0.html
11
 
256
 
257
  == Changelog ==
258
 
259
+ = 4.45 - Oct 12, 2020 =
260
+ * Fixed: On the plugin settings page, the height of the buttons is too small compared to the width.
261
+ * Enhancement: The plugin settings page has been redesigned. The sidebar added to all tabs for better usability.
262
+
263
  = 4.44 - Oct 3, 2020 =
264
+ * 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.
265
+ * Maintenance: Loading of dynamic content on the plugin settings page has been updated to more versatile.
266
 
267
  = 4.43 - Aug 10, 2020 =
268
  * Maintenance: Ensure compatibility with upcoming WordPress 5.5.