Version Description
- Fixed compatibility support for Mantra
Download this release
Release Info
Developer | Cryout Creations |
Plugin | Cryout Serious Theme Settings |
Version | 0.5.4 |
Comparing to | |
See all releases |
Code changes from version 0.5.3 to 0.5.4
- cryout-theme-settings.php +5 -4
- inc/settings.php +11 -3
- readme.txt +8 -5
cryout-theme-settings.php
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
Plugin Name: Cryout Serious Theme Settings
|
4 |
Plugin URI: http://www.cryoutcreations.eu/serious-theme-settings
|
5 |
Description: This plugin is designed to restore our theme's settings page functionality after the enforcement of the Customize-based theme settings. It is only compatible with and will only function when one of our themes is active: Nirvana, Parabola or Tempera.
|
6 |
-
Version: 0.5.
|
7 |
Author: Cryout Creations
|
8 |
Author URI: http://www.cryoutcreations.eu
|
9 |
License: GPLv3
|
@@ -11,7 +11,7 @@
|
|
11 |
*/
|
12 |
|
13 |
class Cryout_Theme_Settings {
|
14 |
-
public $version = "0.5.
|
15 |
public $settings = array();
|
16 |
|
17 |
private $status = 0; // 0 = inactive, 1 = active, 2 = good theme, wrong version, 3 = wrong theme, 4 = compatibility for wp4.4
|
@@ -20,6 +20,7 @@ class Cryout_Theme_Settings {
|
|
20 |
'nirvana' => '1.2',
|
21 |
'tempera' => '1.4',
|
22 |
'parabola' => '1.6',
|
|
|
23 |
);
|
24 |
private $compatibility_themes = array(
|
25 |
'tempera' => '0.9',
|
@@ -84,7 +85,7 @@ class Cryout_Theme_Settings {
|
|
84 |
$this->status = 1;
|
85 |
return 1;
|
86 |
elseif ( (version_compare( $current_theme_version, $this->compatibility_themes[$current_theme_slug] ) >=0 ) &&
|
87 |
-
(version_compare($wp_version, '4.
|
88 |
// compatibility mode
|
89 |
$this->status = 4;
|
90 |
return 4;
|
@@ -102,7 +103,7 @@ class Cryout_Theme_Settings {
|
|
102 |
} // supported_theme()
|
103 |
|
104 |
public function enqueue_script($hook) {
|
105 |
-
if ( $GLOBALS['plugin_page'] == $this->current_theme['slug'] . '-page' )
|
106 |
wp_enqueue_script( 'cryout-theme-settings-code', plugins_url( 'code.js', __FILE__ ), NULL, $this->version );
|
107 |
} // enqueue_script()
|
108 |
|
3 |
Plugin Name: Cryout Serious Theme Settings
|
4 |
Plugin URI: http://www.cryoutcreations.eu/serious-theme-settings
|
5 |
Description: This plugin is designed to restore our theme's settings page functionality after the enforcement of the Customize-based theme settings. It is only compatible with and will only function when one of our themes is active: Nirvana, Parabola or Tempera.
|
6 |
+
Version: 0.5.4
|
7 |
Author: Cryout Creations
|
8 |
Author URI: http://www.cryoutcreations.eu
|
9 |
License: GPLv3
|
11 |
*/
|
12 |
|
13 |
class Cryout_Theme_Settings {
|
14 |
+
public $version = "0.5.4";
|
15 |
public $settings = array();
|
16 |
|
17 |
private $status = 0; // 0 = inactive, 1 = active, 2 = good theme, wrong version, 3 = wrong theme, 4 = compatibility for wp4.4
|
20 |
'nirvana' => '1.2',
|
21 |
'tempera' => '1.4',
|
22 |
'parabola' => '1.6',
|
23 |
+
'mantra' => '3.0',
|
24 |
);
|
25 |
private $compatibility_themes = array(
|
26 |
'tempera' => '0.9',
|
85 |
$this->status = 1;
|
86 |
return 1;
|
87 |
elseif ( (version_compare( $current_theme_version, $this->compatibility_themes[$current_theme_slug] ) >=0 ) &&
|
88 |
+
(version_compare($wp_version, '4.3.9999') >= 0) ):
|
89 |
// compatibility mode
|
90 |
$this->status = 4;
|
91 |
return 4;
|
103 |
} // supported_theme()
|
104 |
|
105 |
public function enqueue_script($hook) {
|
106 |
+
if ( !empty($GLOBALS['plugin_page']) && ($GLOBALS['plugin_page'] == $this->current_theme['slug'] . '-page') )
|
107 |
wp_enqueue_script( 'cryout-theme-settings-code', plugins_url( 'code.js', __FILE__ ), NULL, $this->version );
|
108 |
} // enqueue_script()
|
109 |
|
inc/settings.php
CHANGED
@@ -8,7 +8,7 @@
|
|
8 |
Navigate <a href="themes.php?page=<?php echo $this->current_theme['slug'] ?>-page"><strong>here</strong></a> to configure <?php echo ucwords($this->current_theme['slug']) ?>.
|
9 |
</p></div>
|
10 |
<?php elseif ($this->status == 4): ?>
|
11 |
-
<div class="updated"><p>Current active (or parent) theme is: <strong><?php echo ucwords($this->current_theme['slug']); ?></strong> and you are running
|
12 |
The plugin is <strong style="color: #008000;">active</strong> in compatibility mode.<br>
|
13 |
<br>
|
14 |
Navigate <a href="themes.php?page=<?php echo $this->current_theme['slug'] ?>-page"><strong>here</strong></a> to configure <?php echo ucwords($this->current_theme['slug']) ?>.
|
@@ -58,8 +58,16 @@
|
|
58 |
<li><a href="http://wordpress.org/themes/tempera" target="_blank">Tempera</a> version 1.4 and newer</li>
|
59 |
</ul>
|
60 |
To restore their theme settings pages which we had to remove due to the Customize-based settings enforcement.<br>
|
61 |
-
|
62 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
63 |
</div>
|
64 |
</div>
|
65 |
|
8 |
Navigate <a href="themes.php?page=<?php echo $this->current_theme['slug'] ?>-page"><strong>here</strong></a> to configure <?php echo ucwords($this->current_theme['slug']) ?>.
|
9 |
</p></div>
|
10 |
<?php elseif ($this->status == 4): ?>
|
11 |
+
<div class="updated"><p>Current active (or parent) theme is: <strong><?php echo ucwords($this->current_theme['slug']); ?></strong> and you are running WordPress 4.4 or newer.
|
12 |
The plugin is <strong style="color: #008000;">active</strong> in compatibility mode.<br>
|
13 |
<br>
|
14 |
Navigate <a href="themes.php?page=<?php echo $this->current_theme['slug'] ?>-page"><strong>here</strong></a> to configure <?php echo ucwords($this->current_theme['slug']) ?>.
|
58 |
<li><a href="http://wordpress.org/themes/tempera" target="_blank">Tempera</a> version 1.4 and newer</li>
|
59 |
</ul>
|
60 |
To restore their theme settings pages which we had to remove due to the Customize-based settings enforcement.<br>
|
61 |
+
</p>
|
62 |
+
<hr>
|
63 |
+
<p>
|
64 |
+
Additionally, the plugin will restore the settings page to working condition on WordPress 4.4-RC1 and newer with:
|
65 |
+
<ul><li><u>Tempera</u> versions 0.9 - 1.3.3</li>
|
66 |
+
<li><u>Parabola</u> versions 0.9 - 1.5.1</li>
|
67 |
+
<li><a href="http://wordpress.org/themes/mantra" target="_blank">Mantra</a> versions 2.0 - 2.4.1.1</li>
|
68 |
+
</ul>
|
69 |
+
</p>
|
70 |
+
<p>If you are using a different theme or a theme version not listed here this plugin will not activate.</p>
|
71 |
</div>
|
72 |
</div>
|
73 |
|
readme.txt
CHANGED
@@ -3,8 +3,8 @@ Contributors: cryout-creations
|
|
3 |
Donate link: http://www.cryoutcreations.eu/donate/
|
4 |
Tags: theme, admin
|
5 |
Requires at least: 4.0
|
6 |
-
Tested up to: 4.4
|
7 |
-
Stable tag: 0.5.
|
8 |
License: GPLv3
|
9 |
License URI: http://www.gnu.org/licenses/gpl.html
|
10 |
|
@@ -14,7 +14,7 @@ This plugin is designed to inter-operate with our Mantra, Parabola, Tempera, Nir
|
|
14 |
|
15 |
This plugin is designed to inter-operate with our [Parabola](https://wordpress.org/themes/parabola/), [Tempera](https://wordpress.org/themes/tempera/), [Nirvana](https://wordpress.org/themes/nirvana/) themes and restore their advanced settings pages which we had to remove due to the Customize-based settings enforcement.
|
16 |
|
17 |
-
Additionally, it returns the themes' settings pages to working condition in Mantra, Parabola and Tempera on
|
18 |
|
19 |
= Compatibility =
|
20 |
The plugin is meant to be used with the following theme releases:
|
@@ -23,13 +23,13 @@ The plugin is meant to be used with the following theme releases:
|
|
23 |
* Tempera version 1.4 and newer
|
24 |
* Nirvana version 1.2 and newer
|
25 |
|
26 |
-
On
|
27 |
|
28 |
* Parabola versions 0.9 - 1.5.1
|
29 |
* Tempera versions 0.9 - 1.3.3
|
30 |
* Mantra versions 2.0 - 2.4.1.1
|
31 |
|
32 |
-
You do not need this plugin if you do not use
|
33 |
|
34 |
== Installation ==
|
35 |
|
@@ -40,6 +40,9 @@ You do not need this plugin if you do not use one of the listed themes and do no
|
|
40 |
|
41 |
== Changelog ==
|
42 |
|
|
|
|
|
|
|
43 |
= 0.5.3 =
|
44 |
* Added support for Tempera 1.4
|
45 |
* Fixed typo causing error in compatibility code
|
3 |
Donate link: http://www.cryoutcreations.eu/donate/
|
4 |
Tags: theme, admin
|
5 |
Requires at least: 4.0
|
6 |
+
Tested up to: 4.4
|
7 |
+
Stable tag: 0.5.4
|
8 |
License: GPLv3
|
9 |
License URI: http://www.gnu.org/licenses/gpl.html
|
10 |
|
14 |
|
15 |
This plugin is designed to inter-operate with our [Parabola](https://wordpress.org/themes/parabola/), [Tempera](https://wordpress.org/themes/tempera/), [Nirvana](https://wordpress.org/themes/nirvana/) themes and restore their advanced settings pages which we had to remove due to the Customize-based settings enforcement.
|
16 |
|
17 |
+
Additionally, it returns the themes' settings pages to working condition in Mantra, Parabola and Tempera on WordPress 4.4-RC1 and newer.
|
18 |
|
19 |
= Compatibility =
|
20 |
The plugin is meant to be used with the following theme releases:
|
23 |
* Tempera version 1.4 and newer
|
24 |
* Nirvana version 1.2 and newer
|
25 |
|
26 |
+
On WordPress 4.4-RC1 or newer it will restore the settings pages to working condition in:
|
27 |
|
28 |
* Parabola versions 0.9 - 1.5.1
|
29 |
* Tempera versions 0.9 - 1.3.3
|
30 |
* Mantra versions 2.0 - 2.4.1.1
|
31 |
|
32 |
+
You do not need this plugin if you use do not use any of the listed themes.
|
33 |
|
34 |
== Installation ==
|
35 |
|
40 |
|
41 |
== Changelog ==
|
42 |
|
43 |
+
= 0.5.4 =
|
44 |
+
* Fixed compatibility support for Mantra
|
45 |
+
|
46 |
= 0.5.3 =
|
47 |
* Added support for Tempera 1.4
|
48 |
* Fixed typo causing error in compatibility code
|