Child Theme Creator by Orbisius - Version 1.2.5

Version Description

  • Fixes
  • Improvements
  • Made some fixes so the Pro addon shines even more.
Download this release

Release Info

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

Code changes from version 1.2.4 to 1.2.5

nbproject/private/private.xml CHANGED
@@ -1,26 +1,36 @@
1
  <?xml version="1.0" encoding="UTF-8"?>
2
  <project-private xmlns="http://www.netbeans.org/ns/project-private/1">
3
- <editor-bookmarks xmlns="http://www.netbeans.org/ns/editor-bookmarks/2" lastBookmarkId="6">
4
  <file>
5
  <url>orbisius-child-theme-creator.php</url>
6
  <bookmark id="6">
7
  <name/>
8
- <line>1543</line>
 
 
 
 
 
 
 
 
 
 
9
  <key/>
10
  </bookmark>
11
  <bookmark id="5">
12
  <name/>
13
- <line>2040</line>
14
  <key/>
15
  </bookmark>
16
  <bookmark id="4">
17
  <name/>
18
- <line>2181</line>
19
  <key/>
20
  </bookmark>
21
  <bookmark id="3">
22
  <name/>
23
- <line>2427</line>
24
  <key/>
25
  </bookmark>
26
  </file>
@@ -36,6 +46,7 @@
36
  <open-files xmlns="http://www.netbeans.org/ns/projectui-open-files/2">
37
  <group>
38
  <file>file:/C:/projects/default/htdocs/wordpress313/wp-content/plugins/orbisius-child-theme-creator/orbisius-child-theme-creator.php</file>
 
39
  <file>file:/C:/projects/default/htdocs/wordpress313/wp-content/plugins/orbisius-child-theme-creator/readme.txt</file>
40
  </group>
41
  </open-files>
1
  <?xml version="1.0" encoding="UTF-8"?>
2
  <project-private xmlns="http://www.netbeans.org/ns/project-private/1">
3
+ <editor-bookmarks xmlns="http://www.netbeans.org/ns/editor-bookmarks/2" lastBookmarkId="12">
4
  <file>
5
  <url>orbisius-child-theme-creator.php</url>
6
  <bookmark id="6">
7
  <name/>
8
+ <line>1546</line>
9
+ <key/>
10
+ </bookmark>
11
+ <bookmark id="12">
12
+ <name/>
13
+ <line>2033</line>
14
+ <key/>
15
+ </bookmark>
16
+ <bookmark id="9">
17
+ <name/>
18
+ <line>2037</line>
19
  <key/>
20
  </bookmark>
21
  <bookmark id="5">
22
  <name/>
23
+ <line>2067</line>
24
  <key/>
25
  </bookmark>
26
  <bookmark id="4">
27
  <name/>
28
+ <line>2219</line>
29
  <key/>
30
  </bookmark>
31
  <bookmark id="3">
32
  <name/>
33
+ <line>2465</line>
34
  <key/>
35
  </bookmark>
36
  </file>
46
  <open-files xmlns="http://www.netbeans.org/ns/projectui-open-files/2">
47
  <group>
48
  <file>file:/C:/projects/default/htdocs/wordpress313/wp-content/plugins/orbisius-child-theme-creator/orbisius-child-theme-creator.php</file>
49
+ <file>file:/C:/projects/default/htdocs/wordpress313/wp-content/plugins/orbisius-child-theme-creator/assets/main.js</file>
50
  <file>file:/C:/projects/default/htdocs/wordpress313/wp-content/plugins/orbisius-child-theme-creator/readme.txt</file>
51
  </group>
52
  </open-files>
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.4
7
  Author: Svetoslav Marinov (Slavi)
8
  Author URI: http://orbisius.com
9
  */
@@ -96,6 +96,17 @@ function orbisius_child_theme_creator_admin_init() {
96
 
97
  }
98
 
 
 
 
 
 
 
 
 
 
 
 
99
  /**
100
  * Add's menu parent or submenu item.
101
  * @param string $name the label of the menu item
@@ -612,6 +623,49 @@ function orbisius_child_theme_creator_settings_page() {
612
  <?php
613
  }
614
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
615
  /**
616
  * Returns some plugin data such name and URL. This info is inserted as HTML
617
  * comment surrounding the embed code.
@@ -753,27 +807,7 @@ function orbisius_child_theme_creator_tools_action() {
753
  ?>
754
  <div class="wrap orbisius_child_theme_creator_container">
755
  <h2 style="display:inline;">Orbisius Child Theme Creator</h2>
756
- <div style="float: right;padding: 3px;" class="updated">
757
- <a href="http://qsandbox.com/?utm_source=orbisius-child-theme-creator&utm_medium=action_screen&utm_campaign=product"
758
- target="_blank" title="Opens in new tab/window. qSandbox is a FREE service that allows you to setup a test/sandbox WordPress site in 2 seconds. No technical knowledge is required.
759
- Test themes and plugins before you actually put them on your site">Free Test Site</a> <small>(2 sec setup)</small>
760
-
761
- | <a href="http://club.orbisius.com/products/wordpress-plugins/orbisius-child-theme-creator-pro/?utm_source=orbisius-child-theme-creator&utm_medium=action_screen&utm_campaign=product"
762
- target="_blank" title="[new window]" style="font-weight: bolder;color:red;">Pro Addon <sup>New!</sup></a>
763
-
764
- | <a href="http://orbisius.com/page/free-quote/?utm_source=child-theme-creator&utm_medium=plugin-links&utm_campaign=plugin-update"
765
- target="_blank" title="If you want a custom web/mobile app or a plugin developed contact us. This opens in a new window/tab">Hire Us</a>
766
-
767
- | <a href="http://club.orbisius.com/forums/forum/community-support-forum/wordpress-plugins/orbisius-child-theme-creator/?utm_source=orbisius-child-theme-creator&utm_medium=action_screen&utm_campaign=product" target="_blank" title="[new window]">Support Forums</a>
768
-
769
- | <a href="http://club.orbisius.com/products/wordpress-plugins/orbisius-child-theme-creator/?utm_source=orbisius-child-theme-creator&utm_medium=action_screen&utm_campaign=product" target="_blank" title="[new window]">Product Page</a>
770
-
771
- | <a href="http://orbisius.us2.list-manage.com/subscribe?u=005070a78d0e52a7b567e96df&id=1b83cd2093" target="_blank"
772
- title="This opens in a new window/tab">Newsletter</a>
773
-
774
- <!--| <a href="#help" title="">Help</a>-->
775
- </div>
776
-
777
  <?php echo $msg; ?>
778
 
779
  <?php
@@ -1858,8 +1892,13 @@ class orbisius_child_theme_creator_html {
1858
  $elem_name = strtolower($elem_name);
1859
  $elem_name = preg_replace('#[^\w]#si', '_', $elem_name);
1860
  $elem_name = trim($elem_name, '_');
 
 
 
 
 
1861
 
1862
- $html = "\n" . '<select id="' . esc_attr($elem_name) . '" name="' . esc_attr($name) . '" ' . $attr . '>' . "\n";
1863
 
1864
  foreach ($options as $key => $label) {
1865
  $selected = $sel == $key ? ' selected="selected"' : '';
@@ -1918,24 +1957,7 @@ function orbisius_ctc_theme_editor() {
1918
  ?>
1919
  <div class="wrap orbisius_child_theme_creator_container orbisius_ctc_theme_editor_container">
1920
  <h2 style="display:inline;">Orbisius Theme Editor <small>(Part of <a href='<?php echo $plugin_data['url'];?>' target="_blank">Orbisius Child Theme Creator</a>)</small></h2>
1921
- <div style="float: right;padding: 3px;" class="updated">
1922
- <a href="http://qsandbox.com/?utm_source=orbisius-child-theme-editor&utm_medium=action_screen&utm_campaign=product"
1923
- target="_blank" title="Opens in new tab/window. qSandbox is a FREE service that allows you to setup a test/sandbox WordPress site in 2 seconds. No technical knowledge is required.
1924
- Test themes and plugins before you actually put them on your site">Free Test Site</a> <small>(2 sec setup)</small>
1925
-
1926
- | <a href="http://club.orbisius.com/products/wordpress-plugins/orbisius-child-theme-creator-pro/?utm_source=orbisius-child-theme-editor&utm_medium=action_screen&utm_campaign=product"
1927
- target="_blank" title="[new window]" style="font-weight: bolder;color:red;">Pro Addon <sup>New!</sup></a>
1928
-
1929
- | <a href="http://orbisius.com/page/free-quote/?utm_source=child-theme-editor&utm_medium=plugin-links&utm_campaign=plugin-update"
1930
- target="_blank" title="If you want a custom web/mobile app or a plugin developed contact us. This opens in a new window/tab">Hire Us</a>
1931
-
1932
- | <a href="http://orbisius.us2.list-manage.com/subscribe?u=005070a78d0e52a7b567e96df&id=1b83cd2093" target="_blank"
1933
- title="This opens in a new window/tab">Newsletter</a>
1934
-
1935
- | <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]">Support Forums</a>
1936
-
1937
- | <a href="http://club.orbisius.com/products/wordpress-plugins/orbisius-child-theme-creator/?utm_source=orbisius-child-theme-editor&utm_medium=action_screen&utm_campaign=product" target="_blank" title="[new window]">Product Page</a>
1938
- </div>
1939
 
1940
  <div class="updated"><p>
1941
  <?php echo $msg; ?>
@@ -2028,6 +2050,13 @@ function orbisius_ctc_theme_editor() {
2028
  <strong>New File</strong>
2029
  <input type="text" id="theme_1_new_file" name="theme_1_new_file" value="" />
2030
  <span>e.g. test.js, extra.css etc</span>
 
 
 
 
 
 
 
2031
  <span class="status"></span>
2032
 
2033
  <br/>
@@ -2051,12 +2080,25 @@ function orbisius_ctc_theme_editor() {
2051
  <!-- /send -->
2052
 
2053
  <div style="border:1px solid #ccc;margin:10px 0;padding:3px 5px;">
2054
- <h3>Pro Addon is now available!</h3>
2055
- <span>Get more cool features by purchasing the </span>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
2056
 
2057
- <a href="http://club.orbisius.com/products/wordpress-plugins/orbisius-child-theme-creator-pro/?utm_source=orbisius-child-theme-editor&utm_medium=footer&utm_campaign=product"
2058
- target="_blank" title="[new window]" style="font-weight: bolder;color:red;text-decoration: underline;">Pro Addon</a> <sup>New!</sup>
2059
-
2060
  <!--<ul>
2061
  <li><a href="http://club.orbisius.com/products/wordpress-plugins/orbisius-theme-switcher/?utm_source=orbisius-child-theme-creator&utm_medium=editors&utm_campaign=product"
2062
  target="_blank" title="Opens in a new tab/window">Orbisius Theme Switcher</a> - Allows you to preview any of the installed themes on your site.</li>
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.5
7
  Author: Svetoslav Marinov (Slavi)
8
  Author URI: http://orbisius.com
9
  */
96
 
97
  }
98
 
99
+ function orbisius_child_theme_creator_is_pro_installed() {
100
+ static $res = null;
101
+
102
+ if ( is_null( $res ) ) {
103
+ // is creator pro active?
104
+ $res = in_array( 'orbisius-child-theme-creator/orbisius-child-theme-creator.php', apply_filters( 'active_plugins', get_option( 'active_plugins' ) ) );
105
+ }
106
+
107
+ return $res;
108
+ }
109
+
110
  /**
111
  * Add's menu parent or submenu item.
112
  * @param string $name the label of the menu item
623
  <?php
624
  }
625
 
626
+ /**
627
+ * Returns some plugin data such name and URL. This info is inserted as HTML
628
+ * comment surrounding the embed code.
629
+ * @return array
630
+ */
631
+ function orbisius_child_theme_creator_top_links($slug_area = 'orbisius-child-theme-creator') {
632
+ ob_start();
633
+ $text_color = orbisius_child_theme_creator_is_pro_installed() ? 'green' : 'red';
634
+ ?>
635
+ <div style="float: right;padding: 3px;" class="updated">
636
+ <a href="http://qsandbox.com/?utm_source=<?php echo $slug_area; ?>&utm_medium=action_screen&utm_campaign=product"
637
+ target="_blank" title="Opens in new tab/window. qSandbox is a FREE service that allows you to setup a test/sandbox WordPress site in 2 seconds. No technical knowledge is required.
638
+ Test themes and plugins before you actually put them on your site">Free Test Site</a> <small>(2 sec setup)</small>
639
+
640
+ | <a href="http://club.orbisius.com/products/wordpress-plugins/orbisius-child-theme-creator-pro/?utm_source=<?php echo $slug_area; ?>&utm_medium=action_screen&utm_campaign=product"
641
+ target="_blank" title="[new window]" style="font-weight: bolder;color:<?php echo $text_color;?>">Pro Addon
642
+
643
+ <?php if ( ! orbisius_child_theme_creator_is_pro_installed() ) : ?>
644
+ <sup>New!</sup>
645
+ <?php else : ?>
646
+ <sup>Installed!</sup>
647
+ <?php endif; ?>
648
+ </a>
649
+
650
+ | <a href="http://orbisius.com/page/free-quote/?utm_source=child-theme-creator&utm_medium=plugin-links&utm_campaign=plugin-update"
651
+ target="_blank" title="If you want a custom web/mobile app or a plugin developed contact us. This opens in a new window/tab">Hire Us</a>
652
+
653
+ | <a href="http://club.orbisius.com/forums/forum/community-support-forum/wordpress-plugins/orbisius-child-theme-creator/?utm_source=<?php echo $slug_area; ?>&utm_medium=action_screen&utm_campaign=product" target="_blank" title="[new window]">Support Forums</a>
654
+
655
+ | <a href="http://club.orbisius.com/products/wordpress-plugins/orbisius-child-theme-creator/?utm_source=<?php echo $slug_area; ?>&utm_medium=action_screen&utm_campaign=product" target="_blank" title="[new window]">Product Page</a>
656
+
657
+ | <a href="http://orbisius.us2.list-manage.com/subscribe?u=005070a78d0e52a7b567e96df&id=1b83cd2093" target="_blank"
658
+ title="This opens in a new window/tab">Newsletter</a>
659
+
660
+ <!--| <a href="#help" title="">Help</a>-->
661
+ </div>
662
+ <?php
663
+ $buff = ob_get_contents();
664
+ ob_end_clean();
665
+
666
+ return $buff;
667
+ }
668
+
669
  /**
670
  * Returns some plugin data such name and URL. This info is inserted as HTML
671
  * comment surrounding the embed code.
807
  ?>
808
  <div class="wrap orbisius_child_theme_creator_container">
809
  <h2 style="display:inline;">Orbisius Child Theme Creator</h2>
810
+ <?php echo orbisius_child_theme_creator_top_links('orbisius-child-theme-creator') ; ?>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
811
  <?php echo $msg; ?>
812
 
813
  <?php
1892
  $elem_name = strtolower($elem_name);
1893
  $elem_name = preg_replace('#[^\w]#si', '_', $elem_name);
1894
  $elem_name = trim($elem_name, '_');
1895
+ $cls = 'orb_ctc_html_select orb_ctc_html_select_' . $elem_name;
1896
+
1897
+ $attr = apply_filters('orbisius_child_theme_creator_ext_filter_html_select_attr', $attr, $name, $sel, $options);
1898
+ $cls = apply_filters('orbisius_child_theme_creator_ext_filter_html_select_css', $cls, $name, $sel, $options, $attr);
1899
+ $html_css = " class='$cls' ";
1900
 
1901
+ $html = "\n" . '<select id="' . esc_attr($elem_name) . '" name="' . esc_attr($name) . '" ' . $attr . $html_css . '>' . "\n";
1902
 
1903
  foreach ($options as $key => $label) {
1904
  $selected = $sel == $key ? ' selected="selected"' : '';
1957
  ?>
1958
  <div class="wrap orbisius_child_theme_creator_container orbisius_ctc_theme_editor_container">
1959
  <h2 style="display:inline;">Orbisius Theme Editor <small>(Part of <a href='<?php echo $plugin_data['url'];?>' target="_blank">Orbisius Child Theme Creator</a>)</small></h2>
1960
+ <?php echo orbisius_child_theme_creator_top_links('orbisius-child-theme-editor') ; ?>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1961
 
1962
  <div class="updated"><p>
1963
  <?php echo $msg; ?>
2050
  <strong>New File</strong>
2051
  <input type="text" id="theme_1_new_file" name="theme_1_new_file" value="" />
2052
  <span>e.g. test.js, extra.css etc</span>
2053
+
2054
+ <!--<br/>
2055
+ <label>
2056
+ <input type="checkbox" name="theme_1_new_file_type" value="folder" />
2057
+ Create a folder Instead
2058
+ </label>-->
2059
+
2060
  <span class="status"></span>
2061
 
2062
  <br/>
2080
  <!-- /send -->
2081
 
2082
  <div style="border:1px solid #ccc;margin:10px 0;padding:3px 5px;">
2083
+ <h3>Pro Addon
2084
+ <?php if ( ! orbisius_child_theme_creator_is_pro_installed() ) : ?>
2085
+ - starts at just $2<strong>.</strong>99 (limit time offer)
2086
+ <?php endif; ?>
2087
+ </h3>
2088
+
2089
+ <?php if ( orbisius_child_theme_creator_is_pro_installed() ) : ?>
2090
+ <div class="app-alert-success">
2091
+ The <a href="http://club.orbisius.com/products/wordpress-plugins/orbisius-child-theme-creator-pro/?utm_source=orbisius-child-theme-editor&utm_medium=footer&utm_campaign=product"
2092
+ target="_blank" title="[new window]" style="font-weight: bolder;text-decoration: underline;">Pro Addon</a>
2093
+ is up and running. Thanks for supporting our <a
2094
+ href="http://club.orbisius.com/products/wordpress-plugins/?utm_source=orbisius-child-theme-editor&utm_medium=footer&utm_campaign=product" target="_blank">work</a>!
2095
+ </div>
2096
+ <?php else : ?>
2097
+ <span>Get more cool features by purchasing the </span>
2098
+ <a href="http://club.orbisius.com/products/wordpress-plugins/orbisius-child-theme-creator-pro/?utm_source=orbisius-child-theme-editor&utm_medium=footer&utm_campaign=product"
2099
+ target="_blank" title="[new window]" style="font-weight: bolder;color:red;text-decoration: underline;">Pro Addon</a> <sup>New!</sup>
2100
+ <?php endif; ?>
2101
 
 
 
 
2102
  <!--<ul>
2103
  <li><a href="http://club.orbisius.com/products/wordpress-plugins/orbisius-theme-switcher/?utm_source=orbisius-child-theme-creator&utm_medium=editors&utm_campaign=product"
2104
  target="_blank" title="Opens in a new tab/window">Orbisius Theme Switcher</a> - Allows you to preview any of the installed themes on your site.</li>
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.1
7
- Stable tag: 1.2.4
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.
@@ -141,6 +141,11 @@ Let's talk.
141
 
142
  == Changelog ==
143
 
 
 
 
 
 
144
  = 1.2.4 =
145
  * Made the plugin more extendable (js).
146
  * Added another Save button near the theme and file dropdowns (for lazy people).
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.1
7
+ Stable tag: 1.2.5
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.
141
 
142
  == Changelog ==
143
 
144
+ = 1.2.5 =
145
+ * Fixes
146
+ * Improvements
147
+ * Made some fixes so the Pro addon shines even more.
148
+
149
  = 1.2.4 =
150
  * Made the plugin more extendable (js).
151
  * Added another Save button near the theme and file dropdowns (for lazy people).