This commit is contained in:
2022-06-05 16:46:26 +03:00
parent d6ffbc416c
commit ba21527e80
195 changed files with 8430 additions and 506 deletions

View File

@@ -36,9 +36,8 @@ if(! App::$install) {
// not --- like the mobile theme does instead.
// Allow layouts to over-ride the schema
if($_REQUEST['schema']) {
$schema = $_REQUEST['schema'];
if (isset($_REQUEST['schema']) && preg_match('/^[\w_-]+$/i', $_REQUEST['schema'])) {
$schema = $_REQUEST['schema'];
}
if (($schema) && ($schema != '---')) {
@@ -75,7 +74,7 @@ if ((!$schema) || ($schema == '---')) {
if (! $nav_bg)
$nav_bg = '#343a40';
if (! $nav_icon_colour)
$nav_icon_colour = 'rgba(255, 255, 255, 0.5)';
$nav_icon_colour = 'rgba(255, 255, 255, 0.55)';
if (! $nav_active_icon_colour)
$nav_active_icon_colour = 'rgba(255, 255, 255, 0.75)';
if (! $link_colour)
@@ -112,6 +111,10 @@ if(file_exists('view/theme/ussrbasicpub/css/style.css')) {
$x = file_get_contents('view/theme/ussrbasicpub/css/style.css');
if($schema === 'dark' && file_exists('view/theme/ussrbasicpub/schema/bootstrap-nightfall.css')) {
$x .= file_get_contents('view/theme/ussrbasicpub/schema/bootstrap-nightfall.css');
}
if($narrow_navbar && file_exists('view/theme/ussrbasicpub/css/narrow_navbar.css')) {
$x .= file_get_contents('view/theme/ussrbasicpub/css/narrow_navbar.css');
}

View File

@@ -4,9 +4,11 @@
* * Name: Ussrbasicpub
* * Description: ussr.win 2 column pub based on Hubzilla standard theme
* * Version: 2.2
* * MinVersion: 6.4
* * MaxVersion: 7.0
* * MinVersion: 6.5.13
* * MaxVersion: 8.0
* * Author: Fabrixxm
* * Theme_Color: #343a40
* * Background_Color: rgb(254,254,254)
*/
function ussrbasicpub_init(&$a) {