Version Description
- Tested with wp 3.5.2
Download this release
Release Info
Developer | lordspace |
Plugin | Child Theme Creator by Orbisius |
Version | 1.0.2 |
Comparing to | |
See all releases |
Code changes from version 1.0.1 to 1.0.2
- orbisius-child-theme-creator.php +1 -62
- readme.txt +7 -4
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.
|
7 |
Author: Svetoslav Marinov (Slavi)
|
8 |
Author URI: http://orbisius.com
|
9 |
*/
|
@@ -449,26 +449,6 @@ class orbisius_child_theme_creator {
|
|
449 |
public function get_details() {
|
450 |
return $this->info_result;
|
451 |
}
|
452 |
-
|
453 |
-
/**
|
454 |
-
*
|
455 |
-
* @return bool success
|
456 |
-
*/
|
457 |
-
public function install() {
|
458 |
-
$src = dirname(__FILE__) . '/dist/mibew164.zip';
|
459 |
-
$target_chat_dir_path = $this->target_dir_path;
|
460 |
-
|
461 |
-
// extract files
|
462 |
-
WP_Filesystem(); // we need to call this so we can use the unzip_file function
|
463 |
-
$res = unzip_file($src, $target_chat_dir_path); // wp func
|
464 |
-
|
465 |
-
$this->status = is_wp_error($res) ? 0 : 1;
|
466 |
-
$this->result = $res;
|
467 |
-
|
468 |
-
if (!$this->status) {
|
469 |
-
throw new Exception("There was an error with the mibew zip package.");
|
470 |
-
}
|
471 |
-
}
|
472 |
|
473 |
/**
|
474 |
*
|
@@ -477,50 +457,9 @@ class orbisius_child_theme_creator {
|
|
477 |
function log($msg) {
|
478 |
error_log($msg . "\n", 3, ini_get('error_log'));
|
479 |
}
|
480 |
-
|
481 |
-
/**
|
482 |
-
* This saves the settings in the chat's config file: chat_dir/libs/config.php
|
483 |
-
*/
|
484 |
-
public function update_chat_config() {
|
485 |
-
// let's create the db tables.
|
486 |
-
$cfg_data = $this->read_wp_config();
|
487 |
-
|
488 |
-
$target_chat_dir_path = $this->target_dir_path;
|
489 |
-
$chat_config_buff = file_get_contents($target_chat_dir_path . '/libs/config.php');
|
490 |
-
/*
|
491 |
-
$webimroot = "/chat";
|
492 |
-
$mysqlhost = "localhost";
|
493 |
-
$mysqldb = "orbisius_installer_db";
|
494 |
-
$mysqllogin = "root";
|
495 |
-
$mysqlpass = "aaaaaa";
|
496 |
-
$mysqlprefix = "orbisius_installer_";
|
497 |
-
*/
|
498 |
-
$chat_config_buff = preg_replace('#(webimroot\s*=\s*["\'])(.*?)(["\']\s*;\s*)#si', '$1' . '/' . $this->chat_web_dir . '$3', $chat_config_buff);
|
499 |
-
$chat_config_buff = preg_replace('#(mysqlhost\s*=\s*["\'])(.*?)(["\']\s*;\s*)#si', '$1' . $cfg_data['db_host'] . '$3', $chat_config_buff);
|
500 |
-
$chat_config_buff = preg_replace('#(mysqldb\s*=\s*["\'])(.*?)(["\']\s*;\s*)#si', '$1' . $cfg_data['db_name'] . '$3', $chat_config_buff);
|
501 |
-
$chat_config_buff = preg_replace('#(mysqllogin\s*=\s*["\'])(.*?)(["\']\s*;\s*)#si', '$1' . $cfg_data['db_user'] . '$3', $chat_config_buff);
|
502 |
-
$chat_config_buff = preg_replace('#(mysqlpass\s*=\s*["\'])(.*?)(["\']\s*;\s*)#si', '$1' . $cfg_data['db_pass'] . '$3', $chat_config_buff);
|
503 |
-
$chat_config_buff = preg_replace('#(mysqlprefix\s*=\s*["\'])(.*?)(["\']\s*;\s*)#si', '$1' . $cfg_data['db_prefix']
|
504 |
-
. $this->get_chat_db_suffix() . '$3', $chat_config_buff);
|
505 |
-
|
506 |
-
file_put_contents($target_chat_dir_path . '/libs/config.php', $chat_config_buff);
|
507 |
-
}
|
508 |
}
|
509 |
|
510 |
class orbisius_child_theme_creator_util {
|
511 |
-
/**
|
512 |
-
* Returns the main site's URL. no subdirectories
|
513 |
-
*/
|
514 |
-
function get_site_url($main_site_url = '') {
|
515 |
-
// we need to install the chat at the main location
|
516 |
-
// e.g. site.com/chat
|
517 |
-
// WP will return a link with /blog or a subdirectory.
|
518 |
-
$main_site_url = preg_replace('#(http?://[\w\.-]+).*#si', '$1', $main_site_url);
|
519 |
-
$main_site_url = rtrim($main_site_url, '/') . '/';
|
520 |
-
|
521 |
-
return $main_site_url;
|
522 |
-
}
|
523 |
-
|
524 |
/**
|
525 |
* Outputs a message (adds some paragraphs).
|
526 |
*/
|
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 |
*/
|
449 |
public function get_details() {
|
450 |
return $this->info_result;
|
451 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
452 |
|
453 |
/**
|
454 |
*
|
457 |
function log($msg) {
|
458 |
error_log($msg . "\n", 3, ini_get('error_log'));
|
459 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
460 |
}
|
461 |
|
462 |
class orbisius_child_theme_creator_util {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
463 |
/**
|
464 |
* Outputs a message (adds some paragraphs).
|
465 |
*/
|
readme.txt
CHANGED
@@ -3,8 +3,8 @@ 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.
|
7 |
-
Stable tag: 1.0.
|
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.
|
@@ -67,8 +67,11 @@ Go to http://club.orbisius.com and post suggestions in our forum for new feature
|
|
67 |
|
68 |
== Changelog ==
|
69 |
|
|
|
|
|
|
|
70 |
= 1.0.1 =
|
71 |
-
Added links to video demo
|
72 |
|
73 |
= 1.0.0 =
|
74 |
-
Initial release
|
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.
|
67 |
|
68 |
== Changelog ==
|
69 |
|
70 |
+
= 1.0.2 =
|
71 |
+
* Tested with wp 3.5.2
|
72 |
+
|
73 |
= 1.0.1 =
|
74 |
+
* Added links to video demo
|
75 |
|
76 |
= 1.0.0 =
|
77 |
+
* Initial release
|