Version Description
- Released: 2016-10-13
- The plugin now creates a functions.php file in the new theme
Download this release
Release Info
Developer | JohnPBloch |
Plugin | Child Themify |
Version | 1.2.0 |
Comparing to | |
See all releases |
Code changes from version 1.1.2 to 1.2.0
- assets/js/legacy.js +2 -2
- assets/js/legacy.min.js +4 -3
- child-themify.php +2 -2
- includes/legacy.php +3 -0
- includes/plugin.php +3 -0
- languages/child-themify.pot +19 -19
- readme.txt +7 -3
assets/js/legacy.js
CHANGED
@@ -1,5 +1,5 @@
|
|
1 |
-
/*! Child Themify - v1.
|
2 |
-
* Copyright (c)
|
3 |
(function (window, l10n) {
|
4 |
if (typeof l10n.link !== 'string' || l10n.link.length < 1) {
|
5 |
return;
|
1 |
+
/*! Child Themify - v1.2.0
|
2 |
+
* Copyright (c) 2017 John P. Bloch */
|
3 |
(function (window, l10n) {
|
4 |
if (typeof l10n.link !== 'string' || l10n.link.length < 1) {
|
5 |
return;
|
assets/js/legacy.min.js
CHANGED
@@ -1,3 +1,4 @@
|
|
1 |
-
/*! Child Themify - v1.
|
2 |
-
* Copyright (c)
|
3 |
-
|
|
1 |
+
/*! Child Themify - v1.2.0
|
2 |
+
* Copyright (c) 2017 John P. Bloch */
|
3 |
+
|
4 |
+
!function(e,d){if(!("string"!=typeof d.link||d.link.length<1)){var i,n,t,l,o=e.document,h=o.getElementById("customize-current-theme-link");if(h){h=h.parentNode;for(i in h.childNodes)if(h.childNodes.hasOwnProperty(i)&&void 0!==h.childNodes[i].nodeName&&"UL"===h.childNodes[i].nodeName.toUpperCase()){n=h.childNodes[i];break}n&&((l=o.createElement("a")).appendChild(o.createTextNode(d.createAChildTheme)),l.href=d.link,(t=o.createElement("li")).appendChild(l),n.appendChild(t))}}}(window,window.childThemify);
|
child-themify.php
CHANGED
@@ -2,7 +2,7 @@
|
|
2 |
/*
|
3 |
* Plugin Name: Child Themify
|
4 |
* Description: Create child themes at the click of a button.
|
5 |
-
* Version: 1.
|
6 |
* Plugin URI: https://github.com/johnpbloch/child-themify
|
7 |
* Author: John P. Bloch
|
8 |
* License: GPL-2.0+
|
@@ -12,7 +12,7 @@
|
|
12 |
|
13 |
define( 'CTF_PATH', WP_PLUGIN_DIR . '/' . basename( dirname( __FILE__ ) ) . '/' . basename( __FILE__ ) );
|
14 |
define( 'CTF_URL', WP_PLUGIN_URL . '/' . basename( dirname( __FILE__ ) ) . '/' . basename( __FILE__ ) );
|
15 |
-
define( 'CTF_VERSION', '1.
|
16 |
|
17 |
|
18 |
function ctf_plugins_loaded() {
|
2 |
/*
|
3 |
* Plugin Name: Child Themify
|
4 |
* Description: Create child themes at the click of a button.
|
5 |
+
* Version: 1.2.0
|
6 |
* Plugin URI: https://github.com/johnpbloch/child-themify
|
7 |
* Author: John P. Bloch
|
8 |
* License: GPL-2.0+
|
12 |
|
13 |
define( 'CTF_PATH', WP_PLUGIN_DIR . '/' . basename( dirname( __FILE__ ) ) . '/' . basename( __FILE__ ) );
|
14 |
define( 'CTF_URL', WP_PLUGIN_URL . '/' . basename( dirname( __FILE__ ) ) . '/' . basename( __FILE__ ) );
|
15 |
+
define( 'CTF_VERSION', '1.2.0' );
|
16 |
|
17 |
|
18 |
function ctf_plugins_loaded() {
|
includes/legacy.php
CHANGED
@@ -151,6 +151,9 @@ EOF;
|
|
151 |
if ( file_exists( "$templateDirectory/screenshot.png" ) ) {
|
152 |
$wp_filesystem->copy( "$templateDirectory/screenshot.png", "$new_theme_directory/screenshot.png" );
|
153 |
}
|
|
|
|
|
|
|
154 |
add_settings_error( '', 'child-themify', esc_html__( 'Your child theme was created successfully.', 'child-themify' ), 'updated' );
|
155 |
}
|
156 |
|
151 |
if ( file_exists( "$templateDirectory/screenshot.png" ) ) {
|
152 |
$wp_filesystem->copy( "$templateDirectory/screenshot.png", "$new_theme_directory/screenshot.png" );
|
153 |
}
|
154 |
+
$functions = trailingslashit( $new_theme_directory ) . 'functions.php';
|
155 |
+
$wp_filesystem->touch( $functions );
|
156 |
+
$wp_filesystem->put_contents( $functions, "<?php\n" );
|
157 |
add_settings_error( '', 'child-themify', esc_html__( 'Your child theme was created successfully.', 'child-themify' ), 'updated' );
|
158 |
}
|
159 |
|
includes/plugin.php
CHANGED
@@ -202,6 +202,9 @@ EOF;
|
|
202 |
if ( file_exists( "$templateDirectory/screenshot.png" ) ) {
|
203 |
$wp_filesystem->copy( "$templateDirectory/screenshot.png", "$new_theme_directory/screenshot.png" );
|
204 |
}
|
|
|
|
|
|
|
205 |
add_settings_error( '', 'child-themify', esc_html__( 'Your child theme was created successfully.', 'child-themify' ), 'updated' );
|
206 |
}
|
207 |
|
202 |
if ( file_exists( "$templateDirectory/screenshot.png" ) ) {
|
203 |
$wp_filesystem->copy( "$templateDirectory/screenshot.png", "$new_theme_directory/screenshot.png" );
|
204 |
}
|
205 |
+
$functions = trailingslashit( $new_theme_directory ) . 'functions.php';
|
206 |
+
$wp_filesystem->touch( $functions );
|
207 |
+
$wp_filesystem->put_contents( $functions, "<?php\n" );
|
208 |
add_settings_error( '', 'child-themify', esc_html__( 'Your child theme was created successfully.', 'child-themify' ), 'updated' );
|
209 |
}
|
210 |
|
languages/child-themify.pot
CHANGED
@@ -2,9 +2,9 @@
|
|
2 |
# This file is distributed under the same license as the Child Themify package.
|
3 |
msgid ""
|
4 |
msgstr ""
|
5 |
-
"Project-Id-Version: Child Themify 1.
|
6 |
"Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/child-themify\n"
|
7 |
-
"POT-Creation-Date: 2016-
|
8 |
"MIME-Version: 1.0\n"
|
9 |
"Content-Type: text/plain; charset=UTF-8\n"
|
10 |
"Content-Transfer-Encoding: 8bit\n"
|
@@ -29,8 +29,8 @@ msgstr ""
|
|
29 |
msgid "Let's go!"
|
30 |
msgstr ""
|
31 |
|
32 |
-
#: includes/legacy.php:108 includes/legacy.php:
|
33 |
-
#: includes/plugin.php:
|
34 |
msgid "Create a child theme"
|
35 |
msgstr ""
|
36 |
|
@@ -38,63 +38,63 @@ msgstr ""
|
|
38 |
msgid "Could not access the filesystem!"
|
39 |
msgstr ""
|
40 |
|
41 |
-
#: includes/legacy.php:
|
42 |
msgid "Your child theme was created successfully."
|
43 |
msgstr ""
|
44 |
|
45 |
-
#: includes/plugin.php:
|
46 |
msgid "Show previous theme"
|
47 |
msgstr ""
|
48 |
|
49 |
-
#: includes/plugin.php:
|
50 |
msgid "Show next theme"
|
51 |
msgstr ""
|
52 |
|
53 |
-
#: includes/plugin.php:
|
54 |
msgid "Close overlay"
|
55 |
msgstr ""
|
56 |
|
57 |
-
#: includes/plugin.php:
|
58 |
msgid "Current Theme"
|
59 |
msgstr ""
|
60 |
|
61 |
-
#: includes/plugin.php:
|
62 |
msgid "Version: %s"
|
63 |
msgstr ""
|
64 |
|
65 |
-
#: includes/plugin.php:
|
66 |
msgid "By %s"
|
67 |
msgstr ""
|
68 |
|
69 |
-
#: includes/plugin.php:
|
70 |
msgid "Update Available"
|
71 |
msgstr ""
|
72 |
|
73 |
-
#: includes/plugin.php:
|
74 |
msgid "This is a child theme of %s."
|
75 |
msgstr ""
|
76 |
|
77 |
-
#: includes/plugin.php:
|
78 |
msgid "Tags:"
|
79 |
msgstr ""
|
80 |
|
81 |
-
#: includes/plugin.php:
|
82 |
msgid "Customize"
|
83 |
msgstr ""
|
84 |
|
85 |
-
#: includes/plugin.php:
|
86 |
msgid "Activate"
|
87 |
msgstr ""
|
88 |
|
89 |
-
#: includes/plugin.php:
|
90 |
msgid "Live Preview"
|
91 |
msgstr ""
|
92 |
|
93 |
-
#: includes/plugin.php:
|
94 |
msgid "Preview"
|
95 |
msgstr ""
|
96 |
|
97 |
-
#: includes/plugin.php:
|
98 |
msgid "Delete"
|
99 |
msgstr ""
|
100 |
#. Plugin Name of the plugin/theme
|
2 |
# This file is distributed under the same license as the Child Themify package.
|
3 |
msgid ""
|
4 |
msgstr ""
|
5 |
+
"Project-Id-Version: Child Themify 1.2.0\n"
|
6 |
"Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/child-themify\n"
|
7 |
+
"POT-Creation-Date: 2016-10-14 02:04:51+00:00\n"
|
8 |
"MIME-Version: 1.0\n"
|
9 |
"Content-Type: text/plain; charset=UTF-8\n"
|
10 |
"Content-Transfer-Encoding: 8bit\n"
|
29 |
msgid "Let's go!"
|
30 |
msgstr ""
|
31 |
|
32 |
+
#: includes/legacy.php:108 includes/legacy.php:181 includes/plugin.php:158
|
33 |
+
#: includes/plugin.php:317
|
34 |
msgid "Create a child theme"
|
35 |
msgstr ""
|
36 |
|
38 |
msgid "Could not access the filesystem!"
|
39 |
msgstr ""
|
40 |
|
41 |
+
#: includes/legacy.php:157 includes/plugin.php:208
|
42 |
msgid "Your child theme was created successfully."
|
43 |
msgstr ""
|
44 |
|
45 |
+
#: includes/plugin.php:249
|
46 |
msgid "Show previous theme"
|
47 |
msgstr ""
|
48 |
|
49 |
+
#: includes/plugin.php:250
|
50 |
msgid "Show next theme"
|
51 |
msgstr ""
|
52 |
|
53 |
+
#: includes/plugin.php:251
|
54 |
msgid "Close overlay"
|
55 |
msgstr ""
|
56 |
|
57 |
+
#: includes/plugin.php:266
|
58 |
msgid "Current Theme"
|
59 |
msgstr ""
|
60 |
|
61 |
+
#: includes/plugin.php:268
|
62 |
msgid "Version: %s"
|
63 |
msgstr ""
|
64 |
|
65 |
+
#: includes/plugin.php:269
|
66 |
msgid "By %s"
|
67 |
msgstr ""
|
68 |
|
69 |
+
#: includes/plugin.php:273
|
70 |
msgid "Update Available"
|
71 |
msgstr ""
|
72 |
|
73 |
+
#: includes/plugin.php:280
|
74 |
msgid "This is a child theme of %s."
|
75 |
msgstr ""
|
76 |
|
77 |
+
#: includes/plugin.php:284
|
78 |
msgid "Tags:"
|
79 |
msgstr ""
|
80 |
|
81 |
+
#: includes/plugin.php:291
|
82 |
msgid "Customize"
|
83 |
msgstr ""
|
84 |
|
85 |
+
#: includes/plugin.php:297
|
86 |
msgid "Activate"
|
87 |
msgstr ""
|
88 |
|
89 |
+
#: includes/plugin.php:299
|
90 |
msgid "Live Preview"
|
91 |
msgstr ""
|
92 |
|
93 |
+
#: includes/plugin.php:300
|
94 |
msgid "Preview"
|
95 |
msgstr ""
|
96 |
|
97 |
+
#: includes/plugin.php:305
|
98 |
msgid "Delete"
|
99 |
msgstr ""
|
100 |
#. Plugin Name of the plugin/theme
|
readme.txt
CHANGED
@@ -2,8 +2,8 @@
|
|
2 |
Contributors: JohnPBloch
|
3 |
Tags: themes, child, theme
|
4 |
Requires at least: 3.4.2
|
5 |
-
Tested up to: 4.
|
6 |
-
Stable tag: 1.
|
7 |
License: GPL-2.0+
|
8 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
9 |
|
@@ -34,6 +34,10 @@ I'd really prefer that you use [Github's issue tracker](https://github.com/johnp
|
|
34 |
|
35 |
== Changelog ==
|
36 |
|
|
|
|
|
|
|
|
|
37 |
= 1.1.2 =
|
38 |
* Released: 2015-10-13
|
39 |
* Fixed basename location when loading the textdomain
|
@@ -71,5 +75,5 @@ I'd really prefer that you use [Github's issue tracker](https://github.com/johnp
|
|
71 |
|
72 |
== Upgrade Notice ==
|
73 |
|
74 |
-
|
75 |
|
2 |
Contributors: JohnPBloch
|
3 |
Tags: themes, child, theme
|
4 |
Requires at least: 3.4.2
|
5 |
+
Tested up to: 4.8.9
|
6 |
+
Stable tag: 1.2.0
|
7 |
License: GPL-2.0+
|
8 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
9 |
|
34 |
|
35 |
== Changelog ==
|
36 |
|
37 |
+
= 1.2.0 =
|
38 |
+
* Released: 2016-10-13
|
39 |
+
* The plugin now creates a functions.php file in the new theme
|
40 |
+
|
41 |
= 1.1.2 =
|
42 |
* Released: 2015-10-13
|
43 |
* Fixed basename location when loading the textdomain
|
75 |
|
76 |
== Upgrade Notice ==
|
77 |
|
78 |
+
Creates a blank functions.php file
|
79 |
|