Child Theme Creator by Orbisius - Version 1.2.1

Version Description

  • Fixed: A notice in the settings
  • Fixed a typo
  • Tested with WP 4.0.1
Download this release

Release Info

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

Code changes from version 1.2.0 to 1.2.1

Files changed (2) hide show
  1. orbisius-child-theme-creator.php +20 -32
  2. readme.txt +6 -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.2.0
7
  Author: Svetoslav Marinov (Slavi)
8
  Author URI: http://orbisius.com
9
  */
@@ -280,7 +280,7 @@ function orbisius_child_theme_creator_add_plugin_settings_link($links, $file) {
280
  }
281
 
282
  /**
283
- * This adds an edit button in Apperance under each theme.
284
  * @param array $actions
285
  * @param WP_Theme/string Obj $theme
286
  * @return array
@@ -437,9 +437,23 @@ function orbisius_child_theme_creator_settings_page() {
437
  </div> <!-- .inside -->
438
  </div> <!-- .postbox -->
439
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
440
  <?php
441
  $plugin_data = get_plugin_data(__FILE__);
442
- $product_name = trim($plugin_data['PluginName']);
443
  $product_page = trim($plugin_data['PluginURI']);
444
  $product_descr = trim($plugin_data['Description']);
445
  $product_descr_short = substr($product_descr, 0, 50) . '...';
@@ -604,8 +618,7 @@ function orbisius_child_theme_creator_settings_page() {
604
  ** NOTE: ** Support is handled on our site: <a href="http://club.orbisius.com/forums/forum/community-support-forum/wordpress-plugins/orbisius-child-theme-creator/?utm_source=orbisius-child-theme-editor&utm_medium=action_screen&utm_campaign=product" target="_blank" title="[new window]">http://club.orbisius.com/support/</a>.
605
  Please do NOT use the WordPress forums or other places to seek support.
606
  </p></div>-->
607
-
608
- <?php orbisius_child_theme_creator_generate_ext_content(); ?>
609
  <?php
610
  }
611
 
@@ -635,31 +648,6 @@ function orbisius_child_theme_creator_get_plugin_data() {
635
  return $data;
636
  }
637
 
638
- /**
639
- * Outputs or returns the HTML content for IFRAME promo content.
640
- */
641
- function orbisius_child_theme_creator_generate_ext_content($echo = 1) {
642
- $plugin_slug = basename(__FILE__);
643
- $plugin_slug = str_replace('.php', '', $plugin_slug);
644
- $plugin_slug = strtolower($plugin_slug); // jic
645
-
646
- $domain = !empty($_SERVER['DEV_ENV']) ? 'http://orbclub.com.clients.com' : 'http://club.orbisius.com';
647
-
648
- $url = $domain . '/wpu/content/wp/' . $plugin_slug . '/';
649
-
650
- $buff = <<<BUFF_EOF
651
- <iframe style="width:100%;min-height:300px;height: auto;" width="100%" height="480"
652
- src="$url" frameborder="0" allowfullscreen></iframe>
653
-
654
- BUFF_EOF;
655
-
656
- if ($echo) {
657
- echo $buff;
658
- } else {
659
- return $buff;
660
- }
661
- }
662
-
663
  /**
664
  * Upload page.
665
  * Ask the user to upload a file
@@ -681,7 +669,7 @@ function orbisius_child_theme_creator_tools_action() {
681
  $next_url = orbisius_child_theme_creator_util::get_create_child_pages_link();
682
 
683
  if (headers_sent()) {
684
- $success = "In order to create a child theme in a multisite WordPress environment you must do it from Network Admin &gt; Apperance"
685
  . "<br/><a href='$next_url' class='button button-primary'>Continue</a>";
686
  wp_die($success);
687
  } else {
@@ -1672,7 +1660,7 @@ function orbisius_ctc_theme_editor() {
1672
  $next_url = orbisius_child_theme_creator_util::get_create_child_pages_link();
1673
 
1674
  if (headers_sent()) {
1675
- $success = "In order to edit a theme in a multisite WordPress environment you must do it from Network Admin &gt; Apperance"
1676
  . "<br/><a href='$next_url' class='button button-primary'>Continue</a>";
1677
  wp_die($success);
1678
  } else {
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.2.1
7
  Author: Svetoslav Marinov (Slavi)
8
  Author URI: http://orbisius.com
9
  */
280
  }
281
 
282
  /**
283
+ * This adds an edit button in Appearance under each theme.
284
  * @param array $actions
285
  * @param WP_Theme/string Obj $theme
286
  * @return array
437
  </div> <!-- .inside -->
438
  </div> <!-- .postbox -->
439
 
440
+ <!-- Orbisius JS Widget -->
441
+ <?php
442
+ $naked_domain = !empty($_SERVER['DEV_ENV']) ? 'orbclub.com.clients.com' : 'club.orbisius.com';
443
+
444
+ if (!empty($_SERVER['DEV_ENV']) && is_ssl()) {
445
+ $naked_domain = 'ssl.orbisius.com/club';
446
+ }
447
+
448
+ $params = '?' . http_build_query(array('p' => str_replace('.php', '', basename(__FILE__)), 'layout' => 'plugin', ));
449
+ echo '<div class="orbisius_ext_content"></div>' . "\n";
450
+ echo "<script>!function(d,s,id){var js,fjs=d.getElementsByTagName(s)[0],p=/^http:/.test(d.location)?'http':'https';if(!d.getElementById(id)){js=d.createElement(s);js.id=id;js.src=p+'://$naked_domain/wpu/widget/$params';fjs.parentNode.insertBefore(js,fjs);}}(document, 'script', 'orbsius-js');</script>";
451
+ ?>
452
+ <!-- /Orbisius JS Widget -->
453
+
454
  <?php
455
  $plugin_data = get_plugin_data(__FILE__);
456
+ $product_name = trim($plugin_data['Name']);
457
  $product_page = trim($plugin_data['PluginURI']);
458
  $product_descr = trim($plugin_data['Description']);
459
  $product_descr_short = substr($product_descr, 0, 50) . '...';
618
  ** NOTE: ** Support is handled on our site: <a href="http://club.orbisius.com/forums/forum/community-support-forum/wordpress-plugins/orbisius-child-theme-creator/?utm_source=orbisius-child-theme-editor&utm_medium=action_screen&utm_campaign=product" target="_blank" title="[new window]">http://club.orbisius.com/support/</a>.
619
  Please do NOT use the WordPress forums or other places to seek support.
620
  </p></div>-->
621
+
 
622
  <?php
623
  }
624
 
648
  return $data;
649
  }
650
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
651
  /**
652
  * Upload page.
653
  * Ask the user to upload a file
669
  $next_url = orbisius_child_theme_creator_util::get_create_child_pages_link();
670
 
671
  if (headers_sent()) {
672
+ $success = "In order to create a child theme in a multisite WordPress environment you must do it from Network Admin &gt; Appearance"
673
  . "<br/><a href='$next_url' class='button button-primary'>Continue</a>";
674
  wp_die($success);
675
  } else {
1660
  $next_url = orbisius_child_theme_creator_util::get_create_child_pages_link();
1661
 
1662
  if (headers_sent()) {
1663
+ $success = "In order to edit a theme in a multisite WordPress environment you must do it from Network Admin &gt; Appearance"
1664
  . "<br/><a href='$next_url' class='button button-primary'>Continue</a>";
1665
  wp_die($success);
1666
  } else {
readme.txt CHANGED
@@ -4,7 +4,7 @@ Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_i
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: 4
7
- Stable tag: 1.2.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.
@@ -136,6 +136,11 @@ Let's talk.
136
 
137
  == Changelog ==
138
 
 
 
 
 
 
139
  = 1.2.0 =
140
  * Fixed: BUG - Deleting a file from Theme 1 deletes files from Theme 2. Ref: http://club.orbisius.com/forums/topic/bug-deleting-a-file-from-theme-1-deletes-files-from-theme-2/
141
  * Fixes: CSS so the themes are showing up as 3 per row like they used to be.
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: 4
7
+ Stable tag: 1.2.1
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.
136
 
137
  == Changelog ==
138
 
139
+ = 1.2.1 =
140
+ * Fixed: A notice in the settings
141
+ * Fixed a typo
142
+ * Tested with WP 4.0.1
143
+
144
  = 1.2.0 =
145
  * Fixed: BUG - Deleting a file from Theme 1 deletes files from Theme 2. Ref: http://club.orbisius.com/forums/topic/bug-deleting-a-file-from-theme-1-deletes-files-from-theme-2/
146
  * Fixes: CSS so the themes are showing up as 3 per row like they used to be.