当前位置: 首页 > 工具软件 > 五指CMS > 使用案例 >

五指cms模版基础

马航
2023-12-01
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
当前资源res地址:{R}<br>
网站标题:{if isset($seo_title)}{$seo_title}{else}{$siteconfigs['sitename']}{/if}<br>
seo keywords : {if isset($seo_keywords)}{$seo_keywords}{/if}<br>
seo describe :{if isset($seo_description)}{$seo_description}{/if}<br>
weburl :{WEBURL}<br>
分类:
{wz:content action="category" pagesize="100" order="sort ASC"}
{loop $rs $r}
{if $r['pid']==0 && $r['ismenu']}
<li><a href="{$r['url']}">{$r['name']}</a></li>
{elseif $r['pid']!=0 && $r['ismenu']}
---{$r['name']}
{/if}
{/loop}
{/wz}

<br>
search :/index.php?f=search&modelid=5&keywords=fffff<br>
用户头像:{WEBURL}api/myface.php<br>
用户后台:{WEBURL}index.php?m=member
|退出后台:{WEBURL}index.php?m=member&v=logout|用户登录:{WEBURL}index.php?m=member&v=login|用户注册:{WEBURL}index.php?m=member&v=register<br>
用户登录验证码地址:{WEBURL}api/identifying_code.php?w=112&amp;h=40&amp;rd=随机数<br>
登录地址post:{WEBURL}index.php?m=member&v=login<br>
第三方登录:
<li><a href="{WEBURL}index.php?m=member&amp;f=index&amp;v=auth&amp;type=qq"><img src="{R}images/qqlogin.png"
                                                                                 alt="使用QQ帐号登录" title="使用QQ帐号登录"
                                                                                 width="30px"></a></li>
<li><a href="{WEBURL}index.php?m=member&amp;f=index&amp;v=auth&amp;type=sina"><img src="{R}images/weibologin.png"
                                                                                   alt="使用微博帐号登录" title="使用微博帐号登录"
                                                                                   width="30px"></a></li>
<li><a href="{WEBURL}index.php?m=member&amp;f=index&amp;v=auth&amp;type=weixin"><img src="{R}images/weichatlogin.png"
                                                                                     alt="使用微信帐号登录" title="使用微信帐号登录"
                                                                                     width="30px"></a></li>
<br>
广告广告:script  src="{WEBURL}promote/1.js"  script  <br>

其实是获取推荐位:<br>
{wz:content action="block" pagesize="5" type="1" blockid="42"}
{loop $rs $r}
a.获取缩略图:$r['thumb'] 切割:imagecut函数<br>
b.获取标题:{$r['title']} <br>
c.获取url:{$r['url']} <br>

-------------------------------<br>
排行,cid=1 貌似不可以哈

{wz:content action="rank" pagesize="10" order="weekviews DESC" cid="2"}
{loop $rs $r}

<li ><a href="{$r['url']}" target="_blank">{safe_htm($r['title'])}</a></li>
{/loop}
{/wz}

    {/loop}
    {/wz}
<br>
--------------<br>
{TPLID}
导入模版<br>
{T "content","head","t3"}
<br>



</body>
</html>

 

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
文章路径:{catpos($cid)}
{wz:content action="listing" page="$page" pagesize="1" order="sort DESC,id DESC" cid="$cid" urlrule="$urlrule"}
{loop $rs $r}
文章缩略图:{$r['thumb']}<br>
文章链接:{$r['url']}<br>
发布时间:{date('Y-m-d H:i:s',$r['addtime'])}<br>
200之内的描述:{strcut($r['remark'],200,'...')}<br>

{if $this->db->number>1}


        {$pages}
<!-- 样式修改地址:\coreframe\app\core\libs\function\common.func.php -->


{/if}
<br>

{/loop}
{/wz}
</body>
</html>

 

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
标题:{$title}<br>
时间:{$addtime}<br>
{if $copyfrom!=""}来源:{$copyfrom}{/if} <br>
{if $previous_page['url']}<a href="{$previous_page['url']}">上一篇:{strcut($previous_page['title'],50)}</a>{/if}
{if $next_page['url']}<a href="{$next_page['url']}">下一篇:{strcut($next_page['title'],50)}</a>{/if}
<br>




</body>
</html>

 

转载于:https://www.cnblogs.com/aliblogs/p/5695006.html

 类似资料: