Corrected disroot url's to beetroot url's :P
This commit is contained in:
parent
64d5a8b5c2
commit
4c88d23db5
|
@ -2,16 +2,16 @@
|
|||
|
||||
namespace Zotlabs\Theme;
|
||||
|
||||
class DisrootConfig {
|
||||
class BeetrootConfig {
|
||||
|
||||
function get_schemas() {
|
||||
$files = glob('view/theme/disroot/schema/*.php');
|
||||
$files = glob('view/theme/beetroot/schema/*.php');
|
||||
|
||||
$scheme_choices = [];
|
||||
|
||||
if($files) {
|
||||
|
||||
if(in_array('view/theme/disroot/schema/default.php', $files)) {
|
||||
if(in_array('view/theme/beetroot/schema/default.php', $files)) {
|
||||
$scheme_choices['---'] = t('Default');
|
||||
$scheme_choices['focus'] = t('Focus (Hubzilla default)');
|
||||
}
|
||||
|
|
|
@ -45,13 +45,13 @@ if($_REQUEST['schema']) {
|
|||
if (($schema) && ($schema != '---')) {
|
||||
|
||||
// Check it exists, because this setting gets distributed to clones
|
||||
if(file_exists('view/theme/disroot/schema/' . $schema . '.php')) {
|
||||
$schemefile = 'view/theme/disroot/schema/' . $schema . '.php';
|
||||
if(file_exists('view/theme/beetroot/schema/' . $schema . '.php')) {
|
||||
$schemefile = 'view/theme/beetroot/schema/' . $schema . '.php';
|
||||
require_once ($schemefile);
|
||||
}
|
||||
|
||||
if(file_exists('view/theme/disroot/schema/' . $schema . '.css')) {
|
||||
$schemecss = file_get_contents('view/theme/disroot/schema/' . $schema . '.css');
|
||||
if(file_exists('view/theme/beetroot/schema/' . $schema . '.css')) {
|
||||
$schemecss = file_get_contents('view/theme/beetroot/schema/' . $schema . '.css');
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -60,13 +60,13 @@ if (($schema) && ($schema != '---')) {
|
|||
// default.php and default.css MUST be symlinks to existing schema files in view/theme/redbasic/schema
|
||||
if ((!$schema) || ($schema == '---')) {
|
||||
|
||||
if(file_exists('view/theme/disroot/schema/default.php')) {
|
||||
$schemefile = 'view/theme/disroot/schema/default.php';
|
||||
if(file_exists('view/theme/beetroot/schema/default.php')) {
|
||||
$schemefile = 'view/theme/beetroot/schema/default.php';
|
||||
require_once ($schemefile);
|
||||
}
|
||||
|
||||
if(file_exists('view/theme/disroot/schema/default.css')) {
|
||||
$schemecss = file_get_contents('view/theme/disroot/schema/default.css');
|
||||
if(file_exists('view/theme/beetroot/schema/default.css')) {
|
||||
$schemecss = file_get_contents('view/theme/beetroot/schema/default.css');
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -115,7 +115,7 @@ if(file_exists('view/theme/redbasic/css/style.css')) {
|
|||
|
||||
$x = file_get_contents('view/theme/redbasic/css/style.css');
|
||||
|
||||
$x .= file_get_contents('view/theme/disroot/css/style.css');
|
||||
$x .= file_get_contents('view/theme/beetroot/css/style.css');
|
||||
|
||||
if($narrow_navbar && file_exists('view/theme/redbasic/css/narrow_navbar.css')) {
|
||||
$x .= file_get_contents('view/theme/redbasic/css/narrow_navbar.css');
|
||||
|
@ -168,4 +168,4 @@ if(file_exists('view/theme/redbasic/css/style.css')) {
|
|||
//if(local_channel() && App::$channel && App::$channel['channel_theme'] != 'redbasic')
|
||||
// set_pconfig(local_channel(), 'redbasic', 'schema', '---');
|
||||
|
||||
echo @file_get_contents('view/theme/disroot/css/style.css');
|
||||
echo @file_get_contents('view/theme/beetroot/css/style.css');
|
||||
|
|
|
@ -11,7 +11,7 @@
|
|||
*
|
||||
*/
|
||||
|
||||
function disroot_init(&$a) {
|
||||
function beetroot_init(&$a) {
|
||||
|
||||
App::$theme_info['extends'] = 'redbasic';
|
||||
|
||||
|
|
Reference in New Issue