本文整理汇总了PHP中ListView::GetChannelKeywords方法的典型用法代码示例。如果您正苦于以下问题:PHP ListView::GetChannelKeywords方法的具体用法?PHP ListView::GetChannelKeywords怎么用?PHP ListView::GetChannelKeywords使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类ListView
的用法示例。
在下文中一共展示了ListView::GetChannelKeywords方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: dirname
<?php
require_once dirname(__FILE__) . "/../include/common.inc.php";
$typeid = 13;
//线路栏目
require_once SLINEINC . "/view.class.php";
require_once dirname(__FILE__) . '/tuan.func.php';
$html = dirname(__FILE__) . '/index.html';
if (file_exists($html) && $genpage != 1 && empty($dest_id) && empty($attrid)) {
include $html;
exit;
}
$pv = new ListView($typeid);
$pv->GetChannelKeywords($typeid);
//根据栏目类型获取关键词.介绍,栏目名称
$pv->Fields['seokeyword'] = !empty($pv->Fields['seokeyword']) ? "<meta name=\"keywords\" content=\"" . $pv->Fields['seokeyword'] . "\"/>" : "";
$pv->Fields['seodescription'] = !empty($pv->Fields['seodescription']) ? "<meta name=\"description\" content=\"" . $pv->Fields['seodescription'] . "\"/>" : "";
$time = time();
if (!empty($status)) {
$where = "a.ishidden = 0 and a.endtime !='' and a.starttime>{$time} ";
} else {
$where = "a.ishidden = 0 and a.endtime>{$time} and a.endtime !='' and a.starttime<={$time} ";
}
$attrid = Helper_Archive::pregReplace($attrid, 4);
if (!is_numeric($dest_id) && !empty($dest_id)) {
$dest_id = Helper_Archive::pregReplace($dest_id, 8);
//只能字母.数字
$d_id = Helper_Archive::getDestIdByPinYin($dest_id);
$dest_id = !empty($d_id) ? $d_id : $dest_id;
if ($dest_id == 'all') {
$dest_id = 0;