Cryout Serious Theme Settings - Version 0.5.12

Version Description

  • Updated for compatibility with the changes in Parabola 2.4.0
  • Improved version detection for better compatibility with customized themes
  • Bumped supported WordPress version to 5.7
Download this release

Release Info

Developer Cryout Creations
Plugin Icon wp plugin Cryout Serious Theme Settings
Version 0.5.12
Comparing to
See all releases

Code changes from version 0.5.11 to 0.5.12

cryout-theme-settings.php CHANGED
@@ -3,7 +3,7 @@
3
  Plugin Name: Cryout Serious Theme Settings
4
  Plugin URI: https://www.cryoutcreations.eu/wordpress-plugins/serious-theme-settings
5
  Description: This plugin is designed to enable the themes' settings page functionality. It will work with the following themes: Nirvana, Parabola, Tempera or Mantra.
6
- Version: 0.5.11
7
  Author: Cryout Creations
8
  Author URI: https://www.cryoutcreations.eu
9
  License: GPLv3
@@ -14,7 +14,7 @@
14
  if ( !defined( 'ABSPATH' ) ) exit;
15
 
16
  class Cryout_Theme_Settings {
17
- public $version = "0.5.11";
18
  public $settings = array();
19
 
20
  private $status = 0; // 0 = inactive, 1 = active, 2 = good theme, wrong version, 3 = wrong theme, 4 = compatibility for wp4.4, 5 = theme requires update
@@ -41,7 +41,7 @@ class Cryout_Theme_Settings {
41
 
42
  // by freshness
43
  private $suggested_themes = array(
44
- 'esotera', 'roseta', 'anima', 'kahuna', 'septera', 'fluida', 'verbosa',
45
  );
46
 
47
  public function __construct(){
@@ -84,6 +84,9 @@ class Cryout_Theme_Settings {
84
 
85
  $current_theme_slug = strtolower( wp_get_theme()->Template );
86
  $current_theme_version = wp_get_theme($current_theme_slug)->Version;
 
 
 
87
 
88
  if (!in_array( $current_theme_slug, array_keys( $this->supported_themes) )) {
89
  // theme slug does not match supported themes
3
  Plugin Name: Cryout Serious Theme Settings
4
  Plugin URI: https://www.cryoutcreations.eu/wordpress-plugins/serious-theme-settings
5
  Description: This plugin is designed to enable the themes' settings page functionality. It will work with the following themes: Nirvana, Parabola, Tempera or Mantra.
6
+ Version: 0.5.12
7
  Author: Cryout Creations
8
  Author URI: https://www.cryoutcreations.eu
9
  License: GPLv3
14
  if ( !defined( 'ABSPATH' ) ) exit;
15
 
16
  class Cryout_Theme_Settings {
17
+ public $version = "0.5.12";
18
  public $settings = array();
19
 
20
  private $status = 0; // 0 = inactive, 1 = active, 2 = good theme, wrong version, 3 = wrong theme, 4 = compatibility for wp4.4, 5 = theme requires update
41
 
42
  // by freshness
43
  private $suggested_themes = array(
44
+ 'bravada', 'esotera', 'roseta', 'anima', 'kahuna', 'septera', 'fluida', 'verbosa',
45
  );
46
 
47
  public function __construct(){
84
 
85
  $current_theme_slug = strtolower( wp_get_theme()->Template );
86
  $current_theme_version = wp_get_theme($current_theme_slug)->Version;
87
+
88
+ // better detection of theme version
89
+ if (defined('_CRYOUT_THEME_VERSION')) $current_theme_version = _CRYOUT_THEME_VERSION;
90
 
91
  if (!in_array( $current_theme_slug, array_keys( $this->supported_themes) )) {
92
  // theme slug does not match supported themes
inc/extra.php CHANGED
@@ -2,7 +2,6 @@
2
  // Exit if accessed directly
3
  if ( !defined( 'ABSPATH' ) ) exit;
4
 
5
-
6
  ?>
7
  <div id="latest-themes" class="postbox">
8
  <h3 class="hndle"> Our latest free themes </h3>
@@ -26,7 +25,7 @@ if ( !defined( 'ABSPATH' ) ) exit;
26
  <div id="priority-support" class="postbox priority-support">
27
  <h3 class="hndle"> Need help? </h3>
28
  <div class="inside">
29
- <a href="https://www.cryoutcreations.eu/pricing" target="_blank"><img src="<?php echo $url ?>/priority-support.jpg"></a>
30
  </div><!--inside-->
31
  </div>
32
 
@@ -95,7 +94,7 @@ if ( !defined( 'ABSPATH' ) ) exit;
95
  top: 50%;
96
  -webkit-transform:translateY(-50%);
97
  transform:translateY(-50%);
98
- z-index: 999;
99
  display: block;
100
  padding: 4% 3%;
101
  width: auto;
2
  // Exit if accessed directly
3
  if ( !defined( 'ABSPATH' ) ) exit;
4
 
 
5
  ?>
6
  <div id="latest-themes" class="postbox">
7
  <h3 class="hndle"> Our latest free themes </h3>
25
  <div id="priority-support" class="postbox priority-support">
26
  <h3 class="hndle"> Need help? </h3>
27
  <div class="inside">
28
+ <a href="https://www.cryoutcreations.eu/pricing#extra-services" target="_blank"><img src="<?php echo $url ?>/priority-support.jpg"></a>
29
  </div><!--inside-->
30
  </div>
31
 
94
  top: 50%;
95
  -webkit-transform:translateY(-50%);
96
  transform:translateY(-50%);
97
+ z-index: 3; /* higher value overlap the tooltips */
98
  display: block;
99
  padding: 4% 3%;
100
  width: auto;
inc/mantra.php CHANGED
@@ -10,8 +10,6 @@ endif;
10
  function mantra_theme_settings_restore($class='') {
11
  global $cryout_theme_settings;
12
  ?>
13
- <div id="jsAlert" class=""><b>Checking jQuery functionality...</b><br/><em>If this message remains visible after the page has loaded then there is a problem with your WordPress jQuery library. This can have several causes, including incompatible plugins.
14
- The Settings page cannot function without jQuery.</em></div>
15
  <form name="mantra_form" action="options.php" method="post" enctype="multipart/form-data">
16
  <div id="accordion">
17
  <?php settings_fields('ma_options'); ?>
10
  function mantra_theme_settings_restore($class='') {
11
  global $cryout_theme_settings;
12
  ?>
 
 
13
  <form name="mantra_form" action="options.php" method="post" enctype="multipart/form-data">
14
  <div id="accordion">
15
  <?php settings_fields('ma_options'); ?>
inc/parabola.php CHANGED
@@ -27,4 +27,308 @@ function parabola_theme_settings_restore($class='') {
27
  function parabola_extra() {
28
  $url = untrailingslashit( plugin_dir_url( dirname(__FILE__) ) ) . '/media';
29
  include_once( plugin_dir_path( __FILE__ ) . 'extra.php' );
30
- } // parabola_extra()
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
27
  function parabola_extra() {
28
  $url = untrailingslashit( plugin_dir_url( dirname(__FILE__) ) ) . '/media';
29
  include_once( plugin_dir_path( __FILE__ ) . 'extra.php' );
30
+ } // parabola_extra()
31
+
32
+ if ( version_compare( $this->current_theme['version'], '2.4.0', '>=' ) ) {
33
+ // all the functionality below is conditioned to running Parabola v2.4.0 or newer and is not needed in older versions
34
+
35
+ /**
36
+ * Export Parabola settings to file
37
+ */
38
+
39
+ function parabola_export_options(){
40
+
41
+ if ( ! isset( $_POST['parabola_export'] ) ) return;
42
+
43
+ if (ob_get_contents()) ob_clean();
44
+
45
+ /* Check authorisation */
46
+ $authorised = true;
47
+ // Check nonce
48
+ if ( ! wp_verify_nonce( $_POST['parabola-export'], 'parabola-export' ) ) {
49
+ $authorised = false;
50
+ }
51
+ // Check permissions
52
+ if ( ! current_user_can( 'edit_theme_options' ) ){
53
+ $authorised = false;
54
+ }
55
+
56
+ if ( $authorised) {
57
+ global $parabolas;
58
+ date_default_timezone_set('UTC');
59
+ $name = 'parabolasettings-'.preg_replace("/[^a-z0-9-_]/i",'',str_replace("http://","",get_option('siteurl'))).'-'.date('Ymd-His').'.txt';
60
+
61
+ $data = $parabolas;
62
+ $data = json_encode( $data );
63
+ $size = strlen( $data );
64
+
65
+ header( 'Content-Type: text/plain' );
66
+ header( 'Content-Disposition: attachment; filename="'.$name.'"' );
67
+ header( "Content-Transfer-Encoding: binary" );
68
+ header( 'Accept-Ranges: bytes' );
69
+
70
+ /* The three lines below basically make the download non-cacheable */
71
+ header( "Cache-control: private" );
72
+ header( 'Pragma: private' );
73
+ header( "Expires: Mon, 26 Jul 1997 05:00:00 GMT" );
74
+
75
+ header( "Content-Length: " . $size);
76
+ print( $data );
77
+ }
78
+ die();
79
+ } // parabola_export_options()
80
+ add_action( 'admin_init', 'parabola_export_options' );
81
+
82
+ /**
83
+ * This file manages the theme settings uploading and import operations.
84
+ * Uses the theme page to create a new form for uplaoding the settings
85
+ * Uses WP_Filesystem
86
+ */
87
+ function parabola_import_form(){
88
+
89
+ $bytes = apply_filters( 'import_upload_size_limit', wp_max_upload_size() );
90
+ $size = size_format( $bytes );
91
+ $upload_dir = wp_upload_dir();
92
+ if ( ! empty( $upload_dir['error'] ) ) :
93
+ ?><div class="error"><p><?php _e('Before you can upload your import file, you will need to fix the following error:', 'parabola'); ?></p>
94
+ <p><strong><?php echo $upload_dir['error']; ?></strong></p></div><?php
95
+ else :
96
+ ?>
97
+
98
+ <div class="wrap cryout-admin">
99
+ <div style="width:400px;display:block;margin-left:30px;">
100
+ <div id="icon-tools" class="icon32"><br></div>
101
+ <h2><?php echo __( 'Import Parabola Settings', 'parabola' );?></h2>
102
+ <form enctype="multipart/form-data" id="import-upload-form" method="post" action="">
103
+ <p><?php _e('Only files obtained from Parabola\'s export process are supported.', 'parabola'); ?></p>
104
+ <p>
105
+ <label for="upload"><strong><?php printf( __('Select an existing theme settings file: %s', 'parabola'), '(parabola-settings.txt)' ) ?> </strong><i></i></label>
106
+ <input type="file" id="upload" name="import" size="25" />
107
+ <span style="font-size:10px;">(<?php printf( __( 'Maximum size: %s', 'parabola' ), $size ); ?> )</span>
108
+ <input type="hidden" name="action" value="save" />
109
+ <input type="hidden" name="max_file_size" value="<?php echo $bytes; ?>" />
110
+ <?php wp_nonce_field('parabola-import', 'parabola-import'); ?>
111
+ <input type="hidden" name="parabola_import_confirmed" value="true" />
112
+ </p>
113
+ <input type="submit" class="button" value="<?php _e('And import!', 'parabola'); ?>" />
114
+ </form>
115
+ </div>
116
+ </div> <!-- end wrap -->
117
+ <?php
118
+ endif;
119
+ } // Closes the parabola_import_form() function definition
120
+
121
+
122
+ /**
123
+ * This actual import of the options from the file to the settings array.
124
+ */
125
+ function parabola_import_file() {
126
+ global $parabolas;
127
+
128
+ /* Check authorisation */
129
+ $authorised = true;
130
+ // Check nonce
131
+ if (!wp_verify_nonce($_POST['parabola-import'], 'parabola-import')) {$authorised = false;}
132
+ // Check permissions
133
+ if (!current_user_can('edit_theme_options')){ $authorised = false; }
134
+
135
+ // If the user is authorised, import the theme's options to the database
136
+ if ($authorised) {?>
137
+ <?php
138
+ // make sure there is an import file uploaded
139
+ if ( (isset($_FILES["import"]["size"]) && ($_FILES["import"]["size"] > 0) ) ) {
140
+
141
+ $form_fields = array('import');
142
+ $method = '';
143
+
144
+ $url = wp_nonce_url('themes.php?page=parabola-page', 'parabola-import');
145
+
146
+ // Get file writing credentials
147
+ if (false === ($creds = request_filesystem_credentials($url, $method, false, false, $form_fields) ) ) {
148
+ return true;
149
+ }
150
+
151
+ if ( ! WP_Filesystem($creds) ) {
152
+ // our credentials were no good, ask the user for them again
153
+ request_filesystem_credentials($url, $method, true, false, $form_fields);
154
+ return true;
155
+ }
156
+
157
+ // Write the file if credentials are good
158
+ $upload_dir = wp_upload_dir();
159
+ $filename = trailingslashit($upload_dir['path']).'parabolas.txt';
160
+
161
+ // by this point, the $wp_filesystem global should be working, so let's use it to create a file
162
+ global $wp_filesystem;
163
+ if ( ! $wp_filesystem->move($_FILES['import']['tmp_name'], $filename, true) ) {
164
+ echo 'Error saving file!';
165
+ return;
166
+ }
167
+
168
+ $file = $_FILES['import'];
169
+
170
+ if ($file['type'] == 'text/plain') {
171
+ $data = $wp_filesystem->get_contents($filename);
172
+ // try to read the file
173
+ if ($data !== FALSE){
174
+ $settings = json_decode($data, true);
175
+ // try to read the settings array
176
+ if (isset($settings['parabola_db'])){ ?>
177
+ <div class="wrap cryout-admin">
178
+ <div id="icon-tools" class="icon32"><br></div>
179
+ <h2><?php echo __( 'Import Parabola Theme Options ', 'parabola' );?></h2> <?php
180
+ $settings = array_merge($parabolas, $settings);
181
+ update_option('parabola_settings', $settings);
182
+ echo '<div class="updated fade"><p>'. __('Great! The options have been imported!', 'parabola').'<br />';
183
+ printf( '<a href="%s">%s<a></p></div>', admin_url( 'themes.php?page=parabola-page' ), __('Go back to the settings page and check them out!', 'parabola') );
184
+ }
185
+ else { // else: try to read the settings array
186
+ echo '<div class="error"><p><strong>'.__('Oops, there\'s a small problem.', 'parabola').'</strong><br />';
187
+ echo __('The uploaded file does not contain valid Parabola settings. Make sure the file is exported from the Parabola.', 'parabola').'</p></div>';
188
+ parabola_import_form();
189
+ }
190
+ }
191
+ else { // else: try to read the file
192
+ echo '<div class="error"><p><strong>'.__('Oops, there\'s a small problem.', 'parabola').'</strong><br />';
193
+ echo __('The uploaded file could not be read.', 'parabola').'</p></div>';
194
+ parabola_import_form();
195
+ }
196
+ }
197
+ else { // else: make sure the file uploaded was a plain text file
198
+ echo '<div class="error"><p><strong>'.__('Oops, there\'s a small problem.', 'parabola').'</strong><br />';
199
+ echo __('The uploaded file is not supported. Make sure the file was exported from Parabola and that it is a text file.', 'parabola').'</p></div>';
200
+ parabola_import_form();
201
+ }
202
+
203
+ // Delete the file after we're done
204
+ $wp_filesystem->delete($filename);
205
+
206
+ }
207
+ else { // else: make sure there is an import file uploaded
208
+ echo '<div class="error"><p>'.__( 'Oops! The file is empty or there was no file. This error could also be caused by uploads being disabled in your php.ini or by post_max_size being defined as smaller than upload_max_filesize in php.ini.', 'parabola' ).'</p></div>';
209
+ parabola_import_form();
210
+ }
211
+ echo '</div> <!-- end wrap -->';
212
+ }
213
+ else {
214
+ wp_die(__('ERROR: You are not authorised to perform that operation', 'parabola'));
215
+ }
216
+ } // Closes the parabola_import_file() function definition
217
+
218
+ function parabola_presets(){
219
+ ?>
220
+ <script type="text/javascript">
221
+ var scheme_confirmation = '<?php echo esc_html__('Are you sure you want to load a new color scheme? \nAll current saved settings under Text and Color Settings will be lost.','parabola'); ?>';
222
+ </script>
223
+ <div class="wrap cryout-admin">
224
+ <div id="admin_header"><img src="<?php echo get_template_directory_uri() . '/admin/images/colorschemes-logo.png' ?>" /> </div>
225
+ <div style="display:block;margin-left:30px;clear:both;float:none;">
226
+ <p><em><?php echo _e("Select one of the preset color schemes and press the Load button.<br> <b> CAUTION! </b> When loading a color scheme, the Parabola theme settings under Text and Color Settings will be overriden. All other settings will remain intact.<br> <u>SUGGESTION:</u> It's always better to export your current theme settings before loading a color scheme." , "parabola"); ?></em></p>
227
+ <br>
228
+ <form name="parabola_form" action="options.php" method="post" enctype="multipart/form-data">
229
+
230
+ <?php
231
+ settings_fields('parabola_settings');
232
+
233
+ global $parabolas;
234
+ global $parabola_colorschemes_array;
235
+
236
+ foreach($parabola_colorschemes_array as $key=>$item) {
237
+ $id = preg_replace('/[^a-z0-9]/i', '',$key);
238
+ $checkedClass = ($parabolas['parabola_colorschemes']==$item) ? ' checkedClass' : '';
239
+ /* printf( "<label id='%1$s' for='sel_%2$s' class='images presets %3$s'>
240
+ <input %4$s value='%5$s' id='sel_%2$s' onClick=\"changeBorder('%1$s','images');\" name='parabola_settings[parabola_colorschemes]' type='radio' />
241
+ <img class='%2$s' src='%6$s'/> <p>%5$s</p>
242
+ </label>\n",
243
+ $id,
244
+ strtolower( $id ),
245
+ $checkedClass,
246
+ checked($parabolas['parabola_colorschemes'], $item, false),
247
+ $key,
248
+ sprintf( '%1%s/admin/images/schemes/%2$s.png', esc_url( get_template_directory_uri() ), $key )
249
+ ); */
250
+ echo " <label id='$id' for='$id$id' class='images presets $checkedClass'><input ";
251
+ checked($parabolas['parabola_colorschemes'],$item);
252
+ echo " value='$key' id='$id$id' onClick=\"changeBorder('$id','images');\" name='parabola_settings[parabola_colorschemes]' type='radio' /><img class='$id' src='".get_template_directory_uri()."/admin/images/schemes/{$key}.png'/><p>{$key}</p></label>";
253
+ }
254
+ ?>
255
+ <div id="submitDiv" style="width:400px;display:block;margin:0 auto;">
256
+ <br>
257
+ <input type="hidden" value="true" name="parabola_presets_loaded" />
258
+ <input class="button" name="parabola_settings[parabola_schemessubmit]" type="submit" id="load-color-scheme" style="width:400px;height:40px;display:block;text-align:center;" value="<?php _e('Load Color Scheme','parabola'); ?>" />
259
+ </div>
260
+ </form>
261
+ </div>
262
+ </div> <!-- end wrap -->
263
+ <br>
264
+ <?php
265
+ } // parabola_presets()
266
+
267
+ // Truncate function for use in the Admin RSS feed
268
+ function parabola_truncate_words($string,$words=20, $ellipsis=' ...') {
269
+ $new = preg_replace('/((\w+\W+\'*){'.($words-1).'}(\w+))(.*)/', '${1}', $string);
270
+ return $new.$ellipsis;
271
+ }
272
+
273
+ function parabola_righty_below() { ?>
274
+ <div class="postbox export non-essential-option" style="overflow:hidden;">
275
+ <div class="head-wrap">
276
+ <div title="Click to toggle" class="handlediv"><br /></div>
277
+ <h3 class="hndle"><?php _e( 'Import/Export Settings', 'parabola' ); ?></h3>
278
+ </div><!-- head-wrap -->
279
+ <div class="panel-wrap inside">
280
+ <form action="" method="post">
281
+ <?php wp_nonce_field('parabola-export', 'parabola-export'); ?>
282
+ <input type="hidden" name="parabola_export" value="true" />
283
+ <input type="submit" class="button" value="<?php _e('Export Theme options', 'parabola'); ?>" />
284
+ <p class="imex-text"><?php _e("It's that easy: a mouse click away - the ability to export your Parabola settings and save them on your computer. Feeling safer? You should!","parabola"); ?></p>
285
+ </form>
286
+ <br />
287
+ <form action="" method="post">
288
+ <input type="hidden" name="parabola_import" value="true" />
289
+ <input type="submit" class="button" value="<?php _e('Import Theme options', 'parabola'); ?>" />
290
+ <p class="imex-text"><?php _e("Without the import, the export would just be a fool's exercise. Make sure you have the exported file ready and see you after the mouse click.","parabola"); ?></p>
291
+ </form>
292
+ <br />
293
+ <form action="" method="post">
294
+ <input type="hidden" name="parabola_presets" value="true" />
295
+ <input type="submit" class="button" id="presets_button" value="<?php _e('Color Schemes', 'parabola'); ?>" />
296
+ <p class="imex-text"><?php _e("A collection of preset color schemes to use as the starting point for your site. Just load one up and see your blog in a different light.","parabola"); ?></p>
297
+ </form>
298
+
299
+ </div><!-- inside -->
300
+ </div><!-- export -->
301
+
302
+ <div class="postbox news" >
303
+ <div>
304
+ <h3 class="hndle"><?php _e( 'Parabola Latest News', 'parabola' ); ?></h3>
305
+ </div>
306
+ <div class="panel-wrap inside" style="height:200px;overflow:auto;">
307
+ <?php
308
+ $parabola_news = fetch_feed( array( 'http://www.cryoutcreations.eu/cat/wordpress-themes/parabola/feed/') );
309
+ $maxitems = 0;
310
+ if ( ! is_wp_error( $parabola_news ) ) {
311
+ $maxitems = $parabola_news->get_item_quantity( 10 );
312
+ $news_items = $parabola_news->get_items( 0, $maxitems );
313
+ }
314
+ ?>
315
+ <ul class="news-list">
316
+ <?php if ( $maxitems == 0 ) : echo '<li>' . __( 'No news items.', 'parabola' ) . '</li>'; else :
317
+ foreach( $news_items as $news_item ) : ?>
318
+ <li>
319
+ <a class="news-header" href='<?php echo esc_url( $news_item->get_permalink() ); ?>'><?php echo esc_html( $news_item->get_title() ); ?></a><br />
320
+ <span class="news-item-date"><?php _e('Posted on','parabola'); echo $news_item->get_date(' j F Y, H:i'); ?></span>
321
+
322
+ <br><a class="news-read" href='<?php echo esc_url( $news_item->get_permalink() ); ?>'>Read the full post &raquo;</a><br />
323
+ </li>
324
+ <?php endforeach; endif; ?>
325
+ </ul>
326
+ </div><!-- inside -->
327
+ </div><!-- news --> <?php
328
+ } // parabola_righty_below()
329
+ add_action( 'parabola_after_righty', 'parabola_righty_below' );
330
+
331
+
332
+ } // endif version_compare()
333
+
334
+ // FIN
inc/settings.php CHANGED
@@ -67,7 +67,7 @@ $url = plugin_dir_url( dirname(__FILE__) ) . 'media';
67
  <h3 class="hndle"><span>About</span></h3>
68
  <div class="inside">
69
  <?php if ($this->status != 4) { ?>
70
- <p>This plugin is designed to inter-operate with our supported themes to enable their advanced theme settings pages:</p>
71
  <ul> <li><a href="http://wordpress.org/themes/mantra" target="_blank"><img src="<?php echo $url . '/mantra.jpg'; ?>" /><span>Mantra</span></a> version 2.5 and newer</li>
72
  <li><a href="http://wordpress.org/themes/nirvana" target="_blank"><img src="<?php echo $url . '/nirvana.jpg'; ?>" /><span>Nirvana</span></a> version 1.2 and newer</li>
73
  <li><a href="http://wordpress.org/themes/parabola" target="_blank"><img src="<?php echo $url . '/parabola.jpg'; ?>" /><span>Parabola</span></a> version 1.6 and newer</li>
@@ -76,9 +76,9 @@ $url = plugin_dir_url( dirname(__FILE__) ) . 'media';
76
  <?php } else { ?>
77
  <p>
78
  This plugin restores the settings page to working condition on WordPress 4.4-RC1 and newer with:
79
- <ul> <li><a href="http://wordpress.org/themes/mantra" target="_blank"><img src="<?php echo $url . '/mantra.jpg'; ?>" /><span>Mantra</span></a> versions 2.0 - 2.4.1.1</li>
80
- <li><a href="http://wordpress.org/themes/parabola" target="_blank"><img src="<?php echo $url . '/parabola.jpg'; ?>" /><span>Parabola</span></a> versions 0.9 - 1.5.1</li>
81
- <li><a href="http://wordpress.org/themes/tempera" target="_blank"><img src="<?php echo $url . '/tempera.jpg'; ?>" /><span>Tempera</span></a> versions 0.9 - 1.3.3</li> </ul>
82
  </p>
83
  <p>If you are using a different theme or a theme version not listed here this plugin will not activate.</p>
84
  <?php } ?>
@@ -122,8 +122,8 @@ $url = plugin_dir_url( dirname(__FILE__) ) . 'media';
122
 
123
  <div class="inside">
124
  <div style="text-align: center; margin: auto">
125
- For support questions,<br>
126
- please use <a target="_blank" href="http://www.cryoutcreations.eu/forum">our forum</a>.
127
  </div>
128
  </div>
129
  </div>
67
  <h3 class="hndle"><span>About</span></h3>
68
  <div class="inside">
69
  <?php if ($this->status != 4) { ?>
70
+ <p>This plugin is designed to inter-operate with the supported themes to enable their advanced theme settings pages:</p>
71
  <ul> <li><a href="http://wordpress.org/themes/mantra" target="_blank"><img src="<?php echo $url . '/mantra.jpg'; ?>" /><span>Mantra</span></a> version 2.5 and newer</li>
72
  <li><a href="http://wordpress.org/themes/nirvana" target="_blank"><img src="<?php echo $url . '/nirvana.jpg'; ?>" /><span>Nirvana</span></a> version 1.2 and newer</li>
73
  <li><a href="http://wordpress.org/themes/parabola" target="_blank"><img src="<?php echo $url . '/parabola.jpg'; ?>" /><span>Parabola</span></a> version 1.6 and newer</li>
76
  <?php } else { ?>
77
  <p>
78
  This plugin restores the settings page to working condition on WordPress 4.4-RC1 and newer with:
79
+ <ul> <li><a href="http://wordpress.org/themes/mantra" target="_blank"><img src="<?php echo $url . '/mantra.jpg'; ?>" /><span>Mantra</span></a> versions 2.0 to 2.4.1.1</li>
80
+ <li><a href="http://wordpress.org/themes/parabola" target="_blank"><img src="<?php echo $url . '/parabola.jpg'; ?>" /><span>Parabola</span></a> versions 0.9 to 1.5.1</li>
81
+ <li><a href="http://wordpress.org/themes/tempera" target="_blank"><img src="<?php echo $url . '/tempera.jpg'; ?>" /><span>Tempera</span></a> versions 0.9 to 1.3.3</li> </ul>
82
  </p>
83
  <p>If you are using a different theme or a theme version not listed here this plugin will not activate.</p>
84
  <?php } ?>
122
 
123
  <div class="inside">
124
  <div style="text-align: center; margin: auto">
125
+ For support questions, issues<br>
126
+ or suggestions, please use <a target="_blank" href="https://www.cryoutcreations.eu/forums/f/wordpress/plugins/serious-settings">our forum</a>.
127
  </div>
128
  </div>
129
  </div>
media/bravada.jpg ADDED
Binary file
readme.txt CHANGED
@@ -2,9 +2,9 @@
2
  Contributors: Cryout Creations
3
  Donate link: https://www.cryoutcreations.eu/donate/
4
  Tags: theme, admin
5
- Requires at least: 4.2
6
- Tested up to: 5.5
7
- Stable tag: 0.5.11
8
  License: GPLv3
9
  License URI: http://www.gnu.org/licenses/gpl.html
10
 
@@ -12,7 +12,7 @@ This plugin is designed to inter-operate with our Mantra, Parabola, Tempera, Nir
12
 
13
  == Description ==
14
 
15
- This plugin is designed to inter-operate with our [Nirvana](https://wordpress.org/themes/nirvana/), [Tempera](https://wordpress.org/themes/tempera/), [Parabola](https://wordpress.org/themes/parabola/) and [Mantra](https://wordpress.org/themes/mantra/) themes and enable their advanced settings pages which we had to remove due to the Customize-based settings transition.
16
 
17
  = Compatibility =
18
  The plugin is intended to be used with the following theme releases regardless of WordPress version:
@@ -24,9 +24,10 @@ The plugin is intended to be used with the following theme releases regardless o
24
 
25
  Additionally, it is needed to correct an incompatibility between WordPress 4.4 and newer and the following theme versions:
26
 
27
- * Tempera versions 0.9 - 1.3.3
28
- * Parabola versions 0.9 - 1.5.1
29
- * Mantra versions 2.0 - 2.4.1.1
 
30
 
31
  This plugin will do nothing if you do not use any of the listed themes.
32
 
@@ -45,9 +46,15 @@ This plugin will do nothing if you do not use any of the listed themes.
45
  1. Upload `cryout-theme-settings` folder to the `/wp-content/plugins/` directory
46
  2. Activate the plugin through the 'Plugins' menu in WordPress
47
  3. Navigate to Appearance > [Theme] Settings to access the restored theme settings page.
 
48
 
49
  == Changelog ==
50
 
 
 
 
 
 
51
  = 0.5.11 =
52
  * Updated for compatibility with the changes in Mantra 3.3.0
53
  * Some code cleanup and optimization
2
  Contributors: Cryout Creations
3
  Donate link: https://www.cryoutcreations.eu/donate/
4
  Tags: theme, admin
5
+ Requires at least: 4.5
6
+ Tested up to: 5.7
7
+ Stable tag: 0.5.12
8
  License: GPLv3
9
  License URI: http://www.gnu.org/licenses/gpl.html
10
 
12
 
13
  == Description ==
14
 
15
+ This plugin is designed to inter-operate with our [Nirvana](https://wordpress.org/themes/nirvana/), [Tempera](https://wordpress.org/themes/tempera/), [Parabola](https://wordpress.org/themes/parabola/) and [Mantra](https://wordpress.org/themes/mantra/) themes and enable their advanced settings pages on current WordPress versions.
16
 
17
  = Compatibility =
18
  The plugin is intended to be used with the following theme releases regardless of WordPress version:
24
 
25
  Additionally, it is needed to correct an incompatibility between WordPress 4.4 and newer and the following theme versions:
26
 
27
+ * Tempera versions 0.9 to 1.3.3
28
+ * Parabola versions 0.9 to 1.5.1
29
+ * Mantra versions 2.0 to 2.4.1.1
30
+ * No Nirvana versions are supported in compatibility mode
31
 
32
  This plugin will do nothing if you do not use any of the listed themes.
33
 
46
  1. Upload `cryout-theme-settings` folder to the `/wp-content/plugins/` directory
47
  2. Activate the plugin through the 'Plugins' menu in WordPress
48
  3. Navigate to Appearance > [Theme] Settings to access the restored theme settings page.
49
+ 4. Additionally, check the plugin's status on the Appearance > Serious Theme Settings page.
50
 
51
  == Changelog ==
52
 
53
+ = 0.5.12 =
54
+ * Updated for compatibility with the changes in Parabola 2.4.0
55
+ * Improved version detection for better compatibility with customized themes
56
+ * Bumped supported WordPress version to 5.7
57
+
58
  = 0.5.11 =
59
  * Updated for compatibility with the changes in Mantra 3.3.0
60
  * Some code cleanup and optimization