{extend name="base" /}
{block name="get-data"}
{if $Request.route.intVId && $Request.route.intVForgeId}
{video:info v_id="$Request.route.intVId" v_key="arrVideo" v_fid="$Request.route.intVForgeId" export_name="arrVideo"/}
{elseif $Request.route.intVId}
{video:info v_id="$Request.route.intVId" v_key="arrVideo" export_name="arrVideo"/}
{else}
{video:info v_id="$DomainModel->info_id" n_key="arrVideo" export_name="arrVideo" /}
{/if}
{site:vciurl parent_category="$arrVideo.v_parent_category_en" export_name="strVciurl" /}
{site:vclurl parent_category="$arrVideo.v_parent_category_en"
category="$arrVideo.v_category_en"
area="all" lang="all" year="all" order="all" page="1"
export_name="strVclurl" /}
{php}
$arrBreadcrumb = [
['title'=>'首页','url'=>'/'],
['title'=>$arrVideo['v_parent_category'],'url'=>$strVciurl],
['title'=>$arrVideo['v_category'],'url'=>$strVclurl],
];
{/php}
{/block}
{block name="title"}{site:seotkd code="title" page="play" /}{/block}
{block name="keywords"}{site:seotkd code="keywords" page="play" /}{/block}
{block name="description"}{site:seotkd code="description" page="play" /}{/block}
{block name="head"}
{if $Request.route.intVId }
{/if}
{// Open Graph 协议(用于Facebook、LinkedIn等)}
{switch $arrVideo.v_parent_category_en }
{case 'dian-ying' }
{/case}
{case 'dian-shi-ju' }
{/case}
{case 'zong-yi' }
{/case}
{case 'dong-man' }
{/case}
{case 'duan-ju-da-quan' }
{/case}
{default /}
{/switch}
{// Twitter Card(用于Twitter/X)}
{php}
// 你已有:$arrBreadcrumb(title/url)
// 这里补成绝对 URL,避免 JSON-LD 用相对路径
$strBase = 'https://' . $DomainModel->d_domain;
$arrBreadcrumbLd = [];
foreach ($arrBreadcrumb as $intIdx => $arrIt) {
$strTitle = (string)($arrIt['title'] ?? '');
$strUrl = (string)($arrIt['url'] ?? '');
if ($strTitle === '' || $strUrl === '') {
continue;
}
// url 绝对化
if (stripos($strUrl, 'http') !== 0) {
if ($strUrl[0] !== '/') {
$strUrl = '/' . $strUrl;
}
$strUrl = $strBase . $strUrl;
}
$arrBreadcrumbLd[] = [
'@type' => 'ListItem',
'position' => (int)($intIdx + 1),
'name' => $strTitle,
'item' => $strUrl,
];
}
{/php}
{/block}
{block name="strPageCode"}{/block}
{block name="head-css"}
{/block}
{block name="main"}
{assign name="pageCfg" value="$TpStyle.template_cfg.pages.play"}
{include file="module/page/page_router" /}
{/block}
{block name="footer-js"}
{/block}