在個人模版上加自我介紹的區塊!
其實在lifetype裡的預設模版就有這段語法!
就是standard這個模版!

但是其他網路抓 的模版可能就沒有了!

所以!如果你(妳)想在個人模版加上個人介紹的話!
就加上下列語法!
standard而言是加在footer.template
如果是MinimaPlus則加在links.template
反正大部分的模版不是加在footer.template或links.template不然就是panel.template
^^

語法開始

<div id="Menu"> 
{assign var=blogOwner value=$blog->getOwnerInfo()}
{assign var=AboutMyself value=$blogOwner->getAboutMyself()}
{if $blogOwner->hasPicture() && $AboutMyself}
 
   <h2>{$locale->tr("about_myself")}</h2>
   <div id="AboutMyself">
   {assign var=picture value=$blogOwner->getPicture()}
   <img id="UserPicture" src="{$picture->getPreviewLink()}" alt="{$blogOwner->getUsername()}" />
   <p>{$AboutMyself}</p>
   <div class="clearer">&nbsp;</div>
   </div>
{/if}

語法結束

小弟不才獻醜了!

資料來源:lifetype 官網還有自己的究研!^^

arrow
arrow
    全站熱搜

    jianmin2 發表在 痞客邦 留言(0) 人氣()