4
隨隨隨隨 一,, html 隨隨

blog2.huayuworld.orgblog2.huayuworld.org/.../8279/lifetype_rssReader_SOP.docx · Web view{if $post->getText()==''}

  • Upload
    others

  • View
    15

  • Download
    0

Embed Size (px)

Citation preview

Page 1: blog2.huayuworld.orgblog2.huayuworld.org/.../8279/lifetype_rssReader_SOP.docx · Web view{if $post->getText()==''}

隨便新增一篇文章,輸入標題後,點選編輯頁的 html 按鈕

Page 2: blog2.huayuworld.orgblog2.huayuworld.org/.../8279/lifetype_rssReader_SOP.docx · Web view{if $post->getText()==''}

輸入 <br /><div class="Rss_Reader" style="display: none"></div> 按 update,不可再輸入其它內文。

Page 3: blog2.huayuworld.orgblog2.huayuworld.org/.../8279/lifetype_rssReader_SOP.docx · Web view{if $post->getText()==''}

打開 postandcomments.template 檔找到 <p>{$post->getText()}</p> 在 </p> 前插入下方的文字{if $post->getText()=='<br /><div class="Rss_Reader" style="display: none"></div>'} <div class="info" style="list-style-type: none; ">{if $rss->parse("http://blog.huayuworld.org/rss.php?blogId=9021&profile=rss20&limit=2000")}{foreach from=$rss->getItems() item=rssItem}<li><a xhref="{$rssItem->getLink()}">{$rssItem->getTitle()}</a></li>{/foreach}{/if} </div><br /> {/if}

可以得到<p>{$post->getText()}{if $post->getText()=='<br /><div class="Rss_Reader" style="display: none"></div>'} <div class="info" style="list-style-type: none; ">{if $rss->parse("http://blog.huayuworld.org/rss.php?blogId=9021&profile=rss20")}{foreach from=$rss->getItems() item=rssItem}<li><a href="{$rssItem->getLink()}">{$rssItem->getTitle()}</a></li>{/foreach}{/if} </div><br /> {/if}</p>

上方紅字可放想要即時更新的網站的 RSS 連結以上的文字的單(雙)引號不可出錯,也不可以用中文或全形單(雙)引號

Page 4: blog2.huayuworld.orgblog2.huayuworld.org/.../8279/lifetype_rssReader_SOP.docx · Web view{if $post->getText()==''}

完成後可得如下圖的即時更新列表