Version Description
- Fixed sort bug in shorthand parser that was returning rules in wrong order
Download this release
Release Info
Developer | lilaeamedia |
Plugin | Child Theme Configurator |
Version | 1.1.4 |
Comparing to | |
See all releases |
Code changes from version 1.1.3 to 1.1.4
- child-theme-configurator.php +1 -1
- css/chld-thm-cfg.css +1 -0
- includes/class-ctc-css.php +3 -12
- includes/class-ctc-ui.php +1 -1
- includes/class-ctc.php +2 -2
- js/chld-thm-cfg.js +1 -1
- js/chld-thm-cfg.min.js +1 -1
- readme.txt +27 -1
child-theme-configurator.php
CHANGED
@@ -6,7 +6,7 @@ if ( !defined('ABSPATH')) exit;
|
|
6 |
Plugin Name: Child Theme Configurator
|
7 |
Plugin URI: http://www.lilaeamedia.com/plugins/child-theme-configurator/
|
8 |
Description: Create Child Theme from any Theme or Stylesheet
|
9 |
-
Version: 1.1.
|
10 |
Author: Lilaea Media
|
11 |
Author URI: http://www.lilaeamedia.com/
|
12 |
Text Domain: chld_thm_cfg
|
6 |
Plugin Name: Child Theme Configurator
|
7 |
Plugin URI: http://www.lilaeamedia.com/plugins/child-theme-configurator/
|
8 |
Description: Create Child Theme from any Theme or Stylesheet
|
9 |
+
Version: 1.1.4
|
10 |
Author: Lilaea Media
|
11 |
Author URI: http://www.lilaeamedia.com/
|
12 |
Text Domain: chld_thm_cfg
|
css/chld-thm-cfg.css
CHANGED
@@ -9,6 +9,7 @@
|
|
9 |
min-height:600px;
|
10 |
max-height:800px;
|
11 |
overflow:auto;
|
|
|
12 |
}
|
13 |
#view_child_options_panel, #view_parnt_options_panel {
|
14 |
white-space:pre;
|
9 |
min-height:600px;
|
10 |
max-height:800px;
|
11 |
overflow:auto;
|
12 |
+
border-bottom:1px solid #f9f9f9;
|
13 |
}
|
14 |
#view_child_options_panel, #view_parnt_options_panel {
|
15 |
white-space:pre;
|
includes/class-ctc-css.php
CHANGED
@@ -6,7 +6,7 @@ if ( !defined('ABSPATH')) exit;
|
|
6 |
Class: Child_Theme_Configurator_CSS
|
7 |
Plugin URI: http://www.lilaeamedia.com/plugins/child-theme-configurator/
|
8 |
Description: Handles all CSS output, parsing, normalization
|
9 |
-
Version: 1.1.
|
10 |
Author: Lilaea Media
|
11 |
Author URI: http://www.lilaeamedia.com/
|
12 |
Text Domain: chld_thm_cfg
|
@@ -42,7 +42,7 @@ class Child_Theme_Configurator_CSS {
|
|
42 |
|
43 |
function __construct() {
|
44 |
// scalars
|
45 |
-
$this->version = '1.1.
|
46 |
$this->querykey = 0;
|
47 |
$this->selkey = 0;
|
48 |
$this->qskey = 0;
|
@@ -248,6 +248,7 @@ class Child_Theme_Configurator_CSS {
|
|
248 |
if ($rule['right'] != $rule['top']):
|
249 |
$parts[1] = $rule['right'];
|
250 |
endif;
|
|
|
251 |
$rules .= ' ' . $key . ': ' . implode(' ', $parts) . ';' . LF;
|
252 |
else:
|
253 |
foreach ($rule as $side => $value):
|
@@ -661,16 +662,6 @@ class Child_Theme_Configurator_CSS {
|
|
661 |
$ruleid = $this->dict_rule[$rule];
|
662 |
$qsid = $matches[3];
|
663 |
$value = sanitize_text_field($_POST[$post_key]);
|
664 |
-
/*if (isset($this->val_ndx[$qsid][$ruleid]) && isset($this->val_ndx[$qsid][$ruleid]['child'])):
|
665 |
-
$child_value = $this->val_ndx[$qsid][$ruleid]['child'];
|
666 |
-
else:
|
667 |
-
$child_value = $this->val_ndx[$qsid][$ruleid]['child'] = '';
|
668 |
-
endif;
|
669 |
-
if (isset($this->val_ndx[$qsid][$ruleid]['parnt'])):
|
670 |
-
$parent_value = $this->val_ndx[$qsid][$ruleid]['parnt'];
|
671 |
-
else:
|
672 |
-
$parent_value = $this->val_ndx[$qsid][$ruleid]['parnt'] = '';
|
673 |
-
endif;*/
|
674 |
$important = empty($this->val_ndx[$qsid][$ruleid]['i']) ? 0 : $this->val_ndx[$qsid][$ruleid]['i'];
|
675 |
|
676 |
$selarr = $this->denorm_query_sel($qsid);
|
6 |
Class: Child_Theme_Configurator_CSS
|
7 |
Plugin URI: http://www.lilaeamedia.com/plugins/child-theme-configurator/
|
8 |
Description: Handles all CSS output, parsing, normalization
|
9 |
+
Version: 1.1.4
|
10 |
Author: Lilaea Media
|
11 |
Author URI: http://www.lilaeamedia.com/
|
12 |
Text Domain: chld_thm_cfg
|
42 |
|
43 |
function __construct() {
|
44 |
// scalars
|
45 |
+
$this->version = '1.1.4';
|
46 |
$this->querykey = 0;
|
47 |
$this->selkey = 0;
|
48 |
$this->qskey = 0;
|
248 |
if ($rule['right'] != $rule['top']):
|
249 |
$parts[1] = $rule['right'];
|
250 |
endif;
|
251 |
+
ksort($parts);
|
252 |
$rules .= ' ' . $key . ': ' . implode(' ', $parts) . ';' . LF;
|
253 |
else:
|
254 |
foreach ($rule as $side => $value):
|
662 |
$ruleid = $this->dict_rule[$rule];
|
663 |
$qsid = $matches[3];
|
664 |
$value = sanitize_text_field($_POST[$post_key]);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
665 |
$important = empty($this->val_ndx[$qsid][$ruleid]['i']) ? 0 : $this->val_ndx[$qsid][$ruleid]['i'];
|
666 |
|
667 |
$selarr = $this->denorm_query_sel($qsid);
|
includes/class-ctc-ui.php
CHANGED
@@ -5,7 +5,7 @@ if ( !defined('ABSPATH')) exit;
|
|
5 |
Class: Child_Theme_Configurator_UI
|
6 |
Plugin URI: http://www.lilaeamedia.com/plugins/child-theme-configurator/
|
7 |
Description: Handles the plugin User Interface
|
8 |
-
Version: 1.1.
|
9 |
Author: Lilaea Media
|
10 |
Author URI: http://www.lilaeamedia.com/
|
11 |
Text Domain: chld_thm_cfg
|
5 |
Class: Child_Theme_Configurator_UI
|
6 |
Plugin URI: http://www.lilaeamedia.com/plugins/child-theme-configurator/
|
7 |
Description: Handles the plugin User Interface
|
8 |
+
Version: 1.1.4
|
9 |
Author: Lilaea Media
|
10 |
Author URI: http://www.lilaeamedia.com/
|
11 |
Text Domain: chld_thm_cfg
|
includes/class-ctc.php
CHANGED
@@ -6,7 +6,7 @@ if ( !defined('ABSPATH')) exit;
|
|
6 |
Class: Child_Theme_Configurator
|
7 |
Plugin URI: http://www.lilaeamedia.com/plugins/child-theme-configurator/
|
8 |
Description: Main Controller Class
|
9 |
-
Version: 1.1.
|
10 |
Author: Lilaea Media
|
11 |
Author URI: http://www.lilaeamedia.com/
|
12 |
Text Domain: chld_thm_cfg
|
@@ -18,7 +18,7 @@ require_once('class-ctc-ui.php');
|
|
18 |
require_once('class-ctc-css.php');
|
19 |
class Child_Theme_Configurator {
|
20 |
|
21 |
-
var $version = '1.1.
|
22 |
var $css;
|
23 |
var $optionsName;
|
24 |
var $menuName;
|
6 |
Class: Child_Theme_Configurator
|
7 |
Plugin URI: http://www.lilaeamedia.com/plugins/child-theme-configurator/
|
8 |
Description: Main Controller Class
|
9 |
+
Version: 1.1.4
|
10 |
Author: Lilaea Media
|
11 |
Author URI: http://www.lilaeamedia.com/
|
12 |
Text Domain: chld_thm_cfg
|
18 |
require_once('class-ctc-css.php');
|
19 |
class Child_Theme_Configurator {
|
20 |
|
21 |
+
var $version = '1.1.4';
|
22 |
var $css;
|
23 |
var $optionsName;
|
24 |
var $menuName;
|
js/chld-thm-cfg.js
CHANGED
@@ -2,7 +2,7 @@
|
|
2 |
* Script: chld-thm-cfg.js
|
3 |
* Plugin URI: http://www.lilaeamedia.com/plugins/child-theme-configurator/
|
4 |
* Description: Handles jQuery, AJAX and other UI
|
5 |
-
* Version: 1.1.
|
6 |
* Author: Lilaea Media
|
7 |
* Author URI: http://www.lilaeamedia.com/
|
8 |
* License: GPLv2
|
2 |
* Script: chld-thm-cfg.js
|
3 |
* Plugin URI: http://www.lilaeamedia.com/plugins/child-theme-configurator/
|
4 |
* Description: Handles jQuery, AJAX and other UI
|
5 |
+
* Version: 1.1.4
|
6 |
* Author: Lilaea Media
|
7 |
* Author URI: http://www.lilaeamedia.com/
|
8 |
* License: GPLv2
|
js/chld-thm-cfg.min.js
CHANGED
@@ -2,7 +2,7 @@
|
|
2 |
* Script: chld-thm-cfg.js
|
3 |
* Plugin URI: http://www.lilaeamedia.com/plugins/child-theme-configurator/
|
4 |
* Description: Handles jQuery, AJAX and other UI
|
5 |
-
* Version: 1.1.
|
6 |
* Author: Lilaea Media
|
7 |
* Author URI: http://www.lilaeamedia.com/
|
8 |
* License: GPLv2
|
2 |
* Script: chld-thm-cfg.js
|
3 |
* Plugin URI: http://www.lilaeamedia.com/plugins/child-theme-configurator/
|
4 |
* Description: Handles jQuery, AJAX and other UI
|
5 |
+
* Version: 1.1.4
|
6 |
* Author: Lilaea Media
|
7 |
* Author URI: http://www.lilaeamedia.com/
|
8 |
* License: GPLv2
|
readme.txt
CHANGED
@@ -4,7 +4,7 @@ Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_i
|
|
4 |
Tags: child theme, custom theme, CSS, responsive design, CSS editor, theme generator
|
5 |
Requires at least: 3.5
|
6 |
Tested up to: 3.8
|
7 |
-
Stable tag: 1.1.
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
@@ -41,6 +41,26 @@ Why create Child Themes using the Child Theme Configurator?
|
|
41 |
|
42 |
== Frequently Asked Questions ==
|
43 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
44 |
= Where is the functions.php file? =
|
45 |
|
46 |
You can add your own functions.php file, and any other files and directories you need for your Child Theme. The Child Theme Configurator helps you identify and override selectors in the Parent stylesheet without touching the other files.
|
@@ -89,6 +109,9 @@ You can also create a secondary stylesheet that contains @font-face rules and im
|
|
89 |
|
90 |
== Changelog ==
|
91 |
|
|
|
|
|
|
|
92 |
= 1.1.3 =
|
93 |
* Fixed bug that assumed lowercase only for theme slugs. (Thanks to timk)
|
94 |
* Fixed update redirect to execute on first run
|
@@ -122,6 +145,9 @@ You can also create a secondary stylesheet that contains @font-face rules and im
|
|
122 |
|
123 |
== Upgrade Notice ==
|
124 |
|
|
|
|
|
|
|
125 |
= 1.1.1 =
|
126 |
* This release fixes a major bug that caused input values containing '0' to be ignored
|
127 |
* Several other bugs fixed/improvements made, see change log for details.
|
4 |
Tags: child theme, custom theme, CSS, responsive design, CSS editor, theme generator
|
5 |
Requires at least: 3.5
|
6 |
Tested up to: 3.8
|
7 |
+
Stable tag: 1.1.4
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
41 |
|
42 |
== Frequently Asked Questions ==
|
43 |
|
44 |
+
= Where is it in the Admin? =
|
45 |
+
|
46 |
+
The Child Theme Configurator can be found under the "Tools" menu in the WordPress Admin. Click "Child Themes" to get started.
|
47 |
+
|
48 |
+
Click the "Help" tab at the top right for a quick reference.
|
49 |
+
|
50 |
+
= Where are the styles? The configurator doesn't show anything! =
|
51 |
+
|
52 |
+
All of the styles are loaded dynamically. You must start typing in the text boxes to select styles to edit.
|
53 |
+
|
54 |
+
"Base" is the query group that contains styles that are not associated with any particular "At-rule."
|
55 |
+
|
56 |
+
Start by clicking the "Query/Selector" tab and typing "base" in the first box. You can then start typing in the second box to retrieve the style selectors to edit.
|
57 |
+
|
58 |
+
= If the parent theme changes (e.g., upgrade), do I have to update the child theme? =
|
59 |
+
|
60 |
+
No. This is the point of using child themes. Changes to the parent theme are automatically inherited by the child theme.
|
61 |
+
|
62 |
+
A child theme is not a "copy" of the parent theme. It is a special feature of WordPress that let's you override specific styles and functions leaving the rest of the theme intact. The only time you need to make changes after an upgrade is if the parent removes or changes style or function names. Quality themes should identify any deprecated functions or styles in the upgrade notes so that child theme users can make adjustments accordingly.
|
63 |
+
|
64 |
= Where is the functions.php file? =
|
65 |
|
66 |
You can add your own functions.php file, and any other files and directories you need for your Child Theme. The Child Theme Configurator helps you identify and override selectors in the Parent stylesheet without touching the other files.
|
109 |
|
110 |
== Changelog ==
|
111 |
|
112 |
+
= 1.1.4 =
|
113 |
+
* Fixed sort bug in shorthand parser that was returning rules in wrong order
|
114 |
+
|
115 |
= 1.1.3 =
|
116 |
* Fixed bug that assumed lowercase only for theme slugs. (Thanks to timk)
|
117 |
* Fixed update redirect to execute on first run
|
145 |
|
146 |
== Upgrade Notice ==
|
147 |
|
148 |
+
= 1.1.4 =
|
149 |
+
* Fixed sort bug in shorthand parser that was returning rules in wrong order
|
150 |
+
|
151 |
= 1.1.1 =
|
152 |
* This release fixes a major bug that caused input values containing '0' to be ignored
|
153 |
* Several other bugs fixed/improvements made, see change log for details.
|