本文整理汇总了PHP中fetch_article_url函数的典型用法代码示例。如果您正苦于以下问题:PHP fetch_article_url函数的具体用法?PHP fetch_article_url怎么用?PHP fetch_article_url使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了fetch_article_url函数的13个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的PHP代码示例。
示例1: showmessage
showmessage('pushplus_do_success', $tourl, array(), array('header' => 1, 'refreshtime' => 0));
} elseif (submitcheck('verifysubmit')) {
if ($aid) {
check_articleperm($article['catid'], $aid, $article, true);
} else {
showmessage('article_not_exist', dreferer());
}
if ($_POST['status'] == '0') {
C::t('portal_article_title')->update($aid, array('status' => '0'));
updatemoderate('aid', $aid, 2);
$tourl = dreferer(fetch_article_url($article));
showmessage('article_passed', $tourl);
} elseif ($_POST['status'] == '2') {
C::t('portal_article_title')->update($aid, array('status' => '2'));
updatemoderate('aid', $aid, 1);
$tourl = dreferer(fetch_article_url($article));
showmessage('article_ignored', $tourl);
} elseif ($_POST['status'] == '-1') {
include_once libfile('function/delete');
deletearticle(array($aid), 0);
updatemoderate('aid', $aid, 2);
$tourl = dreferer('portal.php?mod=portalcp&catid=' . $article['catid']);
showmessage('article_deleted', $tourl);
} else {
showmessage('select_operation');
}
}
if ($op == 'delete') {
if (!$aid) {
showmessage('article_edit_nopermission');
}
开发者ID:renning,项目名称:html,代码行数:31,代码来源:portalcp_article.php
示例2: portal_get_per_next_article
function portal_get_per_next_article(&$article)
{
$data = array();
$aids = array();
if ($article['preaid']) {
$aids[$article['preaid']] = $article['preaid'];
}
if ($article['nextaid']) {
$aids[$article['nextaid']] = $article['nextaid'];
}
if ($aids) {
$data = C::t('portal_article_title')->fetch_all($aids);
foreach ($data as $aid => &$value) {
$value['url'] = fetch_article_url($value);
}
}
if ($data[$article['preaid']]) {
$article['prearticle'] = $data[$article['preaid']];
}
if ($data[$article['nextaid']]) {
$article['nextarticle'] = $data[$article['nextaid']];
}
}
开发者ID:tang86,项目名称:discuz-utf8,代码行数:23,代码来源:portal_view.php
示例3: foreach
echo $value['catname'];
?>
</a><?php
$i--;
}
}
?>
</div>
<?php
}
?>
<div class="bm_c xld"><?php
if (is_array($list['list'])) {
foreach ($list['list'] as $value) {
$highlight = article_title_style($value);
$article_url = fetch_article_url($value);
?>
<dl class="bbda cl">
<dt class="xs2"><a href="<?php
echo $article_url;
?>
" target="_blank" class="xi2" <?php
echo $highlight;
?>
><?php
echo $value['title'];
?>
</a> <?php
if ($value['status'] == 1) {
?>
(待审核)<?php
开发者ID:renning,项目名称:html,代码行数:31,代码来源:1_diy_portal_list.tpl.php
示例4: foreach
foreach (C::t('common_member')->fetch_all($uids, false, 0) as $uid => $user) {
notification_add($uid, 'blog', 'blog_invite', array('subject' => $blog['subject'], 'uid' => $blog['uid'], 'blogid' => $id, 'from_id' => $id, 'from_idtype' => 'invite_blog'));
}
showmessage('group_invite_succeed', "home.php?mod=space&uid=" . $blog['uid'] . "&do=blog&id={$id}");
} else {
showmessage('group_invite_choose_member', "home.php?mod=space&uid=" . $blog['uid'] . "&do=blog&id={$id}");
}
}
} elseif ($_GET['action'] == 'article') {
$id = intval($_GET['id']);
$article = C::t('portal_article_title')->fetch($id);
if (!submitcheck('invitesubmit')) {
$inviteduids = '';
} else {
require_once libfile('function/portal');
$article_url = fetch_article_url($article);
$uids = $_GET['uids'];
if ($uids) {
if (count($uids) > 20) {
showmessage('group_choose_friends_max');
}
foreach (C::t('common_member')->fetch_all($uids, false, 0) as $uid => $user) {
notification_add($uid, 'article', 'article_invite', array('subject' => $article['title'], 'url' => $article_url, 'from_id' => $id, 'from_idtype' => 'invite_article'));
}
showmessage('group_invite_succeed', $article_url);
} else {
showmessage('group_invite_choose_member', $article_url);
}
}
}
include template('common/invite');
开发者ID:tang86,项目名称:discuz-utf8,代码行数:31,代码来源:misc_invite.php
示例5: array
$icons = array('tid' => '<img src="static/image/feed/thread.gif" alt="thread" class="t" /> ', 'fid' => '<img src="static/image/feed/discuz.gif" alt="forum" class="t" /> ', 'blogid' => '<img src="static/image/feed/blog.gif" alt="blog" class="t" /> ', 'gid' => '<img src="static/image/feed/group.gif" alt="group" class="t" /> ', 'uid' => '<img src="static/image/feed/profile.gif" alt="space" class="t" /> ', 'albumid' => '<img src="static/image/feed/album.gif" alt="album" class="t" /> ', 'aid' => '<img src="static/image/feed/article.gif" alt="article" class="t" /> ');
$articles = array();
foreach (C::t('home_favorite')->fetch_all_by_uid_idtype($_G['uid'], $idtype, $favid, $start, $perpage) as $value) {
$value['icon'] = isset($icons[$value['idtype']]) ? $icons[$value['idtype']] : '';
$value['url'] = makeurl($value['id'], $value['idtype'], $value['spaceuid']);
$value['description'] = !empty($value['description']) ? nl2br($value['description']) : '';
$list[$value['favid']] = $value;
if ($value['idtype'] == 'aid') {
$articles[$value['favid']] = $value['id'];
}
}
if (!empty($articles)) {
include_once libfile('function/portal');
$_urls = array();
foreach (C::t('portal_article_title')->fetch_all($articles) as $aid => $article) {
$_urls[$aid] = fetch_article_url($article);
}
foreach ($articles as $favid => $aid) {
$list[$favid]['url'] = $_urls[$aid];
}
}
}
$multi = multi($count, $perpage, $page, $theurl);
dsetcookie('home_diymode', $diymode);
if (!$_GET['type']) {
$_GET['type'] = 'all';
}
if ($_GET['type'] == 'group') {
$navtitle = lang('core', 'title_group_favorite', array('gorup' => $_G['setting']['navs'][3]['navname']));
} else {
$navtitle = lang('core', 'title_' . $_GET['type'] . '_favorite');
开发者ID:lemonstory,项目名称:bbs,代码行数:31,代码来源:space_favorite.php
示例6: exit
*/
if (!defined('IN_DISCUZ')) {
exit('Access Denied');
}
$id = empty($_GET['id']) ? 0 : intval($_GET['id']);
$idtype = in_array($_GET['idtype'], array('aid', 'topicid')) ? $_GET['idtype'] : 'aid';
$url = '';
if (empty($id)) {
showmessage('comment_no_' . $idtype . '_id');
}
if ($idtype == 'aid') {
$csubject = C::t('portal_article_title')->fetch($id);
if ($csubject) {
$csubject = array_merge($csubject, C::t('portal_article_count')->fetch($id));
}
$url = fetch_article_url($csubject);
} elseif ($idtype == 'topicid') {
$csubject = C::t('portal_topic')->fetch($id);
$url = fetch_topic_url($csubject);
}
if (empty($csubject)) {
showmessage('comment_' . $idtype . '_no_exist');
} elseif (empty($csubject['allowcomment'])) {
showmessage($idtype . '_comment_is_forbidden');
}
$perpage = 25;
$page = intval($_GET['page']);
if ($page < 1) {
$page = 1;
}
$start = ($page - 1) * $perpage;
开发者ID:tianyunchong,项目名称:php,代码行数:31,代码来源:portal_comment.php
示例7: getdata
//.........这里部分代码省略.........
$parameter = $this->cookparameter($parameter);
$aids = !empty($parameter['aids']) ? explode(',', $parameter['aids']) : array();
$uids = !empty($parameter['uids']) ? explode(',', $parameter['uids']) : array();
$keyword = !empty($parameter['keyword']) ? $parameter['keyword'] : '';
$tag = !empty($parameter['tag']) ? $parameter['tag'] : array();
$starttime = !empty($parameter['starttime']) ? strtotime($parameter['starttime']) : 0;
$endtime = !empty($parameter['endtime']) ? strtotime($parameter['endtime']) : 0;
$publishdateline = isset($parameter['publishdateline']) ? intval($parameter['publishdateline']) : 0;
$startrow = isset($parameter['startrow']) ? intval($parameter['startrow']) : 0;
$items = isset($parameter['items']) ? intval($parameter['items']) : 10;
$titlelength = isset($parameter['titlelength']) ? intval($parameter['titlelength']) : 40;
$summarylength = isset($parameter['summarylength']) ? intval($parameter['summarylength']) : 80;
$clickarr = array('click1', 'click2', 'click3', 'click4', 'click5', 'click6', 'click7', 'click8');
$orderby = in_array($parameter['orderby'], array_merge(array('dateline', 'viewnum', 'commentnum'), $clickarr)) ? $parameter['orderby'] : 'dateline';
$catid = array();
if (!empty($parameter['catid'])) {
if ($parameter['catid'][0] == '0') {
unset($parameter['catid'][0]);
}
$catid = $parameter['catid'];
}
$picrequired = !empty($parameter['picrequired']) ? 1 : 0;
$bannedids = !empty($parameter['bannedids']) ? explode(',', $parameter['bannedids']) : array();
loadcache('portalcategory');
$list = array();
$wheres = array();
if ($aids) {
$wheres[] = 'at.aid IN (' . dimplode($aids) . ')';
}
if ($uids) {
$wheres[] = 'at.uid IN (' . dimplode($uids) . ')';
}
if ($catid) {
include_once libfile('function/portalcp');
$childids = array();
foreach ($catid as $id) {
if ($_G['cache']['portalcategory'][$id]['disallowpublish']) {
$childids = array_merge($childids, category_get_childids('portal', $id));
}
}
$catid = array_merge($catid, $childids);
$catid = array_unique($catid);
$wheres[] = 'at.catid IN (' . dimplode($catid) . ')';
}
if (!$aids && !$catid && $_G['setting']['blockmaxaggregationitem']) {
if (($maxid = $this->getmaxid() - $_G['setting']['blockmaxaggregationitem']) > 0) {
$wheres[] = 'at.aid > ' . $maxid;
}
}
if (empty($aids) && $picrequired) {
$wheres[] = "at.pic != ''";
}
if ($publishdateline) {
$time = TIMESTAMP - $publishdateline;
$wheres[] = "at.dateline >= '{$time}'";
}
if ($starttime) {
$wheres[] = "at.dateline >= '{$starttime}'";
}
if ($endtime) {
$wheres[] = "at.dateline <= '{$endtime}'";
}
if ($bannedids) {
$wheres[] = 'at.aid NOT IN (' . dimplode($bannedids) . ')';
}
$wheres[] = "at.status='0'";
if (is_array($tag)) {
$article_tags = array();
foreach ($tag as $k) {
$article_tags[$k] = 1;
}
include_once libfile('function/portalcp');
$v = article_make_tag($article_tags);
if ($v > 0) {
$wheres[] = "(at.tag & {$v}) = {$v}";
}
}
if ($keyword) {
require_once libfile('function/search');
$keyword = searchkey($keyword, "at.title LIKE '%{text}%'");
}
$wheresql = $wheres ? implode(' AND ', $wheres) : '1';
if (in_array($orderby, $clickarr)) {
$orderby = "at.{$orderby} DESC,at.dateline DESC";
} else {
$orderby = $orderby == 'dateline' ? 'at.dateline DESC ' : "ac.{$orderby} DESC";
}
$query = DB::query("SELECT at.*, ac.viewnum, ac.commentnum FROM " . DB::table('portal_article_title') . " at LEFT JOIN " . DB::table('portal_article_count') . " ac ON at.aid=ac.aid WHERE {$wheresql}{$keyword} ORDER BY {$orderby} LIMIT {$startrow}, {$items}");
while ($data = DB::fetch($query)) {
if (empty($data['pic'])) {
$data['pic'] = STATICURL . 'image/common/nophoto.gif';
$data['picflag'] = '0';
} else {
$data['pic'] = $data['pic'];
$data['picflag'] = $data['remote'] == '1' ? '2' : '1';
}
$list[] = array('id' => $data['aid'], 'idtype' => 'aid', 'title' => cutstr($data['title'], $titlelength, ''), 'url' => fetch_article_url($data), 'pic' => $data['pic'], 'picflag' => $data['picflag'], 'summary' => cutstr(strip_tags($data['summary']), $summarylength, ''), 'fields' => array('uid' => $data['uid'], 'username' => $data['username'], 'avatar' => avatar($data['uid'], 'small', true, false, false, $_G['setting']['ucenterurl']), 'avatar_middle' => avatar($data['uid'], 'middle', true, false, false, $_G['setting']['ucenterurl']), 'avatar_big' => avatar($data['uid'], 'big', true, false, false, $_G['setting']['ucenterurl']), 'fulltitle' => $data['title'], 'dateline' => $data['dateline'], 'caturl' => $_G['cache']['portalcategory'][$data['catid']]['caturl'], 'catname' => $_G['cache']['portalcategory'][$data['catid']]['catname'], 'articles' => $_G['cache']['portalcategory'][$data['catid']]['articles'], 'viewnum' => intval($data['viewnum']), 'commentnum' => intval($data['commentnum'])));
}
return array('html' => '', 'data' => $list);
}
开发者ID:MCHacker,项目名称:discuz-docker,代码行数:101,代码来源:block_article.php
示例8: if
<div class="tttop">
<div class="bm_h cl">
<?php if($_G['setting']['rssstatus'] && !$_GET['archiveid']) { ?><a href="portal.php?mod=rss&catid=<?php echo $cat['catid'];?>" class="y xi2 rss" target="_blank" title="RSS">我要订阅</a><?php } if(($_G['group']['allowpostarticle'] || $_G['group']['allowmanagearticle'] || $categoryperm[$catid]['allowmanage'] || $categoryperm[$catid]['allowpublish']) && empty($cat['disallowpublish'])) { ?>
<a href="portal.php?mod=portalcp&ac=article&catid=<?php echo $cat['catid'];?>" class="y xi2 addnew">发布文章</a>
<?php } ?>
<h1 class="xs2"><?php echo $cat['catname'];?>列表</h1>
</div>
<?php if($cat['subs']) { ?>
<div class="bm_c bbda">
下级分类: <?php $i = 1;?><?php if(is_array($cat['subs'])) foreach($cat['subs'] as $value) { if($i != 1) { ?><span class="pipe">|</span><?php } ?><a href="<?php echo $portalcategory[$value['catid']]['caturl'];?>" class="xi2"><?php echo $value['catname'];?></a><?php $i--;?><?php } ?>
</div>
<?php } ?>
</div>
<div class="bm_c xld zxlblb">
<?php $i = 1;?><?php if(is_array($list['list'])) foreach($list['list'] as $value) { $highlight = article_title_style($value);?><?php $article_url = fetch_article_url($value);?><?php if(isset($_G['cache']['plugin']['will_subnav'])) { $art_comment = get_commentnum($value[aid]);?><?php } else { $art_comment =0;?><?php } ?>
<div class="top_new cl newss_<?php echo $i;?>">
<div class="box01 cl">
<?php if($value['pic']) { ?>
<div class="new_pic pic02">
<a href="<?php echo $article_url;?>" target="_blank"><img src="<?php echo $value['pic'];?>" alt="<?php echo $value['title'];?>" class="tn" /></a>
</div>
<?php } ?>
<div class="rig">
<h2><a href="<?php echo $article_url;?>" target="_blank" class="xi2" <?php echo $highlight;?>><?php echo cutstr($value['title'],70); ?></a> <?php if($value['status'] == 1) { ?>(待审核)<?php } ?></h2>
开发者ID:noikiy,项目名称:ejia,代码行数:29,代码来源:2_diy_portal_list_2.tpl.php
示例9: if
<input type="hidden" value="<?php echo $cate['catid'];?>" name="catid"/>
<table class="dt mtm">
<tr>
<th width="20"> </th>
<th>文章标题</th>
<th width="80">分类</th>
<th width="105">作者</th>
<th width="120">操作</th>
</tr><?php $line = '−';?><?php $showflag = false;?><?php if(is_array($list)) foreach($list as $key => $value) { ?><tr>
<td><?php if($allowmanage || !empty($permission[$value['catid']]['allowmanage'])) { $showflag = true;?><input type="checkbox" value="<?php echo $value['aid'];?>" name="aids[]" class="pc" />
<?php } else { ?>
<?php echo $line;?>
<?php } ?>
</td>
<td>
<a href="<?php echo fetch_article_url($value);; ?>" title="<?php echo $value['title'];?>" target="_blank" <?php echo $value['highlight'];?>><?php if($value['shorttitle']) { ?><?php echo $value['shorttitle'];?><?php } else { ?><?php echo $value['title'];?><?php } ?></a>
<?php if($value['taghtml']) { ?><em><?php echo $value['taghtml'];?></em><?php } if($value['status'] == 1) { ?><b>(待审核)</b><?php } if($value['status'] == 2) { ?><b>(已忽略)</b><?php } ?>
</td>
<td><a href="portal.php?mod=portalcp&ac=category&catid=<?php echo $value['catid'];?>"><?php echo $category[$value['catid']]['catname'];?></a></td>
<td>
<a href="home.php?mod=space&uid=<?php echo $value['uid'];?>" title="查看空间" target="_blank"><?php echo $value['username'];?></a>
<br /><span class="xs0 xg1"><?php echo $value['dateline'];?></span>
</td>
<td>
<?php if($value['allowmanage'] || ($value['allowpublish'] && $value['uid'] == $_G['uid'])) { ?>
<a href="portal.php?mod=portalcp&ac=article&op=edit&aid=<?php echo $value['aid'];?>" target="_blank">编辑</a>
<?php } else { ?>
<?php echo $line;?>
<?php } if($value['allowmanage']) { if($value['status']>0) { ?>
<a href="portal.php?mod=portalcp&ac=article&op=verify&aid=<?php echo $value['aid'];?>" onclick="showWindow('articleverify', this.href, 'get', 0);" id="article_verify_<?php echo $value['aid'];?>">审核</a>
<?php } else { ?>
开发者ID:noikiy,项目名称:ejia,代码行数:31,代码来源:2_2_portal_portalcp_category.tpl.php
示例10: hot_update
C::t('home_clickuser')->insert($setarr);
C::t($tablename)->update_click($id, $clickid, 1);
hot_update($idtype, $id, $item['hotuser']);
$q_note = '';
$q_note_values = array();
$fs = array();
switch ($idtype) {
case 'blogid':
$fs['title_template'] = 'feed_click_blog';
$fs['title_data'] = array('touser' => "<a href=\"home.php?mod=space&uid={$item['uid']}\">{$item[username]}</a>", 'subject' => "<a href=\"home.php?mod=space&uid={$item['uid']}&do=blog&id={$item['blogid']}\">{$item['subject']}</a>", 'click' => $click['name']);
$q_note = 'click_blog';
$q_note_values = array('url' => "home.php?mod=space&uid={$item['uid']}&do=blog&id={$item['blogid']}", 'subject' => $item['subject'], 'from_id' => $item['blogid'], 'from_idtype' => 'blogid');
break;
case 'aid':
require_once libfile('function/portal');
$article_url = fetch_article_url($item);
$fs['title_template'] = 'feed_click_article';
$fs['title_data'] = array('touser' => "<a href=\"home.php?mod=space&uid={$item['uid']}\">{$item[username]}</a>", 'subject' => "<a href=\"{$article_url}\">{$item['title']}</a>", 'click' => $click['name']);
$q_note = 'click_article';
$q_note_values = array('url' => $article_url, 'subject' => $item['title'], 'from_id' => $item['aid'], 'from_idtype' => 'aid');
break;
case 'picid':
$fs['title_template'] = 'feed_click_pic';
$fs['title_data'] = array('touser' => "<a href=\"home.php?mod=space&uid={$item['uid']}\">{$item[username]}</a>", 'click' => $click['name']);
$fs['images'] = array(pic_get($item['filepath'], 'album', $item['thumb'], $item['remote']));
$fs['image_links'] = array("home.php?mod=space&uid={$item['uid']}&do=album&picid={$item['picid']}");
$fs['body_general'] = $item['title'];
$q_note = 'click_pic';
$q_note_values = array('url' => "home.php?mod=space&uid={$item['uid']}&do=album&picid={$item['picid']}", 'from_id' => $item['picid'], 'from_idtype' => 'picid');
break;
}
开发者ID:MCHacker,项目名称:discuz-docker,代码行数:31,代码来源:spacecp_click.php
示例11: if
<div class="c">
<label for="status_0" class="lb"><input type="radio" class="pr" name="status" value="0" id="status_0"<?php if($article['status']=='1') { ?> checked="checked"<?php } ?> />通过</label>
<label for="status_x" class="lb"><input type="radio" class="pr" name="status" value="-1" id="status_x" />删除</label>
<label for="status_2" class="lb"><input type="radio" class="pr" name="status" value="2" id="status_2"<?php if($article['status']=='2') { ?> checked="checked"<?php } ?> />忽略</label>
</div>
<p class="o pns">
<button type="submit" name="btnsubmit" value="true" class="pn pnc"><strong>确定</strong></button>
</p>
<input type="hidden" name="aid" value="<?php echo $aid;?>" />
<input type="hidden" name="referer" value="<?php echo dreferer(); ?>" />
<input type="hidden" name="handlekey" value="<?php echo $_GET['handlekey'];?>" />
<input type="hidden" name="verifysubmit" value="true" />
<input type="hidden" name="formhash" value="<?php echo FORMHASH;?>" />
</form>
<?php } elseif($op == 'related') { if($ra) { ?>
<li id="raid_li_<?php echo $ra['aid'];?>"><input type="hidden" name="raids[]" value="<?php echo $ra['aid'];?>" size="5">[ <?php echo $ra['aid'];?> ] <a href="<?php echo fetch_article_url($ra);; ?>" target="_blank"><?php echo $ra['title'];?></a> <a href="javascript:;" onclick="raid_delete(<?php echo $ra['aid'];?>);">删除</a></li>
<?php } } elseif($op == 'pushplus') { ?>
<h3 class="flb">
<em>文章连载</em>
<?php if($_G['inajax']) { ?><span><a href="javascript:;" onclick="hideWindow('<?php echo $_GET['handlekey'];?>');" class="flbc" title="关闭">关闭</a></span><?php } ?>
</h3>
<form method="post" target="_blank" action="portal.php?mod=portalcp&ac=article&tid=<?php echo $tid;?>&aid=<?php echo $aid;?>">
<div class="c">
<b><?php echo $pushcount;?></b> 个新帖将添加到文章连载。<a href="<?php echo $article_url;?>" target="_blank" class="xi2">(查看文章)</a>
<?php if($pushedcount) { ?><br />提示:<?php echo $pushedcount;?> 个帖子已经在连载中了<?php } ?>
<div id="pushplus_list"><?php if(is_array($pids)) foreach($pids as $pid) { ?><input type="hidden" name="pushpluspids[]" value="<?php echo $pid;?>" />
<?php } ?>
</div>
</div>
<p class="o pns">
<input type="hidden" name="formhash" value="<?php echo FORMHASH;?>" />
开发者ID:netlabprj,项目名称:netlab,代码行数:31,代码来源:3_3_portal_portalcp_article.tpl.php
示例12: elseif
</form>
<?php
} elseif ($op == 'related') {
if ($ra) {
?>
<li id="raid_li_<?php
echo $ra['aid'];
?>
"><input type="hidden" name="raids[]" value="<?php
echo $ra['aid'];
?>
" size="5">[ <?php
echo $ra['aid'];
?>
] <a href="<?php
echo fetch_article_url($ra);
?>
" target="_blank"><?php
echo $ra['title'];
?>
</a> <a href="javascript:;" onclick="raid_delete(<?php
echo $ra['aid'];
?>
);">删除</a></li>
<?php
}
} elseif ($op == 'pushplus') {
?>
<h3 class="flb">
<em>文章连载</em>
<?php
开发者ID:renning,项目名称:html,代码行数:31,代码来源:1_1_portal_portalcp_article.tpl.php
示例13: if
<div class="bm">
<div class="bm_h cl">
<?php if($_G['setting']['rssstatus'] && !$_GET['archiveid']) { ?><a href="portal.php?mod=rss&catid=<?php echo $cat['catid'];?>" class="y xi2 rss" target="_blank" title="RSS">订阅</a><?php } if(($_G['group']['allowpostarticle'] || $_G['group']['allowmanagearticle'] || $categoryperm[$catid]['allowmanage'] || $categoryperm[$catid]['allowpublish']) && empty($cat['disallowpublish'])) { ?>
<a href="portal.php?mod=portalcp&ac=article&catid=<?php echo $cat['catid'];?>" class="y xi2 addnew">发布文章</a>
<?php } ?>
<h1 class="xs2"><?php echo $cat['catname'];?></h1>
</div>
<?php if($cat['subs']) { ?>
<div class="bm_c bbda">
下级分类: <?php $i = 1;?><?php if(is_array($cat['subs'])) foreach($cat['subs'] as $value) { if($i != 1) { ?><span class="pipe">|</span><?php } ?><a href="<?php echo $portalcategory[$value['catid']]['caturl'];?>" class="xi2"><?php echo $value['catname'];?></a><?php $i--;?><?php } ?>
</div>
<?php } ?>
<!--
<div class="bm_c xld ">
-->
<div class="bm_c vk_xld "><?php if(is_array($list['list'])) foreach($list['list'] as $value) { $highlight = article_title_style($value);?><?php $article_url = fetch_article_url($value);?><!--
<dl class="bbda cl">
--> <dl class="bbs cl">
<?php if($value['pic']) { ?><div class="atc vk_list_pic"><a href="portal.php?mod=view&aid=<?php echo $value['aid'];?>" target="_blank"><img src="<?php echo $value['pic'];?>" alt="<?php echo $value['title'];?>" class="tn" /></a></div><?php } ?>
<dt class="xs2"><a href="portal.php?mod=view&aid=<?php echo $value['aid'];?>" target="_blank" class="xi2" <?php echo $highlight;?>><?php echo $value['title'];?></a> <?php if($value['status'] == 1) { ?>(待审核)<?php } ?></dt>
<dd class="xs2 cl">
<p class="xi3"><?php if($value['catname'] && $cat['subs']) { ?>分类: <label><a href="<?php echo $portalcategory[$value['catid']]['caturl'];?>" class="xi3"><?php echo $value['catname'];?></a></label> <?php } ?><span class="xg1"> <?php echo $value['dateline'];?></span>
</p>
<?php echo $value['summary'];?>
</dd>
<dd>
开发者ID:xiao2ww,项目名称:Bjwlkjc,代码行数:28,代码来源:2_diy_portal_list_3.tpl.php
注:本文中的fetch_article_url函数示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论