My Custom Functions - Version 4.37

Version Description

  • 2019-03-24 =
  • Framework updated: Added function "plugin", which returns an array with the contents of plugin constants. The mention of plugin constants is replaced by the use of the function "plugin".
  • Framework updated: The functions "_settings_link" and "_upgrade_link" are combined and improved.
  • Framework updated: The function "_plugin_row_meta" is improved.
  • Framework updated: Code formatting improved.
  • Framework updated: Code commenting improved.
  • Framework updated: All translation files are updated.
Download this release

Release Info

Developer Arthur Gareginyan
Plugin Icon 128x128 My Custom Functions
Version 4.37
Comparing to
See all releases

Code changes from version 4.36 to 4.37

inc/php/core.php CHANGED
@@ -9,123 +9,168 @@ defined( 'ABSPATH' ) or die( "Restricted access!" );
9
  * Register text domain
10
  */
11
  function spacexchimp_p001_textdomain() {
12
- load_plugin_textdomain( SPACEXCHIMP_P001_TEXT, false, SPACEXCHIMP_P001_DIR . '/languages/' );
 
 
 
 
13
  }
14
- add_action( 'init', 'spacexchimp_p001_textdomain' );
15
 
16
  /**
17
- * Print direct link to plugin admin page
18
  *
19
  * Fetches array of links generated by WordPress Plugin admin page ( Deactivate | Edit )
20
  * and inserts a link to the plugin admin page
21
  */
22
  function spacexchimp_p001_settings_link( $links ) {
23
- $page = '<a href="' . admin_url( 'options-general.php?page=' . SPACEXCHIMP_P001_SLUG ) . '">' . __( 'Settings', SPACEXCHIMP_P001_TEXT ) . '</a>';
24
- array_unshift( $links, $page );
25
- return $links;
26
- }
27
- add_filter( 'plugin_action_links_' . SPACEXCHIMP_P001_BASE, 'spacexchimp_p001_settings_link' );
28
 
29
- /**
30
- * Print link to My Custom Functions PRO page
31
- */
32
- function spacexchimp_p001_upgrade_link( $links ) {
33
- $upgrade_page = '<a href="https://www.spacexchimp.com/plugins/my-custom-functions-pro.html" target="_blank"><b style="color:red;">' . __( 'Upgrade to PRO', SPACEXCHIMP_P001_TEXT ) . '</b></a>';
34
- array_unshift( $links, $upgrade_page );
 
 
 
 
 
 
 
 
 
 
 
35
  return $links;
36
  }
37
- add_filter( 'plugin_action_links_' . SPACEXCHIMP_P001_BASE, 'spacexchimp_p001_upgrade_link' );
38
 
39
  /**
40
- * Print additional links to plugin meta row
41
  */
42
  function spacexchimp_p001_plugin_row_meta( $links, $file ) {
43
 
44
- if ( strpos( $file, SPACEXCHIMP_P001_SLUG . '.php' ) !== false ) {
 
 
 
 
 
 
 
 
 
 
 
 
45
 
46
  $new_links = array(
47
- 'donate' => '<a href="https://www.spacexchimp.com/donate.html" target="_blank"><span class="dashicons dashicons-heart"></span> ' . __( 'Donate', SPACEXCHIMP_P001_TEXT ) . '</a>',
48
- 'upgrage' => '<a href="https://www.spacexchimp.com/plugins/my-custom-functions-pro.html" target="_blank"><span class="dashicons dashicons-star-filled"></span> ' . __( 'Upgrade to PRO', SPACEXCHIMP_P001_TEXT ) . '</a>'
49
  );
 
50
  $links = array_merge( $links, $new_links );
51
  }
52
 
53
  return $links;
54
  }
55
- add_filter( 'plugin_row_meta', 'spacexchimp_p001_plugin_row_meta', 10, 2 );
56
 
57
  /**
58
  * Register a submenu item in the top-level menu item "Settings"
59
  */
60
  function spacexchimp_p001_register_submenu_page() {
61
 
62
- $page_title = SPACEXCHIMP_P001_NAME;
63
- $menu_title = __( 'PHP Inserter', SPACEXCHIMP_P001_TEXT );
 
 
 
 
64
  $capability = 'manage_options';
65
- $menu_slug = SPACEXCHIMP_P001_SLUG;
66
- $function = 'spacexchimp_p001_render_submenu_page';
67
 
68
  add_options_page( $page_title, $menu_title, $capability, $menu_slug, $function );
69
  }
70
- add_action( 'admin_menu', 'spacexchimp_p001_register_submenu_page' );
71
 
72
  /**
73
  * Register settings
74
  */
75
  function spacexchimp_p001_register_settings() {
76
- register_setting( SPACEXCHIMP_P001_SETTINGS . '_settings_group', SPACEXCHIMP_P001_SETTINGS . '_settings' );
77
- register_setting( SPACEXCHIMP_P001_SETTINGS . '_settings_group_si', SPACEXCHIMP_P001_SETTINGS . '_service_info' );
78
- register_setting( SPACEXCHIMP_P001_SETTINGS . '_settings_group', SPACEXCHIMP_P001_SETTINGS . '_error' );
 
 
 
 
79
  }
80
- add_action( 'admin_init', 'spacexchimp_p001_register_settings' );
81
 
82
  /**
83
  * Branded footer text on the plugin's settings page
84
  */
85
  function spacexchimp_p001_admin_footer_text() {
86
 
 
 
 
87
  // Get current screen data
88
  $current_screen = get_current_screen();
89
 
90
  // Return if the page is not a settings page of this plugin
91
- $settings_page = 'settings_page_' . SPACEXCHIMP_P001_SLUG;
92
- if ( $settings_page != $current_screen->id ) return;
 
 
93
 
94
  // Filter footer text
95
  function spacexchimp_p001_new_admin_footer_text() {
96
  $year = date('Y');
97
  return "Copyright &copy; " . $year . " <a href='https://www.spacexchimp.com' target='_blank'>Space X-Chimp</a> | Click <a href='https://www.spacexchimp.com/store.html' target='_blank'>here</a> to see our other products.";
98
  }
99
- add_filter( 'admin_footer_text', 'spacexchimp_p001_new_admin_footer_text', 11 );
100
  }
101
- add_action( 'current_screen', 'spacexchimp_p001_admin_footer_text' );
102
 
103
  /**
104
  * Runs during the plugin activation
105
  */
106
  function spacexchimp_p001_activation() {
107
 
 
 
 
108
  // Read the plugin service information from the database and put it into an array
109
- $info = get_option( SPACEXCHIMP_P001_SETTINGS . '_service_info' );
110
 
111
  // Make the "$info" array if the plugin service information in the database is not exist
112
- if ( ! is_array( $info ) ) $info = array();
 
 
113
 
114
  // Get the activation date of the plugin from the database
115
  $activation_date = !empty( $info['activation_date'] ) ? $info['activation_date'] : '';
116
 
117
  if ( $activation_date == '' ) {
118
  $info['activation_date'] = time();
119
- update_option( SPACEXCHIMP_P001_SETTINGS . '_service_info', $info );
120
  }
121
  }
122
- register_activation_hook( SPACEXCHIMP_P001_FILE, 'spacexchimp_p001_activation' );
123
 
124
  /**
125
  * Delete options on uninstall
126
  */
127
  function spacexchimp_p001_uninstall() {
128
- delete_option( SPACEXCHIMP_P001_SETTINGS . '_settings' );
129
- delete_option( SPACEXCHIMP_P001_SETTINGS . '_error' );
 
 
 
 
130
  }
131
- register_uninstall_hook( SPACEXCHIMP_P001_FILE, 'spacexchimp_p001_uninstall' );
9
  * Register text domain
10
  */
11
  function spacexchimp_p001_textdomain() {
12
+
13
+ // Put value of plugin constants into an array for easier access
14
+ $plugin = spacexchimp_p001_plugin();
15
+
16
+ load_plugin_textdomain( $plugin['text'], false, $plugin['dir'] . '/languages/' );
17
  }
18
+ add_action( 'init', $plugin['prefix'] . '_textdomain' );
19
 
20
  /**
21
+ * Print direct link to the plugin administration page
22
  *
23
  * Fetches array of links generated by WordPress Plugin admin page ( Deactivate | Edit )
24
  * and inserts a link to the plugin admin page
25
  */
26
  function spacexchimp_p001_settings_link( $links ) {
 
 
 
 
 
27
 
28
+ // Put value of plugin constants into an array for easier access
29
+ $plugin = spacexchimp_p001_plugin();
30
+
31
+ // Declare variables
32
+ $text_settings = __( 'Settings', $plugin['text'] );
33
+ $url_settings = admin_url( 'options-general.php?page=' . $plugin['slug'] );
34
+ $link_settings = '<a href="' . $url_settings . '">' . $text_settings . '</a>';
35
+
36
+ array_unshift( $links, $link_settings );
37
+
38
+ // Declare variables
39
+ $url_upgrade = "https://www.spacexchimp.com/plugins/my-custom-functions-pro.html";
40
+ $text_upgrade = __( 'Upgrade to PRO', $plugin['text'] );
41
+ $link_upgrade = '<a href="' . $url_upgrade . '" target="_blank"><b style="color:red;">' . $text_upgrade . '</b></a>';
42
+
43
+ array_unshift( $links, $link_upgrade );
44
+
45
  return $links;
46
  }
47
+ add_filter( 'plugin_action_links_' . $plugin['base'], $plugin['prefix'] . '_settings_link' );
48
 
49
  /**
50
+ * Print additional links to the plugin meta row
51
  */
52
  function spacexchimp_p001_plugin_row_meta( $links, $file ) {
53
 
54
+ // Put value of plugin constants into an array for easier access
55
+ $plugin = spacexchimp_p001_plugin();
56
+
57
+ if ( strpos( $file, $plugin['slug'] . '.php' ) !== false ) {
58
+
59
+ // Declare variables
60
+ $url_donate = "https://www.spacexchimp.com/donate.html";
61
+ $text_donate = __( 'Donate', $plugin['text'] );
62
+ $link_donate = '<a href="' . $url_donate . '" target="_blank"><span class="dashicons dashicons-heart"></span> ' . $text_donate . '</a>';
63
+
64
+ $url_upgrade = "https://www.spacexchimp.com/plugins/my-custom-functions-pro.html";
65
+ $text_upgrade = __( 'Upgrade to PRO', $plugin['text'] );
66
+ $link_upgrade = '<a href="' . $url_upgrade . '" target="_blank"><span class="dashicons dashicons-star-filled"></span> ' . $text_upgrade . '</a>';
67
 
68
  $new_links = array(
69
+ 'donate' => $link_donate,
70
+ 'upgrage' => $link_upgrade
71
  );
72
+
73
  $links = array_merge( $links, $new_links );
74
  }
75
 
76
  return $links;
77
  }
78
+ add_filter( 'plugin_row_meta', $plugin['prefix'] . '_plugin_row_meta', 10, 2 );
79
 
80
  /**
81
  * Register a submenu item in the top-level menu item "Settings"
82
  */
83
  function spacexchimp_p001_register_submenu_page() {
84
 
85
+ // Put value of plugin constants into an array for easier access
86
+ $plugin = spacexchimp_p001_plugin();
87
+
88
+ // Declare variables
89
+ $page_title = $plugin['name'];
90
+ $menu_title = __( 'PHP Inserter', $plugin['text'] );
91
  $capability = 'manage_options';
92
+ $menu_slug = $plugin['slug'];
93
+ $function = $plugin['prefix'] . '_render_submenu_page';
94
 
95
  add_options_page( $page_title, $menu_title, $capability, $menu_slug, $function );
96
  }
97
+ add_action( 'admin_menu', $plugin['prefix'] . '_register_submenu_page' );
98
 
99
  /**
100
  * Register settings
101
  */
102
  function spacexchimp_p001_register_settings() {
103
+
104
+ // Put value of plugin constants into an array for easier access
105
+ $plugin = spacexchimp_p001_plugin();
106
+
107
+ register_setting( $plugin['settings'] . '_settings_group', $plugin['settings'] . '_settings' );
108
+ register_setting( $plugin['settings'] . '_settings_group_si', $plugin['settings'] . '_service_info' );
109
+ register_setting( $plugin['settings'] . '_settings_group', $plugin['settings'] . '_error' );
110
  }
111
+ add_action( 'admin_init', $plugin['prefix'] . '_register_settings' );
112
 
113
  /**
114
  * Branded footer text on the plugin's settings page
115
  */
116
  function spacexchimp_p001_admin_footer_text() {
117
 
118
+ // Put value of plugin constants into an array for easier access
119
+ $plugin = spacexchimp_p001_plugin();
120
+
121
  // Get current screen data
122
  $current_screen = get_current_screen();
123
 
124
  // Return if the page is not a settings page of this plugin
125
+ $settings_page = 'settings_page_' . $plugin['slug'];
126
+ if ( $settings_page != $current_screen->id ) {
127
+ return;
128
+ }
129
 
130
  // Filter footer text
131
  function spacexchimp_p001_new_admin_footer_text() {
132
  $year = date('Y');
133
  return "Copyright &copy; " . $year . " <a href='https://www.spacexchimp.com' target='_blank'>Space X-Chimp</a> | Click <a href='https://www.spacexchimp.com/store.html' target='_blank'>here</a> to see our other products.";
134
  }
135
+ add_filter( 'admin_footer_text', $plugin['prefix'] . '_new_admin_footer_text', 11 );
136
  }
137
+ add_action( 'current_screen', $plugin['prefix'] . '_admin_footer_text' );
138
 
139
  /**
140
  * Runs during the plugin activation
141
  */
142
  function spacexchimp_p001_activation() {
143
 
144
+ // Put value of plugin constants into an array for easier access
145
+ $plugin = spacexchimp_p001_plugin();
146
+
147
  // Read the plugin service information from the database and put it into an array
148
+ $info = get_option( $plugin['settings'] . '_service_info' );
149
 
150
  // Make the "$info" array if the plugin service information in the database is not exist
151
+ if ( ! is_array( $info ) ) {
152
+ $info = array();
153
+ }
154
 
155
  // Get the activation date of the plugin from the database
156
  $activation_date = !empty( $info['activation_date'] ) ? $info['activation_date'] : '';
157
 
158
  if ( $activation_date == '' ) {
159
  $info['activation_date'] = time();
160
+ update_option( $plugin['settings'] . '_service_info', $info );
161
  }
162
  }
163
+ register_activation_hook( $plugin['file'], $plugin['prefix'] . '_activation' );
164
 
165
  /**
166
  * Delete options on uninstall
167
  */
168
  function spacexchimp_p001_uninstall() {
169
+
170
+ // Put value of plugin constants into an array for easier access
171
+ $plugin = spacexchimp_p001_plugin();
172
+
173
+ delete_option( $plugin['settings'] . '_settings' );
174
+ delete_option( $plugin['settings'] . '_error' );
175
  }
176
+ register_uninstall_hook( $plugin['file'], $plugin['prefix'] . '_uninstall' );
inc/php/enqueue.php CHANGED
@@ -8,14 +8,17 @@ defined( 'ABSPATH' ) or die( "Restricted access!" );
8
  /**
9
  * Callback to enqueue the CodeMirror library
10
  */
11
- function spacexchimp_p001_load_scripts_codemirror( $prefix, $url, $version ) {
 
 
 
12
 
13
  // Enqueue main files of the CodeMirror library
14
- wp_enqueue_style( $prefix . '-codemirror-css', $url . 'inc/lib/codemirror/lib/codemirror.css', array(), $version, 'all' );
15
- wp_enqueue_script( $prefix . '-codemirror-js', $url . 'inc/lib/codemirror/lib/codemirror.js', array(), $version, false );
16
 
17
  // Enqueue settings file
18
- wp_enqueue_script( $prefix . '-codemirror-settings-js', $url . 'inc/js/codemirror-settings.js', array(), $version, true );
19
 
20
  // Enqueue addons
21
  $addons = array(
@@ -24,7 +27,7 @@ function spacexchimp_p001_load_scripts_codemirror( $prefix, $url, $version ) {
24
  );
25
  foreach ( $addons as $addons_group_name => $addons_group ) {
26
  foreach ( $addons_group as $addon ) {
27
- wp_enqueue_script( $prefix . '-codemirror-addon-' . $addon . '-js', $url . 'inc/lib/codemirror/addon/' . $addons_group_name . '/' . $addon . '.js', array(), $version, false );
28
  }
29
  }
30
 
@@ -38,7 +41,7 @@ function spacexchimp_p001_load_scripts_codemirror( $prefix, $url, $version ) {
38
  'xml'
39
  );
40
  foreach ( $modes as $mode ) {
41
- wp_enqueue_script( $prefix . '-codemirror-mode-' . $mode . '-js', $url . 'inc/lib/codemirror/mode/' . $mode . '/' . $mode . '.js', array(), $version, true );
42
  }
43
 
44
  }
@@ -48,38 +51,37 @@ function spacexchimp_p001_load_scripts_codemirror( $prefix, $url, $version ) {
48
  */
49
  function spacexchimp_p001_load_scripts_admin( $hook ) {
50
 
51
- // Put value of constants to variables for easier access
52
- $slug = SPACEXCHIMP_P001_SLUG;
53
- $prefix = SPACEXCHIMP_P001_PREFIX;
54
- $url = SPACEXCHIMP_P001_URL;
55
- $version = SPACEXCHIMP_P001_VERSION;
56
 
57
  // Return if the page is not a settings page of this plugin
58
- $settings_page = 'settings_page_' . $slug;
59
- if ( $settings_page != $hook ) return;
 
 
60
 
61
  // Load jQuery library
62
  wp_enqueue_script( 'jquery' );
63
 
64
  // Bootstrap library
65
- wp_enqueue_style( $prefix . '-bootstrap-css', $url . 'inc/lib/bootstrap/bootstrap.css', array(), $version, 'all' );
66
- wp_enqueue_style( $prefix . '-bootstrap-theme-css', $url . 'inc/lib/bootstrap/bootstrap-theme.css', array(), $version, 'all' );
67
- wp_enqueue_script( $prefix . '-bootstrap-js', $url . 'inc/lib/bootstrap/bootstrap.js', array(), $version, false );
68
 
69
  // Font Awesome library
70
- wp_enqueue_style( $prefix . '-font-awesome-css', $url . 'inc/lib/font-awesome/css/font-awesome.css', array(), $version, 'screen' );
71
 
72
  // Other libraries
73
- wp_enqueue_script( $prefix . '-bootstrap-checkbox-js', $url . 'inc/lib/bootstrap-checkbox.js', array(), $version, false );
74
 
75
  // Style sheet
76
- wp_enqueue_style( $prefix . '-admin-css', $url . 'inc/css/admin.css', array(), $version, 'all' );
77
 
78
  // JavaScript
79
- wp_enqueue_script( $prefix . '-admin-js', $url . 'inc/js/admin.js', array(), $version, true );
80
 
81
  // Call the function that enqueue the CodeMirror library
82
- spacexchimp_p001_load_scripts_codemirror( $prefix, $url, $version );
83
 
84
  }
85
- add_action( 'admin_enqueue_scripts', 'spacexchimp_p001_load_scripts_admin' );
8
  /**
9
  * Callback to enqueue the CodeMirror library
10
  */
11
+ function spacexchimp_p001_load_scripts_codemirror() {
12
+
13
+ // Put value of plugin constants into an array for easier access
14
+ $plugin = spacexchimp_p001_plugin();
15
 
16
  // Enqueue main files of the CodeMirror library
17
+ wp_enqueue_style( $plugin['prefix'] . '-codemirror-css', $plugin['url'] . 'inc/lib/codemirror/lib/codemirror.css', array(), $plugin['version'], 'all' );
18
+ wp_enqueue_script( $plugin['prefix'] . '-codemirror-js', $plugin['url'] . 'inc/lib/codemirror/lib/codemirror.js', array(), $plugin['version'], false );
19
 
20
  // Enqueue settings file
21
+ wp_enqueue_script( $plugin['prefix'] . '-codemirror-settings-js', $plugin['url'] . 'inc/js/codemirror-settings.js', array(), $plugin['version'], true );
22
 
23
  // Enqueue addons
24
  $addons = array(
27
  );
28
  foreach ( $addons as $addons_group_name => $addons_group ) {
29
  foreach ( $addons_group as $addon ) {
30
+ wp_enqueue_script( $plugin['prefix'] . '-codemirror-addon-' . $addon . '-js', $plugin['url'] . 'inc/lib/codemirror/addon/' . $addons_group_name . '/' . $addon . '.js', array(), $plugin['version'], false );
31
  }
32
  }
33
 
41
  'xml'
42
  );
43
  foreach ( $modes as $mode ) {
44
+ wp_enqueue_script( $plugin['prefix'] . '-codemirror-mode-' . $mode . '-js', $plugin['url'] . 'inc/lib/codemirror/mode/' . $mode . '/' . $mode . '.js', array(), $plugin['version'], true );
45
  }
46
 
47
  }
51
  */
52
  function spacexchimp_p001_load_scripts_admin( $hook ) {
53
 
54
+ // Put value of plugin constants into an array for easier access
55
+ $plugin = spacexchimp_p001_plugin();
 
 
 
56
 
57
  // Return if the page is not a settings page of this plugin
58
+ $settings_page = 'settings_page_' . $plugin['slug'];
59
+ if ( $settings_page != $hook ) {
60
+ return;
61
+ }
62
 
63
  // Load jQuery library
64
  wp_enqueue_script( 'jquery' );
65
 
66
  // Bootstrap library
67
+ wp_enqueue_style( $plugin['prefix'] . '-bootstrap-css', $plugin['url'] . 'inc/lib/bootstrap/bootstrap.css', array(), $plugin['version'], 'all' );
68
+ wp_enqueue_style( $plugin['prefix'] . '-bootstrap-theme-css', $plugin['url'] . 'inc/lib/bootstrap/bootstrap-theme.css', array(), $plugin['version'], 'all' );
69
+ wp_enqueue_script( $plugin['prefix'] . '-bootstrap-js', $plugin['url'] . 'inc/lib/bootstrap/bootstrap.js', array(), $plugin['version'], false );
70
 
71
  // Font Awesome library
72
+ wp_enqueue_style( $plugin['prefix'] . '-font-awesome-css', $plugin['url'] . 'inc/lib/font-awesome/css/font-awesome.css', array(), $plugin['version'], 'screen' );
73
 
74
  // Other libraries
75
+ wp_enqueue_script( $plugin['prefix'] . '-bootstrap-checkbox-js', $plugin['url'] . 'inc/lib/bootstrap-checkbox.js', array(), $plugin['version'], false );
76
 
77
  // Style sheet
78
+ wp_enqueue_style( $plugin['prefix'] . '-admin-css', $plugin['url'] . 'inc/css/admin.css', array(), $plugin['version'], 'all' );
79
 
80
  // JavaScript
81
+ wp_enqueue_script( $plugin['prefix'] . '-admin-js', $plugin['url'] . 'inc/js/admin.js', array(), $plugin['version'], true );
82
 
83
  // Call the function that enqueue the CodeMirror library
84
+ spacexchimp_p001_load_scripts_codemirror();
85
 
86
  }
87
+ add_action( 'admin_enqueue_scripts', $plugin['prefix'] . '_load_scripts_admin' );
inc/php/functional.php CHANGED
@@ -10,8 +10,11 @@ defined( 'ABSPATH' ) or die( "Restricted access!" );
10
  */
11
  function spacexchimp_p001_prepare() {
12
 
 
 
 
13
  // Retrieve options from database and declare variables
14
- $options = get_option( SPACEXCHIMP_P001_SETTINGS . '_settings' );
15
  $data = !empty( $options['snippets'] ) ? $options['snippets'] : '';
16
  $enable = !empty( $options['enable'] ) ? $options['enable'] : '';
17
 
@@ -19,7 +22,7 @@ function spacexchimp_p001_prepare() {
19
  $data_out = "";
20
 
21
  // If data is not empty...
22
- if ( !empty( $data ) ) {
23
 
24
  // If the custom code is enabled...
25
  if ( $enable == "on") {
@@ -43,6 +46,9 @@ function spacexchimp_p001_prepare() {
43
  */
44
  function spacexchimp_p001_preparation_duplicates( $data ) {
45
 
 
 
 
46
  // Find names of user entered snippets and check for duplicates
47
  preg_match_all('/function[\s\n]+(\S+)[\s\n]*\(/i', $data, $user_func_names);
48
  $user_func_a = count( $user_func_names[1] );
@@ -55,10 +61,10 @@ function spacexchimp_p001_preparation_duplicates( $data ) {
55
 
56
  // Update error status
57
  if ( $user_func_a != $user_func_b OR count( $declared_func_user ) != 0 OR count( $declared_func_internal ) != 0 ) {
58
- update_option( SPACEXCHIMP_P001_SETTINGS . '_error', '1' ); // ERROR
59
  $error_status = '1';
60
  } else {
61
- update_option( SPACEXCHIMP_P001_SETTINGS . '_error', '0' ); // RESET ERROR VALUE
62
  $error_status = '0';
63
  }
64
 
@@ -71,8 +77,11 @@ function spacexchimp_p001_preparation_duplicates( $data ) {
71
  */
72
  function spacexchimp_p001_exec() {
73
 
 
 
 
74
  // If the STOP file exist...
75
- if ( file_exists( SPACEXCHIMP_P001_PATH . 'STOP' ) ) {
76
  return; // EXIT
77
  }
78
 
@@ -92,10 +101,10 @@ function spacexchimp_p001_exec() {
92
 
93
  // Parsing and execute by Eval
94
  if ( false === @eval( $data ) ) {
95
- update_option( SPACEXCHIMP_P001_SETTINGS . '_error', '1' ); // ERROR
96
  return; // EXIT
97
  } else {
98
- update_option( SPACEXCHIMP_P001_SETTINGS . '_error', '0' ); // RESET ERROR VALUE
99
  }
100
  }
101
 
10
  */
11
  function spacexchimp_p001_prepare() {
12
 
13
+ // Put value of plugin constants into an array for easier access
14
+ $plugin = spacexchimp_p001_plugin();
15
+
16
  // Retrieve options from database and declare variables
17
+ $options = get_option( $plugin['settings'] . '_settings' );
18
  $data = !empty( $options['snippets'] ) ? $options['snippets'] : '';
19
  $enable = !empty( $options['enable'] ) ? $options['enable'] : '';
20
 
22
  $data_out = "";
23
 
24
  // If data is not empty...
25
+ if ( ! empty( $data ) ) {
26
 
27
  // If the custom code is enabled...
28
  if ( $enable == "on") {
46
  */
47
  function spacexchimp_p001_preparation_duplicates( $data ) {
48
 
49
+ // Put value of plugin constants into an array for easier access
50
+ $plugin = spacexchimp_p001_plugin();
51
+
52
  // Find names of user entered snippets and check for duplicates
53
  preg_match_all('/function[\s\n]+(\S+)[\s\n]*\(/i', $data, $user_func_names);
54
  $user_func_a = count( $user_func_names[1] );
61
 
62
  // Update error status
63
  if ( $user_func_a != $user_func_b OR count( $declared_func_user ) != 0 OR count( $declared_func_internal ) != 0 ) {
64
+ update_option( $plugin['settings'] . '_error', '1' ); // ERROR
65
  $error_status = '1';
66
  } else {
67
+ update_option( $plugin['settings'] . '_error', '0' ); // RESET ERROR VALUE
68
  $error_status = '0';
69
  }
70
 
77
  */
78
  function spacexchimp_p001_exec() {
79
 
80
+ // Put value of plugin constants into an array for easier access
81
+ $plugin = spacexchimp_p001_plugin();
82
+
83
  // If the STOP file exist...
84
+ if ( file_exists( $plugin['path'] . 'STOP' ) ) {
85
  return; // EXIT
86
  }
87
 
101
 
102
  // Parsing and execute by Eval
103
  if ( false === @eval( $data ) ) {
104
+ update_option( $plugin['settings'] . '_error', '1' ); // ERROR
105
  return; // EXIT
106
  } else {
107
+ update_option( $plugin['settings'] . '_error', '0' ); // RESET ERROR VALUE
108
  }
109
  }
110
 
inc/php/messages.php CHANGED
@@ -10,16 +10,14 @@ defined( 'ABSPATH' ) or die( "Restricted access!" );
10
  */
11
  function spacexchimp_p001_message_hello() {
12
 
13
- // Put value of constants to variables for easier access
14
- $settings = SPACEXCHIMP_P001_SETTINGS;
15
- $url = SPACEXCHIMP_P001_URL;
16
- $text = SPACEXCHIMP_P001_TEXT;
17
 
18
  // Retrieve options from database and declare variables
19
- $options = get_option( $settings . '_settings' );
20
 
21
  // Exit if options are already set in database
22
- if ( !empty( $options ) ) {
23
  return;
24
  }
25
 
@@ -29,16 +27,16 @@ function spacexchimp_p001_message_hello() {
29
  <div class="modal-dialog">
30
  <div class="modal-content">
31
  <div class="modal-body">
32
- <img src="<?php echo $url . 'inc/img/spacexchimp-logo.png'; ?>">
33
  <button type="button" class="close" data-dismiss="modal">&times;</button>
34
  <p>
35
- <?php _e( 'Hello!', $text ); ?>
36
- <?php _e( 'We are the team of Space X-Chimp.', $text ); ?>
37
  </p>
38
  <p>
39
  <?php
40
  printf(
41
- __( 'Thank you for installing our plugin! We hope you will love it! %s', $text ),
42
  '&#x1F603;'
43
  );
44
  ?>
@@ -71,12 +69,11 @@ function spacexchimp_p001_message_hello() {
71
  */
72
  function spacexchimp_p001_message_error_version() {
73
 
74
- // Put value of constants to variables for easier access
75
- $settings = SPACEXCHIMP_P001_SETTINGS;
76
- $text = SPACEXCHIMP_P001_TEXT;
77
 
78
  // Retrieve options from database and declare variables
79
- $info = get_option( $settings . '_service_info' );
80
  $old_version = !empty( $info['old_version'] ) ? $info['old_version'] : '0';
81
 
82
  // Exit if this is not the old version of the plugin
@@ -90,8 +87,8 @@ function spacexchimp_p001_message_error_version() {
90
  <div class="modal-dialog">
91
  <div class="modal-content">
92
  <div class="modal-body">
93
- <p><?php _e( 'You have installed an old version of this plugin.', $text ); ?></p>
94
- <p><?php _e( 'Please update the plugin to the latest version, and all will be fine.', $text ); ?></p>
95
  </div>
96
  </div>
97
  </div>
@@ -114,19 +111,19 @@ function spacexchimp_p001_message_error_version() {
114
  function spacexchimp_p001_message_save() {
115
 
116
  // Exit if settings are not updated
117
- if ( !isset( $_GET['settings-updated'] ) ) {
118
  return;
119
  }
120
 
121
- // Put value of constants to variables for easier access
122
- $text = SPACEXCHIMP_P001_TEXT;
123
 
124
  // HTML layout
125
  ?>
126
  <div id="message" class="updated">
127
  <p>
128
  <i class="fa fa-check" aria-hidden="true"></i>
129
- <?php _e( 'Custom code saved successfully.', $text ); ?>
130
  </p>
131
  </div>
132
  <?php
@@ -137,8 +134,8 @@ function spacexchimp_p001_message_save() {
137
  */
138
  function spacexchimp_p001_message_error_parsing() {
139
 
140
- // Put value of constants to variables for easier access
141
- $text = SPACEXCHIMP_P001_TEXT;
142
 
143
  // HTML layout
144
  ?>
@@ -146,8 +143,8 @@ function spacexchimp_p001_message_error_parsing() {
146
  <p>
147
  <i class="fa fa-times" aria-hidden="true"></i>
148
  <span>
149
- <?php _e( 'Sorry, but your code causes a "Fatal error", so it is not applied!', $text ); ?><br/>
150
- <?php _e( 'Please, check the code and try again.', $text ); ?>
151
  </span>
152
  </p>
153
  </div>
@@ -159,11 +156,11 @@ function spacexchimp_p001_message_error_parsing() {
159
  */
160
  function spacexchimp_p001_message_save_select() {
161
 
162
- // Put value of constants to variables for easier access
163
- $settings = SPACEXCHIMP_P001_SETTINGS;
164
 
165
  // Retrieve options from database and declare variables
166
- $error = get_option( $settings . '_error' );
167
 
168
  // Show error message if error exists
169
  if ( $error == '1' ) {
10
  */
11
  function spacexchimp_p001_message_hello() {
12
 
13
+ // Put value of plugin constants into an array for easier access
14
+ $plugin = spacexchimp_p001_plugin();
 
 
15
 
16
  // Retrieve options from database and declare variables
17
+ $options = get_option( $plugin['settings'] . '_settings' );
18
 
19
  // Exit if options are already set in database
20
+ if ( ! empty( $options ) ) {
21
  return;
22
  }
23
 
27
  <div class="modal-dialog">
28
  <div class="modal-content">
29
  <div class="modal-body">
30
+ <img src="<?php echo $plugin['url'] . 'inc/img/spacexchimp-logo.png'; ?>">
31
  <button type="button" class="close" data-dismiss="modal">&times;</button>
32
  <p>
33
+ <?php _e( 'Hello!', $plugin['text'] ); ?>
34
+ <?php _e( 'We are the team of Space X-Chimp.', $plugin['text'] ); ?>
35
  </p>
36
  <p>
37
  <?php
38
  printf(
39
+ __( 'Thank you for installing our plugin! We hope you will love it! %s', $plugin['text'] ),
40
  '&#x1F603;'
41
  );
42
  ?>
69
  */
70
  function spacexchimp_p001_message_error_version() {
71
 
72
+ // Put value of plugin constants into an array for easier access
73
+ $plugin = spacexchimp_p001_plugin();
 
74
 
75
  // Retrieve options from database and declare variables
76
+ $info = get_option( $plugin['settings'] . '_service_info' );
77
  $old_version = !empty( $info['old_version'] ) ? $info['old_version'] : '0';
78
 
79
  // Exit if this is not the old version of the plugin
87
  <div class="modal-dialog">
88
  <div class="modal-content">
89
  <div class="modal-body">
90
+ <p><?php _e( 'You have installed an old version of this plugin.', $plugin['text'] ); ?></p>
91
+ <p><?php _e( 'Please update the plugin to the latest version, and all will be fine.', $plugin['text'] ); ?></p>
92
  </div>
93
  </div>
94
  </div>
111
  function spacexchimp_p001_message_save() {
112
 
113
  // Exit if settings are not updated
114
+ if ( ! isset( $_GET['settings-updated'] ) ) {
115
  return;
116
  }
117
 
118
+ // Put value of plugin constants into an array for easier access
119
+ $plugin = spacexchimp_p001_plugin();
120
 
121
  // HTML layout
122
  ?>
123
  <div id="message" class="updated">
124
  <p>
125
  <i class="fa fa-check" aria-hidden="true"></i>
126
+ <?php _e( 'Custom code saved successfully.', $plugin['text'] ); ?>
127
  </p>
128
  </div>
129
  <?php
134
  */
135
  function spacexchimp_p001_message_error_parsing() {
136
 
137
+ // Put value of plugin constants into an array for easier access
138
+ $plugin = spacexchimp_p001_plugin();
139
 
140
  // HTML layout
141
  ?>
143
  <p>
144
  <i class="fa fa-times" aria-hidden="true"></i>
145
  <span>
146
+ <?php _e( 'Sorry, but your code causes a "Fatal error", so it is not applied!', $plugin['text'] ); ?><br/>
147
+ <?php _e( 'Please, check the code and try again.', $plugin['text'] ); ?>
148
  </span>
149
  </p>
150
  </div>
156
  */
157
  function spacexchimp_p001_message_save_select() {
158
 
159
+ // Put value of plugin constants into an array for easier access
160
+ $plugin = spacexchimp_p001_plugin();
161
 
162
  // Retrieve options from database and declare variables
163
+ $error = get_option( $plugin['settings'] . '_error' );
164
 
165
  // Show error message if error exists
166
  if ( $error == '1' ) {
inc/php/page.php CHANGED
@@ -10,12 +10,8 @@ defined( 'ABSPATH' ) or die( "Restricted access!" );
10
  */
11
  function spacexchimp_p001_render_submenu_page() {
12
 
13
- // Put value of constants to variables for easier access
14
- $name = SPACEXCHIMP_P001_NAME;
15
- $slug = SPACEXCHIMP_P001_SLUG;
16
- $version = SPACEXCHIMP_P001_VERSION;
17
- $text = SPACEXCHIMP_P001_TEXT;
18
- $path = SPACEXCHIMP_P001_PATH;
19
 
20
  // Call messages
21
  spacexchimp_p001_message_hello();
@@ -27,55 +23,55 @@ function spacexchimp_p001_render_submenu_page() {
27
  <div class="wrap">
28
 
29
  <h2 class="sxc-header">
30
- <?php echo $name; ?>
31
  <span>
32
  <?php
33
  printf(
34
- __( 'by %s Space X-Chimp %s', $text ),
35
  '<a href="https://www.spacexchimp.com" target="_blank">',
36
  '</a>'
37
  );
38
  ?>
39
  </span>
40
- <p class="version"><?php _e( 'Version', $text ); ?> <?php echo $version; ?></p>
41
  </h2>
42
 
43
  <div id="poststuff" class="metabox-holder has-right-sidebar">
44
 
45
  <!-- TABS NAVIGATION MENU -->
46
  <ul class="tabs-nav">
47
- <li class="active"><a href="#tab-core" data-toggle="tab"><?php _e( 'Main', $text ); ?></a></li>
48
- <li><a href="#tab-usage" data-toggle="tab"><?php _e( 'Usage', $text ); ?></a></li>
49
- <li><a href="#tab-faq" data-toggle="tab"><?php _e( 'F.A.Q.', $text ); ?></a></li>
50
- <li><a href="#tab-support" data-toggle="tab"><?php _e( 'Support', $text ); ?></a></li>
51
- <li><a href="#tab-store" data-toggle="tab"><?php _e( 'Store', $text ); ?></a></li>
52
  </ul>
53
  <!-- END-TABS NAVIGATION MENU -->
54
 
55
  <!-- TAB 1 -->
56
  <div class="tab-page fade active in" id="tab-core">
57
  <!-- INCLUDE SIDEBAR -->
58
- <?php require_once( $path . 'inc/php/sidebar.php' ); ?>
59
  <!-- INCLUDE SETTINGS -->
60
- <?php require_once( $path . 'inc/php/tabs/settings.php' ); ?>
61
  </div>
62
  <!-- END-TAB 1 -->
63
 
64
  <!-- TAB 2 -->
65
  <div class="tab-page fade" id="tab-usage">
66
- <?php require_once( $path . 'inc/php/tabs/usage.php' ); ?>
67
  </div>
68
  <!-- END-TAB 2 -->
69
 
70
  <!-- TAB 3 -->
71
  <div class="tab-page fade" id="tab-faq">
72
- <?php require_once( $path . 'inc/php/tabs/faq.php' ); ?>
73
  </div>
74
  <!-- END-TAB 3 -->
75
 
76
  <!-- TAB 4 -->
77
  <div class="tab-page fade" id="tab-support">
78
- <?php require_once( $path . 'inc/php/tabs/support.php' ); ?>
79
  </div>
80
  <!-- END-TAB 4 -->
81
 
10
  */
11
  function spacexchimp_p001_render_submenu_page() {
12
 
13
+ // Put value of plugin constants into an array for easier access
14
+ $plugin = spacexchimp_p001_plugin();
 
 
 
 
15
 
16
  // Call messages
17
  spacexchimp_p001_message_hello();
23
  <div class="wrap">
24
 
25
  <h2 class="sxc-header">
26
+ <?php echo $plugin['name']; ?>
27
  <span>
28
  <?php
29
  printf(
30
+ __( 'by %s Space X-Chimp %s', $plugin['text'] ),
31
  '<a href="https://www.spacexchimp.com" target="_blank">',
32
  '</a>'
33
  );
34
  ?>
35
  </span>
36
+ <p class="version"><?php _e( 'Version', $plugin['text'] ); ?> <?php echo $plugin['version']; ?></p>
37
  </h2>
38
 
39
  <div id="poststuff" class="metabox-holder has-right-sidebar">
40
 
41
  <!-- TABS NAVIGATION MENU -->
42
  <ul class="tabs-nav">
43
+ <li class="active"><a href="#tab-core" data-toggle="tab"><?php _e( 'Main', $plugin['text'] ); ?></a></li>
44
+ <li><a href="#tab-usage" data-toggle="tab"><?php _e( 'Usage', $plugin['text'] ); ?></a></li>
45
+ <li><a href="#tab-faq" data-toggle="tab"><?php _e( 'F.A.Q.', $plugin['text'] ); ?></a></li>
46
+ <li><a href="#tab-support" data-toggle="tab"><?php _e( 'Support', $plugin['text'] ); ?></a></li>
47
+ <li><a href="#tab-store" data-toggle="tab"><?php _e( 'Store', $plugin['text'] ); ?></a></li>
48
  </ul>
49
  <!-- END-TABS NAVIGATION MENU -->
50
 
51
  <!-- TAB 1 -->
52
  <div class="tab-page fade active in" id="tab-core">
53
  <!-- INCLUDE SIDEBAR -->
54
+ <?php require_once( $plugin['path'] . 'inc/php/sidebar.php' ); ?>
55
  <!-- INCLUDE SETTINGS -->
56
+ <?php require_once( $plugin['path'] . 'inc/php/tabs/settings.php' ); ?>
57
  </div>
58
  <!-- END-TAB 1 -->
59
 
60
  <!-- TAB 2 -->
61
  <div class="tab-page fade" id="tab-usage">
62
+ <?php require_once( $plugin['path'] . 'inc/php/tabs/usage.php' ); ?>
63
  </div>
64
  <!-- END-TAB 2 -->
65
 
66
  <!-- TAB 3 -->
67
  <div class="tab-page fade" id="tab-faq">
68
+ <?php require_once( $plugin['path'] . 'inc/php/tabs/faq.php' ); ?>
69
  </div>
70
  <!-- END-TAB 3 -->
71
 
72
  <!-- TAB 4 -->
73
  <div class="tab-page fade" id="tab-support">
74
+ <?php require_once( $plugin['path'] . 'inc/php/tabs/support.php' ); ?>
75
  </div>
76
  <!-- END-TAB 4 -->
77
 
inc/php/sidebar.php CHANGED
@@ -13,10 +13,10 @@ defined( 'ABSPATH' ) or die( "Restricted access!" );
13
  <div id="side-sortables" class="meta-box-sortabless ui-sortable">
14
 
15
  <div class="postbox banner">
16
- <h3 class="title"><?php _e( 'We are «Space X-Chimp»', $text ); ?></h3>
17
  <div class="inside">
18
  <a href="https://www.spacexchimp.com/" target="_blank">
19
- <img src="<?php echo SPACEXCHIMP_P001_URL . 'inc/img/spacexchimp-logo.png'; ?>" alt="Space X-Chimp">
20
  </a>
21
  </div>
22
  </div>
@@ -24,36 +24,36 @@ defined( 'ABSPATH' ) or die( "Restricted access!" );
24
  <div class="postbox banner">
25
  <div class="inside">
26
  <a href="https://www.spacexchimp.com/plugins/my-custom-functions-pro.html" target="_blank">
27
- <img src="<?php echo SPACEXCHIMP_P001_URL . 'inc/img/upgrade.png'; ?>" alt="Upgrade" style="margin-top:-16px;">
28
  </a>
29
  </div>
30
  </div>
31
 
32
  <div class="postbox about">
33
- <h3 class="title"><?php _e( 'About', $text ); ?></h3>
34
  <div class="inside">
35
- <p><?php _e( 'This plugin gives you the ability to 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.', $text ); ?></p>
36
  </div>
37
  </div>
38
 
39
  <div class="postbox help">
40
- <h3 class="title"><?php _e( 'Help', $text ); ?></h3>
41
  <div class="inside">
42
- <p><?php _e( 'If you have a question, please read the information in the FAQ section.', $text ); ?></p>
43
  </div>
44
  </div>
45
 
46
  <div class="postbox support">
47
- <h3 class="title"><?php _e( 'Support', $text ); ?></h3>
48
  <div class="inside">
49
- <p><?php _e( 'Every little contribution helps to cover our costs and allows us to spend more time creating things for awesome people like you to enjoy.', $text ); ?></p>
50
  <a href="https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=8A88KC7TFF6CS" target="_blank" class="btn btn-default button-labeled">
51
  <span class="btn-label">
52
- <img src="<?php echo SPACEXCHIMP_P001_URL . 'inc/img/paypal.svg'; ?>" alt="PayPal">
53
  </span>
54
- <?php _e( 'Donate with PayPal', $text ); ?>
55
  </a>
56
- <p><?php _e( 'Thanks for your support!', $text ); ?></p>
57
  </div>
58
  </div>
59
 
13
  <div id="side-sortables" class="meta-box-sortabless ui-sortable">
14
 
15
  <div class="postbox banner">
16
+ <h3 class="title"><?php _e( 'We are «Space X-Chimp»', $plugin['text'] ); ?></h3>
17
  <div class="inside">
18
  <a href="https://www.spacexchimp.com/" target="_blank">
19
+ <img src="<?php echo $plugin['url'] . 'inc/img/spacexchimp-logo.png'; ?>" alt="Space X-Chimp">
20
  </a>
21
  </div>
22
  </div>
24
  <div class="postbox banner">
25
  <div class="inside">
26
  <a href="https://www.spacexchimp.com/plugins/my-custom-functions-pro.html" target="_blank">
27
+ <img src="<?php echo $plugin['url'] . 'inc/img/upgrade.png'; ?>" alt="Upgrade" style="margin-top:-16px;">
28
  </a>
29
  </div>
30
  </div>
31
 
32
  <div class="postbox about">
33
+ <h3 class="title"><?php _e( 'About', $plugin['text'] ); ?></h3>
34
  <div class="inside">
35
+ <p><?php _e( 'This plugin gives you the ability to 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.', $plugin['text'] ); ?></p>
36
  </div>
37
  </div>
38
 
39
  <div class="postbox help">
40
+ <h3 class="title"><?php _e( 'Help', $plugin['text'] ); ?></h3>
41
  <div class="inside">
42
+ <p><?php _e( 'If you have a question, please read the information in the FAQ section.', $plugin['text'] ); ?></p>
43
  </div>
44
  </div>
45
 
46
  <div class="postbox support">
47
+ <h3 class="title"><?php _e( 'Support', $plugin['text'] ); ?></h3>
48
  <div class="inside">
49
+ <p><?php _e( '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'] ); ?></p>
50
  <a href="https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=8A88KC7TFF6CS" target="_blank" class="btn btn-default button-labeled">
51
  <span class="btn-label">
52
+ <img src="<?php echo $plugin['url'] . 'inc/img/paypal.svg'; ?>" alt="PayPal">
53
  </span>
54
+ <?php _e( 'Donate with PayPal', $plugin['text'] ); ?>
55
  </a>
56
+ <p><?php _e( 'Thanks for your support!', $plugin['text'] ); ?></p>
57
  </div>
58
  </div>
59
 
inc/php/tabs/faq.php CHANGED
@@ -10,11 +10,11 @@ defined( 'ABSPATH' ) or die( "Restricted access!" );
10
  */
11
  ?>
12
  <div class="postbox">
13
- <h3 class="title"><?php _e( 'Frequently Asked Questions', $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.', $text ); ?>
18
  </p>
19
 
20
  <div class="panel-group" id="collapse-group">
@@ -39,12 +39,12 @@ defined( 'ABSPATH' ) or die( "Restricted access!" );
39
  <?php $i = 1; ?>
40
 
41
  <div class="question-<?php echo $i; ?>">
42
- <?php _e( 'Where can I find a documentation for this 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.', $text ),
48
  '<a href="https://docs.spacexchimp.com" target="_blank">',
49
  '</a>'
50
  );
@@ -52,86 +52,86 @@ defined( 'ABSPATH' ) or die( "Restricted access!" );
52
  </div>
53
 
54
  <div class="question-<?php echo $i; ?>">
55
- <?php _e( 'Will this plugin work on my wordpress.COM website?', $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.', $text ); ?>
59
  <br><br>
60
- <?php _e( 'Please note that there is a difference between wordpress.COM and wordpress.ORG.', $text ); ?>
61
- <?php _e( 'The wordpress.COM is a blog hosting service that offers a limited version of the popular self-hosted WordPress software.', $text ); ?>
62
  <?php
63
  printf(
64
- __( 'You can learn more about the difference here: %s .', $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?', $text ); ?>
72
  </div>
73
  <div class="answer-<?php echo $i; $i++ ?>">
74
- <?php _e( 'This plugin is compatible with most themes.', $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.', $text ); ?>
76
- <?php _e( 'We constantly check this plugin for compatibility with third-party themes.', $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.', $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.', $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?', $text ); ?>
84
  </div>
85
  <div class="answer-<?php echo $i; $i++ ?>">
86
- <?php _e( 'This plugin is compatible with most plugins.', $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.', $text ); ?>
88
- <?php _e( 'We constantly check this plugin for compatibility with third-party plugins.', $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.', $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.', $text ); ?>
92
  </div>
93
 
94
  <div class="question-<?php echo $i; ?>">
95
- <?php _e( 'Can I use this plugin on my language?', $text ); ?>
96
  </div>
97
  <div class="answer-<?php echo $i; $i++ ?>">
98
- <?php _e( 'Yes.', $text ); ?>
99
- <?php _e( 'This plugin is ready for translation and has already been translated into several languages.', $text ); ?>
100
- <?php _e( 'But If your language is not available then you can make one.', $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.', $text ); ?>
102
- <?php _e( 'Many of plugin users would be delighted if you share your translation with the community.', $text ); ?>
103
- <?php _e( 'Thanks for your contribution!', $text ); ?>
104
  <br><br>
105
  <?php
106
  printf(
107
- __( 'If you want to help translate this plugin, please visit the %s.', $text ),
108
- '<a href="https://translate.wordpress.org/projects/wp-plugins/' . $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.', $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.', $text ),
115
- '<a href="mailto:support@spacexchimp.com?subject=New translation of the ' . $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?', $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.', $text ); ?>
125
- <?php _e( 'Enjoy the result of applying your custom PHP code.', $text ); ?>
126
- <?php _e( 'It\'s that simple!', $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?', $text ); ?>
131
  </div>
132
  <div class="answer-<?php echo $i; $i++ ?>">
133
- <?php _e( 'Yes.', $text ); ?>
134
- <?php _e( 'But you need to do it properly, like this:', $text ); ?>
135
  <br><br>
136
  <pre><code>function my_custom_html_code() {
137
 
@@ -143,41 +143,41 @@ 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?', $text ); ?>
147
  </div>
148
  <div class="answer-<?php echo $i; $i++ ?>">
149
- <?php _e( 'We don\'t limit the number of characters.', $text ); ?>
150
  </div>
151
 
152
  <div class="question-<?php echo $i; ?>">
153
- <?php _e( 'Does this plugin requires any modification of the theme?', $text ); ?>
154
  </div>
155
  <div class="answer-<?php echo $i; $i++ ?>">
156
- <?php _e( 'Absolutely not.', $text ); ?>
157
- <?php _e( 'This plugin is configurable entirely from the plugin settings page.', $text ); ?>
158
  </div>
159
 
160
  <div class="question-<?php echo $i; ?>">
161
- <?php _e( 'Does this require any knowledge of HTML or CSS?', $text ); ?>
162
  </div>
163
  <div class="answer-<?php echo $i; $i++ ?>">
164
- <?php _e( 'Absolutely not.', $text ); ?>
165
- <?php _e( 'This plugin can be configured with no knowledge of HTML or CSS, using an easy-to-use plugin settings page.', $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?', $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.', $text ); ?>
173
- <?php _e( 'We plan to add this feature soon.', $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.', $text ); ?>
175
- <?php _e( 'You need something like this:', $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
 
@@ -188,172 +188,172 @@ 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.', $text ); ?>
192
- <?php _e( 'What could be wrong?', $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.', $text ); ?>
196
- <?php _e( 'It\'s impossible to tell what could be wrong exactly.', $text ); ?>
197
- <?php _e( 'The most common reason for this is a web browser\'s cache.', $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.', $text ); ?>
199
- <?php _e( 'This is called the browser\'s cache.', $text ); ?>
200
- <?php _e( 'Clearing your browser\'s cache may solve the problem.', $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.', $text ); ?>
203
- <?php _e( 'Please include as much information as possible, including a link to your website where the problem can be seen.', $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.', $text ); ?>
208
- <?php _e( 'What could be wrong?', $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:', $text ); ?>
212
  <ol class="custom-list">
213
  <li>
214
- <?php _e( 'You make a syntax error in the code that you have entered.', $text ); ?>
215
- <?php _e( 'Check the syntax of your code and try again.', $text ); ?>
216
  </li>
217
  <li>
218
- <?php _e( 'You entered two functions with the same name.', $text ); ?>
219
- <?php _e( 'Use a unique names for your functions.', $text ); ?>
220
  </li>
221
  <li>
222
- <?php _e( 'You have entered function with a name that is already occupied by another function.', $text ); ?>
223
- <?php _e( 'Use a unique name for your function.', $text ); ?>
224
  </li>
225
  <li>
226
- <?php _e( 'You are trying to overwrite an existing function (of WordPress, theme, or plugin).', $text ); ?>
227
- <?php _e( 'Instead, use filters and hooks.', $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.', $text ); ?>
234
- <?php _e( 'What could be wrong?', $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.', $text ); ?>
238
- <?php _e( 'Here are a few of the most likely causes of the issue:', $text ); ?>
239
  <ol class="custom-list">
240
- <li><?php _e( 'You have a typo during the insertion of your custom PHP code.', $text ); ?></li>
241
- <li><?php _e( 'Your custom PHP code has a syntax error.', $text ); ?></li>
242
- <li><?php _e( 'Your custom PHP code is incorrect and may not work.', $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?', $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.', $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).', $text ); ?>
252
- <?php _e( 'This is due to the fact that your custom code has a syntax error that this plugin could not detect.', $text ); ?>
253
- <?php _e( 'When this happens with you, please perform the following steps.', $text ); ?>
254
  <ol class="custom-counter">
255
  <li>
256
- <?php _e( 'Access your server via FTP or SFTP.', $text ); ?>
257
- <?php _e( 'If you aren\'t sure how usually your web hosting provider will have instructions somewhere on their website.', $text ); ?>
258
  </li>
259
  <li>
260
- <?php _e( 'Browse to the directory <code>wp-content/plugins/my-custom-functions/</code>.', $text ); ?>
261
- <?php _e( 'Please contact your web hosting company to get help if you can\'t find this folder.', $text ); ?>
262
  </li>
263
  <li>
264
- <?php _e( 'Rename the file <code>START</code> to <code>STOP</code>.', $text ); ?>
265
- <?php _e( 'This will stop the execution of your custom code.', $text ); ?>
266
  </li>
267
- <li><?php _e( 'Log in to Admin Area of your WordPress website.', $text ); ?></li>
268
- <li><?php _e( 'Go to the plugin settings page <code>Settings</code> &#10145; <code>PHP Inserter</code>.', $text ); ?></li>
269
- <li><?php _e( 'Edit/fix your custom PHP code that you entered before the crash.', $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!', $text ); ?></li>
271
  </ol>
272
- <?php _e( 'This plugin stored you entered code in the database of your website.', $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>.', $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.', $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.', $text ); ?>
280
- <?php _e( 'Why is this?', $text ); ?>
281
  </div>
282
  <div class="answer-<?php echo $i; $i++ ?>">
283
- <?php _e( 'This plugin can not cause such problem.', $text ); ?>
284
- <?php _e( 'More likely, the problem are related to the settings of the website.', $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.', $text ); ?>
286
- <?php _e( 'Also please try to re-login to the website, this too can help.', $text ); ?>
287
  </div>
288
 
289
  <div class="question-<?php echo $i; ?> question-red">
290
- <?php _e( 'Where to report bug if found?', $text ); ?>
291
  </div>
292
  <div class="answer-<?php echo $i; $i++ ?>">
293
- <?php _e( 'Bug reports are very welcome!', $text ); ?>
294
  <?php
295
  printf(
296
- __( 'Please visit our %s contact page %s and report.', $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.', $text ); ?>
302
- <?php _e( 'Thank you!', $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.', $text ); ?>
305
- <?php _e( 'Describe in more detail what exactly you are seeing.', $text ); ?>
306
- <?php _e( 'Here are some examples:', $text ); ?>
307
  <br><br>
308
  <ul class="custom-list">
309
- <li><?php _e( 'Elements of the plugin settings page are not working.', $text ); ?></li>
310
- <li><?php _e( 'An error message is displayed on the plugin settings page.', $text ); ?></li>
311
- <li><?php _e( 'An error message is displayed on the front end of website.', $text ); ?></li>
312
- <li><?php _e( 'An error message is displayed on the back end of website.', $text ); ?></li>
313
- <li><?php _e( 'Custom code is inserted on the plugin settings page, but it is not applied on the website.', $text ); ?></li>
314
- <li><?php _e( 'Website is crashed.', $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?', $text ); ?>
320
  </div>
321
  <div class="answer-<?php echo $i; $i++ ?>">
322
- <?php _e( 'Any suggestions are very welcome!', $text ); ?>
323
  <?php
324
  printf(
325
- __( 'Please visit our %s contact page %s.', $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.', $text ); ?>
331
- <?php _e( 'Thank you!', $text ); ?>
332
  </div>
333
 
334
  <div class="question-<?php echo $i; ?>">
335
- <?php _e( 'I love this plugin!', $text ); ?>
336
- <?php _e( 'Can I help somehow?', $text ); ?>
337
  </div>
338
  <div class="answer-<?php echo $i; $i++ ?>">
339
- <?php _e( 'Yes, any contributions are very welcome!', $text ); ?>
340
  <?php
341
  printf(
342
- __( 'Please visit our %s Support Us %s page.', $text ),
343
  '<a href="https://www.spacexchimp.com/donate.html" target="_blank">',
344
  '</a>'
345
  );
346
  ?>
347
- <?php _e( 'Thank you!', $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?', $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.', $text ),
357
  '<a href="https://www.spacexchimp.com/faq.html" target="_blank">',
358
  '</a>'
359
  );
@@ -361,12 +361,12 @@ my_custom_php_code();</code></pre>
361
  </div>
362
 
363
  <div class="question-<?php echo $i; ?>">
364
- <?php _e( 'Where can I find information about your customer support?', $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.', $text ),
370
  '<a href="https://www.spacexchimp.com/faq.html" target="_blank">',
371
  '</a>'
372
  );
@@ -374,12 +374,12 @@ my_custom_php_code();</code></pre>
374
  </div>
375
 
376
  <div class="question-<?php echo $i; ?>">
377
- <?php _e( 'Where can I find information about your affiliate program?', $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.', $text ),
383
  '<a href="https://www.spacexchimp.com/faq.html" target="_blank">',
384
  '</a>'
385
  );
@@ -387,17 +387,17 @@ my_custom_php_code();</code></pre>
387
  </div>
388
 
389
  <div class="question-<?php echo $i; ?>">
390
- <?php _e( 'My question wasn\'t answered here.', $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.', $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.', $text ); ?>
401
  </div>
402
 
403
  </div>
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">
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
  );
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
 
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
 
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
  );
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
  );
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
  );
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>
inc/php/tabs/settings.php CHANGED
@@ -14,11 +14,11 @@ defined( 'ABSPATH' ) or die( "Restricted access!" );
14
  <div class="meta-box-sortabless">
15
 
16
  <form action="options.php" method="post" enctype="multipart/form-data">
17
- <?php settings_fields( SPACEXCHIMP_P001_SETTINGS . '_settings_group' ); ?>
18
 
19
  <?php
20
  // Retrieve options from database
21
- $options = get_option( SPACEXCHIMP_P001_SETTINGS . '_settings' );
22
 
23
  // Set default value if option is empty
24
  $snippets = !empty( $options['snippets'] ) ? $options['snippets'] : '';
@@ -27,9 +27,9 @@ defined( 'ABSPATH' ) or die( "Restricted access!" );
27
 
28
  <div class="postbox">
29
  <h3 class="title">
30
- <?php _e( 'Functions (PHP code)', $text ); ?>
31
  <div class="pull-right">
32
- <span class="not-saved"><?php _e( 'NOT SAVED!', $text ); ?></span>
33
  <input
34
  type="checkbox"
35
  name="spacexchimp_p001_settings[enable]"
@@ -43,24 +43,24 @@ defined( 'ABSPATH' ) or die( "Restricted access!" );
43
  <textarea
44
  name="spacexchimp_p001_settings[snippets]"
45
  id="spacexchimp_p001_settings[snippets]"
46
- placeholder="<?php _e( 'Enter your PHP functions here', $text ); ?>"
47
  ><?php echo htmlentities( $snippets ); ?></textarea>
48
  </div>
49
  </div>
50
 
51
- <input type="submit" name="submit" id="submit" class="btn btn-primary" value="<?php _e( 'Save changes', $text ); ?>">
52
 
53
  <div class="postbox" id="support-addition">
54
- <h3 class="title"><?php _e( 'Support', $text ); ?></h3>
55
  <div class="inside">
56
- <p><?php _e( 'Every little contribution helps to cover our costs and allows us to spend more time creating things for awesome people like you to enjoy.', $text ); ?></p>
57
  <a href="https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=8A88KC7TFF6CS" target="_blank" class="btn btn-default button-labeled">
58
  <span class="btn-label">
59
- <img src="<?php echo SPACEXCHIMP_P001_URL . 'inc/img/paypal.svg'; ?>" alt="PayPal">
60
  </span>
61
- <?php _e( 'Donate with PayPal', $text ); ?>
62
  </a>
63
- <p><?php _e( 'Thanks for your support!', $text ); ?></p>
64
  </div>
65
  </div>
66
 
14
  <div class="meta-box-sortabless">
15
 
16
  <form action="options.php" method="post" enctype="multipart/form-data">
17
+ <?php settings_fields( $plugin['settings'] . '_settings_group' ); ?>
18
 
19
  <?php
20
  // Retrieve options from database
21
+ $options = get_option( $plugin['settings'] . '_settings' );
22
 
23
  // Set default value if option is empty
24
  $snippets = !empty( $options['snippets'] ) ? $options['snippets'] : '';
27
 
28
  <div class="postbox">
29
  <h3 class="title">
30
+ <?php _e( 'Functions (PHP code)', $plugin['text'] ); ?>
31
  <div class="pull-right">
32
+ <span class="not-saved"><?php _e( 'NOT SAVED!', $plugin['text'] ); ?></span>
33
  <input
34
  type="checkbox"
35
  name="spacexchimp_p001_settings[enable]"
43
  <textarea
44
  name="spacexchimp_p001_settings[snippets]"
45
  id="spacexchimp_p001_settings[snippets]"
46
+ placeholder="<?php _e( 'Enter your PHP functions here', $plugin['text'] ); ?>"
47
  ><?php echo htmlentities( $snippets ); ?></textarea>
48
  </div>
49
  </div>
50
 
51
+ <input type="submit" name="submit" id="submit" class="btn btn-primary" value="<?php _e( 'Save changes', $plugin['text'] ); ?>">
52
 
53
  <div class="postbox" id="support-addition">
54
+ <h3 class="title"><?php _e( 'Support', $plugin['text'] ); ?></h3>
55
  <div class="inside">
56
+ <p><?php _e( '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'] ); ?></p>
57
  <a href="https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=8A88KC7TFF6CS" target="_blank" class="btn btn-default button-labeled">
58
  <span class="btn-label">
59
+ <img src="<?php echo $plugin['url'] . 'inc/img/paypal.svg'; ?>" alt="PayPal">
60
  </span>
61
+ <?php _e( 'Donate with PayPal', $plugin['text'] ); ?>
62
  </a>
63
+ <p><?php _e( 'Thanks for your support!', $plugin['text'] ); ?></p>
64
  </div>
65
  </div>
66
 
inc/php/tabs/support.php CHANGED
@@ -10,22 +10,22 @@ defined( 'ABSPATH' ) or die( "Restricted access!" );
10
  */
11
  ?>
12
  <div class="postbox">
13
- <h3 class="title"><?php _e( 'Support Us', $text ); ?></h3>
14
  <div class="inside">
15
  <span class="image-with-button pull-left">
16
- <img src="<?php echo SPACEXCHIMP_P001_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 SPACEXCHIMP_P001_URL . 'inc/img/paypal.svg'; ?>" alt="PayPal">
20
  </span>
21
- <?php _e( 'Donate with PayPal', $text ); ?>
22
  </a>
23
  </span>
24
  <p>
25
- <?php _e( 'Hello!', $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.', $text ),
29
  '<a href="https://www.instagram.com/arthur_gareginyan/" target="_blank">',
30
  '</a>',
31
  '<a href="https://www.spacexchimp.com" target="_blank">',
@@ -34,19 +34,19 @@ defined( 'ABSPATH' ) or die( "Restricted access!" );
34
  ?>
35
  </p>
36
  <p>
37
- <?php _e( 'Our intention is to create projects that will make this world a better place.', $text ); ?>
38
- <?php _e( 'Our motto is - «Follow your dreams and don’t give up».', $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.', $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.', $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.', $text ); ?>
44
  </p>
45
  <p>
46
- <?php _e( 'If you appreciate our work, you can buy us a cup of coffee!', $text ); ?>
47
  </p>
48
  <p>
49
- <?php _e( 'Thank you for your support!', $text ); ?>
50
  </p>
51
  </div>
52
  </div>
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">',
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>
inc/php/tabs/usage.php CHANGED
@@ -10,37 +10,37 @@ defined( 'ABSPATH' ) or die( "Restricted access!" );
10
  */
11
  ?>
12
  <div class="postbox">
13
- <h3 class="title"><?php _e( 'Usage Instructions', $text ); ?></h3>
14
  <div class="inside">
15
- <p><?php _e( 'To add your custom PHP code to your website, simply follow these steps:', $text ); ?></p>
16
  <ol class="custom-counter">
17
- <li><?php _e( 'Go to the "Main" tab on this page.', $text ); ?></li>
18
  <li>
19
- <?php _e( 'Place your custom PHP code in the code editor field.', $text ); ?>
20
  <br><br>
21
  <p class="note">
22
- <b><?php _e( 'Note!', $text ); ?></b>
23
- <?php _e( 'Do not wrap your custom PHP code in HTML tags, such as <code>&lt;?php</code>...<code>?&gt;</code>.', $text ); ?>
24
  </p>
25
  <p class="note">
26
- <b><?php _e( 'Note!', $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.', $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.', $text ); ?></li>
37
- <li><?php _e( 'Click the "Save changes" button.', $text ); ?></li>
38
- <li><?php _e( 'Enjoy the result of applying your custom PHP code.', $text ); ?> <?php _e( 'It\'s that simple!', $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.', $text ),
44
  '<a href="https://www.spacexchimp.com/contact.html" target="_blank">',
45
  '</a>'
46
  );
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
  );
inc/php/versioning.php CHANGED
@@ -14,15 +14,17 @@ function spacexchimp_p001_versioning() {
14
  // SETTING VARIABLES //
15
  ///////////////////////////////////////////////////////////////////
16
 
17
- // Put value of constants to variables for easier access
18
- $version_files = SPACEXCHIMP_P001_VERSION;
19
- $settings = SPACEXCHIMP_P001_SETTINGS;
20
 
21
  // Read the plugin service information from the database and put it into an array
22
- $info = get_option( $settings . '_service_info' );
23
 
24
  // Make the "$info" array if the plugin service information in the database is not exist
25
- if ( ! is_array( $info ) ) $info = array();
 
 
26
 
27
  // Get the current plugin version number from the database
28
  $version_db = !empty( $info['version'] ) ? $info['version'] : '0';
@@ -69,7 +71,7 @@ function spacexchimp_p001_versioning() {
69
  if ( $info['old_version'] == '1' ) {
70
 
71
  $info['old_version'] = '0';
72
- update_option( $settings . '_service_info', $info );
73
 
74
  }
75
 
@@ -84,7 +86,7 @@ function spacexchimp_p001_versioning() {
84
 
85
  $info['version'] = $version_files;
86
  $info['old_version'] = '0';
87
- update_option( $settings . '_service_info', $info );
88
 
89
  return;
90
  }
@@ -95,7 +97,7 @@ function spacexchimp_p001_versioning() {
95
  if ( $version_files < $version_db ) {
96
 
97
  $info['old_version'] = '1';
98
- update_option( $settings . '_service_info', $info );
99
 
100
  return;
101
  }
14
  // SETTING VARIABLES //
15
  ///////////////////////////////////////////////////////////////////
16
 
17
+ // Put value of plugin constants into an array for easier access
18
+ $plugin = spacexchimp_p001_plugin();
19
+ $version_files = $plugin['version'];
20
 
21
  // Read the plugin service information from the database and put it into an array
22
+ $info = get_option( $plugin['settings'] . '_service_info' );
23
 
24
  // Make the "$info" array if the plugin service information in the database is not exist
25
+ if ( ! is_array( $info ) ) {
26
+ $info = array();
27
+ }
28
 
29
  // Get the current plugin version number from the database
30
  $version_db = !empty( $info['version'] ) ? $info['version'] : '0';
71
  if ( $info['old_version'] == '1' ) {
72
 
73
  $info['old_version'] = '0';
74
+ update_option( $plugin['settings'] . '_service_info', $info );
75
 
76
  }
77
 
86
 
87
  $info['version'] = $version_files;
88
  $info['old_version'] = '0';
89
+ update_option( $plugin['settings'] . '_service_info', $info );
90
 
91
  return;
92
  }
97
  if ( $version_files < $version_db ) {
98
 
99
  $info['old_version'] = '1';
100
+ update_option( $plugin['settings'] . '_service_info', $info );
101
 
102
  return;
103
  }
languages/my-custom-functions-de_DE.mo CHANGED
Binary file
languages/my-custom-functions-de_DE.po CHANGED
@@ -3,8 +3,8 @@
3
  msgid ""
4
  msgstr ""
5
  "Project-Id-Version: My Custom Functions\n"
6
- "POT-Creation-Date: 2019-03-18 21:12+0300\n"
7
- "PO-Revision-Date: 2019-03-18 21:12+0300\n"
8
  "Last-Translator: Arthur Gareginyan\n"
9
  "Language-Team: German\n"
10
  "Language: de_DE\n"
@@ -20,81 +20,81 @@ msgstr ""
20
  "X-Poedit-SearchPath-0: .\n"
21
  "X-Poedit-SearchPathExcluded-0: *.js\n"
22
 
23
- #: inc/php/core.php:23
24
  msgid "Settings"
25
  msgstr "Einstellungen"
26
 
27
- #: inc/php/core.php:33 inc/php/core.php:48
28
  msgid "Upgrade to PRO"
29
  msgstr "Upgrade auf PRO"
30
 
31
- #: inc/php/core.php:47
32
  msgid "Donate"
33
  msgstr "Spende"
34
 
35
- #: inc/php/core.php:63
36
  msgid "PHP Inserter"
37
  msgstr "PHP Inserter"
38
 
39
- #: inc/php/messages.php:35 inc/php/tabs/support.php:25
40
  msgid "Hello!"
41
  msgstr "Hallo!"
42
 
43
- #: inc/php/messages.php:36
44
  msgid "We are the team of Space X-Chimp."
45
  msgstr "Wir sind das Team von Space X-Chimp."
46
 
47
- #: inc/php/messages.php:41
48
  #, php-format
49
  msgid "Thank you for installing our plugin! We hope you will love it! %s"
50
  msgstr "Danke, dass Sie mein Plugin installiert haben. Ich hoffe, sie werden es mögen. %s"
51
 
52
- #: inc/php/messages.php:93
53
  msgid "You have installed an old version of this plugin."
54
  msgstr "Sie haben eine veraltete Version dieses Plugin installiert."
55
 
56
- #: inc/php/messages.php:94
57
  msgid "Please update the plugin to the latest version, and all will be fine."
58
  msgstr "Bitte installieren Sie die aktuelle Version des Plugins und alles wir gut."
59
 
60
- #: inc/php/messages.php:129
61
  msgid "Custom code saved successfully."
62
  msgstr ""
63
 
64
- #: inc/php/messages.php:149
65
  msgid "Sorry, but your code causes a \"Fatal error\", so it is not applied!"
66
  msgstr ""
67
 
68
- #: inc/php/messages.php:150
69
  msgid "Please, check the code and try again."
70
  msgstr ""
71
 
72
- #: inc/php/page.php:34
73
  #, php-format
74
  msgid "by %s Space X-Chimp %s"
75
  msgstr "by %s Space X-Chimp %s"
76
 
77
- #: inc/php/page.php:40
78
  msgid "Version"
79
  msgstr "Version"
80
 
81
- #: inc/php/page.php:47
82
  msgid "Main"
83
  msgstr ""
84
 
85
- #: inc/php/page.php:48
86
  msgid "Usage"
87
  msgstr "Verwendung"
88
 
89
- #: inc/php/page.php:49
90
  msgid "F.A.Q."
91
  msgstr "F.A.Q."
92
 
93
- #: inc/php/page.php:50 inc/php/sidebar.php:47 inc/php/tabs/settings.php:54
94
  msgid "Support"
95
  msgstr "Unterstützung"
96
 
97
- #: inc/php/page.php:51
98
  msgid "Store"
99
  msgstr "Geschäft"
100
 
3
  msgid ""
4
  msgstr ""
5
  "Project-Id-Version: My Custom Functions\n"
6
+ "POT-Creation-Date: 2019-03-23 04:29+0300\n"
7
+ "PO-Revision-Date: 2019-03-23 04:29+0300\n"
8
  "Last-Translator: Arthur Gareginyan\n"
9
  "Language-Team: German\n"
10
  "Language: de_DE\n"
20
  "X-Poedit-SearchPath-0: .\n"
21
  "X-Poedit-SearchPathExcluded-0: *.js\n"
22
 
23
+ #: inc/php/core.php:32
24
  msgid "Settings"
25
  msgstr "Einstellungen"
26
 
27
+ #: inc/php/core.php:40 inc/php/core.php:65
28
  msgid "Upgrade to PRO"
29
  msgstr "Upgrade auf PRO"
30
 
31
+ #: inc/php/core.php:61
32
  msgid "Donate"
33
  msgstr "Spende"
34
 
35
+ #: inc/php/core.php:90
36
  msgid "PHP Inserter"
37
  msgstr "PHP Inserter"
38
 
39
+ #: inc/php/messages.php:33 inc/php/tabs/support.php:25
40
  msgid "Hello!"
41
  msgstr "Hallo!"
42
 
43
+ #: inc/php/messages.php:34
44
  msgid "We are the team of Space X-Chimp."
45
  msgstr "Wir sind das Team von Space X-Chimp."
46
 
47
+ #: inc/php/messages.php:39
48
  #, php-format
49
  msgid "Thank you for installing our plugin! We hope you will love it! %s"
50
  msgstr "Danke, dass Sie mein Plugin installiert haben. Ich hoffe, sie werden es mögen. %s"
51
 
52
+ #: inc/php/messages.php:90
53
  msgid "You have installed an old version of this plugin."
54
  msgstr "Sie haben eine veraltete Version dieses Plugin installiert."
55
 
56
+ #: inc/php/messages.php:91
57
  msgid "Please update the plugin to the latest version, and all will be fine."
58
  msgstr "Bitte installieren Sie die aktuelle Version des Plugins und alles wir gut."
59
 
60
+ #: inc/php/messages.php:126
61
  msgid "Custom code saved successfully."
62
  msgstr ""
63
 
64
+ #: inc/php/messages.php:146
65
  msgid "Sorry, but your code causes a \"Fatal error\", so it is not applied!"
66
  msgstr ""
67
 
68
+ #: inc/php/messages.php:147
69
  msgid "Please, check the code and try again."
70
  msgstr ""
71
 
72
+ #: inc/php/page.php:30
73
  #, php-format
74
  msgid "by %s Space X-Chimp %s"
75
  msgstr "by %s Space X-Chimp %s"
76
 
77
+ #: inc/php/page.php:36
78
  msgid "Version"
79
  msgstr "Version"
80
 
81
+ #: inc/php/page.php:43
82
  msgid "Main"
83
  msgstr ""
84
 
85
+ #: inc/php/page.php:44
86
  msgid "Usage"
87
  msgstr "Verwendung"
88
 
89
+ #: inc/php/page.php:45
90
  msgid "F.A.Q."
91
  msgstr "F.A.Q."
92
 
93
+ #: inc/php/page.php:46 inc/php/sidebar.php:47 inc/php/tabs/settings.php:54
94
  msgid "Support"
95
  msgstr "Unterstützung"
96
 
97
+ #: inc/php/page.php:47
98
  msgid "Store"
99
  msgstr "Geschäft"
100
 
languages/my-custom-functions-es_ES.mo CHANGED
Binary file
languages/my-custom-functions-es_ES.po CHANGED
@@ -3,8 +3,8 @@
3
  msgid ""
4
  msgstr ""
5
  "Project-Id-Version: My Custom Functions\n"
6
- "POT-Creation-Date: 2019-03-18 21:12+0300\n"
7
- "PO-Revision-Date: 2019-03-18 21:12+0300\n"
8
  "Last-Translator: Arthur Gareginyan\n"
9
  "Language-Team: Spanish\n"
10
  "Language: es_ES\n"
@@ -20,81 +20,81 @@ msgstr ""
20
  "X-Poedit-SearchPath-0: .\n"
21
  "X-Poedit-SearchPathExcluded-0: *.js\n"
22
 
23
- #: inc/php/core.php:23
24
  msgid "Settings"
25
  msgstr "Ajustes"
26
 
27
- #: inc/php/core.php:33 inc/php/core.php:48
28
  msgid "Upgrade to PRO"
29
  msgstr "Actualiza a PRO"
30
 
31
- #: inc/php/core.php:47
32
  msgid "Donate"
33
  msgstr "Donar"
34
 
35
- #: inc/php/core.php:63
36
  msgid "PHP Inserter"
37
  msgstr "PHP Inserter"
38
 
39
- #: inc/php/messages.php:35 inc/php/tabs/support.php:25
40
  msgid "Hello!"
41
  msgstr "¡Hola!"
42
 
43
- #: inc/php/messages.php:36
44
  msgid "We are the team of Space X-Chimp."
45
  msgstr "Somos el equipo de Space X-Chimp."
46
 
47
- #: inc/php/messages.php:41
48
  #, php-format
49
  msgid "Thank you for installing our plugin! We hope you will love it! %s"
50
  msgstr "Gracias por instalar este complemento! Espero que te encante! %s"
51
 
52
- #: inc/php/messages.php:93
53
  msgid "You have installed an old version of this plugin."
54
  msgstr "Has instalado una versión antigua de este complemento."
55
 
56
- #: inc/php/messages.php:94
57
  msgid "Please update the plugin to the latest version, and all will be fine."
58
  msgstr "Actualiza el complemento a la versión más reciente y todo estará bien."
59
 
60
- #: inc/php/messages.php:129
61
  msgid "Custom code saved successfully."
62
  msgstr ""
63
 
64
- #: inc/php/messages.php:149
65
  msgid "Sorry, but your code causes a \"Fatal error\", so it is not applied!"
66
  msgstr ""
67
 
68
- #: inc/php/messages.php:150
69
  msgid "Please, check the code and try again."
70
  msgstr ""
71
 
72
- #: inc/php/page.php:34
73
  #, php-format
74
  msgid "by %s Space X-Chimp %s"
75
  msgstr "por %s Space X-Chimp %s"
76
 
77
- #: inc/php/page.php:40
78
  msgid "Version"
79
  msgstr "Versión"
80
 
81
- #: inc/php/page.php:47
82
  msgid "Main"
83
  msgstr "Principal"
84
 
85
- #: inc/php/page.php:48
86
  msgid "Usage"
87
  msgstr "Uso"
88
 
89
- #: inc/php/page.php:49
90
  msgid "F.A.Q."
91
  msgstr "Preguntas ?"
92
 
93
- #: inc/php/page.php:50 inc/php/sidebar.php:47 inc/php/tabs/settings.php:54
94
  msgid "Support"
95
  msgstr "Soporte"
96
 
97
- #: inc/php/page.php:51
98
  msgid "Store"
99
  msgstr "Tienda"
100
 
3
  msgid ""
4
  msgstr ""
5
  "Project-Id-Version: My Custom Functions\n"
6
+ "POT-Creation-Date: 2019-03-23 04:29+0300\n"
7
+ "PO-Revision-Date: 2019-03-23 04:29+0300\n"
8
  "Last-Translator: Arthur Gareginyan\n"
9
  "Language-Team: Spanish\n"
10
  "Language: es_ES\n"
20
  "X-Poedit-SearchPath-0: .\n"
21
  "X-Poedit-SearchPathExcluded-0: *.js\n"
22
 
23
+ #: inc/php/core.php:32
24
  msgid "Settings"
25
  msgstr "Ajustes"
26
 
27
+ #: inc/php/core.php:40 inc/php/core.php:65
28
  msgid "Upgrade to PRO"
29
  msgstr "Actualiza a PRO"
30
 
31
+ #: inc/php/core.php:61
32
  msgid "Donate"
33
  msgstr "Donar"
34
 
35
+ #: inc/php/core.php:90
36
  msgid "PHP Inserter"
37
  msgstr "PHP Inserter"
38
 
39
+ #: inc/php/messages.php:33 inc/php/tabs/support.php:25
40
  msgid "Hello!"
41
  msgstr "¡Hola!"
42
 
43
+ #: inc/php/messages.php:34
44
  msgid "We are the team of Space X-Chimp."
45
  msgstr "Somos el equipo de Space X-Chimp."
46
 
47
+ #: inc/php/messages.php:39
48
  #, php-format
49
  msgid "Thank you for installing our plugin! We hope you will love it! %s"
50
  msgstr "Gracias por instalar este complemento! Espero que te encante! %s"
51
 
52
+ #: inc/php/messages.php:90
53
  msgid "You have installed an old version of this plugin."
54
  msgstr "Has instalado una versión antigua de este complemento."
55
 
56
+ #: inc/php/messages.php:91
57
  msgid "Please update the plugin to the latest version, and all will be fine."
58
  msgstr "Actualiza el complemento a la versión más reciente y todo estará bien."
59
 
60
+ #: inc/php/messages.php:126
61
  msgid "Custom code saved successfully."
62
  msgstr ""
63
 
64
+ #: inc/php/messages.php:146
65
  msgid "Sorry, but your code causes a \"Fatal error\", so it is not applied!"
66
  msgstr ""
67
 
68
+ #: inc/php/messages.php:147
69
  msgid "Please, check the code and try again."
70
  msgstr ""
71
 
72
+ #: inc/php/page.php:30
73
  #, php-format
74
  msgid "by %s Space X-Chimp %s"
75
  msgstr "por %s Space X-Chimp %s"
76
 
77
+ #: inc/php/page.php:36
78
  msgid "Version"
79
  msgstr "Versión"
80
 
81
+ #: inc/php/page.php:43
82
  msgid "Main"
83
  msgstr "Principal"
84
 
85
+ #: inc/php/page.php:44
86
  msgid "Usage"
87
  msgstr "Uso"
88
 
89
+ #: inc/php/page.php:45
90
  msgid "F.A.Q."
91
  msgstr "Preguntas ?"
92
 
93
+ #: inc/php/page.php:46 inc/php/sidebar.php:47 inc/php/tabs/settings.php:54
94
  msgid "Support"
95
  msgstr "Soporte"
96
 
97
+ #: inc/php/page.php:47
98
  msgid "Store"
99
  msgstr "Tienda"
100
 
languages/my-custom-functions-fr_FR.mo CHANGED
Binary file
languages/my-custom-functions-fr_FR.po CHANGED
@@ -3,8 +3,8 @@
3
  msgid ""
4
  msgstr ""
5
  "Project-Id-Version: My Custom Functions\n"
6
- "POT-Creation-Date: 2019-03-18 21:12+0300\n"
7
- "PO-Revision-Date: 2019-03-18 21:12+0300\n"
8
  "Last-Translator: Arthur Gareginyan\n"
9
  "Language-Team: French\n"
10
  "Language: fr_FR\n"
@@ -20,81 +20,81 @@ msgstr ""
20
  "X-Poedit-SearchPath-0: .\n"
21
  "X-Poedit-SearchPathExcluded-0: *.js\n"
22
 
23
- #: inc/php/core.php:23
24
  msgid "Settings"
25
  msgstr "Paramètres"
26
 
27
- #: inc/php/core.php:33 inc/php/core.php:48
28
  msgid "Upgrade to PRO"
29
  msgstr "Passer à PRO"
30
 
31
- #: inc/php/core.php:47
32
  msgid "Donate"
33
  msgstr "Faire un don"
34
 
35
- #: inc/php/core.php:63
36
  msgid "PHP Inserter"
37
  msgstr "PHP Inserter"
38
 
39
- #: inc/php/messages.php:35 inc/php/tabs/support.php:25
40
  msgid "Hello!"
41
  msgstr "Salut."
42
 
43
- #: inc/php/messages.php:36
44
  msgid "We are the team of Space X-Chimp."
45
  msgstr "Nous sommes l'équipe de Space X-Chimp."
46
 
47
- #: inc/php/messages.php:41
48
  #, php-format
49
  msgid "Thank you for installing our plugin! We hope you will love it! %s"
50
  msgstr "Merci pour l'installation de notre plugin! Nous espérons que vous allez l'adorer! %s"
51
 
52
- #: inc/php/messages.php:93
53
  msgid "You have installed an old version of this plugin."
54
  msgstr ""
55
 
56
- #: inc/php/messages.php:94
57
  msgid "Please update the plugin to the latest version, and all will be fine."
58
  msgstr ""
59
 
60
- #: inc/php/messages.php:129
61
  msgid "Custom code saved successfully."
62
  msgstr "Code personnalisé mis à jour avec succès."
63
 
64
- #: inc/php/messages.php:149
65
  msgid "Sorry, but your code causes a \"Fatal error\", so it is not applied!"
66
  msgstr "Désolé, mais votre code provoque une \"erreur fatale\" ; il n'est donc pas appliqué!"
67
 
68
- #: inc/php/messages.php:150
69
  msgid "Please, check the code and try again."
70
  msgstr "Svp, vérifiez le code et réessayez."
71
 
72
- #: inc/php/page.php:34
73
  #, php-format
74
  msgid "by %s Space X-Chimp %s"
75
  msgstr "par %s Space X-Chimp %s"
76
 
77
- #: inc/php/page.php:40
78
  msgid "Version"
79
  msgstr "Version"
80
 
81
- #: inc/php/page.php:47
82
  msgid "Main"
83
  msgstr "Principal"
84
 
85
- #: inc/php/page.php:48
86
  msgid "Usage"
87
  msgstr "Utilisation"
88
 
89
- #: inc/php/page.php:49
90
  msgid "F.A.Q."
91
  msgstr "FAQ."
92
 
93
- #: inc/php/page.php:50 inc/php/sidebar.php:47 inc/php/tabs/settings.php:54
94
  msgid "Support"
95
  msgstr ""
96
 
97
- #: inc/php/page.php:51
98
  msgid "Store"
99
  msgstr ""
100
 
3
  msgid ""
4
  msgstr ""
5
  "Project-Id-Version: My Custom Functions\n"
6
+ "POT-Creation-Date: 2019-03-23 04:29+0300\n"
7
+ "PO-Revision-Date: 2019-03-23 04:29+0300\n"
8
  "Last-Translator: Arthur Gareginyan\n"
9
  "Language-Team: French\n"
10
  "Language: fr_FR\n"
20
  "X-Poedit-SearchPath-0: .\n"
21
  "X-Poedit-SearchPathExcluded-0: *.js\n"
22
 
23
+ #: inc/php/core.php:32
24
  msgid "Settings"
25
  msgstr "Paramètres"
26
 
27
+ #: inc/php/core.php:40 inc/php/core.php:65
28
  msgid "Upgrade to PRO"
29
  msgstr "Passer à PRO"
30
 
31
+ #: inc/php/core.php:61
32
  msgid "Donate"
33
  msgstr "Faire un don"
34
 
35
+ #: inc/php/core.php:90
36
  msgid "PHP Inserter"
37
  msgstr "PHP Inserter"
38
 
39
+ #: inc/php/messages.php:33 inc/php/tabs/support.php:25
40
  msgid "Hello!"
41
  msgstr "Salut."
42
 
43
+ #: inc/php/messages.php:34
44
  msgid "We are the team of Space X-Chimp."
45
  msgstr "Nous sommes l'équipe de Space X-Chimp."
46
 
47
+ #: inc/php/messages.php:39
48
  #, php-format
49
  msgid "Thank you for installing our plugin! We hope you will love it! %s"
50
  msgstr "Merci pour l'installation de notre plugin! Nous espérons que vous allez l'adorer! %s"
51
 
52
+ #: inc/php/messages.php:90
53
  msgid "You have installed an old version of this plugin."
54
  msgstr ""
55
 
56
+ #: inc/php/messages.php:91
57
  msgid "Please update the plugin to the latest version, and all will be fine."
58
  msgstr ""
59
 
60
+ #: inc/php/messages.php:126
61
  msgid "Custom code saved successfully."
62
  msgstr "Code personnalisé mis à jour avec succès."
63
 
64
+ #: inc/php/messages.php:146
65
  msgid "Sorry, but your code causes a \"Fatal error\", so it is not applied!"
66
  msgstr "Désolé, mais votre code provoque une \"erreur fatale\" ; il n'est donc pas appliqué!"
67
 
68
+ #: inc/php/messages.php:147
69
  msgid "Please, check the code and try again."
70
  msgstr "Svp, vérifiez le code et réessayez."
71
 
72
+ #: inc/php/page.php:30
73
  #, php-format
74
  msgid "by %s Space X-Chimp %s"
75
  msgstr "par %s Space X-Chimp %s"
76
 
77
+ #: inc/php/page.php:36
78
  msgid "Version"
79
  msgstr "Version"
80
 
81
+ #: inc/php/page.php:43
82
  msgid "Main"
83
  msgstr "Principal"
84
 
85
+ #: inc/php/page.php:44
86
  msgid "Usage"
87
  msgstr "Utilisation"
88
 
89
+ #: inc/php/page.php:45
90
  msgid "F.A.Q."
91
  msgstr "FAQ."
92
 
93
+ #: inc/php/page.php:46 inc/php/sidebar.php:47 inc/php/tabs/settings.php:54
94
  msgid "Support"
95
  msgstr ""
96
 
97
+ #: inc/php/page.php:47
98
  msgid "Store"
99
  msgstr ""
100
 
languages/my-custom-functions-nl_NL.mo CHANGED
Binary file
languages/my-custom-functions-nl_NL.po CHANGED
@@ -3,8 +3,8 @@
3
  msgid ""
4
  msgstr ""
5
  "Project-Id-Version: My Custom Functions\n"
6
- "POT-Creation-Date: 2019-03-18 21:12+0300\n"
7
- "PO-Revision-Date: 2019-03-18 21:12+0300\n"
8
  "Last-Translator: Arthur Gareginyan\n"
9
  "Language-Team: Dutch\n"
10
  "Language: nl_NL\n"
@@ -20,81 +20,81 @@ msgstr ""
20
  "X-Poedit-SearchPath-0: .\n"
21
  "X-Poedit-SearchPathExcluded-0: *.js\n"
22
 
23
- #: inc/php/core.php:23
24
  msgid "Settings"
25
  msgstr "Instellingen"
26
 
27
- #: inc/php/core.php:33 inc/php/core.php:48
28
  msgid "Upgrade to PRO"
29
  msgstr "Upgrade naar PRO"
30
 
31
- #: inc/php/core.php:47
32
  msgid "Donate"
33
  msgstr "Doe een gift"
34
 
35
- #: inc/php/core.php:63
36
  msgid "PHP Inserter"
37
  msgstr "PHP Inserter"
38
 
39
- #: inc/php/messages.php:35 inc/php/tabs/support.php:25
40
  msgid "Hello!"
41
  msgstr "Hallo!"
42
 
43
- #: inc/php/messages.php:36
44
  msgid "We are the team of Space X-Chimp."
45
  msgstr "Wij zijn het team van Space X-Chimp."
46
 
47
- #: inc/php/messages.php:41
48
  #, php-format
49
  msgid "Thank you for installing our plugin! We hope you will love it! %s"
50
  msgstr "Bedankt voor het installeren van onze plug-in! We hopen dat je het geweldig zult vinden! %s"
51
 
52
- #: inc/php/messages.php:93
53
  msgid "You have installed an old version of this plugin."
54
  msgstr "Je hebt een oudere versie van deze plug-in geïnstalleerd."
55
 
56
- #: inc/php/messages.php:94
57
  msgid "Please update the plugin to the latest version, and all will be fine."
58
  msgstr "Update de plug-in naar de nieuwste versie en alles komt goed."
59
 
60
- #: inc/php/messages.php:129
61
  msgid "Custom code saved successfully."
62
  msgstr "Aangepaste functies zijn geüpdated."
63
 
64
- #: inc/php/messages.php:149
65
  msgid "Sorry, but your code causes a \"Fatal error\", so it is not applied!"
66
  msgstr "Sorry, maar uw code veroorzaakt een \"Fatale fout\", dus deze wordt niet toegepast!"
67
 
68
- #: inc/php/messages.php:150
69
  msgid "Please, check the code and try again."
70
  msgstr "Controleer de code, en probeer het opnieuw."
71
 
72
- #: inc/php/page.php:34
73
  #, php-format
74
  msgid "by %s Space X-Chimp %s"
75
  msgstr "door %s Space X-Chimp %s"
76
 
77
- #: inc/php/page.php:40
78
  msgid "Version"
79
  msgstr "Versie"
80
 
81
- #: inc/php/page.php:47
82
  msgid "Main"
83
  msgstr "Hoofd"
84
 
85
- #: inc/php/page.php:48
86
  msgid "Usage"
87
  msgstr "Gebruik"
88
 
89
- #: inc/php/page.php:49
90
  msgid "F.A.Q."
91
  msgstr "F.A.Q."
92
 
93
- #: inc/php/page.php:50 inc/php/sidebar.php:47 inc/php/tabs/settings.php:54
94
  msgid "Support"
95
  msgstr "Ondersteuning"
96
 
97
- #: inc/php/page.php:51
98
  msgid "Store"
99
  msgstr "Winkel"
100
 
3
  msgid ""
4
  msgstr ""
5
  "Project-Id-Version: My Custom Functions\n"
6
+ "POT-Creation-Date: 2019-03-23 04:29+0300\n"
7
+ "PO-Revision-Date: 2019-03-23 04:29+0300\n"
8
  "Last-Translator: Arthur Gareginyan\n"
9
  "Language-Team: Dutch\n"
10
  "Language: nl_NL\n"
20
  "X-Poedit-SearchPath-0: .\n"
21
  "X-Poedit-SearchPathExcluded-0: *.js\n"
22
 
23
+ #: inc/php/core.php:32
24
  msgid "Settings"
25
  msgstr "Instellingen"
26
 
27
+ #: inc/php/core.php:40 inc/php/core.php:65
28
  msgid "Upgrade to PRO"
29
  msgstr "Upgrade naar PRO"
30
 
31
+ #: inc/php/core.php:61
32
  msgid "Donate"
33
  msgstr "Doe een gift"
34
 
35
+ #: inc/php/core.php:90
36
  msgid "PHP Inserter"
37
  msgstr "PHP Inserter"
38
 
39
+ #: inc/php/messages.php:33 inc/php/tabs/support.php:25
40
  msgid "Hello!"
41
  msgstr "Hallo!"
42
 
43
+ #: inc/php/messages.php:34
44
  msgid "We are the team of Space X-Chimp."
45
  msgstr "Wij zijn het team van Space X-Chimp."
46
 
47
+ #: inc/php/messages.php:39
48
  #, php-format
49
  msgid "Thank you for installing our plugin! We hope you will love it! %s"
50
  msgstr "Bedankt voor het installeren van onze plug-in! We hopen dat je het geweldig zult vinden! %s"
51
 
52
+ #: inc/php/messages.php:90
53
  msgid "You have installed an old version of this plugin."
54
  msgstr "Je hebt een oudere versie van deze plug-in geïnstalleerd."
55
 
56
+ #: inc/php/messages.php:91
57
  msgid "Please update the plugin to the latest version, and all will be fine."
58
  msgstr "Update de plug-in naar de nieuwste versie en alles komt goed."
59
 
60
+ #: inc/php/messages.php:126
61
  msgid "Custom code saved successfully."
62
  msgstr "Aangepaste functies zijn geüpdated."
63
 
64
+ #: inc/php/messages.php:146
65
  msgid "Sorry, but your code causes a \"Fatal error\", so it is not applied!"
66
  msgstr "Sorry, maar uw code veroorzaakt een \"Fatale fout\", dus deze wordt niet toegepast!"
67
 
68
+ #: inc/php/messages.php:147
69
  msgid "Please, check the code and try again."
70
  msgstr "Controleer de code, en probeer het opnieuw."
71
 
72
+ #: inc/php/page.php:30
73
  #, php-format
74
  msgid "by %s Space X-Chimp %s"
75
  msgstr "door %s Space X-Chimp %s"
76
 
77
+ #: inc/php/page.php:36
78
  msgid "Version"
79
  msgstr "Versie"
80
 
81
+ #: inc/php/page.php:43
82
  msgid "Main"
83
  msgstr "Hoofd"
84
 
85
+ #: inc/php/page.php:44
86
  msgid "Usage"
87
  msgstr "Gebruik"
88
 
89
+ #: inc/php/page.php:45
90
  msgid "F.A.Q."
91
  msgstr "F.A.Q."
92
 
93
+ #: inc/php/page.php:46 inc/php/sidebar.php:47 inc/php/tabs/settings.php:54
94
  msgid "Support"
95
  msgstr "Ondersteuning"
96
 
97
+ #: inc/php/page.php:47
98
  msgid "Store"
99
  msgstr "Winkel"
100
 
languages/my-custom-functions-ru_RU.mo CHANGED
Binary file
languages/my-custom-functions-ru_RU.po CHANGED
@@ -3,8 +3,8 @@
3
  msgid ""
4
  msgstr ""
5
  "Project-Id-Version: My Custom Functions\n"
6
- "POT-Creation-Date: 2019-03-18 21:13+0300\n"
7
- "PO-Revision-Date: 2019-03-18 21:13+0300\n"
8
  "Last-Translator: Arthur Gareginyan\n"
9
  "Language-Team: Russian\n"
10
  "Language: ru_RU\n"
@@ -20,81 +20,81 @@ msgstr ""
20
  "X-Poedit-SearchPath-0: .\n"
21
  "X-Poedit-SearchPathExcluded-0: *.js\n"
22
 
23
- #: inc/php/core.php:23
24
  msgid "Settings"
25
  msgstr "Настройки"
26
 
27
- #: inc/php/core.php:33 inc/php/core.php:48
28
  msgid "Upgrade to PRO"
29
  msgstr "Обновить до PRO"
30
 
31
- #: inc/php/core.php:47
32
  msgid "Donate"
33
  msgstr "Поддержать"
34
 
35
- #: inc/php/core.php:63
36
  msgid "PHP Inserter"
37
  msgstr "PHP Inserter"
38
 
39
- #: inc/php/messages.php:35 inc/php/tabs/support.php:25
40
  msgid "Hello!"
41
  msgstr "Привет!"
42
 
43
- #: inc/php/messages.php:36
44
  msgid "We are the team of Space X-Chimp."
45
  msgstr "Мы - команда Space X-Chimp."
46
 
47
- #: inc/php/messages.php:41
48
  #, php-format
49
  msgid "Thank you for installing our plugin! We hope you will love it! %s"
50
  msgstr "Благодарим вас за установку нашего плагина! Надеемся, он вам полюбится! %s"
51
 
52
- #: inc/php/messages.php:93
53
  msgid "You have installed an old version of this plugin."
54
  msgstr "Вы установили устаревшую версию этого плагина."
55
 
56
- #: inc/php/messages.php:94
57
  msgid "Please update the plugin to the latest version, and all will be fine."
58
  msgstr "Пожалуйста, обновите плагин до последней версии и всё будет отлично."
59
 
60
- #: inc/php/messages.php:129
61
  msgid "Custom code saved successfully."
62
  msgstr "Пользовательский код успешно обновлён."
63
 
64
- #: inc/php/messages.php:149
65
  msgid "Sorry, but your code causes a \"Fatal error\", so it is not applied!"
66
  msgstr "Извините, но ваш код вызывает \"Fatal error\", так что он не будет применён!"
67
 
68
- #: inc/php/messages.php:150
69
  msgid "Please, check the code and try again."
70
  msgstr "Пожалуйста, проверьте код и попробуйте ещё раз."
71
 
72
- #: inc/php/page.php:34
73
  #, php-format
74
  msgid "by %s Space X-Chimp %s"
75
  msgstr "от %s Space X-Chimp %s"
76
 
77
- #: inc/php/page.php:40
78
  msgid "Version"
79
  msgstr "Версия"
80
 
81
- #: inc/php/page.php:47
82
  msgid "Main"
83
  msgstr "Главная"
84
 
85
- #: inc/php/page.php:48
86
  msgid "Usage"
87
  msgstr "Применение"
88
 
89
- #: inc/php/page.php:49
90
  msgid "F.A.Q."
91
  msgstr "F.A.Q."
92
 
93
- #: inc/php/page.php:50 inc/php/sidebar.php:47 inc/php/tabs/settings.php:54
94
  msgid "Support"
95
  msgstr "Поддержка"
96
 
97
- #: inc/php/page.php:51
98
  msgid "Store"
99
  msgstr "Магазин"
100
 
3
  msgid ""
4
  msgstr ""
5
  "Project-Id-Version: My Custom Functions\n"
6
+ "POT-Creation-Date: 2019-03-23 04:29+0300\n"
7
+ "PO-Revision-Date: 2019-03-23 04:29+0300\n"
8
  "Last-Translator: Arthur Gareginyan\n"
9
  "Language-Team: Russian\n"
10
  "Language: ru_RU\n"
20
  "X-Poedit-SearchPath-0: .\n"
21
  "X-Poedit-SearchPathExcluded-0: *.js\n"
22
 
23
+ #: inc/php/core.php:32
24
  msgid "Settings"
25
  msgstr "Настройки"
26
 
27
+ #: inc/php/core.php:40 inc/php/core.php:65
28
  msgid "Upgrade to PRO"
29
  msgstr "Обновить до PRO"
30
 
31
+ #: inc/php/core.php:61
32
  msgid "Donate"
33
  msgstr "Поддержать"
34
 
35
+ #: inc/php/core.php:90
36
  msgid "PHP Inserter"
37
  msgstr "PHP Inserter"
38
 
39
+ #: inc/php/messages.php:33 inc/php/tabs/support.php:25
40
  msgid "Hello!"
41
  msgstr "Привет!"
42
 
43
+ #: inc/php/messages.php:34
44
  msgid "We are the team of Space X-Chimp."
45
  msgstr "Мы - команда Space X-Chimp."
46
 
47
+ #: inc/php/messages.php:39
48
  #, php-format
49
  msgid "Thank you for installing our plugin! We hope you will love it! %s"
50
  msgstr "Благодарим вас за установку нашего плагина! Надеемся, он вам полюбится! %s"
51
 
52
+ #: inc/php/messages.php:90
53
  msgid "You have installed an old version of this plugin."
54
  msgstr "Вы установили устаревшую версию этого плагина."
55
 
56
+ #: inc/php/messages.php:91
57
  msgid "Please update the plugin to the latest version, and all will be fine."
58
  msgstr "Пожалуйста, обновите плагин до последней версии и всё будет отлично."
59
 
60
+ #: inc/php/messages.php:126
61
  msgid "Custom code saved successfully."
62
  msgstr "Пользовательский код успешно обновлён."
63
 
64
+ #: inc/php/messages.php:146
65
  msgid "Sorry, but your code causes a \"Fatal error\", so it is not applied!"
66
  msgstr "Извините, но ваш код вызывает \"Fatal error\", так что он не будет применён!"
67
 
68
+ #: inc/php/messages.php:147
69
  msgid "Please, check the code and try again."
70
  msgstr "Пожалуйста, проверьте код и попробуйте ещё раз."
71
 
72
+ #: inc/php/page.php:30
73
  #, php-format
74
  msgid "by %s Space X-Chimp %s"
75
  msgstr "от %s Space X-Chimp %s"
76
 
77
+ #: inc/php/page.php:36
78
  msgid "Version"
79
  msgstr "Версия"
80
 
81
+ #: inc/php/page.php:43
82
  msgid "Main"
83
  msgstr "Главная"
84
 
85
+ #: inc/php/page.php:44
86
  msgid "Usage"
87
  msgstr "Применение"
88
 
89
+ #: inc/php/page.php:45
90
  msgid "F.A.Q."
91
  msgstr "F.A.Q."
92
 
93
+ #: inc/php/page.php:46 inc/php/sidebar.php:47 inc/php/tabs/settings.php:54
94
  msgid "Support"
95
  msgstr "Поддержка"
96
 
97
+ #: inc/php/page.php:47
98
  msgid "Store"
99
  msgstr "Магазин"
100
 
languages/my-custom-functions-zh_TW.mo CHANGED
Binary file
languages/my-custom-functions-zh_TW.po CHANGED
@@ -3,8 +3,8 @@
3
  msgid ""
4
  msgstr ""
5
  "Project-Id-Version: My Custom Functions\n"
6
- "POT-Creation-Date: 2019-03-18 21:13+0300\n"
7
- "PO-Revision-Date: 2019-03-18 21:13+0300\n"
8
  "Last-Translator: Arthur Gareginyan\n"
9
  "Language-Team: Chinese (Taiwan)\n"
10
  "Language: zh_TW\n"
@@ -20,81 +20,81 @@ msgstr ""
20
  "X-Poedit-SearchPath-0: .\n"
21
  "X-Poedit-SearchPathExcluded-0: *.js\n"
22
 
23
- #: inc/php/core.php:23
24
  msgid "Settings"
25
  msgstr "設定"
26
 
27
- #: inc/php/core.php:33 inc/php/core.php:48
28
  msgid "Upgrade to PRO"
29
  msgstr ""
30
 
31
- #: inc/php/core.php:47
32
  msgid "Donate"
33
  msgstr "捐款"
34
 
35
- #: inc/php/core.php:63
36
  msgid "PHP Inserter"
37
  msgstr "PHP Inserter"
38
 
39
- #: inc/php/messages.php:35 inc/php/tabs/support.php:25
40
  msgid "Hello!"
41
  msgstr ""
42
 
43
- #: inc/php/messages.php:36
44
  msgid "We are the team of Space X-Chimp."
45
  msgstr ""
46
 
47
- #: inc/php/messages.php:41
48
  #, php-format
49
  msgid "Thank you for installing our plugin! We hope you will love it! %s"
50
  msgstr ""
51
 
52
- #: inc/php/messages.php:93
53
  msgid "You have installed an old version of this plugin."
54
  msgstr ""
55
 
56
- #: inc/php/messages.php:94
57
  msgid "Please update the plugin to the latest version, and all will be fine."
58
  msgstr ""
59
 
60
- #: inc/php/messages.php:129
61
  msgid "Custom code saved successfully."
62
  msgstr "自訂功能已成功更新"
63
 
64
- #: inc/php/messages.php:149
65
  msgid "Sorry, but your code causes a \"Fatal error\", so it is not applied!"
66
  msgstr "抱歉!您的程式碼造成了「嚴重錯誤」,所以並沒有套用它!"
67
 
68
- #: inc/php/messages.php:150
69
  msgid "Please, check the code and try again."
70
  msgstr "請重新檢查程式碼再試一次"
71
 
72
- #: inc/php/page.php:34
73
  #, php-format
74
  msgid "by %s Space X-Chimp %s"
75
  msgstr ""
76
 
77
- #: inc/php/page.php:40
78
  msgid "Version"
79
  msgstr ""
80
 
81
- #: inc/php/page.php:47
82
  msgid "Main"
83
  msgstr ""
84
 
85
- #: inc/php/page.php:48
86
  msgid "Usage"
87
  msgstr ""
88
 
89
- #: inc/php/page.php:49
90
  msgid "F.A.Q."
91
  msgstr ""
92
 
93
- #: inc/php/page.php:50 inc/php/sidebar.php:47 inc/php/tabs/settings.php:54
94
  msgid "Support"
95
  msgstr ""
96
 
97
- #: inc/php/page.php:51
98
  msgid "Store"
99
  msgstr ""
100
 
3
  msgid ""
4
  msgstr ""
5
  "Project-Id-Version: My Custom Functions\n"
6
+ "POT-Creation-Date: 2019-03-23 04:29+0300\n"
7
+ "PO-Revision-Date: 2019-03-23 04:29+0300\n"
8
  "Last-Translator: Arthur Gareginyan\n"
9
  "Language-Team: Chinese (Taiwan)\n"
10
  "Language: zh_TW\n"
20
  "X-Poedit-SearchPath-0: .\n"
21
  "X-Poedit-SearchPathExcluded-0: *.js\n"
22
 
23
+ #: inc/php/core.php:32
24
  msgid "Settings"
25
  msgstr "設定"
26
 
27
+ #: inc/php/core.php:40 inc/php/core.php:65
28
  msgid "Upgrade to PRO"
29
  msgstr ""
30
 
31
+ #: inc/php/core.php:61
32
  msgid "Donate"
33
  msgstr "捐款"
34
 
35
+ #: inc/php/core.php:90
36
  msgid "PHP Inserter"
37
  msgstr "PHP Inserter"
38
 
39
+ #: inc/php/messages.php:33 inc/php/tabs/support.php:25
40
  msgid "Hello!"
41
  msgstr ""
42
 
43
+ #: inc/php/messages.php:34
44
  msgid "We are the team of Space X-Chimp."
45
  msgstr ""
46
 
47
+ #: inc/php/messages.php:39
48
  #, php-format
49
  msgid "Thank you for installing our plugin! We hope you will love it! %s"
50
  msgstr ""
51
 
52
+ #: inc/php/messages.php:90
53
  msgid "You have installed an old version of this plugin."
54
  msgstr ""
55
 
56
+ #: inc/php/messages.php:91
57
  msgid "Please update the plugin to the latest version, and all will be fine."
58
  msgstr ""
59
 
60
+ #: inc/php/messages.php:126
61
  msgid "Custom code saved successfully."
62
  msgstr "自訂功能已成功更新"
63
 
64
+ #: inc/php/messages.php:146
65
  msgid "Sorry, but your code causes a \"Fatal error\", so it is not applied!"
66
  msgstr "抱歉!您的程式碼造成了「嚴重錯誤」,所以並沒有套用它!"
67
 
68
+ #: inc/php/messages.php:147
69
  msgid "Please, check the code and try again."
70
  msgstr "請重新檢查程式碼再試一次"
71
 
72
+ #: inc/php/page.php:30
73
  #, php-format
74
  msgid "by %s Space X-Chimp %s"
75
  msgstr ""
76
 
77
+ #: inc/php/page.php:36
78
  msgid "Version"
79
  msgstr ""
80
 
81
+ #: inc/php/page.php:43
82
  msgid "Main"
83
  msgstr ""
84
 
85
+ #: inc/php/page.php:44
86
  msgid "Usage"
87
  msgstr ""
88
 
89
+ #: inc/php/page.php:45
90
  msgid "F.A.Q."
91
  msgstr ""
92
 
93
+ #: inc/php/page.php:46 inc/php/sidebar.php:47 inc/php/tabs/settings.php:54
94
  msgid "Support"
95
  msgstr ""
96
 
97
+ #: inc/php/page.php:47
98
  msgid "Store"
99
  msgstr ""
100
 
languages/my-custom-functions.pot CHANGED
@@ -3,7 +3,7 @@ msgid ""
3
  msgstr ""
4
  "Plural-Forms: nplurals=INTEGER; plural=EXPRESSION;\n"
5
  "Project-Id-Version: My Custom Functions\n"
6
- "POT-Creation-Date: 2019-03-18 21:13+0300\n"
7
  "PO-Revision-Date: 2015-08-30 16:22+0300\n"
8
  "Last-Translator: \n"
9
  "Language-Team: \n"
@@ -18,81 +18,81 @@ msgstr ""
18
  "X-Poedit-SearchPath-0: .\n"
19
  "X-Poedit-SearchPathExcluded-0: *.js\n"
20
 
21
- #: inc/php/core.php:23
22
  msgid "Settings"
23
  msgstr ""
24
 
25
- #: inc/php/core.php:33 inc/php/core.php:48
26
  msgid "Upgrade to PRO"
27
  msgstr ""
28
 
29
- #: inc/php/core.php:47
30
  msgid "Donate"
31
  msgstr ""
32
 
33
- #: inc/php/core.php:63
34
  msgid "PHP Inserter"
35
  msgstr ""
36
 
37
- #: inc/php/messages.php:35 inc/php/tabs/support.php:25
38
  msgid "Hello!"
39
  msgstr ""
40
 
41
- #: inc/php/messages.php:36
42
  msgid "We are the team of Space X-Chimp."
43
  msgstr ""
44
 
45
- #: inc/php/messages.php:41
46
  #, php-format
47
  msgid "Thank you for installing our plugin! We hope you will love it! %s"
48
  msgstr ""
49
 
50
- #: inc/php/messages.php:93
51
  msgid "You have installed an old version of this plugin."
52
  msgstr ""
53
 
54
- #: inc/php/messages.php:94
55
  msgid "Please update the plugin to the latest version, and all will be fine."
56
  msgstr ""
57
 
58
- #: inc/php/messages.php:129
59
  msgid "Custom code saved successfully."
60
  msgstr ""
61
 
62
- #: inc/php/messages.php:149
63
  msgid "Sorry, but your code causes a \"Fatal error\", so it is not applied!"
64
  msgstr ""
65
 
66
- #: inc/php/messages.php:150
67
  msgid "Please, check the code and try again."
68
  msgstr ""
69
 
70
- #: inc/php/page.php:34
71
  #, php-format
72
  msgid "by %s Space X-Chimp %s"
73
  msgstr ""
74
 
75
- #: inc/php/page.php:40
76
  msgid "Version"
77
  msgstr ""
78
 
79
- #: inc/php/page.php:47
80
  msgid "Main"
81
  msgstr ""
82
 
83
- #: inc/php/page.php:48
84
  msgid "Usage"
85
  msgstr ""
86
 
87
- #: inc/php/page.php:49
88
  msgid "F.A.Q."
89
  msgstr ""
90
 
91
- #: inc/php/page.php:50 inc/php/sidebar.php:47 inc/php/tabs/settings.php:54
92
  msgid "Support"
93
  msgstr ""
94
 
95
- #: inc/php/page.php:51
96
  msgid "Store"
97
  msgstr ""
98
 
3
  msgstr ""
4
  "Plural-Forms: nplurals=INTEGER; plural=EXPRESSION;\n"
5
  "Project-Id-Version: My Custom Functions\n"
6
+ "POT-Creation-Date: 2019-03-23 04:29+0300\n"
7
  "PO-Revision-Date: 2015-08-30 16:22+0300\n"
8
  "Last-Translator: \n"
9
  "Language-Team: \n"
18
  "X-Poedit-SearchPath-0: .\n"
19
  "X-Poedit-SearchPathExcluded-0: *.js\n"
20
 
21
+ #: inc/php/core.php:32
22
  msgid "Settings"
23
  msgstr ""
24
 
25
+ #: inc/php/core.php:40 inc/php/core.php:65
26
  msgid "Upgrade to PRO"
27
  msgstr ""
28
 
29
+ #: inc/php/core.php:61
30
  msgid "Donate"
31
  msgstr ""
32
 
33
+ #: inc/php/core.php:90
34
  msgid "PHP Inserter"
35
  msgstr ""
36
 
37
+ #: inc/php/messages.php:33 inc/php/tabs/support.php:25
38
  msgid "Hello!"
39
  msgstr ""
40
 
41
+ #: inc/php/messages.php:34
42
  msgid "We are the team of Space X-Chimp."
43
  msgstr ""
44
 
45
+ #: inc/php/messages.php:39
46
  #, php-format
47
  msgid "Thank you for installing our plugin! We hope you will love it! %s"
48
  msgstr ""
49
 
50
+ #: inc/php/messages.php:90
51
  msgid "You have installed an old version of this plugin."
52
  msgstr ""
53
 
54
+ #: inc/php/messages.php:91
55
  msgid "Please update the plugin to the latest version, and all will be fine."
56
  msgstr ""
57
 
58
+ #: inc/php/messages.php:126
59
  msgid "Custom code saved successfully."
60
  msgstr ""
61
 
62
+ #: inc/php/messages.php:146
63
  msgid "Sorry, but your code causes a \"Fatal error\", so it is not applied!"
64
  msgstr ""
65
 
66
+ #: inc/php/messages.php:147
67
  msgid "Please, check the code and try again."
68
  msgstr ""
69
 
70
+ #: inc/php/page.php:30
71
  #, php-format
72
  msgid "by %s Space X-Chimp %s"
73
  msgstr ""
74
 
75
+ #: inc/php/page.php:36
76
  msgid "Version"
77
  msgstr ""
78
 
79
+ #: inc/php/page.php:43
80
  msgid "Main"
81
  msgstr ""
82
 
83
+ #: inc/php/page.php:44
84
  msgid "Usage"
85
  msgstr ""
86
 
87
+ #: inc/php/page.php:45
88
  msgid "F.A.Q."
89
  msgstr ""
90
 
91
+ #: inc/php/page.php:46 inc/php/sidebar.php:47 inc/php/tabs/settings.php:54
92
  msgid "Support"
93
  msgstr ""
94
 
95
+ #: inc/php/page.php:47
96
  msgid "Store"
97
  msgstr ""
98
 
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.36
9
  * License: GPL3
10
  * Text Domain: my-custom-functions
11
  * Domain Path: /languages/
@@ -52,7 +52,7 @@ $plugin_data = get_file_data( __FILE__,
52
  );
53
  function spacexchimp_p001_define_constants( $constant_name, $value ) {
54
  $constant_name = 'SPACEXCHIMP_P001_' . $constant_name;
55
- if ( !defined( $constant_name ) )
56
  define( $constant_name, $value );
57
  }
58
  spacexchimp_p001_define_constants( 'FILE', __FILE__ );
@@ -67,13 +67,38 @@ spacexchimp_p001_define_constants( 'TEXT', $plugin_data['text'] );
67
  spacexchimp_p001_define_constants( 'PREFIX', 'spacexchimp_p001' );
68
  spacexchimp_p001_define_constants( 'SETTINGS', 'spacexchimp_p001' );
69
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
70
  /**
71
  * Load the plugin modules
72
  */
73
- require_once( SPACEXCHIMP_P001_PATH . 'inc/php/core.php' );
74
- require_once( SPACEXCHIMP_P001_PATH . 'inc/php/upgrade.php' );
75
- require_once( SPACEXCHIMP_P001_PATH . 'inc/php/versioning.php' );
76
- require_once( SPACEXCHIMP_P001_PATH . 'inc/php/enqueue.php' );
77
- require_once( SPACEXCHIMP_P001_PATH . 'inc/php/functional.php' );
78
- require_once( SPACEXCHIMP_P001_PATH . 'inc/php/page.php' );
79
- require_once( SPACEXCHIMP_P001_PATH . 'inc/php/messages.php' );
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.37
9
  * License: GPL3
10
  * Text Domain: my-custom-functions
11
  * Domain Path: /languages/
52
  );
53
  function spacexchimp_p001_define_constants( $constant_name, $value ) {
54
  $constant_name = 'SPACEXCHIMP_P001_' . $constant_name;
55
+ if ( ! defined( $constant_name ) )
56
  define( $constant_name, $value );
57
  }
58
  spacexchimp_p001_define_constants( 'FILE', __FILE__ );
67
  spacexchimp_p001_define_constants( 'PREFIX', 'spacexchimp_p001' );
68
  spacexchimp_p001_define_constants( 'SETTINGS', 'spacexchimp_p001' );
69
 
70
+ /**
71
+ * A useful function that returns an array with the contents of plugin constants
72
+ */
73
+ function spacexchimp_p001_plugin() {
74
+ $array = array(
75
+ 'file' => SPACEXCHIMP_P001_FILE,
76
+ 'dir' => SPACEXCHIMP_P001_DIR,
77
+ 'base' => SPACEXCHIMP_P001_BASE,
78
+ 'url' => SPACEXCHIMP_P001_URL,
79
+ 'path' => SPACEXCHIMP_P001_PATH,
80
+ 'slug' => SPACEXCHIMP_P001_SLUG,
81
+ 'name' => SPACEXCHIMP_P001_NAME,
82
+ 'version' => SPACEXCHIMP_P001_VERSION,
83
+ 'text' => SPACEXCHIMP_P001_TEXT,
84
+ 'prefix' => SPACEXCHIMP_P001_PREFIX,
85
+ 'settings' => SPACEXCHIMP_P001_SETTINGS
86
+ );
87
+ return $array;
88
+ }
89
+
90
+ /**
91
+ * Put value of plugin constants into an array for easier access
92
+ */
93
+ $plugin = spacexchimp_p001_plugin();
94
+
95
  /**
96
  * Load the plugin modules
97
  */
98
+ require_once( $plugin['path'] . 'inc/php/core.php' );
99
+ require_once( $plugin['path'] . 'inc/php/upgrade.php' );
100
+ require_once( $plugin['path'] . 'inc/php/versioning.php' );
101
+ require_once( $plugin['path'] . 'inc/php/enqueue.php' );
102
+ require_once( $plugin['path'] . 'inc/php/functional.php' );
103
+ require_once( $plugin['path'] . 'inc/php/page.php' );
104
+ require_once( $plugin['path'] . 'inc/php/messages.php' );
readme.txt CHANGED
@@ -4,7 +4,7 @@ Tags: inject code, inject function, inject snippet, inject php, insert code, ins
4
  Donate link: https://www.spacexchimp.com/donate.html
5
  Requires at least: 3.9
6
  Tested up to: 5.1
7
- Stable tag: 4.36
8
  License: GPL3
9
  License URI: http://www.gnu.org/licenses/gpl-3.0.html
10
 
@@ -252,6 +252,14 @@ Commercial licensing (e.g. for projects that can’t use an open-source license)
252
 
253
  == Changelog ==
254
 
 
 
 
 
 
 
 
 
255
  = 4.36 - 2019-03-18 =
256
  * Improvement: Notification display system updated
257
  * Code commenting improved.
4
  Donate link: https://www.spacexchimp.com/donate.html
5
  Requires at least: 3.9
6
  Tested up to: 5.1
7
+ Stable tag: 4.37
8
  License: GPL3
9
  License URI: http://www.gnu.org/licenses/gpl-3.0.html
10
 
252
 
253
  == Changelog ==
254
 
255
+ = 4.37 - 2019-03-24 =
256
+ * Framework updated: Added function "_plugin", which returns an array with the contents of plugin constants. The mention of plugin constants is replaced by the use of the function "_plugin".
257
+ * Framework updated: The functions "_settings_link" and "_upgrade_link" are combined and improved.
258
+ * Framework updated: The function "_plugin_row_meta" is improved.
259
+ * Framework updated: Code formatting improved.
260
+ * Framework updated: Code commenting improved.
261
+ * Framework updated: All translation files are updated.
262
+
263
  = 4.36 - 2019-03-18 =
264
  * Improvement: Notification display system updated
265
  * Code commenting improved.