debug
This commit is contained in:
@@ -21,12 +21,6 @@
|
|||||||
<!-- <link rel="stylesheet" href="/template/videodadi/css/stui_default.css" type="text/css"> -->
|
<!-- <link rel="stylesheet" href="/template/videodadi/css/stui_default.css" type="text/css"> -->
|
||||||
<link rel="stylesheet" href="/template/videodadi/css/mytheme-font.css" type="text/css">
|
<link rel="stylesheet" href="/template/videodadi/css/mytheme-font.css" type="text/css">
|
||||||
|
|
||||||
<script>
|
|
||||||
const strPushApi = `{site:cfg code="PUSH_API_DOMAIN" encode="false"/}`;
|
|
||||||
</script>
|
|
||||||
<script src="/public/jquery/jquery-3.7.1.min.js" type="module" charset="utf-8"></script>
|
|
||||||
<script type="text/javascript"
|
|
||||||
src='/public/video/common.js?v={site:cfg code="STATIC_FILE_VERSION" encode="false"/}'></script>
|
|
||||||
|
|
||||||
{block name="head"}{/block}
|
{block name="head"}{/block}
|
||||||
{block name="head-css"}{/block}
|
{block name="head-css"}{/block}
|
||||||
@@ -124,6 +118,14 @@
|
|||||||
|
|
||||||
{/block}
|
{/block}
|
||||||
|
|
||||||
|
<script>
|
||||||
|
const strPushApi = `{site:cfg code="PUSH_API_DOMAIN" encode="false"/}`;
|
||||||
|
</script>
|
||||||
|
<script src="/public/jquery/jquery-3.7.1.min.js" type="module" charset="utf-8"></script>
|
||||||
|
<script type="text/javascript"
|
||||||
|
src='/public/video/common.js?v={site:cfg code="STATIC_FILE_VERSION" encode="false"/}'></script>
|
||||||
|
|
||||||
|
|
||||||
{// 全局统计 }
|
{// 全局统计 }
|
||||||
{site:cfg code="PUBLIC_TONGJI_CODE" encode="false"/}
|
{site:cfg code="PUBLIC_TONGJI_CODE" encode="false"/}
|
||||||
|
|
||||||
@@ -132,6 +134,8 @@
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
</body>
|
</body>
|
||||||
|
|
||||||
</html>
|
</html>
|
||||||
@@ -41,7 +41,11 @@
|
|||||||
"@type": "VideoObject",
|
"@type": "VideoObject",
|
||||||
"name": "{$DomainModel->d_name}热门推荐预告片",
|
"name": "{$DomainModel->d_name}热门推荐预告片",
|
||||||
"description": "观看{$DomainModel->d_name}最新电影和电视剧的精彩预告片!",
|
"description": "观看{$DomainModel->d_name}最新电影和电视剧的精彩预告片!",
|
||||||
"thumbnailUrl": "https://video1.com/img/video/2024/12/18/17/ai-qing-sheng-huo-di-er-ji.webp",
|
{volist name="arrVideoTuijian" id="Video" key="key"}
|
||||||
|
{if $key == 1 }
|
||||||
|
"thumbnailUrl": 'https://{$DomainModel->d_domain}{site:vurl v_id="$Video.v_id" v_py="$Video.v_name_en"/}',
|
||||||
|
{/if}
|
||||||
|
{/volist}
|
||||||
"uploadDate": "{:date('y-m-d')}",
|
"uploadDate": "{:date('y-m-d')}",
|
||||||
"publisher": {
|
"publisher": {
|
||||||
"@type": "Organization",
|
"@type": "Organization",
|
||||||
|
|||||||
@@ -11,7 +11,7 @@
|
|||||||
<h3 class="title">
|
<h3 class="title">
|
||||||
<img src="/template/videodadi/icon/icon_{$val.v_category_en}.png">
|
<img src="/template/videodadi/icon/icon_{$val.v_category_en}.png">
|
||||||
<a
|
<a
|
||||||
href="">最新{$val.v_category}{$val.v_category_en}</a>
|
href="">最新{$val.v_category}</a>
|
||||||
</h3>
|
</h3>
|
||||||
<ul class="nav nav-text pull-right hidden-sm hidden-xs">
|
<ul class="nav nav-text pull-right hidden-sm hidden-xs">
|
||||||
{video:list count="3" v_parent_category_en="$val.v_category_en" sort_type="tuijian" d_key="key" d_val="Video" cache_life="86400"}
|
{video:list count="3" v_parent_category_en="$val.v_category_en" sort_type="tuijian" d_key="key" d_val="Video" cache_life="86400"}
|
||||||
|
|||||||
@@ -19,21 +19,59 @@
|
|||||||
|
|
||||||
<!-- 结构化数据 -->
|
<!-- 结构化数据 -->
|
||||||
<script type="application/ld+json">
|
<script type="application/ld+json">
|
||||||
|
[
|
||||||
|
|
||||||
{
|
{
|
||||||
"@context": "https://schema.org",
|
"@context": "https://schema.org",
|
||||||
"@type": "WebSite",
|
"@type": "CollectionPage",
|
||||||
"name": "{$DomainModel->d_name}",
|
"name": "{$DomainModel->d_name} - 最新电影推荐",
|
||||||
"url": "https://{$DomainModel->d_domain}",
|
"url": "https://{$DomainModel->d_domain}",
|
||||||
"headline": '{site:replace code="VIDEO@GETCATEGORYINDEX@TITLE"}',
|
"description": "{site:replace code="VIDEO@GETCATEGORYINDEX@DESCRIPTION"}",
|
||||||
"description": '{site:replace code="VIDEO@GETCATEGORYINDEX@DESCRIPTION"}',
|
|
||||||
"datePublished": "{:date('Y-m-d')}"
|
|
||||||
|
|
||||||
"potentialAction": {
|
"potentialAction": {
|
||||||
"@type": "SearchAction",
|
"@type": "SearchAction",
|
||||||
"target": 'https://{$DomainModel->d_domain}',
|
"target": 'https://{$DomainModel->d_domain}{site:vsurl key="search_term_string" p="1"/}",
|
||||||
"query-input": "required name=search_term_string"
|
"query-input": "required name=search_term_string"
|
||||||
}
|
}
|
||||||
|
"hasPart": [
|
||||||
|
{video:ranklist count="5"
|
||||||
|
v_parent_category_en="$Request.route.strParentCategory"
|
||||||
|
sort_type="weekly"
|
||||||
|
d_key="key" d_val="Video" cache_life="86400"}
|
||||||
|
|
||||||
|
{if $key < 5 }
|
||||||
|
{
|
||||||
|
"@type": "VideoObject",
|
||||||
|
"name": "{$Video.v_name}",
|
||||||
|
"description": "{$Video.v_description}",
|
||||||
|
"thumbnailUrl": 'https://{$DomainModel->d_domain}{site:vurl v_id="$Video.v_id" v_py="$Video.v_name_en"/}',
|
||||||
|
"uploadDate": "{:date('y-m-d')}",
|
||||||
|
},
|
||||||
|
{/if}
|
||||||
|
{/video:ranklist}
|
||||||
|
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"@context": "https://schema.org",
|
||||||
|
"@type": "BreadcrumbList",
|
||||||
|
"itemListElement": [
|
||||||
|
{
|
||||||
|
"@type": "ListItem",
|
||||||
|
"position": 1,
|
||||||
|
"name": "首页",
|
||||||
|
"item": "https://{$DomainModel->d_domain}"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"@type": "ListItem",
|
||||||
|
"position": 2,
|
||||||
|
"name": "分类首页",
|
||||||
|
"item": "https://{$DomainModel->d_domain}{site:vciurl prent_category="$Request.route.strParentCategory" /}"
|
||||||
}
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
|
||||||
|
|
||||||
|
]
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
|
||||||
@@ -80,7 +118,7 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<ul class="stui-vodlist clearfix">
|
<ul class="stui-vodlist clearfix">
|
||||||
{video:list count="12"
|
{video:list count="2"
|
||||||
v_category_en="$arrChildrenCategory.v_category_en"
|
v_category_en="$arrChildrenCategory.v_category_en"
|
||||||
v_lang_en="all"
|
v_lang_en="all"
|
||||||
v_area_en="all"
|
v_area_en="all"
|
||||||
@@ -92,7 +130,7 @@
|
|||||||
|
|
||||||
</ul>
|
</ul>
|
||||||
<ul class="stui-vodlist__text col-pd clearfix hidden-xs">
|
<ul class="stui-vodlist__text col-pd clearfix hidden-xs">
|
||||||
{video:list count="12"
|
{video:list count="2"
|
||||||
v_category_en="$arrChildrenCategory.v_category_en"
|
v_category_en="$arrChildrenCategory.v_category_en"
|
||||||
v_lang_en="all"
|
v_lang_en="all"
|
||||||
v_area_en="all"
|
v_area_en="all"
|
||||||
@@ -112,7 +150,7 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<ul class="stui-vodlist__text active col-pd clearfix">
|
<ul class="stui-vodlist__text active col-pd clearfix">
|
||||||
{video:ranklist count="10"
|
{video:ranklist count="2"
|
||||||
v_category_en="$arrChildrenCategory.v_category_en"
|
v_category_en="$arrChildrenCategory.v_category_en"
|
||||||
sort_type="weekly"
|
sort_type="weekly"
|
||||||
d_key="key" d_val="Video" cache_life="86400"}
|
d_key="key" d_val="Video" cache_life="86400"}
|
||||||
|
|||||||
@@ -237,7 +237,7 @@
|
|||||||
sort_type="news"
|
sort_type="news"
|
||||||
d_key="d_key" d_val="Video" cache_life="86400"}
|
d_key="d_key" d_val="Video" cache_life="86400"}
|
||||||
|
|
||||||
{include file="public/video-list-shu" /}
|
{include file="public/video-list-shu" start="0"/}
|
||||||
{/video:list}
|
{/video:list}
|
||||||
|
|
||||||
</ul>
|
</ul>
|
||||||
@@ -249,7 +249,7 @@
|
|||||||
v_year="all"
|
v_year="all"
|
||||||
sort_type="news"
|
sort_type="news"
|
||||||
d_key="d_key" d_val="Video" cache_life="86400"}
|
d_key="d_key" d_val="Video" cache_life="86400"}
|
||||||
{include file="public/video-list-text2" /}
|
{include file="public/video-list-text2" start="0"/}
|
||||||
{/video:list}
|
{/video:list}
|
||||||
|
|
||||||
</ul>
|
</ul>
|
||||||
@@ -273,7 +273,7 @@
|
|||||||
v_parent_category_en="$arrVideo.v_parent_category_en"
|
v_parent_category_en="$arrVideo.v_parent_category_en"
|
||||||
sort_type="weekly"
|
sort_type="weekly"
|
||||||
d_key="key" d_val="Video" cache_life="86400"}
|
d_key="key" d_val="Video" cache_life="86400"}
|
||||||
{include file="public/video-list-phb" /}
|
{include file="public/video-list-phb" start="0"/}
|
||||||
{/video:ranklist}
|
{/video:ranklist}
|
||||||
</ul>
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
@@ -294,7 +294,7 @@
|
|||||||
v_parent_category_en="$arrVideo.v_parent_category_en"
|
v_parent_category_en="$arrVideo.v_parent_category_en"
|
||||||
sort_type="monthly"
|
sort_type="monthly"
|
||||||
d_key="key" d_val="Video" cache_life="86400"}
|
d_key="key" d_val="Video" cache_life="86400"}
|
||||||
{include file="public/video-list-phb" /}
|
{include file="public/video-list-phb" start="0"/}
|
||||||
{/video:ranklist}
|
{/video:ranklist}
|
||||||
|
|
||||||
</ul>
|
</ul>
|
||||||
|
|||||||
@@ -57,6 +57,10 @@ class Video extends TagLib
|
|||||||
*/
|
*/
|
||||||
public function tagRankList($tag, $content)
|
public function tagRankList($tag, $content)
|
||||||
{
|
{
|
||||||
|
// if($tag['sort_type'] == 'weekly'){
|
||||||
|
// var_dump($tag);exit;
|
||||||
|
// }
|
||||||
|
|
||||||
$count = $tag['count'] ?? '10';
|
$count = $tag['count'] ?? '10';
|
||||||
$sort_type = $tag['sort_type'] ?? "";
|
$sort_type = $tag['sort_type'] ?? "";
|
||||||
$v_status = $tag['v_status'] ?? "all";
|
$v_status = $tag['v_status'] ?? "all";
|
||||||
|
|||||||
@@ -59,9 +59,6 @@ function isMobile() {
|
|||||||
// 懒加载
|
// 懒加载
|
||||||
document.addEventListener("DOMContentLoaded", function () {
|
document.addEventListener("DOMContentLoaded", function () {
|
||||||
|
|
||||||
$(".stui-header__user li,.stui-header__menu li").click(function () { $(this).find(".dropdown").toggle(); });
|
|
||||||
|
|
||||||
|
|
||||||
// 通用懒加载函数
|
// 通用懒加载函数
|
||||||
function lazyLoad(elements, callback) {
|
function lazyLoad(elements, callback) {
|
||||||
const observer = new IntersectionObserver((entries, observer) => {
|
const observer = new IntersectionObserver((entries, observer) => {
|
||||||
|
|||||||
Reference in New Issue
Block a user