Version Description
- Added an option if the email couldn't be sent to offer the download links.
- Unsuccessful zip creation was showing as Sent.
Download this release
Release Info
Developer | lordspace |
Plugin | Child Theme Creator by Orbisius |
Version | 1.1.5 |
Comparing to | |
See all releases |
Code changes from version 1.1.4 to 1.1.5
- assets/main.css +1 -1
- assets/main.min.css +1 -1
- orbisius-child-theme-creator.php +21 -6
- readme.txt +5 -1
assets/main.css
CHANGED
@@ -33,7 +33,7 @@
|
|
33 |
text-align: center;
|
34 |
}
|
35 |
|
36 |
-
.orbisius_child_theme_creator_container .app-alert-success a {
|
37 |
color: white;
|
38 |
}
|
39 |
|
33 |
text-align: center;
|
34 |
}
|
35 |
|
36 |
+
.orbisius_child_theme_creator_container .app-alert-success a, .orbisius_child_theme_creator_container .app-alert-error a {
|
37 |
color: white;
|
38 |
}
|
39 |
|
assets/main.min.css
CHANGED
@@ -4,7 +4,7 @@
|
|
4 |
.orbisius_child_theme_creator_container .app-serious-notice{color:red;font-weight:700}
|
5 |
.orbisius_child_theme_creator_container .app-alert-error{background:#D54E21;border:1px solid #eee;color:#FFF;text-align:center;padding:3px}
|
6 |
.orbisius_child_theme_creator_container .app-alert-success{background:green;border:1px solid #eee;color:#FFF;text-align:center;padding:3px}
|
7 |
-
.orbisius_child_theme_creator_container .app-alert-success a{color:#FFF}
|
8 |
.orbisius_child_theme_creator_container .app-alert-notice{background:#FFEC8B;border:1px solid #eee;text-align:center;padding:3px}
|
9 |
.orbisius_child_theme_creator_container .app-button-positive{background:green;color:#FFF;text-decoration:none;padding:3px}
|
10 |
.orbisius_child_theme_creator_container .app-button-negative{background:red;color:#FFF;text-decoration:none;padding:3px}
|
4 |
.orbisius_child_theme_creator_container .app-serious-notice{color:red;font-weight:700}
|
5 |
.orbisius_child_theme_creator_container .app-alert-error{background:#D54E21;border:1px solid #eee;color:#FFF;text-align:center;padding:3px}
|
6 |
.orbisius_child_theme_creator_container .app-alert-success{background:green;border:1px solid #eee;color:#FFF;text-align:center;padding:3px}
|
7 |
+
.orbisius_child_theme_creator_container .app-alert-success a,.orbisius_child_theme_creator_container .app-alert-error a{color:#FFF}
|
8 |
.orbisius_child_theme_creator_container .app-alert-notice{background:#FFEC8B;border:1px solid #eee;text-align:center;padding:3px}
|
9 |
.orbisius_child_theme_creator_container .app-button-positive{background:green;color:#FFF;text-decoration:none;padding:3px}
|
10 |
.orbisius_child_theme_creator_container .app-button-negative{background:red;color:#FFF;text-decoration:none;padding:3px}
|
orbisius-child-theme-creator.php
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
Plugin Name: Orbisius Child Theme Creator
|
4 |
Plugin URI: http://club.orbisius.com/products/wordpress-plugins/orbisius-child-theme-creator/
|
5 |
Description: This plugin allows you to quickly create child themes from any theme that you have currently installed on your site/blog.
|
6 |
-
Version: 1.1.
|
7 |
Author: Svetoslav Marinov (Slavi)
|
8 |
Author URI: http://orbisius.com
|
9 |
*/
|
@@ -1831,8 +1831,6 @@ function orbisius_ctc_theme_editor_zip_theme($theme_base_dir, $to) {
|
|
1831 |
$result = orbisius_child_theme_creator_util::create_zip($all_files, $target_zip_file, true,
|
1832 |
$prefix_to_strip, 'Created by Orbisius Child Theme Creator at ' . date('r') . "\nSite: " . site_url() );
|
1833 |
|
1834 |
-
$status_rec['status'] = $result;
|
1835 |
-
|
1836 |
$site_str = "Site: " . site_url();
|
1837 |
|
1838 |
if ($result) {
|
@@ -1857,11 +1855,28 @@ function orbisius_ctc_theme_editor_zip_theme($theme_base_dir, $to) {
|
|
1857 |
$headers = array();
|
1858 |
$message = "Hi,\n\nPlease find the attached theme file(s). \n" . $site_str . "\n\nSent from Orbisius Child Theme Creator.\n";
|
1859 |
$headers = "From: $host WordPress <wordpress@$host>" . "\r\n";
|
1860 |
-
wp_mail($to, $subject, $message, $headers, $attachments );
|
1861 |
|
1862 |
-
|
1863 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1864 |
}
|
|
|
|
|
|
|
1865 |
}
|
1866 |
|
1867 |
return $status_rec;
|
3 |
Plugin Name: Orbisius Child Theme Creator
|
4 |
Plugin URI: http://club.orbisius.com/products/wordpress-plugins/orbisius-child-theme-creator/
|
5 |
Description: This plugin allows you to quickly create child themes from any theme that you have currently installed on your site/blog.
|
6 |
+
Version: 1.1.5
|
7 |
Author: Svetoslav Marinov (Slavi)
|
8 |
Author URI: http://orbisius.com
|
9 |
*/
|
1831 |
$result = orbisius_child_theme_creator_util::create_zip($all_files, $target_zip_file, true,
|
1832 |
$prefix_to_strip, 'Created by Orbisius Child Theme Creator at ' . date('r') . "\nSite: " . site_url() );
|
1833 |
|
|
|
|
|
1834 |
$site_str = "Site: " . site_url();
|
1835 |
|
1836 |
if ($result) {
|
1855 |
$headers = array();
|
1856 |
$message = "Hi,\n\nPlease find the attached theme file(s). \n" . $site_str . "\n\nSent from Orbisius Child Theme Creator.\n";
|
1857 |
$headers = "From: $host WordPress <wordpress@$host>" . "\r\n";
|
|
|
1858 |
|
1859 |
+
$mail_sent = wp_mail($to, $subject, $message, $headers, $attachments );
|
1860 |
+
|
1861 |
+
if ($mail_sent) {
|
1862 |
+
$status_rec['status'] = $result;
|
1863 |
+
|
1864 |
+
foreach ($attachments as $attachment) {
|
1865 |
+
unlink($attachment);
|
1866 |
+
}
|
1867 |
+
} else {
|
1868 |
+
$prefix = $upload_dir['baseurl'] . '/';
|
1869 |
+
$status_rec['msg'] = "Couldn't send email but was able to create zip file(s). Download it/them from the link(s) below.";
|
1870 |
+
|
1871 |
+
foreach ($attachments as $idx => $attatchment_abs_path) {
|
1872 |
+
$cnt = $idx + 1;
|
1873 |
+
$file = basename($attatchment_abs_path);
|
1874 |
+
$status_rec['msg'] .= "<br/> $cnt) <a href='$prefix$file'>$file</a>\n";
|
1875 |
+
}
|
1876 |
}
|
1877 |
+
|
1878 |
+
} else {
|
1879 |
+
$status_rec['msg'] = "Couldn't create zip files.";
|
1880 |
}
|
1881 |
|
1882 |
return $status_rec;
|
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, childtheme,childthemes,child themes,CSS, styling,resposive design,design,custom themeing, shared hosting, theme,themes,wp,wordpress,orbisius,theme creator
|
5 |
Requires at least: 3.4
|
6 |
Tested up to: 3.8
|
7 |
-
Stable tag: 1.1.
|
8 |
License: GPLv2 or later
|
9 |
|
10 |
This plugin allows you to quickly create child themes from any theme that you have currently installed on your site/blog.
|
@@ -123,6 +123,10 @@ Let's talk.
|
|
123 |
|
124 |
== Changelog ==
|
125 |
|
|
|
|
|
|
|
|
|
126 |
= 1.1.4 =
|
127 |
* Minor tweaks after v1.1.3
|
128 |
|
4 |
Tags: child theme, childtheme,childthemes,child themes,CSS, styling,resposive design,design,custom themeing, shared hosting, theme,themes,wp,wordpress,orbisius,theme creator
|
5 |
Requires at least: 3.4
|
6 |
Tested up to: 3.8
|
7 |
+
Stable tag: 1.1.5
|
8 |
License: GPLv2 or later
|
9 |
|
10 |
This plugin allows you to quickly create child themes from any theme that you have currently installed on your site/blog.
|
123 |
|
124 |
== Changelog ==
|
125 |
|
126 |
+
= 1.1.5 =
|
127 |
+
* Added an option if the email couldn't be sent to offer the download links.
|
128 |
+
* Unsuccessful zip creation was showing as Sent.
|
129 |
+
|
130 |
= 1.1.4 =
|
131 |
* Minor tweaks after v1.1.3
|
132 |
|