Version Description
Version 1.7.3 now converts @import statements to link tags and checks parent theme for hard-coded stylesheet link tags and other problematic code issues. 1.7.3.1 added dismiss option to warnings by popular demand.
Download this release
Release Info
Developer | lilaeamedia |
Plugin | Child Theme Configurator |
Version | 1.7.3.1 |
Comparing to | |
See all releases |
Code changes from version 1.7.3 to 1.7.3.1
- child-theme-configurator.php +2 -2
- includes/class-ctc-css.php +3 -1
- includes/class-ctc-ui.php +5 -16
- includes/class-ctc.php +9 -5
- includes/forms/parent-child.php +3 -3
- js/chld-thm-cfg.js +1 -1
- lang/chld_thm_cfg.pot +67 -63
- readme.txt +3 -2
child-theme-configurator.php
CHANGED
@@ -6,7 +6,7 @@ if ( !defined( 'ABSPATH' ) ) exit;
|
|
6 |
Plugin Name: Child Theme Configurator
|
7 |
Plugin URI: http://www.childthemeconfigurator.com
|
8 |
Description: Create a child theme that follows WP best practice to enqueue stylesheets. Easy to use CSS editor lets you find, preview and customize any style.
|
9 |
-
Version: 1.7.3
|
10 |
Author: Lilaea Media
|
11 |
Author URI: http://www.lilaeamedia.com
|
12 |
Text Domain: chld_thm_cfg
|
@@ -22,7 +22,7 @@ if ( !defined( 'ABSPATH' ) ) exit;
|
|
22 |
define( 'CHLD_THM_CFG_DOCS_URL', "http://www.childthemeconfigurator.com" );
|
23 |
defined( 'CHLD_THM_CFG_OPTIONS' ) or
|
24 |
define( 'CHLD_THM_CFG_OPTIONS', 'chld_thm_cfg_options' );
|
25 |
-
define( 'CHLD_THM_CFG_VERSION', '1.7.3' );
|
26 |
define( 'CHLD_THM_CFG_MIN_WP_VERSION', '3.7' );
|
27 |
defined( 'CHLD_THM_CFG_BPSEL' ) or
|
28 |
define( 'CHLD_THM_CFG_BPSEL', '2500' );
|
6 |
Plugin Name: Child Theme Configurator
|
7 |
Plugin URI: http://www.childthemeconfigurator.com
|
8 |
Description: Create a child theme that follows WP best practice to enqueue stylesheets. Easy to use CSS editor lets you find, preview and customize any style.
|
9 |
+
Version: 1.7.3.1
|
10 |
Author: Lilaea Media
|
11 |
Author URI: http://www.lilaeamedia.com
|
12 |
Text Domain: chld_thm_cfg
|
22 |
define( 'CHLD_THM_CFG_DOCS_URL', "http://www.childthemeconfigurator.com" );
|
23 |
defined( 'CHLD_THM_CFG_OPTIONS' ) or
|
24 |
define( 'CHLD_THM_CFG_OPTIONS', 'chld_thm_cfg_options' );
|
25 |
+
define( 'CHLD_THM_CFG_VERSION', '1.7.3.1' );
|
26 |
define( 'CHLD_THM_CFG_MIN_WP_VERSION', '3.7' );
|
27 |
defined( 'CHLD_THM_CFG_BPSEL' ) or
|
28 |
define( 'CHLD_THM_CFG_BPSEL', '2500' );
|
includes/class-ctc-css.php
CHANGED
@@ -6,7 +6,7 @@ if ( !defined( 'ABSPATH' ) ) exit;
|
|
6 |
Class: ChildThemeConfiguratorCSS
|
7 |
Plugin URI: http://www.childthemeconfigurator.com/
|
8 |
Description: Handles all CSS output, parsing, normalization
|
9 |
-
Version: 1.7.3
|
10 |
Author: Lilaea Media
|
11 |
Author URI: http://www.lilaeamedia.com/
|
12 |
Text Domain: chld_thm_cfg
|
@@ -41,6 +41,7 @@ class ChildThemeConfiguratorCSS {
|
|
41 |
var $recent; // history of edited styles
|
42 |
var $enqueue; // load parent css method (enqueue, import, none)
|
43 |
var $converted; // @imports coverted to <link>?
|
|
|
44 |
var $child_name; // child theme name
|
45 |
var $child_author; // child theme author
|
46 |
var $child_authoruri; // child theme author website
|
@@ -84,6 +85,7 @@ class ChildThemeConfiguratorCSS {
|
|
84 |
'querykey',
|
85 |
'recent',
|
86 |
'converted',
|
|
|
87 |
);
|
88 |
var $dicts = array(
|
89 |
'dict_qs',
|
6 |
Class: ChildThemeConfiguratorCSS
|
7 |
Plugin URI: http://www.childthemeconfigurator.com/
|
8 |
Description: Handles all CSS output, parsing, normalization
|
9 |
+
Version: 1.7.3.1
|
10 |
Author: Lilaea Media
|
11 |
Author URI: http://www.lilaeamedia.com/
|
12 |
Text Domain: chld_thm_cfg
|
41 |
var $recent; // history of edited styles
|
42 |
var $enqueue; // load parent css method (enqueue, import, none)
|
43 |
var $converted; // @imports coverted to <link>?
|
44 |
+
var $nowarn; // ignore stylesheet handling warnings
|
45 |
var $child_name; // child theme name
|
46 |
var $child_author; // child theme author
|
47 |
var $child_authoruri; // child theme author website
|
85 |
'querykey',
|
86 |
'recent',
|
87 |
'converted',
|
88 |
+
'nowarn',
|
89 |
);
|
90 |
var $dicts = array(
|
91 |
'dict_qs',
|
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.childthemeconfigurator.com/
|
7 |
Description: Handles the plugin User Interface
|
8 |
-
Version: 1.7.3
|
9 |
Author: Lilaea Media
|
10 |
Author URI: http://www.lilaeamedia.com/
|
11 |
Text Domain: chld_thm_cfg
|
@@ -28,7 +28,7 @@ class ChildThemeConfiguratorUI {
|
|
28 |
$child = $css->get_prop( 'child' );
|
29 |
$hidechild = ( count( $themes[ 'child' ] ) ? '' : 'style="display:none"' );
|
30 |
$enqueueset = ( isset( $css->enqueue ) && $child );
|
31 |
-
$this->parent_theme_check();
|
32 |
$imports = $css->get_prop( 'imports' );
|
33 |
$id = 0;
|
34 |
$this->ctc()->fs_method = get_filesystem_method();
|
@@ -46,18 +46,6 @@ class ChildThemeConfiguratorUI {
|
|
46 |
|
47 |
function parent_theme_check() {
|
48 |
// check header for hard-coded
|
49 |
-
/*
|
50 |
-
foreach(glob($path_to_check.'*.txt') as $filename)
|
51 |
-
{
|
52 |
-
foreach(file($filename) as $fli=>$fl)
|
53 |
-
{
|
54 |
-
if(strpos($fl, $needle)!==false)
|
55 |
-
{
|
56 |
-
echo $filename.' on line '.($fli+1).': '.$fl;
|
57 |
-
}
|
58 |
-
}
|
59 |
-
}
|
60 |
-
*/
|
61 |
$bad_practice_descr = array(
|
62 |
// Stylesheets should be enqueued using the <code>wp_enqueue_scripts</code> action.
|
63 |
'links' => __( 'A stylesheet link tag is hard-coded into the header template.', 'chld_thm_cfg' ),
|
@@ -65,8 +53,9 @@ foreach(glob($path_to_check.'*.txt') as $filename)
|
|
65 |
// <code>wp_head()</code> should be located just before the closing <code></head></code> tag.
|
66 |
'wphead' => __( 'Code exists between the <code>wp_head()</code> function and the closing <code></head></code> tag.', 'chld_thm_cfg'),
|
67 |
);
|
68 |
-
$
|
69 |
-
|
|
|
70 |
$contents = file_get_contents( $file );
|
71 |
$contents = preg_replace( "/\/\/.*?(\?>|\n)|\/\*.*?\*\/|<\!\-\-.*?\-\->/s", '', $contents );
|
72 |
// check for linked stylesheets
|
5 |
Class: Child_Theme_Configurator_UI
|
6 |
Plugin URI: http://www.childthemeconfigurator.com/
|
7 |
Description: Handles the plugin User Interface
|
8 |
+
Version: 1.7.3.1
|
9 |
Author: Lilaea Media
|
10 |
Author URI: http://www.lilaeamedia.com/
|
11 |
Text Domain: chld_thm_cfg
|
28 |
$child = $css->get_prop( 'child' );
|
29 |
$hidechild = ( count( $themes[ 'child' ] ) ? '' : 'style="display:none"' );
|
30 |
$enqueueset = ( isset( $css->enqueue ) && $child );
|
31 |
+
if ( empty( $css->nowarn ) ) $this->parent_theme_check();
|
32 |
$imports = $css->get_prop( 'imports' );
|
33 |
$id = 0;
|
34 |
$this->ctc()->fs_method = get_filesystem_method();
|
46 |
|
47 |
function parent_theme_check() {
|
48 |
// check header for hard-coded
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
49 |
$bad_practice_descr = array(
|
50 |
// Stylesheets should be enqueued using the <code>wp_enqueue_scripts</code> action.
|
51 |
'links' => __( 'A stylesheet link tag is hard-coded into the header template.', 'chld_thm_cfg' ),
|
53 |
// <code>wp_head()</code> should be located just before the closing <code></head></code> tag.
|
54 |
'wphead' => __( 'Code exists between the <code>wp_head()</code> function and the closing <code></head></code> tag.', 'chld_thm_cfg'),
|
55 |
);
|
56 |
+
$parentfile = trailingslashit( get_theme_root() ) . trailingslashit( $this->ctc()->get_current_parent() ) . 'header.php';
|
57 |
+
$childfile = trailingslashit( get_theme_root() ) . trailingslashit( $this->ctc()->css->get_prop( 'child' ) ) . 'header.php';
|
58 |
+
if ( $file = ( file_exists( $childfile ) ? $childfile : ( file_exists( $parentfile ) ? $parentfile : FALSE ) ) ):
|
59 |
$contents = file_get_contents( $file );
|
60 |
$contents = preg_replace( "/\/\/.*?(\?>|\n)|\/\*.*?\*\/|<\!\-\-.*?\-\->/s", '', $contents );
|
61 |
// check for linked stylesheets
|
includes/class-ctc.php
CHANGED
@@ -6,7 +6,7 @@ if ( !defined( 'ABSPATH' ) ) exit;
|
|
6 |
Class: Child_Theme_Configurator
|
7 |
Plugin URI: http://www.childthemeconfigurator.com/
|
8 |
Description: Main Controller Class
|
9 |
-
Version: 1.7.3
|
10 |
Author: Lilaea Media
|
11 |
Author URI: http://www.lilaeamedia.com/
|
12 |
Text Domain: chld_thm_cfg
|
@@ -63,6 +63,7 @@ class ChildThemeConfiguratorAdmin {
|
|
63 |
'child_version',
|
64 |
'configtype', // backward compatability
|
65 |
'revert',
|
|
|
66 |
);
|
67 |
var $actionfields = array(
|
68 |
'load_styles',
|
@@ -108,7 +109,7 @@ class ChildThemeConfiguratorAdmin {
|
|
108 |
$this->ui->render();
|
109 |
}
|
110 |
function enqueue_scripts() {
|
111 |
-
wp_enqueue_style( 'chld-thm-cfg-admin', CHLD_THM_CFG_URL . 'css/chld-thm-cfg.css', array(), '1.7.3' );
|
112 |
|
113 |
// we need to use local jQuery UI Widget/Menu/Selectmenu 1.11.2 because selectmenu is not included in < 1.11.2
|
114 |
// this will be updated in a later release to use WP Core scripts when it is widely adopted
|
@@ -581,11 +582,13 @@ class ChildThemeConfiguratorAdmin {
|
|
581 |
// if no errors so far, we are good to create child theme
|
582 |
if ( empty( $this->errors ) ):
|
583 |
// save imports in case this is a rebuild
|
584 |
-
$imports
|
|
|
585 |
// reset everything else
|
586 |
-
$this->css
|
587 |
// restore imports if this is a rebuild
|
588 |
-
$this->css->imports
|
|
|
589 |
// check if we have additional files from legacy plugin extension. if so, we have to override
|
590 |
// function to support wp_filesystem requirements
|
591 |
if ( $this->is_theme( $configtype ) ):
|
@@ -613,6 +616,7 @@ class ChildThemeConfiguratorAdmin {
|
|
613 |
$this->css->set_prop( 'child_tags', $tags );
|
614 |
$this->css->set_prop( 'child_version', strlen( $version ) ? $version : '1.0' );
|
615 |
|
|
|
616 |
// set stylesheet handling option
|
617 |
if ( isset( $_POST[ 'ctc_parent_enqueue' ] ) )
|
618 |
$this->css->set_prop( 'enqueue', sanitize_text_field( $_POST[ 'ctc_parent_enqueue' ] ) );
|
6 |
Class: Child_Theme_Configurator
|
7 |
Plugin URI: http://www.childthemeconfigurator.com/
|
8 |
Description: Main Controller Class
|
9 |
+
Version: 1.7.3.1
|
10 |
Author: Lilaea Media
|
11 |
Author URI: http://www.lilaeamedia.com/
|
12 |
Text Domain: chld_thm_cfg
|
63 |
'child_version',
|
64 |
'configtype', // backward compatability
|
65 |
'revert',
|
66 |
+
'nowarn',
|
67 |
);
|
68 |
var $actionfields = array(
|
69 |
'load_styles',
|
109 |
$this->ui->render();
|
110 |
}
|
111 |
function enqueue_scripts() {
|
112 |
+
wp_enqueue_style( 'chld-thm-cfg-admin', CHLD_THM_CFG_URL . 'css/chld-thm-cfg.css', array(), '1.7.3.1' );
|
113 |
|
114 |
// we need to use local jQuery UI Widget/Menu/Selectmenu 1.11.2 because selectmenu is not included in < 1.11.2
|
115 |
// this will be updated in a later release to use WP Core scripts when it is widely adopted
|
582 |
// if no errors so far, we are good to create child theme
|
583 |
if ( empty( $this->errors ) ):
|
584 |
// save imports in case this is a rebuild
|
585 |
+
$imports = $this->css->imports;
|
586 |
+
$nowarn = ( $nowarn || $this->css->nowarn ) ? 1 : 0;
|
587 |
// reset everything else
|
588 |
+
$this->css = new ChildThemeConfiguratorCSS();
|
589 |
// restore imports if this is a rebuild
|
590 |
+
$this->css->imports = $imports;
|
591 |
+
$this->css->nowarn = $nowarn;
|
592 |
// check if we have additional files from legacy plugin extension. if so, we have to override
|
593 |
// function to support wp_filesystem requirements
|
594 |
if ( $this->is_theme( $configtype ) ):
|
616 |
$this->css->set_prop( 'child_tags', $tags );
|
617 |
$this->css->set_prop( 'child_version', strlen( $version ) ? $version : '1.0' );
|
618 |
|
619 |
+
$this->css->set_prop( 'nowarn', $nowarn );
|
620 |
// set stylesheet handling option
|
621 |
if ( isset( $_POST[ 'ctc_parent_enqueue' ] ) )
|
622 |
$this->css->set_prop( 'enqueue', sanitize_text_field( $_POST[ 'ctc_parent_enqueue' ] ) );
|
includes/forms/parent-child.php
CHANGED
@@ -109,10 +109,10 @@ if ( !defined( 'ABSPATH' ) ) exit;
|
|
109 |
<div class="ctc-input-cell ctc-section-toggle" id="ctc_stylesheet_handling">
|
110 |
<strong><?php _e( 'Stylesheet handling', 'chld_thm_cfg' ); ?></strong>
|
111 |
<?php _e( '(click to view options)', 'chld_thm_cfg' ); ?>
|
112 |
-
</div><?php if ( count( $this->warnings ) &&
|
113 |
<div class="ctc-input-cell-wide update-nag"><strong><?php _e( 'This theme may not apply child theme styles correctly with the current settings:', 'chld_thm_cfg' ); ?></strong><ul class="smaller">
|
114 |
<?php foreach ( $this->warnings as $warning ) echo '<li>' . $warning . '</li>' . LF; ?>
|
115 |
-
</ul> <a href="#" class="ctc-section-toggle" id="ctc_stylesheet_handling2"><?php _e( 'View options', 'chld_thm_cfg'); ?></a></div>
|
116 |
<?php endif; ?>
|
117 |
<div class="ctc-section-toggle-content clear" id="ctc_stylesheet_handling_content">
|
118 |
<div class="ctc-input-cell clear"><a href="<?php echo CHLD_THM_CFG_DOCS_URL; ?>/how-to-use/#stylesheet_handling" target="_blank"><?php _e( 'Which option should I use?', 'chld_thm_cfg' ); ?></a></div>
|
@@ -140,7 +140,7 @@ if ( !defined( 'ABSPATH' ) ) exit;
|
|
140 |
<div class="ctc-input-cell">
|
141 |
<label>
|
142 |
<input class="ctc_radio ctc-themeonly" id="ctc_parent_enqueue_child" name="ctc_parent_enqueue" type="radio"
|
143 |
-
value="
|
144 |
<?php _e( 'Enqueue child stylesheet', 'chld_thm_cfg' ); ?>
|
145 |
</label>
|
146 |
</strong> </div>
|
109 |
<div class="ctc-input-cell ctc-section-toggle" id="ctc_stylesheet_handling">
|
110 |
<strong><?php _e( 'Stylesheet handling', 'chld_thm_cfg' ); ?></strong>
|
111 |
<?php _e( '(click to view options)', 'chld_thm_cfg' ); ?>
|
112 |
+
</div><?php if ( empty( $css->nowarn ) && count( $this->warnings ) && in_array( $css->enqueue, array( 'none', 'enqueue' ) ) ):?>
|
113 |
<div class="ctc-input-cell-wide update-nag"><strong><?php _e( 'This theme may not apply child theme styles correctly with the current settings:', 'chld_thm_cfg' ); ?></strong><ul class="smaller">
|
114 |
<?php foreach ( $this->warnings as $warning ) echo '<li>' . $warning . '</li>' . LF; ?>
|
115 |
+
</ul><span class="alignright"><label class="smaller"><input type="checkbox" name="ctc_nowarn" value="1" /><?php _e( "Don't show again.", 'chld_thm_cfg'); ?></label> <a href="#" class="ctc-section-toggle" id="ctc_stylesheet_handling2"><?php _e( 'View options', 'chld_thm_cfg'); ?></a></span></div>
|
116 |
<?php endif; ?>
|
117 |
<div class="ctc-section-toggle-content clear" id="ctc_stylesheet_handling_content">
|
118 |
<div class="ctc-input-cell clear"><a href="<?php echo CHLD_THM_CFG_DOCS_URL; ?>/how-to-use/#stylesheet_handling" target="_blank"><?php _e( 'Which option should I use?', 'chld_thm_cfg' ); ?></a></div>
|
140 |
<div class="ctc-input-cell">
|
141 |
<label>
|
142 |
<input class="ctc_radio ctc-themeonly" id="ctc_parent_enqueue_child" name="ctc_parent_enqueue" type="radio"
|
143 |
+
value="child" <?php checked( 'child', $parent_handling ); ?> <?php echo $disabled; ?> />
|
144 |
<?php _e( 'Enqueue child stylesheet', 'chld_thm_cfg' ); ?>
|
145 |
</label>
|
146 |
</strong> </div>
|
js/chld-thm-cfg.js
CHANGED
@@ -2,7 +2,7 @@
|
|
2 |
* Script: chld-thm-cfg.js
|
3 |
* Plugin URI: http://www.childthemeconfigurator.com/
|
4 |
* Description: Handles jQuery, AJAX and other UI
|
5 |
-
* Version: 1.7.3
|
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.childthemeconfigurator.com/
|
4 |
* Description: Handles jQuery, AJAX and other UI
|
5 |
+
* Version: 1.7.3.1
|
6 |
* Author: Lilaea Media
|
7 |
* Author URI: http://www.lilaeamedia.com/
|
8 |
* License: GPLv2
|
lang/chld_thm_cfg.pot
CHANGED
@@ -4,7 +4,7 @@ msgid ""
|
|
4 |
msgstr ""
|
5 |
"Project-Id-Version: Child Theme Configurator 1.7.3\n"
|
6 |
"Report-Msgid-Bugs-To: http://wordpress.org/tag/child-theme-configurator\n"
|
7 |
-
"POT-Creation-Date: 2015-03-
|
8 |
"MIME-Version: 1.0\n"
|
9 |
"Content-Type: text/plain; charset=UTF-8\n"
|
10 |
"Content-Transfer-Encoding: 8bit\n"
|
@@ -28,194 +28,194 @@ msgstr ""
|
|
28 |
msgid "Child Theme Configurator requires WordPress version %s or later."
|
29 |
msgstr ""
|
30 |
|
31 |
-
#: includes/class-ctc-ui.php:
|
32 |
msgid "A stylesheet link tag is hard-coded into the header template."
|
33 |
msgstr ""
|
34 |
|
35 |
-
#: includes/class-ctc-ui.php:
|
36 |
msgid "<code>wp_enqueue_style()</code> called from the header template."
|
37 |
msgstr ""
|
38 |
|
39 |
-
#: includes/class-ctc-ui.php:
|
40 |
msgid ""
|
41 |
"Code exists between the <code>wp_head()</code> function and the closing "
|
42 |
"<code></head></code> tag."
|
43 |
msgstr ""
|
44 |
|
45 |
-
#: includes/class-ctc-ui.php:
|
46 |
msgid "Child Theme files modified successfully."
|
47 |
msgstr ""
|
48 |
|
49 |
-
#: includes/class-ctc-ui.php:
|
50 |
msgid ""
|
51 |
"Child Theme <strong>%s</strong> has been generated successfully.\n"
|
52 |
" "
|
53 |
msgstr ""
|
54 |
|
55 |
-
#: includes/class-ctc-ui.php:
|
56 |
msgid "IMPORTANT:"
|
57 |
msgstr ""
|
58 |
|
59 |
-
#: includes/class-ctc-ui.php:
|
60 |
msgid "Go to Themes"
|
61 |
msgstr ""
|
62 |
|
63 |
-
#: includes/class-ctc-ui.php:
|
64 |
msgid "Network enable"
|
65 |
msgstr ""
|
66 |
|
67 |
-
#: includes/class-ctc-ui.php:
|
68 |
msgid "your child theme."
|
69 |
msgstr ""
|
70 |
|
71 |
-
#: includes/class-ctc-ui.php:
|
72 |
msgid "Live Preview"
|
73 |
msgstr ""
|
74 |
|
75 |
-
#: includes/class-ctc-ui.php:
|
76 |
msgid "Test your child theme"
|
77 |
msgstr ""
|
78 |
|
79 |
-
#: includes/class-ctc-ui.php:
|
80 |
msgid "before activating."
|
81 |
msgstr ""
|
82 |
|
83 |
-
#: includes/class-ctc.php:
|
84 |
msgid "URL/None"
|
85 |
msgstr ""
|
86 |
|
87 |
-
#: includes/class-ctc.php:
|
88 |
msgid "Origin"
|
89 |
msgstr ""
|
90 |
|
91 |
-
#: includes/class-ctc.php:
|
92 |
msgid "Color 1"
|
93 |
msgstr ""
|
94 |
|
95 |
-
#: includes/class-ctc.php:
|
96 |
msgid "Color 2"
|
97 |
msgstr ""
|
98 |
|
99 |
-
#: includes/class-ctc.php:
|
100 |
msgid "Width/None"
|
101 |
msgstr ""
|
102 |
|
103 |
-
#: includes/class-ctc.php:
|
104 |
msgid "Style"
|
105 |
msgstr ""
|
106 |
|
107 |
-
#: includes/class-ctc.php:
|
108 |
msgid "Color"
|
109 |
msgstr ""
|
110 |
|
111 |
-
#: includes/class-ctc.php:
|
112 |
msgid "Are you sure? This will replace your current settings."
|
113 |
msgstr ""
|
114 |
|
115 |
-
#: includes/class-ctc.php:
|
116 |
msgid "<span style=\"font-size:10px\">!</span>"
|
117 |
msgstr ""
|
118 |
|
119 |
-
#: includes/class-ctc.php:
|
120 |
msgid "Selectors"
|
121 |
msgstr ""
|
122 |
|
123 |
-
#: includes/class-ctc.php:
|
124 |
msgid "Close"
|
125 |
msgstr ""
|
126 |
|
127 |
-
#: includes/class-ctc.php:
|
128 |
msgid "Edit"
|
129 |
msgstr ""
|
130 |
|
131 |
-
#: includes/class-ctc.php:
|
132 |
msgid "Cancel"
|
133 |
msgstr ""
|
134 |
|
135 |
-
#: includes/class-ctc.php:
|
136 |
msgid "Rename"
|
137 |
msgstr ""
|
138 |
|
139 |
-
#: includes/class-ctc.php:
|
140 |
msgid "The stylesheet cannot be displayed."
|
141 |
msgstr ""
|
142 |
|
143 |
-
#: includes/class-ctc.php:
|
144 |
msgid "(Child Only)"
|
145 |
msgstr ""
|
146 |
|
147 |
-
#: includes/class-ctc.php:
|
148 |
msgid "Please enter a valid Child Theme."
|
149 |
msgstr ""
|
150 |
|
151 |
-
#: includes/class-ctc.php:
|
152 |
msgid "Please enter a valid Child Theme name."
|
153 |
msgstr ""
|
154 |
|
155 |
-
#: includes/class-ctc.php:
|
156 |
msgid "<strong>%s</strong> exists. Please enter a different Child Theme"
|
157 |
msgstr ""
|
158 |
|
159 |
-
#: includes/class-ctc.php:
|
160 |
msgid "The page could not be loaded correctly."
|
161 |
msgstr ""
|
162 |
|
163 |
-
#: includes/class-ctc.php:
|
164 |
msgid ""
|
165 |
"Conflicting or out-of-date jQuery libraries were loaded by another plugin:"
|
166 |
msgstr ""
|
167 |
|
168 |
-
#: includes/class-ctc.php:
|
169 |
msgid "Deactivating or replacing plugins may resolve this issue."
|
170 |
msgstr ""
|
171 |
|
172 |
-
#: includes/class-ctc.php:
|
173 |
msgid "%sWhy am I seeing this?%s"
|
174 |
msgstr ""
|
175 |
|
176 |
-
#: includes/class-ctc.php:
|
177 |
msgid "Zip file creation failed."
|
178 |
msgstr ""
|
179 |
|
180 |
-
#: includes/class-ctc.php:
|
181 |
msgid "The Functions file is required and cannot be deleted."
|
182 |
msgstr ""
|
183 |
|
184 |
-
#: includes/class-ctc.php:
|
185 |
msgid "You do not have permission to configure child themes."
|
186 |
msgstr ""
|
187 |
|
188 |
-
#: includes/class-ctc.php:
|
189 |
msgid "%s does not exist. Please select a valid Parent Theme."
|
190 |
msgstr ""
|
191 |
|
192 |
-
#: includes/class-ctc.php:
|
193 |
msgid "Please select a valid Parent Theme."
|
194 |
msgstr ""
|
195 |
|
196 |
-
#: includes/class-ctc.php:
|
197 |
msgid "Please enter a valid Child Theme directory."
|
198 |
msgstr ""
|
199 |
|
200 |
-
#: includes/class-ctc.php:
|
201 |
msgid "Please enter a valid Child Theme template name."
|
202 |
msgstr ""
|
203 |
|
204 |
-
#: includes/class-ctc.php:
|
205 |
msgid ""
|
206 |
"<strong>%s</strong> exists. Please enter a different Child Theme template "
|
207 |
"name."
|
208 |
msgstr ""
|
209 |
|
210 |
-
#: includes/class-ctc.php:
|
211 |
msgid "Your theme directories are not writable."
|
212 |
msgstr ""
|
213 |
|
214 |
-
#: includes/class-ctc.php:
|
215 |
msgid "Your stylesheet is not writable."
|
216 |
msgstr ""
|
217 |
|
218 |
-
#: includes/class-ctc.php:
|
219 |
msgid ""
|
220 |
"A closing PHP tag was detected in Child theme functions file so \"Parent "
|
221 |
"Stylesheet Handling\" option was not configured. Closing PHP at the end of "
|
@@ -224,47 +224,47 @@ msgid ""
|
|
224 |
"click \"Generate/Rebuild Child Theme Files\" again."
|
225 |
msgstr ""
|
226 |
|
227 |
-
#: includes/class-ctc.php:
|
228 |
msgid "Could not delete file."
|
229 |
msgstr ""
|
230 |
|
231 |
-
#: includes/class-ctc.php:
|
232 |
msgid "Could not set write permissions."
|
233 |
msgstr ""
|
234 |
|
235 |
-
#: includes/class-ctc.php:
|
236 |
msgid "There were errors while resetting permissions."
|
237 |
msgstr ""
|
238 |
|
239 |
-
#: includes/class-ctc.php:
|
240 |
msgid "Could not upload file."
|
241 |
msgstr ""
|
242 |
|
243 |
-
#: includes/class-ctc.php:
|
244 |
msgid ""
|
245 |
"Child Theme Configurator is unable to write to the stylesheet. This can be "
|
246 |
"resolved using one of the following options:<ol>"
|
247 |
msgstr ""
|
248 |
|
249 |
-
#: includes/class-ctc.php:
|
250 |
msgid ""
|
251 |
"<li>Temporarily make the stylesheet writable by clicking the button below. "
|
252 |
"You should change this back when you are finished editing for security by "
|
253 |
"clicking \"Make read-only\" under the \"Files\" tab.</li>"
|
254 |
msgstr ""
|
255 |
|
256 |
-
#: includes/class-ctc.php:
|
257 |
msgid "Temporarily make stylesheet writable"
|
258 |
msgstr ""
|
259 |
|
260 |
-
#: includes/class-ctc.php:
|
261 |
msgid ""
|
262 |
"<li><a target=\"_blank\" href=\"http://codex.wordpress.org/Editing_wp-"
|
263 |
"config.php#WordPress_Upgrade_Constants\" title=\"Editin wp-config.php\">Add "
|
264 |
"your FTP/SSH credentials to the WordPress config file</a>.</li>"
|
265 |
msgstr ""
|
266 |
|
267 |
-
#: includes/class-ctc.php:
|
268 |
msgid ""
|
269 |
"<li><a target=\"_blank\" href=\"http://technet.microsoft.com/en-us/library/"
|
270 |
"cc771170\" title=\"Setting Application Pool Identity\">Assign WordPress to "
|
@@ -272,7 +272,7 @@ msgid ""
|
|
272 |
"li>"
|
273 |
msgstr ""
|
274 |
|
275 |
-
#: includes/class-ctc.php:
|
276 |
msgid ""
|
277 |
"<li><a target=\"_blank\" href=\"http://codex.wordpress.org/"
|
278 |
"Changing_File_Permissions\" title=\"Changing File Permissions\">Set the "
|
@@ -280,11 +280,11 @@ msgid ""
|
|
280 |
"li>"
|
281 |
msgstr ""
|
282 |
|
283 |
-
#: includes/class-ctc.php:
|
284 |
msgid "<li>Run PHP under Apache with suEXEC (contact your web host).</li>"
|
285 |
msgstr ""
|
286 |
|
287 |
-
#: includes/class-ctc.php:
|
288 |
msgid ""
|
289 |
"This Child Theme is not owned by your website account. It may have been "
|
290 |
"created by a prior version of this plugin or by another program. Moving "
|
@@ -293,25 +293,25 @@ msgid ""
|
|
293 |
"below."
|
294 |
msgstr ""
|
295 |
|
296 |
-
#: includes/class-ctc.php:
|
297 |
msgid "Correct Child Theme Permissions"
|
298 |
msgstr ""
|
299 |
|
300 |
-
#: includes/class-ctc.php:
|
301 |
msgid ""
|
302 |
"Child Theme Configurator needs to update its interal data. Please set your "
|
303 |
"preferences below and click \"Generate Child Theme Files\" to update your "
|
304 |
"configuration."
|
305 |
msgstr ""
|
306 |
|
307 |
-
#: includes/class-ctc.php:
|
308 |
msgid ""
|
309 |
"<strong>However, some styles could not be parsed due to memory limits.</"
|
310 |
"strong> Try deselecting \"Additional Stylesheets\" below and click "
|
311 |
"\"Generate/Rebuild Child Theme Files\". %sWhy am I seeing this?%s"
|
312 |
msgstr ""
|
313 |
|
314 |
-
#: includes/class-ctc.php:
|
315 |
msgid ""
|
316 |
"Child Theme Configurator did not detect any configuration data because a "
|
317 |
"previously configured Child Theme has been removed. Please set your "
|
@@ -678,6 +678,10 @@ msgid ""
|
|
678 |
"settings:"
|
679 |
msgstr ""
|
680 |
|
|
|
|
|
|
|
|
|
681 |
#: includes/forms/parent-child.php:115
|
682 |
msgid "View options"
|
683 |
msgstr ""
|
4 |
msgstr ""
|
5 |
"Project-Id-Version: Child Theme Configurator 1.7.3\n"
|
6 |
"Report-Msgid-Bugs-To: http://wordpress.org/tag/child-theme-configurator\n"
|
7 |
+
"POT-Creation-Date: 2015-03-25 19:56:57+00:00\n"
|
8 |
"MIME-Version: 1.0\n"
|
9 |
"Content-Type: text/plain; charset=UTF-8\n"
|
10 |
"Content-Transfer-Encoding: 8bit\n"
|
28 |
msgid "Child Theme Configurator requires WordPress version %s or later."
|
29 |
msgstr ""
|
30 |
|
31 |
+
#: includes/class-ctc-ui.php:51
|
32 |
msgid "A stylesheet link tag is hard-coded into the header template."
|
33 |
msgstr ""
|
34 |
|
35 |
+
#: includes/class-ctc-ui.php:52
|
36 |
msgid "<code>wp_enqueue_style()</code> called from the header template."
|
37 |
msgstr ""
|
38 |
|
39 |
+
#: includes/class-ctc-ui.php:54
|
40 |
msgid ""
|
41 |
"Code exists between the <code>wp_head()</code> function and the closing "
|
42 |
"<code></head></code> tag."
|
43 |
msgstr ""
|
44 |
|
45 |
+
#: includes/class-ctc-ui.php:160
|
46 |
msgid "Child Theme files modified successfully."
|
47 |
msgstr ""
|
48 |
|
49 |
+
#: includes/class-ctc-ui.php:163
|
50 |
msgid ""
|
51 |
"Child Theme <strong>%s</strong> has been generated successfully.\n"
|
52 |
" "
|
53 |
msgstr ""
|
54 |
|
55 |
+
#: includes/class-ctc-ui.php:166
|
56 |
msgid "IMPORTANT:"
|
57 |
msgstr ""
|
58 |
|
59 |
+
#: includes/class-ctc-ui.php:168 includes/forms/themepreview.php:20
|
60 |
msgid "Go to Themes"
|
61 |
msgstr ""
|
62 |
|
63 |
+
#: includes/class-ctc-ui.php:168
|
64 |
msgid "Network enable"
|
65 |
msgstr ""
|
66 |
|
67 |
+
#: includes/class-ctc-ui.php:168
|
68 |
msgid "your child theme."
|
69 |
msgstr ""
|
70 |
|
71 |
+
#: includes/class-ctc-ui.php:170 includes/forms/themepreview.php:18
|
72 |
msgid "Live Preview"
|
73 |
msgstr ""
|
74 |
|
75 |
+
#: includes/class-ctc-ui.php:170
|
76 |
msgid "Test your child theme"
|
77 |
msgstr ""
|
78 |
|
79 |
+
#: includes/class-ctc-ui.php:170
|
80 |
msgid "before activating."
|
81 |
msgstr ""
|
82 |
|
83 |
+
#: includes/class-ctc.php:144
|
84 |
msgid "URL/None"
|
85 |
msgstr ""
|
86 |
|
87 |
+
#: includes/class-ctc.php:145
|
88 |
msgid "Origin"
|
89 |
msgstr ""
|
90 |
|
91 |
+
#: includes/class-ctc.php:146
|
92 |
msgid "Color 1"
|
93 |
msgstr ""
|
94 |
|
95 |
+
#: includes/class-ctc.php:147
|
96 |
msgid "Color 2"
|
97 |
msgstr ""
|
98 |
|
99 |
+
#: includes/class-ctc.php:148
|
100 |
msgid "Width/None"
|
101 |
msgstr ""
|
102 |
|
103 |
+
#: includes/class-ctc.php:149
|
104 |
msgid "Style"
|
105 |
msgstr ""
|
106 |
|
107 |
+
#: includes/class-ctc.php:150
|
108 |
msgid "Color"
|
109 |
msgstr ""
|
110 |
|
111 |
+
#: includes/class-ctc.php:152
|
112 |
msgid "Are you sure? This will replace your current settings."
|
113 |
msgstr ""
|
114 |
|
115 |
+
#: includes/class-ctc.php:153
|
116 |
msgid "<span style=\"font-size:10px\">!</span>"
|
117 |
msgstr ""
|
118 |
|
119 |
+
#: includes/class-ctc.php:154 includes/forms/rule-value.php:32
|
120 |
msgid "Selectors"
|
121 |
msgstr ""
|
122 |
|
123 |
+
#: includes/class-ctc.php:155
|
124 |
msgid "Close"
|
125 |
msgstr ""
|
126 |
|
127 |
+
#: includes/class-ctc.php:156
|
128 |
msgid "Edit"
|
129 |
msgstr ""
|
130 |
|
131 |
+
#: includes/class-ctc.php:157
|
132 |
msgid "Cancel"
|
133 |
msgstr ""
|
134 |
|
135 |
+
#: includes/class-ctc.php:158
|
136 |
msgid "Rename"
|
137 |
msgstr ""
|
138 |
|
139 |
+
#: includes/class-ctc.php:159
|
140 |
msgid "The stylesheet cannot be displayed."
|
141 |
msgstr ""
|
142 |
|
143 |
+
#: includes/class-ctc.php:160
|
144 |
msgid "(Child Only)"
|
145 |
msgstr ""
|
146 |
|
147 |
+
#: includes/class-ctc.php:161
|
148 |
msgid "Please enter a valid Child Theme."
|
149 |
msgstr ""
|
150 |
|
151 |
+
#: includes/class-ctc.php:162
|
152 |
msgid "Please enter a valid Child Theme name."
|
153 |
msgstr ""
|
154 |
|
155 |
+
#: includes/class-ctc.php:163
|
156 |
msgid "<strong>%s</strong> exists. Please enter a different Child Theme"
|
157 |
msgstr ""
|
158 |
|
159 |
+
#: includes/class-ctc.php:164
|
160 |
msgid "The page could not be loaded correctly."
|
161 |
msgstr ""
|
162 |
|
163 |
+
#: includes/class-ctc.php:166
|
164 |
msgid ""
|
165 |
"Conflicting or out-of-date jQuery libraries were loaded by another plugin:"
|
166 |
msgstr ""
|
167 |
|
168 |
+
#: includes/class-ctc.php:168
|
169 |
msgid "Deactivating or replacing plugins may resolve this issue."
|
170 |
msgstr ""
|
171 |
|
172 |
+
#: includes/class-ctc.php:169
|
173 |
msgid "%sWhy am I seeing this?%s"
|
174 |
msgstr ""
|
175 |
|
176 |
+
#: includes/class-ctc.php:388
|
177 |
msgid "Zip file creation failed."
|
178 |
msgstr ""
|
179 |
|
180 |
+
#: includes/class-ctc.php:424
|
181 |
msgid "The Functions file is required and cannot be deleted."
|
182 |
msgstr ""
|
183 |
|
184 |
+
#: includes/class-ctc.php:505
|
185 |
msgid "You do not have permission to configure child themes."
|
186 |
msgstr ""
|
187 |
|
188 |
+
#: includes/class-ctc.php:552
|
189 |
msgid "%s does not exist. Please select a valid Parent Theme."
|
190 |
msgstr ""
|
191 |
|
192 |
+
#: includes/class-ctc.php:556
|
193 |
msgid "Please select a valid Parent Theme."
|
194 |
msgstr ""
|
195 |
|
196 |
+
#: includes/class-ctc.php:559
|
197 |
msgid "Please enter a valid Child Theme directory."
|
198 |
msgstr ""
|
199 |
|
200 |
+
#: includes/class-ctc.php:567
|
201 |
msgid "Please enter a valid Child Theme template name."
|
202 |
msgstr ""
|
203 |
|
204 |
+
#: includes/class-ctc.php:572
|
205 |
msgid ""
|
206 |
"<strong>%s</strong> exists. Please enter a different Child Theme template "
|
207 |
"name."
|
208 |
msgstr ""
|
209 |
|
210 |
+
#: includes/class-ctc.php:578
|
211 |
msgid "Your theme directories are not writable."
|
212 |
msgstr ""
|
213 |
|
214 |
+
#: includes/class-ctc.php:652
|
215 |
msgid "Your stylesheet is not writable."
|
216 |
msgstr ""
|
217 |
|
218 |
+
#: includes/class-ctc.php:946
|
219 |
msgid ""
|
220 |
"A closing PHP tag was detected in Child theme functions file so \"Parent "
|
221 |
"Stylesheet Handling\" option was not configured. Closing PHP at the end of "
|
224 |
"click \"Generate/Rebuild Child Theme Files\" again."
|
225 |
msgstr ""
|
226 |
|
227 |
+
#: includes/class-ctc.php:1039
|
228 |
msgid "Could not delete file."
|
229 |
msgstr ""
|
230 |
|
231 |
+
#: includes/class-ctc.php:1115
|
232 |
msgid "Could not set write permissions."
|
233 |
msgstr ""
|
234 |
|
235 |
+
#: includes/class-ctc.php:1189
|
236 |
msgid "There were errors while resetting permissions."
|
237 |
msgstr ""
|
238 |
|
239 |
+
#: includes/class-ctc.php:1231
|
240 |
msgid "Could not upload file."
|
241 |
msgstr ""
|
242 |
|
243 |
+
#: includes/class-ctc.php:1314
|
244 |
msgid ""
|
245 |
"Child Theme Configurator is unable to write to the stylesheet. This can be "
|
246 |
"resolved using one of the following options:<ol>"
|
247 |
msgstr ""
|
248 |
|
249 |
+
#: includes/class-ctc.php:1317
|
250 |
msgid ""
|
251 |
"<li>Temporarily make the stylesheet writable by clicking the button below. "
|
252 |
"You should change this back when you are finished editing for security by "
|
253 |
"clicking \"Make read-only\" under the \"Files\" tab.</li>"
|
254 |
msgstr ""
|
255 |
|
256 |
+
#: includes/class-ctc.php:1320
|
257 |
msgid "Temporarily make stylesheet writable"
|
258 |
msgstr ""
|
259 |
|
260 |
+
#: includes/class-ctc.php:1321
|
261 |
msgid ""
|
262 |
"<li><a target=\"_blank\" href=\"http://codex.wordpress.org/Editing_wp-"
|
263 |
"config.php#WordPress_Upgrade_Constants\" title=\"Editin wp-config.php\">Add "
|
264 |
"your FTP/SSH credentials to the WordPress config file</a>.</li>"
|
265 |
msgstr ""
|
266 |
|
267 |
+
#: includes/class-ctc.php:1323
|
268 |
msgid ""
|
269 |
"<li><a target=\"_blank\" href=\"http://technet.microsoft.com/en-us/library/"
|
270 |
"cc771170\" title=\"Setting Application Pool Identity\">Assign WordPress to "
|
272 |
"li>"
|
273 |
msgstr ""
|
274 |
|
275 |
+
#: includes/class-ctc.php:1324
|
276 |
msgid ""
|
277 |
"<li><a target=\"_blank\" href=\"http://codex.wordpress.org/"
|
278 |
"Changing_File_Permissions\" title=\"Changing File Permissions\">Set the "
|
280 |
"li>"
|
281 |
msgstr ""
|
282 |
|
283 |
+
#: includes/class-ctc.php:1326
|
284 |
msgid "<li>Run PHP under Apache with suEXEC (contact your web host).</li>"
|
285 |
msgstr ""
|
286 |
|
287 |
+
#: includes/class-ctc.php:1336
|
288 |
msgid ""
|
289 |
"This Child Theme is not owned by your website account. It may have been "
|
290 |
"created by a prior version of this plugin or by another program. Moving "
|
293 |
"below."
|
294 |
msgstr ""
|
295 |
|
296 |
+
#: includes/class-ctc.php:1339
|
297 |
msgid "Correct Child Theme Permissions"
|
298 |
msgstr ""
|
299 |
|
300 |
+
#: includes/class-ctc.php:1346
|
301 |
msgid ""
|
302 |
"Child Theme Configurator needs to update its interal data. Please set your "
|
303 |
"preferences below and click \"Generate Child Theme Files\" to update your "
|
304 |
"configuration."
|
305 |
msgstr ""
|
306 |
|
307 |
+
#: includes/class-ctc.php:1352
|
308 |
msgid ""
|
309 |
"<strong>However, some styles could not be parsed due to memory limits.</"
|
310 |
"strong> Try deselecting \"Additional Stylesheets\" below and click "
|
311 |
"\"Generate/Rebuild Child Theme Files\". %sWhy am I seeing this?%s"
|
312 |
msgstr ""
|
313 |
|
314 |
+
#: includes/class-ctc.php:1361
|
315 |
msgid ""
|
316 |
"Child Theme Configurator did not detect any configuration data because a "
|
317 |
"previously configured Child Theme has been removed. Please set your "
|
678 |
"settings:"
|
679 |
msgstr ""
|
680 |
|
681 |
+
#: includes/forms/parent-child.php:115
|
682 |
+
msgid "Don't show again."
|
683 |
+
msgstr ""
|
684 |
+
|
685 |
#: includes/forms/parent-child.php:115
|
686 |
msgid "View options"
|
687 |
msgstr ""
|
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, child themes, customize theme, CSS, responsive, css editor, child theme generator, child theme creator, stylesheet, customizer
|
5 |
Requires at least: 3.9
|
6 |
Tested up to: 4.1.1
|
7 |
-
Stable tag: 1.7.3
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
@@ -270,6 +270,7 @@ https://www.youtube.com/watch?v=iBiiAgsK4G4
|
|
270 |
|
271 |
== Changelog ==
|
272 |
= 1.7.3 =
|
|
|
273 |
* Changed @import tab to "Web Fonts." @import statements are automatically converted to enqueued external links.
|
274 |
* Added "Enqueue both parent and child stylesheets" option to enable child theme overrides without using @import.
|
275 |
* Added checks for hard-coded link tags in header template to help resolve incorrect stylesheet load order.
|
@@ -499,7 +500,7 @@ https://www.youtube.com/watch?v=iBiiAgsK4G4
|
|
499 |
* Initial release.
|
500 |
|
501 |
== Upgrade Notice ==
|
502 |
-
Version 1.7.3 now converts @import statements to link tags and checks parent theme for hard-coded stylesheet link tags and other problematic code issues.
|
503 |
|
504 |
== Override Parent Styles ==
|
505 |
|
4 |
Tags: child theme, child themes, customize theme, CSS, responsive, css editor, child theme generator, child theme creator, stylesheet, customizer
|
5 |
Requires at least: 3.9
|
6 |
Tested up to: 4.1.1
|
7 |
+
Stable tag: 1.7.3.1
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
270 |
|
271 |
== Changelog ==
|
272 |
= 1.7.3 =
|
273 |
+
* 1.7.3.1 added dismiss option to warnings by popular demand.
|
274 |
* Changed @import tab to "Web Fonts." @import statements are automatically converted to enqueued external links.
|
275 |
* Added "Enqueue both parent and child stylesheets" option to enable child theme overrides without using @import.
|
276 |
* Added checks for hard-coded link tags in header template to help resolve incorrect stylesheet load order.
|
500 |
* Initial release.
|
501 |
|
502 |
== Upgrade Notice ==
|
503 |
+
Version 1.7.3 now converts @import statements to link tags and checks parent theme for hard-coded stylesheet link tags and other problematic code issues. 1.7.3.1 added dismiss option to warnings by popular demand.
|
504 |
|
505 |
== Override Parent Styles ==
|
506 |
|