:::

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>
 


:::

搜尋

QR Code 區塊

https%3A%2F%2Ftad0616.net%2Fmodules%2Ftad_book3%2Fpage.php%3Ftbdsn%3D440%26tbsn%3D18

書籍目錄

展開 | 闔起

線上使用者

87人線上 (34人在瀏覽線上書籍)

會員: 0

訪客: 87

更多…