mirror of
https://github.com/sbrl/Pepperminty-Wiki.git
synced 2024-11-22 04:23:01 +00:00
Add extra themeing classes
This commit is contained in:
parent
73945a4e9b
commit
0982db9d6c
2 changed files with 10 additions and 4 deletions
|
@ -162,6 +162,12 @@ if(!file_exists("peppermint.json"))
|
|||
else
|
||||
$settings = json_decode(file_get_contents("peppermint.json"));
|
||||
|
||||
if($settings === null)
|
||||
{
|
||||
header("content-type: text/plain");
|
||||
exit("Error: Failed to decode the settings file! Does it contain a syntax error?");
|
||||
}
|
||||
|
||||
if($settings->css === "auto")
|
||||
{
|
||||
$settings->css = <<<THEMECSS
|
||||
|
@ -1249,11 +1255,11 @@ class page_renderer
|
|||
case "user-status": // Renders the user status box
|
||||
if($env->is_logged_in)
|
||||
{
|
||||
$result .= "<span class='inflexible'>" . self::render_username($env->user) . " <small>(<a href='index.php?action=logout'>Logout</a>)</small></span>";
|
||||
$result .= "<span class='inflexible logged-in'>" . self::render_username($env->user) . " <small>(<a href='index.php?action=logout'>Logout</a>)</small></span>";
|
||||
//$result .= page_renderer::$nav_divider;
|
||||
}
|
||||
else
|
||||
$result .= "<span><a href='index.php?action=login&returnto=" . rawurlencode($_SERVER["REQUEST_URI"]) . "'>Login</a></span>";
|
||||
$result .= "<span class='not-logged-in'><a href='index.php?action=login&returnto=" . rawurlencode($_SERVER["REQUEST_URI"]) . "'>Login</a></span>";
|
||||
break;
|
||||
|
||||
case "search": // Renders the search bar
|
||||
|
|
4
core.php
4
core.php
|
@ -948,11 +948,11 @@ class page_renderer
|
|||
case "user-status": // Renders the user status box
|
||||
if($env->is_logged_in)
|
||||
{
|
||||
$result .= "<span class='inflexible'>" . self::render_username($env->user) . " <small>(<a href='index.php?action=logout'>Logout</a>)</small></span>";
|
||||
$result .= "<span class='inflexible logged-in'>" . self::render_username($env->user) . " <small>(<a href='index.php?action=logout'>Logout</a>)</small></span>";
|
||||
//$result .= page_renderer::$nav_divider;
|
||||
}
|
||||
else
|
||||
$result .= "<span><a href='index.php?action=login&returnto=" . rawurlencode($_SERVER["REQUEST_URI"]) . "'>Login</a></span>";
|
||||
$result .= "<span class='not-logged-in'><a href='index.php?action=login&returnto=" . rawurlencode($_SERVER["REQUEST_URI"]) . "'>Login</a></span>";
|
||||
break;
|
||||
|
||||
case "search": // Renders the search bar
|
||||
|
|
Loading…
Reference in a new issue