<?php
if (!defined('ABSPATH')) exit;
// 视图模板 — 不加密
?><!DOCTYPE html>
<html <?php language_attributes(); ?>>
<head>
<meta charset="<?php bloginfo('charset'); ?>">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title><?php bloginfo('name'); ?> — 主题未授权</title>
<link rel="stylesheet" href="<?php echo THEME_URL; ?>/inc/assets/css/pix-unauthorized.css?ver=<?php echo PIX_VERSION; ?>">
</head>
<body>
<div class="wrap">
  <div class="icon-wrap"><img src="<?php echo THEME_URL; ?>/img/pixcap.svg" alt="pixcap" style="width:36px;height:36px;filter:brightness(0) saturate(100%) invert(55%) sepia(89%) saturate(1386%) hue-rotate(4deg) brightness(97%) contrast(101%)"></div>
  <h1>主题未授权</h1>
  <p class="sub">当前使用的 <span class="highlight">PIXPRO</span> 主题尚未激活授权</p>
  <div class="divider"></div>
  <div class="info-box">
    <div class="label">💡 提示</div>
    <p>请前往 <span class="highlight"><?php echo esc_html(parse_url(PIX_THEME_OFFICIAL, PHP_URL_HOST)); ?></span> 购买正版授权后即可正常使用本主题的所有功能。</p>
  </div>
  <a class="btn" href="<?php echo esc_url(PIX_THEME_OFFICIAL); ?>" target="_blank">前往购买授权</a>
  <?php if (current_user_can('manage_options')): ?>
  <div class="footer">管理员可前往后台「PIX主题设置」→「主题概览」进行授权激活</div>
  <?php endif; ?>
</div>
</body>
</html>