Child Theme Creator by Orbisius - Version 1.5.0

Version Description

  • changed Edit & Activaate links to look like buttons.
  • Tested with WP 5.2
Download this release

Release Info

Developer lordspace
Plugin Icon wp plugin Child Theme Creator by Orbisius
Version 1.5.0
Comparing to
See all releases

Code changes from version 1.4.9 to 1.5.0

Files changed (2) hide show
  1. orbisius-child-theme-creator.php +6 -5
  2. readme.txt +6 -2
orbisius-child-theme-creator.php CHANGED
@@ -3,7 +3,7 @@
3
  Plugin Name: Orbisius Child Theme Creator
4
  Plugin URI: http://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.4.9
7
  Author: Svetoslav Marinov (Slavi)
8
  Author URI: http://orbisius.com
9
  */
@@ -999,7 +999,7 @@ function orbisius_child_theme_creator_tools_action() {
999
  $author_line .= " | Ver.$ver_esc\n";
1000
 
1001
  $edit_theme_link = orbisius_child_theme_creator_util::get_theme_editor_link( array('theme_1' => $theme_basedir_name) );
1002
- $author_line .= " | <a href='$edit_theme_link' title='Edit with Orbisius Theme Editor'>Edit</a>\n";
1003
 
1004
  $buff .= "<div class='available-theme'>\n";
1005
  $buff .= "<form action='$create_url' method='post'>\n";
@@ -1148,11 +1148,11 @@ function orbisius_child_theme_creator_tools_action() {
1148
 
1149
  if ( orbisius_child_theme_creator_util::has_access() ) {
1150
  $activate_theme_link = orbisius_child_theme_creator_util::get_theme_activation_link( array('theme_1' => $theme_basedir_name) );
1151
- $author_line .= " | <a href='$activate_theme_link' title='Activate this Child Theme. This will switch the site to the selected Child Theme'>Activate</a>\n";
1152
  }
1153
 
1154
  $edit_theme_link = orbisius_child_theme_creator_util::get_theme_editor_link( array('theme_1' => $theme_basedir_name) );
1155
- $author_line .= " | <a href='$edit_theme_link' title='Edit with Orbisius Theme Editor'>Edit</a>\n";
1156
 
1157
  $buff_child_themes .= "<div class='available-theme'>\n";
1158
  $buff_child_themes .= "<img class='screenshot' src='$src' alt='' />\n";
@@ -2695,6 +2695,7 @@ function orbisius_ctc_theme_editor_zip_theme($theme_base_dir, $to) {
2695
  * @return array
2696
  */
2697
  function orbisius_ctc_theme_editor_check_syntax($theme_file_contents) {
 
2698
  $status_rec = array(
2699
  'msg' => '',
2700
  'status' => 0,
@@ -2730,7 +2731,7 @@ function orbisius_ctc_theme_editor_check_syntax($theme_file_contents) {
2730
  $last_line = exec($cmd, $output, $exit_code);
2731
  $output = join('', $output); // this is an array with multiple lines including new lines
2732
  $ok = empty($exit_code); // in linux 0 means success
2733
- } else { // this relies on parsing the php output but if a non-english locale is used this will fail.
2734
  $output = shell_exec($cmd . " 2>&1");
2735
  $ok = stripos($output, 'No syntax errors detected') !== false;
2736
  }
3
  Plugin Name: Orbisius Child Theme Creator
4
  Plugin URI: http://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.5.0
7
  Author: Svetoslav Marinov (Slavi)
8
  Author URI: http://orbisius.com
9
  */
999
  $author_line .= " | Ver.$ver_esc\n";
1000
 
1001
  $edit_theme_link = orbisius_child_theme_creator_util::get_theme_editor_link( array('theme_1' => $theme_basedir_name) );
1002
+ $author_line .= " | <a href='$edit_theme_link' title='Edit with Orbisius Theme Editor' class='button'>Edit</a>\n";
1003
 
1004
  $buff .= "<div class='available-theme'>\n";
1005
  $buff .= "<form action='$create_url' method='post'>\n";
1148
 
1149
  if ( orbisius_child_theme_creator_util::has_access() ) {
1150
  $activate_theme_link = orbisius_child_theme_creator_util::get_theme_activation_link( array('theme_1' => $theme_basedir_name) );
1151
+ $author_line .= " | <a href='$activate_theme_link' title='Activate this Child Theme. This will switch the site to the selected Child Theme' class='button'>Activate</a>\n";
1152
  }
1153
 
1154
  $edit_theme_link = orbisius_child_theme_creator_util::get_theme_editor_link( array('theme_1' => $theme_basedir_name) );
1155
+ $author_line .= " | <a href='$edit_theme_link' title='Edit with Orbisius Theme Editor' class='button'>Edit</a>\n";
1156
 
1157
  $buff_child_themes .= "<div class='available-theme'>\n";
1158
  $buff_child_themes .= "<img class='screenshot' src='$src' alt='' />\n";
2695
  * @return array
2696
  */
2697
  function orbisius_ctc_theme_editor_check_syntax($theme_file_contents) {
2698
+ $ok = 0;
2699
  $status_rec = array(
2700
  'msg' => '',
2701
  'status' => 0,
2731
  $last_line = exec($cmd, $output, $exit_code);
2732
  $output = join('', $output); // this is an array with multiple lines including new lines
2733
  $ok = empty($exit_code); // in linux 0 means success
2734
+ } elseif (function_exists('shell_exec')) { // this relies on parsing the php output but if a non-english locale is used this will fail.
2735
  $output = shell_exec($cmd . " 2>&1");
2736
  $ok = stripos($output, 'No syntax errors detected') !== false;
2737
  }
readme.txt CHANGED
@@ -3,8 +3,8 @@ Contributors: lordspace,orbisius
3
  Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=7APYDVPBCSY9A
4
  Tags: theme,child theme,childtheme,childthemes,parent theme,child themes,CSS,styling,resposive design,design,custom themeing, shared hosting,theme editor theme,themes,wp,wordpress,orbisius,theme creator,custom theme,theme generator,css,css editor
5
  Requires at least: 3.4
6
- Tested up to: 5.1
7
- Stable tag: 1.4.9
8
  License: GPLv2 or later
9
 
10
  Create Child Themes quickly and easily from any theme that you have currently installed on your site/blog.
@@ -166,6 +166,10 @@ Todo
166
 
167
  == Changelog ==
168
 
 
 
 
 
169
  = 1.4.9 =
170
  * Tested with WP 5.1
171
  * Refactored syntax check. Don't create a temp file if exec functions are not available
3
  Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=7APYDVPBCSY9A
4
  Tags: theme,child theme,childtheme,childthemes,parent theme,child themes,CSS,styling,resposive design,design,custom themeing, shared hosting,theme editor theme,themes,wp,wordpress,orbisius,theme creator,custom theme,theme generator,css,css editor
5
  Requires at least: 3.4
6
+ Tested up to: 5.2
7
+ Stable tag: 1.5.0
8
  License: GPLv2 or later
9
 
10
  Create Child Themes quickly and easily from any theme that you have currently installed on your site/blog.
166
 
167
  == Changelog ==
168
 
169
+ = 1.5.0 =
170
+ * changed Edit & Activaate links to look like buttons.
171
+ * Tested with WP 5.2
172
+
173
  = 1.4.9 =
174
  * Tested with WP 5.1
175
  * Refactored syntax check. Don't create a temp file if exec functions are not available