苹果cmsv10模板添加og协议调用标签

2020.6.11 苹果cms 919

苹果cmsv10模板添加og协议调用标签
首页调用


<meta itemprop=”url” property=”og:url” content=”https://{$maccms.site_url}” />
<meta itemprop=”name” property=”og:title” content=”{$maccms.site_name}_网站名称” />
<meta itemprop=”image” property=”og:image” content=”https://{$maccms.site_url}/statics/img/logo_f.png” />
<meta itemprop=”description” property=”og:description” content=”首页描述_{$maccms.site_name}” />

分类页调用标签


<meta itemprop=”url” property=”og:url” content=”https://{$maccms.site_url}{:mac_url_type($obj)}” />
<meta itemprop=”name” property=”og:title” content=”{$obj.type_name}_第{$param.page}页_{$maccms.site_name}” />
<meta itemprop=”image” property=”og:image” content=”http://{$maccms.site_url}{$maccms.path_tpl}img/logo_max.png” />
<meta itemprop=”description” property=”og:description” content=”{$obj.type_des}” />

筛选页调用标签


<meta itemprop=”url” property=”og:url” content=”https://{$maccms.site_url}{:mac_url_type($obj,[‘area’=>$param[‘area’],’lang’=>$param[‘lang’],’year’=>$param[‘year’],’level’=>$param[‘level’],’letter’=>$param[‘letter’],’state’=>$param[‘state’],’tag’=>$param[‘tag’],’class’=>$vo2,’order’=>$param[‘order’],’by’=>$param[‘by’] ],’show’)}” />
<meta itemprop=”name” property=”og:title” content=”{$obj.type_title}_第{$param.page}页_{$maccms.site_name}” />
<meta itemprop=”image” property=”og:image” content=”https://{$maccms.site_url}{$maccms.path_tpl}img/logo_max.png” />
<meta itemprop=”description” property=”og:description” content=”{$obj.type_des}” />

详情页调用标签


<meta itemprop=”url” property=”og:url” content=”https://{$maccms.site_url}{:mac_url_vod_detail($obj)}” />
<meta itemprop=”name” property=”og:title” content=”{$obj.vod_name}_{$obj.type.type_name}{$obj.type_1.type_name}_{$maccms.site_name}” />
<meta itemprop=”type” property=”og:type” content=”videolist” />
<meta itemprop=”image” property=”og:image” content=”{:mac_url_img($obj.vod_pic)}” />
<meta itemprop=”class” property=”og:video:class” content=”{$obj.type.type_name}” />
<meta itemprop=”actor” property=”og:video:actor” content=”{$obj.vod_actor}” />
<meta itemprop=”uploadDate” property=”og:video:date” content=”{$obj.vod_year}” />
<meta itemprop=”contentLocation” property=”og:video:area” content=”{$obj.vod_area}” />
<meta itemprop=”description” property=”og:description” content=”{$obj.vod_blurb}” />

播放页调用标签


<meta itemprop=”url” property=”og:url” content=”https://{$maccms.site_url}{:mac_url_vod_detail($obj)}” />
<meta itemprop=”name” property=”og:title” content=”{$obj.type.type_name}_{$obj.vod_name}在线播放_第{$param.nid}集_{$maccms.site_name}” />
<meta itemprop=”type” property=”og:type” content=”video” />
<meta itemprop=”image” property=”og:image” content=”{:mac_url_img($obj.vod_pic)}” />
<meta itemprop=”class” property=”og:video:class” content=”{$obj.type.type_name}” />
<meta itemprop=”actor” property=”og:video:actor” content=”{$obj.vod_actor}” />
<meta itemprop=”uploadDate” property=”og:video:date” content=”{$obj.vod_year}” />
<meta itemprop=”contentLocation” property=”og:video:area” content=”{$obj.vod_area}” />
<meta itemprop=”description” property=”og:description” content=”{$obj.vod_blurb}” />

这些都是我自己整理好的,已经测试没有问题,直接加到对应的模板文件中即可,如懂调用标签,可以新建立一个文件夹,将设置好的标签在调用到对应的模板文件中,如果你的网址不是加密的把https改成http即可。

本文地址:https://www.51logou.cn/290.html
原创作者:【
转载请注明出处:【51源代码

相关推荐:网站优化

评论

昵称*

邮箱*

网址