:::

6-8 templates/op_list_article.tpl

<div class="img-container">
    <div class="container">

    </div>
</div>

<div class="container">
    <h1 class="my-3 text-center">最新文章</h1>
    <div class="row">
    {foreach $all as $article}
        <div class="col-sm-4">
            {assign var="cover" value="uploads/thumb_`$article.sn`.png"}
            {if file_exists($cover)}
                <img src="{$cover}" alt="{$article.title}" class="rounded cover">
            {else}
                <img src="https://picsum.photos/400/300?image={$article@index}" alt="{$article.title}" class="rounded cover">
            {/if}
            <h3><a href="index.php?sn={$article.sn}">{$article.title}</a></h3>
            <p>{$article.summary}</p>
        </div>
    {foreachelse}
        <h1>尚無內容</h1>
    {/foreach}
    </div>
</div>

 


:::

搜尋

QR Code 區塊

https%3A%2F%2Fmail.tad0616.cp22.secserverpros.com%2Fmodules%2Ftad_book3%2Fpage.php%3Ftbdsn%3D1388%26tbsn%3D43

書籍目錄

展開 | 闔起

線上使用者

336人線上 (148人在瀏覽線上書籍)

會員: 0

訪客: 336

更多…