1、将上方日志幻灯改成资讯类型。
2、将上方头条的调用改成最新资讯头条。
原代码:
- <div class="content topcontent">
- <div class="mainarea" style="padding-top: 10px;">
- <!--最新日志图片幻灯片 开始-->
- <!--{block name="spaceblog" parameter="haveattach/1/showattach/1/order/i.dateline DESC/limit/0,4/cachetime/13930/cachename/picblog/tpl/data"}-->
- <div id="slideimg">
- <!--{if !empty( $_SBLOCK['picblog'])}-->
- <script type="text/javascript" language="javascript">
- <!--
- var xsTextBar = 1; //是否显示文字链接,1为显示,0为不显示
- var xsPlayBtn = 0; //是否显示播放按钮,1显示,0为不显示
- var xsImgSize = new Array(260,217); //幻灯图片的尺寸,格式为“宽度,高度”
-
- var xsImgs = new Array();
- var xsImgLinks = new Array();
- var xsImgTexts = new Array();
-
- <!--{eval $i=0;}-->
- <!--{loop $_SBLOCK['picblog'] $key $value}-->
- xsImgs[$i] = "$value[a_thumbpath]";
- xsImgLinks[$i] = "<!--{eval echo url_remake($value['url']);}-->";
- xsImgTexts[$i] = "$value[subject]";
- <!--{eval $i++;}-->
- <!--{/loop}-->
- //-->
- </script>
- <script language="javascript" type="text/javascript" src="{S_URL}/include/js/slide.js"></script>
- <!--{/if}-->
- </div>
- <!--一周点击排行头条-->
- <!--{block name="spacenews" parameter="dateline/604800/showattach/1/showdetail/1/order/i.viewnum DESC/limit/0,1/subjectlen/34/subjectdot/1/messagelen/100/messagedot/1/cachetime/18600/cachename/headnews/tpl/data"}-->
- <div id="headline">
- <!--{if !empty($_SBLOCK[headnews])}-->
- <!--{loop $_SBLOCK[headnews] $value}-->
- <strong><a href="$value[url]">$value[subject]</a></strong>
- <p>$value[message]</p>
- <!--{/loop}-->
- <!--{/if}-->
- </div>
复制代码
改成:
- <div class="content topcontent">
- <div class="mainarea" style="padding-top: 10px;">
- <!--最新资讯图片幻灯片 开始-->
- <!--{block name="spacenews" parameter="haveattach/1/showattach/1/order/i.dateline DESC/limit/0,5/subjectlen/24/subjectdot/1/cachetime/11930/cachename/picnews/tpl/data"}-->
- <div id="slideimg">
- <!--{if !empty( $_SBLOCK['picnews'])}-->
- <script type="text/javascript" language="javascript">
- <!--
- var xsTextBar = 1; //是否显示文字链接,1为显示,0为不显示
- var xsPlayBtn = 0; //是否显示播放按钮,1显示,0为不显示
- var xsImgSize = new Array(260,217); //幻灯图片的尺寸,格式为“宽度,高度”
-
- var xsImgs = new Array();
- var xsImgLinks = new Array();
- var xsImgTexts = new Array();
-
- <!--{eval $i=0;}-->
- <!--{loop $_SBLOCK['picnews'] $key $value}-->
- xsImgs[$i] = "$value[a_thumbpath]";
- xsImgLinks[$i] = "<!--{eval echo url_remake($value['url']);}-->";
- xsImgTexts[$i] = "$value[subject]";
- <!--{eval $i++;}-->
- <!--{/loop}-->
- //-->
- </script>
- <script language="javascript" type="text/javascript" src="{S_URL}/include/js/slide.js"></script>
- <!--{/if}-->
- </div>
- <!--资讯头条-->
- <!--{block name="spacenews" parameter="grade/5/dateline/604800/showattach/1/showdetail/1/order/i.dateline DESC/limit/0,1/subjectlen/42/subjectdot/0/messagelen/100/messagedot/1/cachetime/18600/cachename/headnews/tpl/data"}-->
- <div id="headline">
- <!--{if !empty($_SBLOCK['headnews'])}-->
- <!--{loop $_SBLOCK['headnews'] $value}-->
- <strong><a href="$value[url]">$value[subject]</a></strong>
- <p>$value[message]</p>
- <!--{/loop}-->
- <!--{/if}-->
- </div>
复制代码 |