按seo需求更改站点地图
This commit is contained in:
@@ -35,19 +35,15 @@
|
||||
(我们会在3个工作日内删除侵权内容,谢谢。)</p>
|
||||
<p>{$DomainModel->d_name}是一个优质影视资源网站,免费提供最新电影、热播电视剧、综艺节目、动漫、短剧等影视作品在线观看,看电影追剧首选{$DomainModel->d_name}。</p>
|
||||
<p>反馈邮箱:{site:cfg code="YOU_XIANG" encode="false"/}</p>
|
||||
<p class="hidden-xs">
|
||||
<a href="/sitemap_index.xml" target="_blank">XML地图</a>
|
||||
<a href="/robots.txt" target="_blank">网站地图</a>
|
||||
{ad:list code="YOUQING_LIANJIE_GUANG_GAO" order="desc" limit="2" id="ad"}
|
||||
<a href="{$ad.gg_tiao_zhuan_di_zhi}" target="_blank">{$ad.gg_wen_zi}
|
||||
</a>
|
||||
{/ad:list}
|
||||
<!-- <a target="_blank" href="/rss.xml">RSS订阅</a><span class="split-line"></span><a
|
||||
target="_blank" href="/rss/baidu.xml">百度蜘蛛</a><span class="split-line"></span><a
|
||||
target="_blank" href="/rss/google.xml">谷歌地图</a><span class="split-line"></span><a
|
||||
target="_blank" href="/rss/bing.xml">必应地图</a><span class="split-line"></span><a
|
||||
target="_blank" href="/rss/so.xml">360地图</a><span class="split-line"></span><a
|
||||
target="_blank" href="/rss/sogou.xml">搜狗地图</a> -->
|
||||
<p class="">
|
||||
<a href="/sitemap.html" target="_blank">网站地图</a>
|
||||
|
||||
<a href="/rss/baidu.xml" target="_blank">百度Sitemap</a>
|
||||
|
||||
<a href="/rss/so.xml" target="_blank">360Sitemap</a>
|
||||
|
||||
<a href="/sitemap_index.xml" target="_blank">XML网站地图</a>
|
||||
|
||||
</p>
|
||||
<p class="margin-0">Copyright © 2008-2023 by {$DomainModel->d_name} 统计代码</p>
|
||||
</div>
|
||||
|
||||
40
code/app/home/view/videoBoKu/rss/baidu.xml
Normal file
40
code/app/home/view/videoBoKu/rss/baidu.xml
Normal file
@@ -0,0 +1,40 @@
|
||||
<?xml version="1.0" encoding="UTF-8" ?>
|
||||
<rss version="2.0">
|
||||
<channel>
|
||||
<title>{$DomainModel->d_name}</title>
|
||||
<description>{$DomainModel->d_description}</description>
|
||||
<link>www.{$DomainModel->d_domain}</link>
|
||||
<language>zh-cn</language>
|
||||
<docs>{$DomainModel->d_name}</docs>
|
||||
<generator>Rss Powered By www.{$DomainModel->d_domain}</generator>
|
||||
|
||||
{video:list count="30"
|
||||
v_category_en="all"
|
||||
v_lang_en="all"
|
||||
v_area_en="all"
|
||||
v_year="all"
|
||||
sort_type="news"
|
||||
d_key="d_key" d_val="Video" cache_life="86400"}
|
||||
<item>
|
||||
<title>
|
||||
<?php echo html_entity_decode($Video['v_name'], ENT_QUOTES | ENT_XML1, 'UTF-8'); ?> {$Video.v_remarks}
|
||||
</title>
|
||||
<link>https://{$DomainModel->d_domain}{site:vurl v_id="$Video.v_id" v_py="$Video.v_name_en"/}</link>
|
||||
<author>
|
||||
{volist name='$Video.v_actor' id='vo' key='index'}
|
||||
{$vo} ,
|
||||
{/volist}
|
||||
</author>
|
||||
<pubDate>{$Video.v_publish_date}</pubDate>
|
||||
<description><![CDATA[
|
||||
<?php
|
||||
echo '《' . html_entity_decode($Video['v_name'], ENT_QUOTES | ENT_XML1, 'UTF-8') . '》'
|
||||
. html_entity_decode($Video['v_description'], ENT_QUOTES | ENT_XML1, 'UTF-8');
|
||||
?>
|
||||
]]></description>
|
||||
|
||||
</item>
|
||||
{/video:list}
|
||||
|
||||
</channel>
|
||||
</rss>
|
||||
18
code/app/home/view/videoBoKu/rss/so.xml
Normal file
18
code/app/home/view/videoBoKu/rss/so.xml
Normal file
@@ -0,0 +1,18 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<sitemapindex>
|
||||
{video:list count="1000"
|
||||
v_category_en="all"
|
||||
v_lang_en="all"
|
||||
v_area_en="all"
|
||||
v_year="all"
|
||||
sort_type="news"
|
||||
d_key="d_key" d_val="Video" cache_life="86400"}
|
||||
|
||||
<sitemap>
|
||||
<loc>https://www.{$DomainModel->d_domain}{site:vurl v_id="$Video.v_id" v_py="$Video.v_name_en"/}</loc>
|
||||
<lastmod>{$Video.v_publish_date}</lastmod>
|
||||
</sitemap>
|
||||
|
||||
{/video:list}
|
||||
|
||||
</sitemapindex>
|
||||
152
code/app/home/view/videoBoKu/video/getMap.html
Normal file
152
code/app/home/view/videoBoKu/video/getMap.html
Normal file
@@ -0,0 +1,152 @@
|
||||
{extend name="base" /}
|
||||
|
||||
{block name="get-data"}
|
||||
{video:pagerexp page="$Request.get.page" limit="12"
|
||||
key="$Request.get.keyword"
|
||||
d_key="d_key"
|
||||
d_val="Video"
|
||||
p_val="page_data" button_num="5" cache_life="3600" func="generateSearchPager" export_name="resData" /}
|
||||
{site:grm page_code="h5_video_search" diff="0" num="30" g_key="arrGrm" /}
|
||||
{/block}
|
||||
|
||||
|
||||
{block name="title"}{site:replace code="VIDEO@GETSEARCHVIDEO@TITLE"}{/block}
|
||||
{block name="keywords"}{site:replace code="VIDEO@GETSEARCHVIDEO@KEYWORDS"}{/block}
|
||||
{block name="description"}{site:replace code="VIDEO@GETSEARCHVIDEO@DESCRIPTION"}{/block}
|
||||
|
||||
|
||||
{block name="head"}
|
||||
<meta property="og:title" content='{site:replace code="VIDEO@GETSEARCHVIDEO@TITLE"}'>
|
||||
<meta property="og:description" content='{site:replace code="VIDEO@GETSEARCHVIDEO@DESCRIPTION"}'>
|
||||
<meta property="og:url" content='https://{$DomainModel->d_domain}{site:vsurl key="search_term_string" p="1"/}'>
|
||||
<meta property="og:type" content="website">
|
||||
<meta property="og:site_name" content='{$DomainModel->d_name}'>
|
||||
<meta name="twitter:card" content="summary_large_image">
|
||||
<meta name="twitter:title" content='{site:replace code="VIDEO@GETSEARCHVIDEO@TITLE"}'>
|
||||
<meta name="twitter:description" content='{site:replace code="VIDEO@GETSEARCHVIDEO@DESCRIPTION"}'>
|
||||
<meta name="twitter:image:alt" content="动作电影 搜索结果第1页">
|
||||
|
||||
{// 结构化数据}
|
||||
<script type="application/ld+json">
|
||||
[
|
||||
{
|
||||
"@type": "WebSite",
|
||||
"name": "{$DomainModel->d_name}",
|
||||
"url": "https://{$DomainModel->d_domain}",
|
||||
"alternateName": "{$DomainModel->d_domain}",
|
||||
"description": "{site:replace code="VIDEO@INDEX@INDEX@DESCRIPTION"}",
|
||||
"potentialAction": {
|
||||
"@type": "SearchAction",
|
||||
"target": 'https://{$DomainModel->d_domain}{site:vsurl key="search_term_string" p="1"/}',
|
||||
"query-input": "required name=search_term_string"
|
||||
}
|
||||
|
||||
},
|
||||
{
|
||||
"@type": "CollectionPage",
|
||||
"name": "{$DomainModel->d_name} - {$DomainModel->d_logo_text}",
|
||||
"url": "https://{$DomainModel->d_domain}",
|
||||
"alternateName": "{$DomainModel->d_domain}",
|
||||
"description": '{site:replace code="VIDEO@GETSEARCHVIDEO@DESCRIPTION"}',
|
||||
"mainEntity": {
|
||||
"@type": "ItemList",
|
||||
"itemListElement": [
|
||||
{volist name="resData.data" id="Video" key="key"}
|
||||
{if $key < 5 }
|
||||
{
|
||||
"@type": "ListItem",
|
||||
"position": {$key},
|
||||
"item": {
|
||||
"@type": "Movies",
|
||||
"name": "{$Video.v_name}",
|
||||
"url": 'https://{$DomainModel->d_domain}{site:vurl v_id="$Video.v_id" v_py="$Video.v_name_en"/}',
|
||||
"description": "{$Video.v_description}",
|
||||
"actor": [
|
||||
{foreach $Video.v_actor as $strActorKey=>$strActor }
|
||||
{if $strActorKey < 5 }
|
||||
{ "@type": "Person", "name": "{$strActor}" },
|
||||
{/if}
|
||||
{/foreach}
|
||||
],
|
||||
"numberOfEpisodes": {$Video.v_play_url|count},
|
||||
"image": "{$Video.v_pic}",
|
||||
"aggregateRating": {
|
||||
"@type": "AggregateRating",
|
||||
"ratingValue": "{$Video.v_score}",
|
||||
}
|
||||
}
|
||||
},
|
||||
{/if}
|
||||
{/volist}
|
||||
]
|
||||
}
|
||||
}
|
||||
]
|
||||
</script>
|
||||
{/block}
|
||||
|
||||
|
||||
{block name="head-css"}
|
||||
|
||||
{/block}
|
||||
|
||||
{block name="head-js"}
|
||||
|
||||
{/block}
|
||||
|
||||
{block name="main"}
|
||||
|
||||
<div class="container">
|
||||
<div class=" layout-box top-weizhi hidden-xs">
|
||||
<label>当前位置:</label>
|
||||
<a href="/">{$DomainModel->d_name}</a><i>></i><a href="/sitemap.html">网站地图</a>
|
||||
</div>
|
||||
|
||||
{video:categorytype category_type="ONE" d_key="key" d_val="val"}
|
||||
<div class=" layout-box">
|
||||
<div class="box-title">
|
||||
<!-- <span class="title-lb"></span> -->
|
||||
<h2>
|
||||
<a class=" font16" href='{site:vciurl parent_category="$val.v_category_en" /}'>{$val.v_category}</a>
|
||||
</h2>
|
||||
<a class=" box-more pull-right" href='{site:vciurl parent_category="$val.v_category_en" /}' title="{$val.v_category}">
|
||||
<span class=" iconfont icon-weizhi"></span>
|
||||
更多
|
||||
<i>>
|
||||
</i>
|
||||
</a>
|
||||
</div>
|
||||
|
||||
<div class=" sitemap">
|
||||
<ul class=" clearfix">
|
||||
<li class=" title"><span class=" text-color">类型</span></li>
|
||||
{foreach $val.children as $intChildrenKey=>$arrChildrenCategory }
|
||||
<li>
|
||||
<a target="_blank"
|
||||
href='{site:vclurl parent_category="$Request.route.strParentCategory" category="$arrChildrenCategory.v_category_en" area="all" lang="all" year="all" order="all" page="1"}'
|
||||
title="{$arrChildrenCategory.v_category}">
|
||||
{$arrChildrenCategory.v_category}
|
||||
</a>
|
||||
</li>
|
||||
{/foreach}
|
||||
|
||||
</ul>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
{/video:categorytype}
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
<!-- <script
|
||||
type="text/javascript">
|
||||
var wdkey = /哪吒/g; var wd = $('#searchList'); wd[0].innerHTML = wd[0].innerHTML.replace(wdkey, "<font color=red>哪吒</font>");
|
||||
</script> -->
|
||||
|
||||
|
||||
{/block}
|
||||
{block name="customize"}
|
||||
|
||||
{/block}
|
||||
Reference in New Issue
Block a user