Correct variable declaration in latte
This commit is contained in:
parent
753c6c7688
commit
f3d7584a46
|
@ -1,6 +1,6 @@
|
|||
{extends "body.latte"}
|
||||
{var title = __get("ASSIGNER_TITLE")}
|
||||
{var navActiveIndex = 2}
|
||||
{var $title = __get("ASSIGNER_TITLE")}
|
||||
{var $navActiveIndex = 2}
|
||||
|
||||
{block content}
|
||||
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
{extends "body.latte"}
|
||||
{var title = __get("BANS_TITLE")}
|
||||
{var navActiveIndex = 3}
|
||||
{var $title = __get("BANS_TITLE")}
|
||||
{var $navActiveIndex = 3}
|
||||
|
||||
{block content}
|
||||
|
||||
|
|
|
@ -191,7 +191,7 @@ $navActiveIndex = isset($navActiveIndex) ? (int) $navActiveIndex : 0;
|
|||
<!-- Moment.js 2.22.2 -->
|
||||
{$tplutils::includeScript("{cdnjs}/moment.js/2.24.0/moment.min.js", "sha256-4iQZ6BVL4qNKlQ27TExEhBN1HFPvAvAMbFavKKosSWQ=")}
|
||||
|
||||
{var momentjslang = __get("MOMENTJS_LANG", [], true)}
|
||||
{var $momentjslang = __get("MOMENTJS_LANG", [], true)}
|
||||
{if $momentjslang !== null && $momentjslang !== "en-us"}
|
||||
{$tplutils::includeScript("{cdnjs}/moment.js/2.24.0/locale/$momentjslang.js")}
|
||||
<script>
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
{extends "body.latte"}
|
||||
{var title = "TESTING"}
|
||||
{var $title = "TESTING"}
|
||||
|
||||
{block content}
|
||||
<div class="card card-accent">
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
{extends "body.latte"}
|
||||
{var title = __get("FAQ_TITLE")}
|
||||
{var navActiveIndex = 5}
|
||||
{var $title = __get("FAQ_TITLE")}
|
||||
{var $navActiveIndex = 5}
|
||||
|
||||
{block content}
|
||||
<div class="card card-accent">
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
{extends "body.latte"}
|
||||
{var title = __get("HOME_TITLE")}
|
||||
{var $title = __get("HOME_TITLE")}
|
||||
|
||||
{block content}
|
||||
<div class="card card-titleblock card-accent">
|
||||
|
|
|
@ -45,7 +45,7 @@
|
|||
</div>
|
||||
|
||||
{ifset $adminStatus}
|
||||
{var offlineHiddenByDefault = $config["adminstatus_offlinehiddenbydefault"]}
|
||||
{var $offlineHiddenByDefault = $config["adminstatus_offlinehiddenbydefault"]}
|
||||
<div class="card card-accent">
|
||||
<div class="card-header d-flex justify-content-between align-items-center">
|
||||
<span>
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
{extends "body.latte"}
|
||||
{var title = $pagetitle}
|
||||
{var $title = $pagetitle}
|
||||
|
||||
{block content}
|
||||
<div class="card card-accent">
|
||||
|
|
|
@ -43,7 +43,7 @@
|
|||
<!-- <p class="mb-0">Still not working? Try <a href="#">other login methods</a></p> -->
|
||||
|
||||
<!-- Show a small IP debug -->
|
||||
{var utils = Wruczek\TSWebsite\Utils\Utils::class}
|
||||
{var $utils = Wruczek\TSWebsite\Utils\Utils::class}
|
||||
<span class="loginDebugInfo"
|
||||
data-toggle="tooltip"
|
||||
data-html="true" title="Debug info: Your IP<br>Raw: {$utils::getClientIp(false)}<br>CF: {$utils::getClientIp(true)}">
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
{extends "body.latte"}
|
||||
{var title = __get("VIEWER_TITLE")}
|
||||
{var navActiveIndex = 1}
|
||||
{var $title = __get("VIEWER_TITLE")}
|
||||
{var $navActiveIndex = 1}
|
||||
|
||||
{block content}
|
||||
<div class="card card-accent">
|
||||
|
|
Loading…
Reference in New Issue