EmpireCMS:帝国cms模板调用标签大全

    <link href="[!--news.url--]skin/static/css.css" rel="stylesheet">

  <a href="javascript:void(0)"></a>

  <a href="/" target="_blank"></a>

首页

    <title>[!--pagetitle--]</title>
    <meta name="keywords" content="[!--pagekey--]" />
    <meta name="description" content="[!--pagedes--]" />

     [e:loop={'select * from [!db.pre!]ecms_news where id in(id1,id2,id3)',1,24,0}]
       <li><a href="<?=$bqsr[titleurl]?>" target="_blank"><i><img src="<?=$bqr[titlepic]?>"></a></i>
         <h3><?=$bqr[title]?></h3>
         <p><?=esub($bqr[smalltext],200)?></p>
         <time><?=date("Y-m-d",$bqr[newstime])?></time>
       </li>
     [/e:loop]

     [e:loop={'select * from [!db.pre!]ecms_news where id in(id1,id2,id3)',1,24,0}]
       <li><a href="<?=$bqsr[titleurl]?>" target="_blank"><i><img src="<?=$bqr[titlepic]?>" alt="<?=$bqr[title]?>"></i>
       <p><?=$bqr[title]?></p></a>
       </li>
     [/e:loop]

列表页

<?php 
        $cr=$empire->fetch1("select bname from greenstar_enewsclass where 
        classid='".$GLOBALS[navclassid]."' limit 1"); 
        echo $cr['bname']; 
        ?>

  <meta name="keywords" content="[!--pagekey--]" />
  <meta name="description" content="[!--pagedes--]" />

    [!--empirenews.listtemp--]
     <!--list.var1-->
    [!--empirenews.listtemp--]

          <li><a href="[!--titleurl--]" target="_blank">
            <i><img src="[!--titlepic--]" alt="[!--oldtitle--]"></i>
              <section>
                <h3>[!--oldtitle--]</h3>
                <p>[!--smalltext--]</p>
                <span>了解详情</span>
              </section>
            </a></li>

内容页

    <title>[!--pagetitle--] - 格林斯达</title>
    <meta name="keywords" content="[!--pagetitle--]" />
    <meta name="description" content="[!--smalltext--]" />

    <div class="weizhi">当前位置:[!--newsnav--]</div>

    <h1 class="c_title">[!--pagetitle--]</h1>
        <div class="news_info">
           <p>时间:[!--newstime--]</p>
               <p>阅读:<script
                            src=[!--news.url--]e/public/ViewClick/?classid=[!--classid--]&id=[!--id--]&addclick=1></script>
                </p>
        </div>

  [!--newstext--]

       <ul>
          <li>上一篇:[!--info.pre--]</li>
          <li>下一篇:[!--info.next--]</li>
      </ul>

[e:loop={"select * from [!db.pre!]ecms_news where title like '%$navinfor[diaoqu1]%'
and id<>
    $navinfor[id] order by rand() limit 6",20,24,0}]
    <li><a href="<?=$bqsr['titleurl']?>" target="_blank">
            <section>
                <h3 style="font-weight: 400;font-size: 16px;"><?=$bqr['title']?></h3>
                <p><?=esub($bqr[smalltext],200)?></p>
                <span>了解详情</span>
            </section>
        </a>
    </li>
    [/e:loop]

[e:loop={"select * from [!db.pre!]ecms_news where classid=4 and title like '%$navinfor[diaoqu1]%'
and id<>
    $navinfor[id] order by rand() limit 6",20,24,0}]
    <li><a href="<?=$bqsr['titleurl']?>" target="_blank">
            <section>
                <h3 style="font-weight: 400;font-size: 16px;"><?=$bqr['title']?></h3>
                <p><?=esub($bqr[smalltext],200)?></p>
                <span>了解详情</span>
            </section>
        </a>
    </li>
    [/e:loop]

无标签
评论区
头像
文章目录