当前位置: 首页>>代码示例>>PHP>>正文


PHP ListView::GetChannelKeywords方法代码示例

本文整理汇总了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;
开发者ID:lz1988,项目名称:stourwebcms,代码行数:31,代码来源:index.php


注:本文中的ListView::GetChannelKeywords方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。