| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667 |
- {include file="header" /}
- <link rel="stylesheet" href="/assets/xtu/news-list.css?v=20260429-1658">
- {php}
- $currentPage = max(1, (int)request()->param('page/d', 1));
- $featuredWhere = "FIND_IN_SET('1', flag)";
- $newsWhere = "(flag='' OR flag IS NULL OR !FIND_IN_SET('1', flag))";
- {/php}
- <main class="brand-news-page">
- <section class="brand-news-hero"{if !empty($category['image'])} style="background-image:url({$category['image']});"{/if}>
- <div class="content-1300-wrap brand-news-hero-inner">
- <h1>{$category['catname']|default=''}</h1>
- {if !empty($category['description'])}
- <p>{$category['description']}</p>
- {/if}
- </div>
- </section>
- <section class="brand-news-section">
- <div class="content-1300-wrap">
- {if $currentPage == 1}
- {yzn module="cms" action="lists" catid="$catid" where="$featuredWhere" order="listorder DESC,publish_time DESC,id DESC" num="1" return="featuredList" moreinfo="1"}
- {if !empty($featuredList)}
- {volist name="featuredList" id="featured"}
- <article class="brand-news-featured-card">
- <a class="brand-news-featured-media" href="{$featured.url}">
- <img src="{if !empty($featured.thumb)}{$featured.thumb}{else /}/uploads/20260409/15d257a4faf1bc9aadd0095112b6b7f7.png{/if}" alt="{$featured.title}">
- </a>
- <div class="brand-news-featured-copy">
- <div class="brand-news-kicker">{:getCategory($featured['catid'],'catname')}</div>
- <h2><a href="{$featured.url}">{$featured.title}</a></h2>
- <div class="brand-news-date">{$featured.publish_time|date='Y-m-d'}</div>
- </div>
- </article>
- {/volist}
- {/if}
- {/yzn}
- {/if}
- <div class="brand-news-grid">
- {yzn module="cms" action="lists" catid="$catid" where="$newsWhere" order="publish_time DESC,id DESC" num="9" page="$page" return="data" moreinfo="1"}
- {volist name="data" id="vo"}
- <article class="brand-news-card">
- <a class="brand-news-card-media" href="{$vo.url}">
- <img src="{if !empty($vo.thumb)}{$vo.thumb}{else /}/uploads/20260409/15d257a4faf1bc9aadd0095112b6b7f7.png{/if}" alt="{$vo.title}">
- </a>
- <div class="brand-news-card-copy">
- <div class="brand-news-kicker">{:getCategory($vo['catid'],'catname')}</div>
- <h3><a href="{$vo.url}">{$vo.title}</a></h3>
- <div class="brand-news-date">{$vo.publish_time|date='Y-m-d'}</div>
- </div>
- </article>
- {/volist}
- {/yzn}
- </div>
- {if !empty($pages)}
- <div class="brand-news-pagination">{$pages|raw}</div>
- {/if}
- </div>
- </section>
- {include file="footer-links" /}
- </main>
- {include file="footer" /}
|