File manager - Edit - /home/webapp68.cm.in.th/u68319090014/Project01/header.php
Back
<?php $current_page = basename($_SERVER['PHP_SELF']); ?> <!DOCTYPE html> <html lang="th"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title><?php echo isset($pageTitle) ? $pageTitle : 'วัดเชียงมั่น'; ?></title> <link href="https://fonts.googleapis.com/css2?family=Sarabun:wght@300;400;500;600&display=swap" rel="stylesheet"> <link rel="stylesheet" href="style.css"> </head> <body> <header class="hero-header"> <div> <h1><?php echo isset($headerTitle) ? $headerTitle : 'วัดเชียงมั่น'; ?></h1> <p><?php echo isset($headerSubtitle) ? $headerSubtitle : 'จังหวัดเชียงใหม่'; ?></p> </div> </header> <nav class="main-nav"> <div class="nav-container"> <a href="index.php" class="<?php echo ($current_page == 'index.php') ? 'active' : ''; ?>">หน้าแรก</a> <a href="about.php" class="<?php echo ($current_page == 'about.php') ? 'active' : ''; ?>">ข้อมูลวัด</a> <a href="buddha.php" class="<?php echo ($current_page == 'buddha.php') ? 'active' : ''; ?>">พระพุทธรูป</a> <a href="inscription.php" class="<?php echo ($current_page == 'inscription.php') ? 'active' : ''; ?>">ศิลาจารึก</a> <a href="news.php" class="<?php echo ($current_page == 'news.php' || $current_page == 'add_news.php') ? 'active' : ''; ?>">ข่าวประชาสัมพันธ์</a> </div> </nav>
| ver. 1.4 |
Github
|
.
| PHP 7.4.33 | Generation time: 0.42 |
proxy
|
phpinfo
|
Settings