Merge https://github.com/friendica/red into zpull
This commit is contained in:
commit
a104a7877b
@ -39,7 +39,7 @@ function redbasic_form(&$a, $schema, $nav_colour, $bgcolour, $background_image,
|
|||||||
|
|
||||||
$scheme_choices = array();
|
$scheme_choices = array();
|
||||||
$scheme_choices["---"] = t("Default");
|
$scheme_choices["---"] = t("Default");
|
||||||
$files = glob('view/theme/' . current_theme() . '/schema/*');
|
$files = glob('view/theme/redbasic/schema/*.php');
|
||||||
if($files) {
|
if($files) {
|
||||||
foreach($files as $file) {
|
foreach($files as $file) {
|
||||||
$f = basename($file, ".php");
|
$f = basename($file, ".php");
|
||||||
|
@ -1,5 +1,4 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
// Get the UID of the channel owner
|
// Get the UID of the channel owner
|
||||||
$uid = get_theme_uid();
|
$uid = get_theme_uid();
|
||||||
|
|
||||||
@ -29,14 +28,14 @@
|
|||||||
// not --- like the mobile theme does instead.
|
// not --- like the mobile theme does instead.
|
||||||
|
|
||||||
if (($schema) && ($schema != '---')) {
|
if (($schema) && ($schema != '---')) {
|
||||||
$schemefile = 'view/theme/' . current_theme() . '/schema/' . $schema . '.php';
|
$schemefile = 'view/theme/redbasic/schema/' . $schema . '.php';
|
||||||
require_once ($schemefile);
|
require_once ($schemefile);
|
||||||
}
|
}
|
||||||
// If we haven't got a schema, load the default. We shouldn't touch this - we
|
// If we haven't got a schema, load the default. We shouldn't touch this - we
|
||||||
// should leave it for admins to define for themselves.
|
// should leave it for admins to define for themselves.
|
||||||
if (! $schema) {
|
if (! $schema) {
|
||||||
if(file_exists('view/theme/' . current_theme() . '/schema/default.php')) {
|
if(file_exists('view/theme/redbasic/schema/default.php')) {
|
||||||
$schemefile = 'view/theme/' . current_theme() . '/schema/' . 'default.php';
|
$schemefile = 'view/theme/redbasic/schema/' . 'default.php';
|
||||||
require_once ($schemefile);
|
require_once ($schemefile);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -97,8 +96,8 @@
|
|||||||
|
|
||||||
|
|
||||||
// Apply the settings
|
// Apply the settings
|
||||||
if(file_exists('view/theme/' . current_theme() . '/css/style.css')) {
|
if(file_exists('view/theme/redbasic/css/style.css')) {
|
||||||
$x = file_get_contents('view/theme/' . current_theme() . '/css/style.css');
|
$x = file_get_contents('view/theme/redbasic/css/style.css');
|
||||||
|
|
||||||
$options = array (
|
$options = array (
|
||||||
'$nav_bg_1' => $nav_bg_1,
|
'$nav_bg_1' => $nav_bg_1,
|
||||||
|
Reference in New Issue
Block a user