phpcms v9内容页调用标签
发布:smiling 来源: PHP粉丝网 添加日期:2014-10-22 10:48:18 浏览: 评论:
- 标题
- {$title}
-
- 发布日期
- {$inputtime}
-
- 点击量
- <span>点击:<span id="hits"></span>次</span>(需加载{app_path}jquery.min.js)
- <script language="JavaScript" src="{APP_PATH}api.php?op=count&id={$id}&modelid={$modelid}"></script>
-
- 相关文章
- {pc:content action="relation" relation="$relation" id="$id" catid="$catid" num="5" keywords="$rs[keywords]"}
- {if $data}
- {loop $data $r}
- <a href="{$r[url]}" target="_blank">{$r[title]}</a>{date('Y-m-d',$r[inputtime])}
- {/loop}
- {/if}
- {/pc}{$inputtime}
-
- 频道排行
- {pc:content action="hits" catid="$catid" num="10" order="views DESC" cache="3600"}
- {loop $data $r}
- <a href="{$r[url]}" target="_blank" title="{$r[title]}">{str_cut($r[title], 28, '')}</a>
- {/loop}
- {/pc}
-
- 当前位置
- <a href="{siteurl($siteid)}">首页</a><span> > </span>{catpos($catid)} 正文
-
- 内容分页
- {$pages}
-
- 当前栏目
- <a href="{$CAT[url]}">{$CAT[catname]}</a>
-
- 文章内容
- {$content}
-
- 文章来源
- {$copyfrom}
-
- 上一篇
- 上一篇:<a href="{$previous_page[url]}">{$previous_page[title]}</a>
- 下一篇
- 下一篇:<a href="{$next_page[url]}">{$next_page[title]}</a>
-
- 文章投票
- {if $voteid}<script language="javascript" src="{APP_PATH}index.php?m=vote&c=index&a=show&action=js&subjectid={$voteid}&type=2"></script>{/if}
-
- 文章评论
- {if $allow_comment}
- <iframe src="{APP_PATH}index.php?m=comment&c=index&a=init&commentid={id_encode("content_$catid",$id,$siteid)}&iframe=1" width="100%" height="100%" id="comment_iframe" frameborder="0" scrolling="no"></iframe>
- <h5>评论排行</h5>
- {pc:comment action="bang" siteid="$siteid" cache="3600"}
- {loop $data $r}
- <a href="{$r[url]}" target="_blank">{str_cut($r[title], 40)}</a><span>({$r[total]})</span>
- {/loop}
- {/pc}
- {/if}
-
- 加入收藏
- <a href="javascript:;" onclick="add_favorite('{$title}');" class="t6">收藏</a>
-
- 文件/多文件下载地址 【$自定义字段名】
- {loop $downfile $r}
- <li>{$r}</li>
- {/loop}
- {loop $downfiles $r}
- <li>{$r}</li>
- {/loop}
分享到: