Child Theme Creator by Orbisius - Version 1.0.3

Version Description

  • Tested with wp 3.6
  • Added settings page in case users want to check it.
  • Added a few notices about http://qsandbox.com
Download this release

Release Info

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

Code changes from version 1.0.2 to 1.0.3

Files changed (2) hide show
  1. orbisius-child-theme-creator.php +169 -2
  2. readme.txt +21 -5
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.0.2
7
  Author: Svetoslav Marinov (Slavi)
8
  Author URI: http://orbisius.com
9
  */
@@ -46,7 +46,8 @@ function orbisius_child_theme_creator_admin_notice_message() {
46
  if (!$chat_installed
47
  && (stripos($_SERVER['REQUEST_URI'], 'plugins.php') !== false)) {
48
  $just_link = 'tools.php?page=' . plugin_basename(__FILE__);
49
- echo "<div class='updated'><p>$name has been installed. To create a child theme go to <a href='$just_link'><strong>Tools &rarr; $name</strong></a></p></div>";
 
50
  }
51
  }
52
 
@@ -69,6 +70,8 @@ function orbisius_child_theme_creator_admin_init() {
69
  * @since 0.1
70
  */
71
  function orbisius_child_theme_creator_setup_admin() {
 
 
72
  add_submenu_page( 'tools.php', 'Orbisius Child Theme Creator', 'Orbisius Child Theme Creator', 'manage_options', __FILE__,
73
  'orbisius_child_theme_creator_tools_action');
74
 
@@ -87,6 +90,160 @@ function orbisius_child_theme_creator_add_plugin_settings_link($links, $file) {
87
  return $links;
88
  }
89
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
90
  /**
91
  * Upload page.
92
  * Ask the user to upload a file
@@ -153,8 +310,18 @@ function orbisius_child_theme_creator_tools_action() {
153
  <?php //wp_nonce_field( basename(__FILE__) . '-action', 'orbisius_child_theme_creator_nonce' ); ?>
154
  <div class="updated">
155
  <p>Choose a parent theme from the list below and click on the <strong>Create Child Theme</strong> button.</p>
 
 
 
 
 
 
 
 
 
156
  </div>
157
 
 
158
  <?php
159
  $buff = '';
160
  $buff .= "<div id='availablethemes' class='theme_container'>\n";
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.0.3
7
  Author: Svetoslav Marinov (Slavi)
8
  Author URI: http://orbisius.com
9
  */
46
  if (!$chat_installed
47
  && (stripos($_SERVER['REQUEST_URI'], 'plugins.php') !== false)) {
48
  $just_link = 'tools.php?page=' . plugin_basename(__FILE__);
49
+ echo "<div class='updated'><p>$name has been installed. To create a child theme go to
50
+ <a href='$just_link'><strong>Tools &rarr; $name</strong></a></p></div>";
51
  }
52
  }
53
 
70
  * @since 0.1
71
  */
72
  function orbisius_child_theme_creator_setup_admin() {
73
+ add_options_page( 'Orbisius Child Theme Creator', 'Orbisius Child Theme Creator', 'manage_options', __FILE__, 'orbisius_child_theme_creator_settings_page' );
74
+
75
  add_submenu_page( 'tools.php', 'Orbisius Child Theme Creator', 'Orbisius Child Theme Creator', 'manage_options', __FILE__,
76
  'orbisius_child_theme_creator_tools_action');
77
 
90
  return $links;
91
  }
92
 
93
+ // Generates Options for the plugin
94
+ function orbisius_child_theme_creator_settings_page() {
95
+ ?>
96
+
97
+ <div class="wrap orbisius_child_theme_creator_container">
98
+ <h2>Orbisius Child Theme Creator</h2>
99
+
100
+ <div class="updated"><p>
101
+ Are you afraid of breaking your site? We have launched a <strong>free</strong> service
102
+ (<a href="http://qsandbox.com/?utm_source=orbisius-child-theme-creator&utm_medium=settings_screen&utm_campaign=product"
103
+ target="_blank" title="[new window]">http://qsandbox.com</a>)
104
+ that allows you to setup a test/sandbox
105
+ WordPress site in seconds. No technical knowledge is required.
106
+ <br/>Join today and test themes and plugins before you actually put them on your live site. For more info go to:
107
+ <a href="http://qsandbox.com/?utm_source=orbisius-child-theme-creator&utm_medium=settings_screen&utm_campaign=product"
108
+ target="_blank" title="[new window]">http://qsandbox.com</a>
109
+ </p></div>
110
+
111
+ <div class="updated0"><p>
112
+ This plugin doesn't currently have any configuration options. To use it go to <strong>Tools &rarr; Orbisius Child Theme Creator</strong>
113
+ </p></div>
114
+
115
+ <h2>Video Demo</h2>
116
+
117
+ <p class="orbisius_child_theme_creator_demo_video hide00">
118
+ <iframe width="560" height="315" src="http://www.youtube.com/embed/BZUVq6ZTv-o" frameborder="0" allowfullscreen></iframe>
119
+
120
+ <br/>Video Link: <a href="www.youtube.com/watch?v=BZUVq6ZTv-o"
121
+ target="_blank">www.youtube.com/watch?v=BZUVq6ZTv-o</a>
122
+ </p>
123
+
124
+ <?php
125
+ $plugin_data = orbisius_child_theme_creator_get_plugin_data();
126
+
127
+ $app_link = urlencode($plugin_data['PluginURI']);
128
+ $app_title = urlencode($plugin_data['Name']);
129
+ $app_descr = urlencode($plugin_data['Description']);
130
+ ?>
131
+ <h2>Share</h2>
132
+ <p>
133
+ <!-- AddThis Button BEGIN -->
134
+ <div class="addthis_toolbox addthis_default_style addthis_32x32_style">
135
+ <a class="addthis_button_facebook" addthis:url="<?php echo $app_link?>" addthis:title="<?php echo $app_title?>" addthis:description="<?php echo $app_descr?>"></a>
136
+ <a class="addthis_button_twitter" addthis:url="<?php echo $app_link?>" addthis:title="<?php echo $app_title?>" addthis:description="<?php echo $app_descr?>"></a>
137
+ <a class="addthis_button_google_plusone" g:plusone:count="false" addthis:url="<?php echo $app_link?>" addthis:title="<?php echo $app_title?>" addthis:description="<?php echo $app_descr?>"></a>
138
+ <a class="addthis_button_linkedin" addthis:url="<?php echo $app_link?>" addthis:title="<?php echo $app_title?>" addthis:description="<?php echo $app_descr?>"></a>
139
+ <a class="addthis_button_email" addthis:url="<?php echo $app_link?>" addthis:title="<?php echo $app_title?>" addthis:description="<?php echo $app_descr?>"></a>
140
+ <a class="addthis_button_myspace" addthis:url="<?php echo $app_link?>" addthis:title="<?php echo $app_title?>" addthis:description="<?php echo $app_descr?>"></a>
141
+ <a class="addthis_button_google" addthis:url="<?php echo $app_link?>" addthis:title="<?php echo $app_title?>" addthis:description="<?php echo $app_descr?>"></a>
142
+ <a class="addthis_button_digg" addthis:url="<?php echo $app_link?>" addthis:title="<?php echo $app_title?>" addthis:description="<?php echo $app_descr?>"></a>
143
+ <a class="addthis_button_delicious" addthis:url="<?php echo $app_link?>" addthis:title="<?php echo $app_title?>" addthis:description="<?php echo $app_descr?>"></a>
144
+ <a class="addthis_button_stumbleupon" addthis:url="<?php echo $app_link?>" addthis:title="<?php echo $app_title?>" addthis:description="<?php echo $app_descr?>"></a>
145
+ <a class="addthis_button_tumblr" addthis:url="<?php echo $app_link?>" addthis:title="<?php echo $app_title?>" addthis:description="<?php echo $app_descr?>"></a>
146
+ <a class="addthis_button_favorites" addthis:url="<?php echo $app_link?>" addthis:title="<?php echo $app_title?>" addthis:description="<?php echo $app_descr?>"></a>
147
+ <a class="addthis_button_compact"></a>
148
+ </div>
149
+ <!-- The JS code is in the footer -->
150
+
151
+ <script type="text/javascript">
152
+ var addthis_config = {"data_track_clickback":true};
153
+ var addthis_share = {
154
+ templates: { twitter: 'Check out {{title}} #WordPress #plugin at {{lurl}} (via @orbisius)' }
155
+ }
156
+ </script>
157
+ <!-- AddThis Button START part2 -->
158
+ <script type="text/javascript" src="http://s7.addthis.com/js/250/addthis_widget.js#pubid=lordspace"></script>
159
+ <!-- AddThis Button END part2 -->
160
+ </p>
161
+
162
+ <h2>Troubleshooting</h2>
163
+ If your site becomes broken due to a child theme (mis)configuration. Please check another plugin of ours:
164
+ <a href="http://club.orbisius.com/products/wordpress-plugins/orbisius-theme-fixer/?utm_source=orbisius-child-theme-creator&utm_medium=settings_troubleshooting&utm_campaign=product" target="_blank" title="[new window]">Orbisius Theme Fixer</a>
165
+
166
+ <h2>Support & Feature Requests</h2>
167
+ <div class="updated"><p>
168
+ ** NOTE: ** Support is handled on our site: <a href="http://club.orbisius.com/support/" target="_blank" title="[new window]">http://club.orbisius.com/support/</a>.
169
+ Please do NOT use the WordPress forums or other places to seek support.
170
+ </p></div>
171
+
172
+ <h2>Mailing List</h2>
173
+ <p>
174
+ Get the latest news and updates about this and future cool
175
+ <a href="http://profiles.wordpress.org/lordspace/"
176
+ target="_blank" title="Opens a page with the pugins we developed. [New Window/Tab]">plugins we develop</a>.
177
+ </p>
178
+ <p>
179
+ <!-- // MAILCHIMP SUBSCRIBE CODE \\ -->
180
+ 1) <a href="http://eepurl.com/guNzr" target="_blank">Subscribe to our newsletter</a>
181
+ <!-- \\ MAILCHIMP SUBSCRIBE CODE // -->
182
+ </p>
183
+ <p>OR</p>
184
+ <p>
185
+ 2) Subscribe using our QR code. [Scan it with your mobile device].<br/>
186
+ <img src="<?php echo plugin_dir_url(__FILE__); ?>/i/guNzr.qr.2.png" alt="" />
187
+ </p>
188
+
189
+ <?php orbisius_child_theme_creator_generate_ext_content(); ?>
190
+ </div>
191
+ <?php
192
+ }
193
+
194
+ /**
195
+ * Returns some plugin data such name and URL. This info is inserted as HTML
196
+ * comment surrounding the embed code.
197
+ * @return array
198
+ */
199
+ function orbisius_child_theme_creator_get_plugin_data() {
200
+ // pull only these vars
201
+ $default_headers = array(
202
+ 'Name' => 'Plugin Name',
203
+ 'PluginURI' => 'Plugin URI',
204
+ 'Description' => 'Description',
205
+ );
206
+
207
+ $plugin_data = get_file_data(__FILE__, $default_headers, 'plugin');
208
+
209
+ $url = $plugin_data['PluginURI'];
210
+ $name = $plugin_data['Name'];
211
+
212
+ $data['name'] = $name;
213
+ $data['url'] = $url;
214
+
215
+ $data = array_merge($data, $plugin_data);
216
+
217
+ return $data;
218
+ }
219
+
220
+ /**
221
+ * Outputs or returns the HTML content for IFRAME promo content.
222
+ */
223
+ function orbisius_child_theme_creator_generate_ext_content($echo = 1) {
224
+ $plugin_slug = basename(__FILE__);
225
+ $plugin_slug = str_replace('.php', '', $plugin_slug);
226
+ $plugin_slug = strtolower($plugin_slug); // jic
227
+
228
+ $domain = !empty($_SERVER['DEV_ENV'])
229
+ ? 'http://orbclub.com.clients.com'
230
+ : 'http://club.orbisius.com';
231
+
232
+ $url = $domain . '/wpu/content/wp/' . $plugin_slug . '/';
233
+
234
+ $buff = <<<BUFF_EOF
235
+ <iframe style="width:100%;min-height:300px;height: auto;" width="100%" height="480"
236
+ src="$url" frameborder="0" allowfullscreen></iframe>
237
+
238
+ BUFF_EOF;
239
+
240
+ if ($echo) {
241
+ echo $buff;
242
+ } else {
243
+ return $buff;
244
+ }
245
+ }
246
+
247
  /**
248
  * Upload page.
249
  * Ask the user to upload a file
310
  <?php //wp_nonce_field( basename(__FILE__) . '-action', 'orbisius_child_theme_creator_nonce' ); ?>
311
  <div class="updated">
312
  <p>Choose a parent theme from the list below and click on the <strong>Create Child Theme</strong> button.</p>
313
+ Are you afraid of breaking your site? We have launched a <strong>FREE</strong> service
314
+ (<a href="http://qsandbox.com/?utm_source=orbisius-child-theme-creator&utm_medium=action_screen&utm_campaign=product"
315
+ target="_blank" title="[new window]">http://qsandbox.com</a>)
316
+ that allows you to setup a test/sandbox
317
+ WordPress site in seconds. No technical knowledge is required.
318
+ <br/>Join today and test themes and plugins before you actually put them on your live site. For more info go to:
319
+ <a href="http://qsandbox.com/?utm_source=orbisius-child-theme-creator&utm_medium=action_screen&utm_campaign=product"
320
+ target="_blank" title="[new window]">http://qsandbox.com</a>
321
+
322
  </div>
323
 
324
+
325
  <?php
326
  $buff = '';
327
  $buff .= "<div id='availablethemes' class='theme_container'>\n";
readme.txt CHANGED
@@ -1,10 +1,10 @@
1
  === Orbisius Child Theme Creator ===
2
  Contributors: lordspace
3
  Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=7APYDVPBCSY9A
4
- Tags: child theme, childtheme,CSS, styling,resposive design,design,custom themeing, shared hosting, theme,themes,wp,wordpress,orbisius
5
  Requires at least: 3.0
6
- Tested up to: 3.5.2
7
- Stable tag: 1.0.2
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.
@@ -18,6 +18,15 @@ This plugin allows you to quickly create child themes from any theme that you ha
18
  This plugin allows you to quickly create child themes from any theme that you have currently installed on your site/blog.
19
  It also creates rtl.css if exists in the parent theme.
20
 
 
 
 
 
 
 
 
 
 
21
  = Features =
22
  * Create a theme with one click of a button
23
  * Never forget what files to copy and what to skip when creating child themes.
@@ -26,7 +35,6 @@ It also creates rtl.css if exists in the parent theme.
26
  * Create *unlimited* child themes from a parent theme. The plugin will add Child 01, Child 02 etc.
27
 
28
  = Usage =
29
-
30
  Go to Admin > Tools > Orbisius Child Theme Creator then click on the theme you like and the child theme will be created for you.
31
 
32
  = Demo =
@@ -61,12 +69,20 @@ n/a
61
  Just install the plugin and activate it. Then go to Admin > Tools > Orbisius Child Theme Creator.
62
  Then click on a theme and the plugin will create a child theme for you.
63
 
64
- = What to do next? =
 
 
65
 
 
66
  Go to http://club.orbisius.com and post suggestions in our forum for new features that you'd like to see in this plugin or its extensions.
67
 
68
  == Changelog ==
69
 
 
 
 
 
 
70
  = 1.0.2 =
71
  * Tested with wp 3.5.2
72
 
1
  === Orbisius Child Theme Creator ===
2
  Contributors: lordspace
3
  Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=7APYDVPBCSY9A
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.0
6
+ Tested up to: 3.6
7
+ Stable tag: 1.0.3
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.
18
  This plugin allows you to quickly create child themes from any theme that you have currently installed on your site/blog.
19
  It also creates rtl.css if exists in the parent theme.
20
 
21
+ = New and Important =
22
+ We have noticed that some child themes created by this plugin do not work as expected.
23
+ This is not a bug in this plugin but could be caused by theme authors using custom theme frameworks and/or do not using WordPress'
24
+ recommended functions for themes supporting child themes.
25
+
26
+ We have launched a **FREE** service that allows you to setup a test/sandbox WordPress site in seconds. No technical knowledge is required.
27
+ Join today and test themes and plugins before you actually put them on your live site. For more info go to:
28
+ <a href="http://qsandbox.com/?utm_source=orbisius-child-theme-creator&utm_medium=readme&utm_campaign=product" target="_blank" title="Free Test/Sandbox WordPress Site">http://qsandbox.com</a>
29
+
30
  = Features =
31
  * Create a theme with one click of a button
32
  * Never forget what files to copy and what to skip when creating child themes.
35
  * Create *unlimited* child themes from a parent theme. The plugin will add Child 01, Child 02 etc.
36
 
37
  = Usage =
 
38
  Go to Admin > Tools > Orbisius Child Theme Creator then click on the theme you like and the child theme will be created for you.
39
 
40
  = Demo =
69
  Just install the plugin and activate it. Then go to Admin > Tools > Orbisius Child Theme Creator.
70
  Then click on a theme and the plugin will create a child theme for you.
71
 
72
+ = Troubleshooting =
73
+ If your site becomes broken due to a child theme (mis)configuration. Please check another plugin of ours:
74
+ <a href="http://club.orbisius.com/products/wordpress-plugins/orbisius-theme-fixer/?utm_source=orbisius-child-theme-creator&utm_medium=readme_troubleshooting&utm_campaign=product" target="_blank" title="[new window]">Orbisius Theme Fixer</a>
75
 
76
+ = What to do next? =
77
  Go to http://club.orbisius.com and post suggestions in our forum for new features that you'd like to see in this plugin or its extensions.
78
 
79
  == Changelog ==
80
 
81
+ = 1.0.3 =
82
+ * Tested with wp 3.6
83
+ * Added settings page in case users want to check it.
84
+ * Added a few notices about <a href="http://qsandbox.com/?utm_source=orbisius-child-theme-creator&utm_medium=readme_changelog&utm_campaign=product" target="_blank" title="Free Test/Sandbox WordPress Site">http://qsandbox.com</a>
85
+
86
  = 1.0.2 =
87
  * Tested with wp 3.5.2
88