282 lines
14 KiB
HTML
282 lines
14 KiB
HTML
<html lang="zh-CN">
|
||
|
||
<head>
|
||
{block name="get-data"}{/block}
|
||
<meta charset="UTF-8">
|
||
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
|
||
{// 移动端适配 }
|
||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||
<meta name="applicable-device" content="pc,mobile">
|
||
<meta http-equiv="Cache-Control" content="no-transform">
|
||
<meta http-equiv="Cache-Control" content="no-siteapp">
|
||
<meta http-equiv="Cache-Control" content="no-cache, must-revalidate">
|
||
{// 移动端 APP 样式,主要是移动端体验,对 SEO 没直接影响 }
|
||
<meta name="format-detection" content="telephone=no,email=no">
|
||
<meta name="apple-mobile-web-app-capable" content="yes">
|
||
<meta name="apple-mobile-web-app-status-bar-style" content="black-translucent">
|
||
<link rel="apple-touch-icon" href="/template/videoboku//images/favicon.png">
|
||
{// PWA 支持(Chrome/安卓)和 SEO 不是强关联 }
|
||
<meta name="theme-color" content="#000000">
|
||
<meta name="mobile-web-app-capable" content="yes">
|
||
<!-- <link rel="manifest" href="/manifest.json"> -->
|
||
{// 搜索引擎收录控制 }
|
||
<meta name="robots" content="index, follow">
|
||
|
||
<title>{block name="title"}{/block}</title>
|
||
<meta name="keywords" content='{block name="keywords"}{/block}'>
|
||
<meta name="description" content='{block name="description"}{/block}'>
|
||
|
||
<link rel="shortcut icon" href="/template/videoboku//images/favicon.png" type="image/x-icon">
|
||
|
||
<link rel="preload" href="/template/videoboku/css/mytheme-font.css" type="text/css">
|
||
<link rel="preload" href="/template/videoboku/css/mytheme-ui.css" type="text/css">
|
||
<link rel="preload" href="/template/videoboku/css/mytheme-site.css" type="text/css">
|
||
<link rel="preload" href="/template/videoboku/css/mytheme-color.css" type="text/css" >
|
||
|
||
<link rel="stylesheet" href="/template/videoboku/css/mytheme-font.css" type="text/css">
|
||
<link rel="stylesheet" href="/template/videoboku/css/mytheme-ui.css" type="text/css">
|
||
<link rel="stylesheet" href="/template/videoboku/css/mytheme-site.css" type="text/css">
|
||
<link rel="stylesheet" href="/template/videoboku/css/mytheme-share.css" type="text/css">
|
||
<link rel="stylesheet" href="/template/videoboku/css/mytheme-color.css" type="text/css" name="default">
|
||
<link rel="stylesheet" href="/template/videoboku/css/mytheme-color.css" type="text/css" name="skin" disabled="">
|
||
<link rel="stylesheet" href="/template/videoboku/css/mytheme-color1.css" type="text/css" name="skin" disabled="">
|
||
<link rel="stylesheet" href="/template/videoboku/css/mytheme-color2.css" type="text/css" name="skin" disabled="">
|
||
<link rel="stylesheet" href="/template/videoboku/css/mytheme-color3.css" type="text/css" name="skin" disabled="">
|
||
<link rel="stylesheet" href="/public/fu/fu.css" type="text/css">
|
||
|
||
{block name="head"}{/block}
|
||
{block name="head-css"}{/block}
|
||
{block name="head-js"}{/block}
|
||
<script>
|
||
const strPcPath = `{$strPcPath}`;
|
||
</script>
|
||
|
||
|
||
<script>
|
||
(function () {
|
||
var bp = document.createElement('script');
|
||
var curProtocol = window.location.protocol.split(':')[0];
|
||
if (curProtocol === 'https') {
|
||
bp.src = 'https://zz.bdstatic.com/linksubmit/push.js';
|
||
}
|
||
else {
|
||
bp.src = 'http://push.zhanzhang.baidu.com/push.js';
|
||
}
|
||
var s = document.getElementsByTagName("script")[0];
|
||
s.parentNode.insertBefore(bp, s);
|
||
})();
|
||
</script>
|
||
</head>
|
||
|
||
{block name="strPageCode"}
|
||
<?php $strPageCode = 'home'; ?>
|
||
{/block}
|
||
|
||
<body class="active {block name='body-class'}{/block}" id="{block name='body-id'}{/block}">
|
||
<header class="myui-header__top clearfix top-fixed headroom--top headroom--not-bottom" id="header-top">
|
||
<div class="container">
|
||
<div class="row">
|
||
<div class="myui-header_bd clearfix">
|
||
<div class="myui-header__logo">
|
||
<a class="logo" href="/">
|
||
{$DomainModel->d_name}
|
||
</a>
|
||
</div>
|
||
<ul class="myui-header__menu nav-menu">
|
||
{if $DomainModel->info_id > 0}
|
||
<li class="{if $strPageCode == 'info'}active{/if} visible-inline-lg">
|
||
<a class="logo" href="/">首页</a>
|
||
</li>
|
||
<li class=' {if $strPageCode == "home"}active{/if} visible-inline-lg'>
|
||
<a class="logo" href="/vindex">影视首页</a>
|
||
</li>
|
||
{else}
|
||
<li class=' {if $strPageCode == "home"}active{/if} visible-inline-lg'>
|
||
<a class="logo" href="/">首页</a>
|
||
</li>
|
||
{/if}
|
||
|
||
{video:categorytype category_type="ONE" d_key="key" d_val="val"}
|
||
<li
|
||
class=" visible-inline-lg {if $val.v_category_en == $Request.route.strParentCategory}active{/if}">
|
||
<a href='{site:vciurl parent_category="$val.v_category_en" /}'>
|
||
{$val.v_category}
|
||
</a>
|
||
</li>
|
||
{/video:categorytype}
|
||
<li class=" visible-inline-lg">
|
||
<a href='{$strRankUrlTemp}'>
|
||
榜单
|
||
</a>
|
||
</li>
|
||
|
||
|
||
<li class="dropdown-hover dropdown-toggle"><a href="javascript:;">频道<i
|
||
class="fa fa-angle-down"></i></a>
|
||
<div class="dropdown-box bottom fadeInDown clearfix">
|
||
<ul class="item nav-list clearfix">
|
||
<li class="col-lg-5 col-md-5 col-sm-5 col-xs-3 ">
|
||
<a class="btn btn-sm btn-block {if $Request.route.strParentCategory == ''}btn-warm{else}btn-default{/if}"
|
||
href="/">首页</a>
|
||
</li>
|
||
{video:categorytype category_type="ONE" d_key="key" d_val="val"}
|
||
<li class="col-lg-5 col-md-5 col-sm-5 col-xs-3 ">
|
||
<a class="btn btn-sm btn-block {if $val.v_category_en == $Request.route.strParentCategory}btn-warm{else}btn-default{/if}"
|
||
href='{site:vciurl parent_category="$val.v_category_en" /}'>
|
||
{$val.v_category}
|
||
</a>
|
||
</li>
|
||
{/video:categorytype}
|
||
{video:categorytype category_type="ONE" d_key="key" d_val="val"}
|
||
{foreach $val.children as $intChildrenKey=>$arrChildrenCategory }
|
||
<li class="col-lg-5 col-md-5 col-sm-5 col-xs-3 ">
|
||
<a class="btn btn-sm btn-block {if $arrChildrenCategory.v_category_en == $Request.route.strCategory}btn-warm{else}btn-default{/if}"
|
||
href='{site:vclurl parent_category="$Request.route.strParentCategory" category="$arrChildrenCategory.v_category_en" area="all" lang="all" year="all" order="all" page="1"/}'>
|
||
{$arrChildrenCategory.v_category}
|
||
</a>
|
||
</li>
|
||
{/foreach}
|
||
{/video:categorytype}
|
||
|
||
</ul>
|
||
</div>
|
||
</li>
|
||
</ul>
|
||
|
||
<div class="myui-header__search search-box">
|
||
<a class="search-select dropdown-hover" href="javascript:;">
|
||
<span class="text">视频</span>
|
||
<i class="fa fa-caret-down"></i>
|
||
<div class="dropdown-box bottom fadeInDown">
|
||
<ul class="item">
|
||
<li class="vod" data-action="{$strSearchListUrlTemp}">视频</li>
|
||
</ul>
|
||
</div>
|
||
</a>
|
||
<form id="search" name="search" method="get" action="{$strSearchListUrlTemp}">
|
||
<input type="text" id="wd" name="keyword" class="search_wd form-control ac_input" value=""
|
||
placeholder="请输入关键字" autocomplete="off" style=" padding-left: 65px; ">
|
||
<button class="submit search_submit" id="searchbutton" type="submit" name="submit">
|
||
<i class="fa fa-search"></i>
|
||
</button>
|
||
</form>
|
||
<a class="search-close visible-xs" href="javascript:;">
|
||
<i class="fa fa-close"></i>
|
||
</a>
|
||
<div class="search-dropdown-hot dropdown-box bottom fadeInDown">
|
||
<div class="item">
|
||
<p class="text-muted">热门搜索</p>
|
||
{video:list count="6"
|
||
sort_type="news"
|
||
d_key="key" d_val="Video"
|
||
cache_life="3600"}
|
||
<p>
|
||
<a class="text-333" href='{site:vsurl key="$Video.v_name" p="1"/}'
|
||
title="{$Video.v_name}">
|
||
<span class="badge badge-first">{$key++}</span>
|
||
{$Video.v_name}
|
||
</a>
|
||
</p>
|
||
{/video:list}
|
||
</div>
|
||
</div>
|
||
</div>
|
||
<ul class="myui-header__user">
|
||
<li class="visible-xs">
|
||
<form id="search" name="search" method="get" action="{$strSearchListUrlTemp}">
|
||
<input type="text" id="wd" name="keyword" class="search_wd form-control ac_input"
|
||
value="" placeholder="请输入关键字" autocomplete="off" style=" padding-left:2px; ">
|
||
<button class="submit search_submit h5-searchbutton" id="h5-searchbutton" type="submit"
|
||
name="submit">
|
||
<i class="fa fa-search"></i>
|
||
</button>
|
||
</form>
|
||
|
||
</li>
|
||
<li class="dropdown-hover">
|
||
<a href="{$strHistoryUrlTemp}" title="播放记录">
|
||
<i class="fa fa-clock-o"></i>
|
||
</a>
|
||
|
||
</li>
|
||
|
||
</ul>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
</header>
|
||
|
||
{block name="main"}
|
||
{/block}
|
||
|
||
|
||
{include file="public/footer" /}
|
||
|
||
{block name="customize"}{/block}
|
||
|
||
<script>
|
||
const strPushApi = `{site:cfg code="PUSH_API_DOMAIN" encode="false"/}`;
|
||
const strTemplate = `{$TemplatesModel->t_code}`;
|
||
</script>
|
||
<script src="/public/jquery/jquery-3.7.1.min.js" type="module" charset="utf-8"></script>
|
||
|
||
{block name="footer-js"}{/block}
|
||
|
||
<script type="text/javascript"
|
||
src='/public/video/common.js?v={site:cfg code="STATIC_FILE_VERSION" encode="false"/}'></script>
|
||
<script type="text/javascript"
|
||
src='/public/fu/env.js?v={site:cfg code="STATIC_FILE_VERSION" encode="false"/}'></script>
|
||
<script type="text/javascript"
|
||
src='/public/fu/fu.js?v={site:cfg code="STATIC_FILE_VERSION" encode="false"/}'></script>
|
||
{// 全局统计 }
|
||
{site:cfg code="PUBLIC_TONGJI_CODE" encode="false"/}
|
||
|
||
{// 站点统计 }
|
||
{$DomainModel->d_statis|raw}
|
||
|
||
|
||
|
||
|
||
|
||
<script>
|
||
document.addEventListener("DOMContentLoaded", function () {
|
||
// 移动端点击切换
|
||
$('.dropdown-toggle').on('click', function (e) {
|
||
//e.preventDefault(); // 阻止默认行为(避免跳转)
|
||
var $parent = $(this).closest('.dropdown-hover');
|
||
var $dropdownBox = $parent.find('.dropdown-box');
|
||
|
||
// 切换 active 类
|
||
$parent.toggleClass('active');
|
||
|
||
// 显示或隐藏下拉菜单
|
||
if ($parent.hasClass('active')) {
|
||
$dropdownBox.slideDown(300); // 动画显示
|
||
} else {
|
||
$dropdownBox.slideUp(300); // 动画隐藏
|
||
}
|
||
|
||
// 关闭其他下拉菜单
|
||
$('.dropdown-hover').not($parent).removeClass('active').find('.dropdown-box').slideUp(300);
|
||
});
|
||
|
||
// 点击下拉菜单中的链接,允许跳转
|
||
$('.dropdown-box a').on('click', function (e) {
|
||
// 确保不阻止默认行为,允许 <a> 标签跳转
|
||
// 如果需要,可以在这里添加其他逻辑(如记录点击)
|
||
});
|
||
|
||
// 点击页面其他地方关闭下拉菜单
|
||
$(document).on('click', function (e) {
|
||
// 仅当点击不在 .dropdown-hover 或其子元素时关闭
|
||
if (!$(e.target).closest('.dropdown-hover').length) {
|
||
$('.dropdown-hover').removeClass('active').find('.dropdown-box').slideUp(300);
|
||
}
|
||
});
|
||
});
|
||
|
||
</script>
|
||
|
||
</body>
|
||
|
||
</html> |