:::

14-4 上課範例:block.html

<div class="block">
    <{if $block.title|regex_replace:"/.*\[hide\].*/":"hide" ne "hide"}>
        <{if $block.title|regex_replace:"/.*\[pic\].*/":"Picture True" eq "Picture True"}>
        <div align="left"><img src="<{$xoops_imageurl}><{$block.title|regex_replace:"/.*\[pic\]/":""}>" alt="<{$block.title|regex_replace:"/\[pic\].*/":""}>" title="<{$block.title|regex_replace:"/\[pic\].*/":""}>" align="absmiddle" hspace=2 /></div>
        <{else}>
        <div class="blockTitle">
            <{if $block.title|regex_replace:"/.*\[icon\].*/":"Icon True" eq "Icon True"}>
            <img src="<{$xoops_imageurl}><{$block.title|regex_replace:"/.*\[icon\]/":""}>" alt="<{$block.title|regex_replace:"/\[icon\].*/":""}>" title="<{$block.title|regex_replace:"/\[icon\].*/":""}>" align="right" hspace=2  />
            <{$block.title|regex_replace:"/\[icon\].*/":""}>
            <{elseif $block.title|regex_replace:"/.*\[link\].*/":"Link True" eq "Link True"}>
            <a href="<{$block.title|regex_replace:"/.*\[link\]/":""}>" alt="<{$block.title|regex_replace:"/\[link\].*/":""}>" title="<{$block.title|regex_replace:"/\[link\].*/":""}>"><{$block.title|regex_replace:"/\[link\].*/":""}></a>
            <{else}>
            <{$block.title}>
            <{/if}>
        </div>
        <{/if}>
    <{/if}>
   
    <div class="blockContent">
        <{$block.content}>
    </div>
</div>
 


:::

搜尋


書籍目錄

展開 | 闔起

線上使用者

16人線上 (4人在瀏覽線上書籍)

會員: 3

訪客: 13

trueeric, staff3402_goo, person100_goo,

更多…