better-staridc-MNBT
1<?php
2/**
3 * hosting_shop 插件用户端 - 公共布局 (Layui)
4 */
5if (!defined('IN_CRONLITE')) { exit; }
6$current_user = $current_user ?? null;
7$page_title = $page_title ?? '主机售卖';
8$content = $content ?? '';
9?>
10<!DOCTYPE html>
11<html lang="zh-CN">
12<head>
13<meta charset="UTF-8">
14<meta name="viewport" content="width=device-width, initial-scale=1.0">
15<title><?= htmlspecialchars($page_title) ?> - 主机售卖</title>
16<link rel="stylesheet" href="<?= mnbt_asset_url('layui/css/layui.css') ?>">
17<link rel="stylesheet" href="<?= hosting_asset_url('style.css') ?>">
18</head>
19<body>
20
21<div class="ly-nav hs-navbar">
22 <div class="ly-nav-inner">
23 <a class="ly-nav-brand" href="<?= hosting_url('shop') ?>">主机售卖</a>
24 <div class="ly-nav-links">
25 <?php if ($current_user): ?>
26 <a href="<?= hosting_url('shop') ?>">套餐</a>
27 <a href="<?= hosting_url('shop/assets') ?>">我的主机</a>
28 <a href="<?= hosting_url('shop/orders') ?>">订单</a>
29 <a href="<?= hosting_url('balance') ?>">余额</a>
30 <a href="<?= hosting_url('account/profile') ?>">个人信息</a>
31 <a href="<?= hosting_url('account/logout') ?>">退出</a>
32 <?php else: ?>
33 <a href="<?= hosting_url('account/login') ?>">登录</a>
34 <a href="<?= hosting_url('account/register') ?>">注册</a>
35 <?php endif; ?>
36 </div>
37 </div>
38</div>
39
40<div class="ly-page-wide"><?= $content ?></div>
41
42<script src="<?= mnbt_asset_url('layui/layui.js') ?>"></script>
43</body>
44</html>