Version Description
- Fixed detection of parent theme name and version when using a child theme
- Clarified plugin information
Download this release
Release Info
Developer | Cryout Creations |
Plugin | Cryout Serious Theme Settings |
Version | 0.5.1 |
Comparing to | |
See all releases |
Code changes from version 0.5 to 0.5.1
- cryout-theme-settings.php +3 -3
- inc/settings.php +6 -5
- readme.txt +5 -2
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
|
@@ -52,7 +52,7 @@ class Cryout_Theme_Settings {
|
|
52 |
|
53 |
function supported_theme(){
|
54 |
$current_theme_slug = strtolower( wp_get_theme()->Template );
|
55 |
-
$current_theme_version = wp_get_theme()->Version;
|
56 |
|
57 |
$this->current_theme = array(
|
58 |
'slug' => $current_theme_slug,
|
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.1
|
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.1";
|
15 |
public $settings = array();
|
16 |
|
17 |
private $status = 0; // 0 = inactive, 1 = active, 2 = good theme, wrong version, 3 = wrong theme
|
52 |
|
53 |
function supported_theme(){
|
54 |
$current_theme_slug = strtolower( wp_get_theme()->Template );
|
55 |
+
$current_theme_version = wp_get_theme($current_theme_slug)->Version;
|
56 |
|
57 |
$this->current_theme = array(
|
58 |
'slug' => $current_theme_slug,
|
inc/settings.php
CHANGED
@@ -13,14 +13,14 @@
|
|
13 |
switch ($this->status):
|
14 |
case 3:
|
15 |
// unsupported theme ?>
|
16 |
-
Current active (or parent) theme is: <strong><?php echo ucwords($this->current_theme['slug']); ?></strong>.<br
|
17 |
This plugin is designed to work only with the supported themes. <br>
|
18 |
The plugin is <strong style="color: #800000;">INACTIVE</strong>. <?php
|
19 |
break;
|
20 |
case 2:
|
21 |
// unsupported version ?>
|
22 |
-
Current active (or parent) theme is: <strong><?php echo ucwords($this->current_theme['slug']) ?></strong>, however the plugin is
|
23 |
-
You are running <em><?php echo ucwords($this->current_theme['slug']) ?>
|
24 |
The plugin is <strong style="color: #800000;">INACTIVE</strong>. <?php
|
25 |
break;
|
26 |
case 0:
|
@@ -51,7 +51,8 @@
|
|
51 |
<li><a href="http://wordpress.org/themes/parabola" target="_blank">Parabola</a> version 1.6 and newer</li>
|
52 |
<li><a href="http://wordpress.org/themes/tempera" target="_blank">Tempera</a> version 1.4 and newer</li>
|
53 |
</ul>
|
54 |
-
To restore their theme settings pages which we had to remove due to the Customize-based settings enforcement
|
|
|
55 |
</p>
|
56 |
</div>
|
57 |
</div>
|
@@ -72,7 +73,7 @@
|
|
72 |
<div style="text-align: center; margin: auto">
|
73 |
<strong>version: <?php echo $this->version ?></strong><br>
|
74 |
by Cryout Creations<br>
|
75 |
-
<a target="_blank" href="http://www.cryoutcreations.eu/">www.cryoutcreations.eu</a>
|
76 |
</div>
|
77 |
</div>
|
78 |
</div>
|
13 |
switch ($this->status):
|
14 |
case 3:
|
15 |
// unsupported theme ?>
|
16 |
+
Current active (or parent) theme is: <strong><?php echo ucwords($this->current_theme['slug']); ?></strong>.<br>
|
17 |
This plugin is designed to work only with the supported themes. <br>
|
18 |
The plugin is <strong style="color: #800000;">INACTIVE</strong>. <?php
|
19 |
break;
|
20 |
case 2:
|
21 |
// unsupported version ?>
|
22 |
+
Current active (or parent) theme is: <strong><?php echo ucwords($this->current_theme['slug']) ?></strong>, however the plugin is designed to work with version <b><?php echo $this->supported_themes[$this->current_theme['slug']] ?></b> or newer of <em><?php echo ucwords($this->current_theme['slug']) ?></em>.<br>
|
23 |
+
You are running <em><?php echo ucwords($this->current_theme['slug']) ?> version <?php echo $this->current_theme['version'] ?></em> which does not need this plugin.</br>
|
24 |
The plugin is <strong style="color: #800000;">INACTIVE</strong>. <?php
|
25 |
break;
|
26 |
case 0:
|
51 |
<li><a href="http://wordpress.org/themes/parabola" target="_blank">Parabola</a> version 1.6 and newer</li>
|
52 |
<li><a href="http://wordpress.org/themes/tempera" target="_blank">Tempera</a> version 1.4 and newer</li>
|
53 |
</ul>
|
54 |
+
To restore their theme settings pages which we had to remove due to the Customize-based settings enforcement.<br>
|
55 |
+
If you are using a different theme or theme version you do not need this plugin.
|
56 |
</p>
|
57 |
</div>
|
58 |
</div>
|
73 |
<div style="text-align: center; margin: auto">
|
74 |
<strong>version: <?php echo $this->version ?></strong><br>
|
75 |
by Cryout Creations<br>
|
76 |
+
<a target="_blank" href="http://www.cryoutcreations.eu/cryout-theme-settings/">www.cryoutcreations.eu</a>
|
77 |
</div>
|
78 |
</div>
|
79 |
</div>
|
readme.txt
CHANGED
@@ -4,7 +4,7 @@ Donate link: http://www.cryoutcreations.eu/donate/
|
|
4 |
Tags: theme, admin
|
5 |
Requires at least: 4.0
|
6 |
Tested up to: 4.3.1
|
7 |
-
Stable tag: 0.5
|
8 |
License: GPLv3
|
9 |
License URI: http://www.gnu.org/licenses/gpl.html
|
10 |
|
@@ -16,7 +16,6 @@ This plugin is designed to inter-operate with our [Parabola](https://wordpress.o
|
|
16 |
|
17 |
= Compatibility =
|
18 |
The plugin is meant to be used with the following theme releases:
|
19 |
-
|
20 |
* Parabola version 1.6 and newer
|
21 |
* Tempera version 1.4 and newer
|
22 |
* Nirvana version 1.2 and newer
|
@@ -30,5 +29,9 @@ The plugin is meant to be used with the following theme releases:
|
|
30 |
|
31 |
== Changelog ==
|
32 |
|
|
|
|
|
|
|
|
|
33 |
= 0.5 =
|
34 |
* Initial release. Currently only Nirvana implements support for this plugin.
|
4 |
Tags: theme, admin
|
5 |
Requires at least: 4.0
|
6 |
Tested up to: 4.3.1
|
7 |
+
Stable tag: 0.5.1
|
8 |
License: GPLv3
|
9 |
License URI: http://www.gnu.org/licenses/gpl.html
|
10 |
|
16 |
|
17 |
= Compatibility =
|
18 |
The plugin is meant to be used with the following theme releases:
|
|
|
19 |
* Parabola version 1.6 and newer
|
20 |
* Tempera version 1.4 and newer
|
21 |
* Nirvana version 1.2 and newer
|
29 |
|
30 |
== Changelog ==
|
31 |
|
32 |
+
= 0.5.1 =
|
33 |
+
* Fixed detection of parent theme name and version when using a child theme
|
34 |
+
* Clarified plugin information
|
35 |
+
|
36 |
= 0.5 =
|
37 |
* Initial release. Currently only Nirvana implements support for this plugin.
|