| Server IP : 173.209.174.21 / Your IP : 216.73.216.89 Web Server : Apache/2.4.58 (Ubuntu) System : Linux wcfs-server 6.8.0-124-generic #124-Ubuntu SMP PREEMPT_DYNAMIC Tue May 26 13:00:45 UTC 2026 x86_64 User : nodor ( 1000) PHP Version : 8.3.6 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : OFF Directory : /var/www/thelittlebigshow/self-hosted/ |
Upload File : |
<?php
function appBrandStyles(): string
{
return <<<HTML
<style>
.app-brand-bar {
display: flex;
align-items: center;
justify-content: space-between;
gap: 16px;
margin: 0 0 22px;
padding: 14px 18px;
background: linear-gradient(135deg, #eff6ff 0%, #ecfeff 100%);
border: 1px solid #dbeafe;
border-radius: 16px;
}
.app-brand-link {
display: flex;
align-items: center;
gap: 14px;
text-decoration: none;
color: #0f172a;
}
.app-brand-link img {
width: 54px;
height: 54px;
display: block;
}
.app-brand-name {
font-size: 24px;
font-weight: 800;
line-height: 1.1;
color: #1d4ed8;
}
.app-brand-store {
margin-top: 4px;
font-size: 13px;
color: #475569;
line-height: 1.4;
}
.app-brand-home {
font-size: 14px;
font-weight: 700;
color: #0f766e;
text-decoration: none;
white-space: nowrap;
}
@media (max-width: 640px) {
.app-brand-bar {
flex-direction: column;
align-items: flex-start;
}
.app-brand-home {
white-space: normal;
}
}
</style>
HTML;
}
function renderAppBrandHeader(): void
{
$storeName = htmlspecialchars($_SESSION['store_name'] ?? 'HouseTab Pro', ENT_QUOTES, 'UTF-8');
$homeHref = 'index.php';
$homeLabel = 'App Home';
if (!function_exists('selfHostedModeEnabled') || !selfHostedModeEnabled()) {
$homeHref = '/dashboard.php';
$homeLabel = 'Account Dashboard';
}
echo '<div class="app-brand-bar">';
echo '<a class="app-brand-link" href="index.php">';
echo '<img src="house-tab-pro-app-icon.svg" alt="HouseTab Pro icon">';
echo '<div>';
echo '<div class="app-brand-name">HouseTab Pro</div>';
echo '<div class="app-brand-store">' . $storeName . '</div>';
echo '</div>';
echo '</a>';
echo '<a class="app-brand-home" href="' . htmlspecialchars($homeHref, ENT_QUOTES, 'UTF-8') . '">' . htmlspecialchars($homeLabel, ENT_QUOTES, 'UTF-8') . '</a>';
echo '</div>';
}