71 lines
3.5 KiB
PHP
71 lines
3.5 KiB
PHP
|
|
<?php
|
|
session_start();
|
|
?>
|
|
<!DOCTYPE html>
|
|
<html lang="en">
|
|
<head>
|
|
<meta charset="UTF-8">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
<title>telegra</title>
|
|
<meta name="description" content="Custom CRM System for Managing Multiple Telegram Public Channels. Built with Flatlogic Generator.">
|
|
<meta name="keywords" content="telegram crm, channel management, post scheduler, telegram analytics, content automation, n8n integration, telegram pubs, social media tool, Built with Flatlogic Generator">
|
|
<meta property="og:title" content="telegra">
|
|
<meta property="og:description" content="Custom CRM System for Managing Multiple Telegram Public Channels. Built with Flatlogic Generator.">
|
|
<meta property="og:image" content="<?php echo htmlspecialchars($_SERVER['PROJECT_IMAGE_URL'] ?? ''); ?>">
|
|
<meta name="twitter:card" content="summary_large_image">
|
|
<meta name="twitter:image" content="<?php echo htmlspecialchars($_SERVER['PROJECT_IMAGE_URL'] ?? ''); ?>">
|
|
|
|
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.2/dist/css/bootstrap.min.css" rel="stylesheet">
|
|
<link rel="preconnect" href="https://fonts.googleapis.com">
|
|
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
|
|
<link href="https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap" rel="stylesheet">
|
|
<link rel="stylesheet" href="assets/css/custom.css?v=<?php echo time(); ?>">
|
|
</head>
|
|
<body>
|
|
|
|
<div class="d-flex">
|
|
<nav class="sidebar">
|
|
<div class="sidebar-header">
|
|
<a href="index.php" class="sidebar-brand">
|
|
<i data-feather="send" class="brand-icon"></i>
|
|
<span>telegra</span>
|
|
</a>
|
|
</div>
|
|
<?php
|
|
$current_page = basename($_SERVER['PHP_SELF']);
|
|
$menu_items = [
|
|
'index.php' => ['icon' => 'home', 'label' => 'Dashboard'],
|
|
'channels.php' => ['icon' => 'tv', 'label' => 'Channels'],
|
|
'scheduler.php' => ['icon' => 'calendar', 'label' => 'Scheduler'],
|
|
'analytics.php' => ['icon' => 'bar-chart-2', 'label' => 'Analytics'],
|
|
'settings.php' => ['icon' => 'settings', 'label' => 'Settings'],
|
|
];
|
|
?>
|
|
<ul class="nav flex-column">
|
|
<?php foreach ($menu_items as $url => $item): ?>
|
|
<li class="nav-item">
|
|
<a class="nav-link <?php echo ($current_page == $url) ? 'active' : ''; ?>" href="<?php echo $url; ?>">
|
|
<i data-feather="<?php echo $item['icon']; ?>"></i>
|
|
<span><?php echo $item['label']; ?></span>
|
|
</a>
|
|
</li>
|
|
<?php endforeach; ?>
|
|
</ul>
|
|
</nav>
|
|
<main class="main-content flex-grow-1">
|
|
<?php if (isset($_SESSION['flash_message'])): ?>
|
|
<div class="toast-container position-fixed top-0 end-0 p-3">
|
|
<div id="flashToast" class="toast show" role="alert" aria-live="assertive" aria-atomic="true">
|
|
<div class="toast-header">
|
|
<strong class="me-auto">Notification</strong>
|
|
<button type="button" class="btn-close" data-bs-dismiss="toast" aria-label="Close"></button>
|
|
</div>
|
|
<div class="toast-body">
|
|
<?php echo $_SESSION['flash_message']; ?>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<?php unset($_SESSION['flash_message']); ?>
|
|
<?php endif; ?>
|