:::
johnny - 網站技巧 | 2020-03-03 | 點閱數: 514

將tadnews4.16模組的『焦點新聞』區塊,稍加修改,放在首頁才不至於怪怪的。
修改檔案:/modules/tadnews/templates/blocks/tadnews_block_focus_news.tpl
修改原因:將『所屬分類、前置字串、PO文日期、功能按鈕』刪除,『文章標題』去除連結、更改文字大小。
修改內容:1.刪除9跟11行(標題連結)2.刪除15到19行(所屬分類、前置字串、PO文日期、功能按鈕)3.修改一些距離太開問題
原程式碼:

001<{$block.rating_js}>
002<{$block.del_js}>
003<{foreach item=page from=$block.page}>
004  <{if $page.enable=="1" or $page.uid==$uid}>
005  <div class="row" style="border-bottom: 1px dotted gray;">
006    <div class="col-sm-12">
007      <div <{if $page.need_sign}>style="background-image: url('<{$page.need_sign}>'); background-position: right top; background-repeat: no-repeat;"<{/if}>>
008        <h2 style="padding:10px 0px;">
009          <a href="<{$xoops_url}>/modules/tadnews/index.php?nsn=<{$page.nsn}>" style="font-size: 24px;  font-weight: normal;">
010          <{$page.news_title}>
011          </a>
012        </h2>
013      </div>
014
015      <{$page.prefix_tag}>
016
017      <span style="font-size: 11px;">
018        <a href="<{$xoops_url}>/userinfo.php?uid=<{$page.uid}>"><{$page.uid_name}></a> - <a href="<{$xoops_url}>/modules/tadnews/<{$page.link_page}>?ncsn=<{$page.ncsn}>"><{$page.cate_name}></a> | <{$page.post_date}> | <{$smarty.const._TADNEWS_HOT}><{$page.counter}>
019      </span>
020
021
      <div style="border:1px solid #efefef; background-color: #fefefe; padding: 30px; margin:10px auto; line-height: 2em; font-weight: normal; <{$block.summary_css}>">
        <{$page.pic}>
        <{$page.content}>
        <div style="clear:both;"></div>
        <div class="text-right">
          <{$page.fun}>
        </div>
      </div>

    </div>
  </div>
  <{/if}>
<{/foreach}>


 

:::

會員登入