Child Theme Creator by Orbisius - Version 1.1.6

Version Description

  • Added settings link in the Plugin listing.
Download this release

Release Info

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

Code changes from version 1.1.5 to 1.1.6

Files changed (2) hide show
  1. orbisius-child-theme-creator.php +24 -1
  2. readme.txt +4 -1
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.5
7
  Author: Svetoslav Marinov (Slavi)
8
  Author URI: http://orbisius.com
9
  */
@@ -200,6 +200,10 @@ function orbisius_child_theme_creator_setup_admin() {
200
  // Add the ? settings link in Plugins page very good
201
  function orbisius_child_theme_creator_add_plugin_settings_link($links, $file) {
202
  if ($file == plugin_basename(__FILE__)) {
 
 
 
 
203
  $link = orbisius_child_theme_creator_util::get_theme_editor_link();
204
  $link_html = "<a href='$link'>Edit Themes</a>";
205
  array_unshift($links, $link_html);
@@ -1360,6 +1364,25 @@ class orbisius_child_theme_creator_util {
1360
  return $link;
1361
  }
1362
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1363
  /**
1364
  * Recursive function to copy (all subdirectories and contents).
1365
  * It doesn't create folder in the target folder.
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.6
7
  Author: Svetoslav Marinov (Slavi)
8
  Author URI: http://orbisius.com
9
  */
200
  // Add the ? settings link in Plugins page very good
201
  function orbisius_child_theme_creator_add_plugin_settings_link($links, $file) {
202
  if ($file == plugin_basename(__FILE__)) {
203
+ $link = orbisius_child_theme_creator_util::get_settings_link();
204
+ $link_html = "<a href='$link'>Settings</a>";
205
+ array_unshift($links, $link_html);
206
+
207
  $link = orbisius_child_theme_creator_util::get_theme_editor_link();
208
  $link_html = "<a href='$link'>Edit Themes</a>";
209
  array_unshift($links, $link_html);
1364
  return $link;
1365
  }
1366
 
1367
+ /**
1368
+ * Returns the link to the Theme Editor e.g. when a theme_1 or theme_2 is supplied.
1369
+ * @param type $params
1370
+ * @return string
1371
+ */
1372
+ static public function get_settings_link($params = array()) {
1373
+ $rel_path = 'options-general.php?page=orbisius_child_theme_creator_settings_page';
1374
+
1375
+ if (!empty($params)) {
1376
+ $rel_path = orbisius_child_theme_creator_html::add_url_params($rel_path, $params);
1377
+ }
1378
+
1379
+ $link = is_multisite()
1380
+ ? network_admin_url($rel_path)
1381
+ : admin_url($rel_path);
1382
+
1383
+ return $link;
1384
+ }
1385
+
1386
  /**
1387
  * Recursive function to copy (all subdirectories and contents).
1388
  * It doesn't create folder in the target folder.
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.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,6 +123,9 @@ Let's talk.
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.
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.6
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.6 =
127
+ * Added settings link in the Plugin listing.
128
+
129
  = 1.1.5 =
130
  * Added an option if the email couldn't be sent to offer the download links.
131
  * Unsuccessful zip creation was showing as Sent.