Files
SEONexus/doc/gpt1/url.md
2026-01-09 01:28:23 +08:00

347 lines
1.8 KiB
Markdown

模板中如何使用(示例)
详情页链接
<a href="{$Url->detail($vod.slug, $vod.id)}">
播放页链接
<a href="{$Url->play($vod.slug, $vod.id, 'default', 1)}">
分类列表
<a href="{$Url->categoryList('dian-ying','dong-zuo-pian',1)}">
{site:seotkd code="title" /}
{site:seotkd code="title" page="detail" /}
{site:seotkd code="title" page="detail" /}
<p>{site:vciurl parent_category="dianying" /}</p>
<p>{site:vurl v_id="1" v_py="gg"/}</p>
<p>{site:vpurl v_id="1" v_py="gg" play_type="default" play_index="1" /}</p>
<p>{site:vclurl parent_category="dianying" category="all" area="all" lang="all" year="all" order="all" page="1"/}</p>
<p>{site:vsurl key="哈哈" p="1"/}</p>
{site:pinlun id="$arrVideo.v_id" export_name="arrPinlunData" /}
搜索
<form action="{$Url->searchEntry()}" method="get">
tkd
{php}
use app\common\helper\SeoRenderer;
$Seo = new SeoRenderer($TpStyle);
{/php}
<title>{$Seo->title([
'site_name' => $DomainModel->d_name,
'site_keywords' => $DomainModel->d_keywords,
'site_description' => $DomainModel->d_description,
'video_name' => $vod_info['vod_name'] ?? '',
'video_id' => $vod_info['vod_id'] ?? 0,
'category' => $CategoryModel->c_name ?? '',
'keyword' => input('keyword', ''),
'page' => input('page', 1),
])}</title>
<meta name="keywords" content="{$Seo->keywords([...同上...])}" />
<meta name="description" content="{$Seo->description([...同上...])}" />
{site:seotkd code="title" /}