<?php
// 模板头部
$page_title = $page_title ?? "模板40";
$description = $description ?? "婚庆行业CMS模板";
?>
<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title><?php echo xss_clean($page_title); ?> - <?php echo xss_clean(SITE_NAME); ?></title>
    <meta name="description" content="<?php echo xss_clean($description); ?>">
    <link rel="stylesheet" href="<?php echo SITE_URL; ?>templates/<?php echo CURRENT_THEME; ?>/style.css">
</head>
<body>
    <header class="header">
        <div class="container">
            <div class="logo"><?php echo xss_clean(SITE_NAME); ?></div>
            <nav class="nav">
                <a href="<?php echo SITE_URL; ?>">首页</a>
                <a href="<?php echo SITE_URL; ?>?p=about">关于我们</a>
                <a href="<?php echo SITE_URL; ?>?p=products">产品</a>
                <a href="<?php echo SITE_URL; ?>?p=news">新闻</a>
                <a href="<?php echo SITE_URL; ?>?p=contact">联系我们</a>
            </nav>
        </div>
    </header>
    <main class="main">
