include/taglib/channel/specialtopic.lib.php
(开头部分) 2KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
<?php if(!defined('DEDEINC')) exit('Request Error!');
/**
* 专题主题调用标签
*
* @version $Id: arclist.lib.php 2 8:29 2010年7月8日Z tianya $
* @package DedeCMS.Taglib
* @copyright Copyright (c) 2007 - 2010, DesDev, Inc.
* @license http://help.dedecms.com/usersguide/license.html
* @link http://www.dedecms.com
*/
function ch_specialtopic($noteinfo, $arcTag, $refObj, $fname='')
{
require_once(DEDEINC.'/taglib/arclist.lib.php');
if($noteinfo=='') return '';
$noteid = $arcTag->GetAtt('noteid');
$rvalue = '';
$tempStr = GetSysTemplets('channel_spec_note.htm');
$dtp = new DedeTagParse();
$dtp->LoadSource($noteinfo);
if(is_array($dtp->CTags))
{
foreach($dtp->CTags as $k=>$ctag)
{
$notename = $ctag->GetAtt('name');
//指定名称的专题节点
if($noteid != '' && $ctag->GetAtt('noteid') != $noteid)
{
continue;
}
$isauto = $ctag->GetAtt('isauto');
$idlist = trim($ctag->GetAtt('idlist'));
$rownum = trim($ctag->GetAtt('rownum'));
$keywords = '';
$stypeid = 0;
if(empty($rownum)) $rownum = 40;
//通过关键字和栏目ID自动获取模式
if($isauto==1)
{
$idlist = '';
$keywords = trim($ctag->GetAtt('keywords'));
$stypeid = $ctag->GetAtt('typeid');
}
$listTemplet = trim($ctag->GetInnerText())!='' ? $ctag->GetInnerText() : GetSysTemplets('spec_arclist.htm');
$idvalue = lib_arclistDone
(
$refObj, $ctag, $stypeid, $rownum, $ctag->GetAtt('col'), $ctag->GetAtt('titlelen'),$ctag->GetAtt('infolen'),
$ctag->GetAtt('imgwidth'), $ctag->GetAtt('imgheight'), 'all', 'default', $keywords, $listTemplet, 0, $idlist,
$ctag->GetAtt('channel'), '', $ctag->GetAtt('att')
);
$notestr = str_replace('~notename~', $notename, $tempStr);
$notestr = str_replace('~spec_arclist~', $idvalue, $notestr);
$rvalue .= $notestr;
if($noteid != '' && $ctag->GetAtt('noteid')==$noteid) break;
}
}
$dtp->Clear();
后面还有 2 行代码,解锁后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 积分/个。 规则说明
AI 解读
登录后可用,每次 10 积分,解读结果公开显示在下面。
还没有人解读过这个文件。
