{include file="header2.tpl"}
<div class="col-lg-9">
    <div class="first-content">
        <div class="row">
            <div class="col-lg-12" data-aos="fade-left" data-aos-delay="0">
                <div class="main-title">News</div>
                <div class="main-subtitle">Articles</div>
            </div>
        </div>
        
{if $frm.id}

{loaddata name="news_item" id=$frm.id var=new}
{if $new}
<h3>{$new.title}</h3>
{$new.full_text}
{else}
Not Found
{/if}

{else}


                    

<div class="row">
            <div class="col-md-12" data-aos="zoom-in" data-aos-delay="0">
                <div class="news-list">
{loaddata name="news" var=news page=$frm.p limit=20 pages_var=pages}
{foreach from=$news item=n}

<a name="7">
   <!-- 
</a><a class="news-item"  href="https://centrade.biz/news/id/7"> -->
<div class="news-item__top">
<div class="news-item__date">
<svg>
<use xlink:href="assets/img/sprite.svg#time"></use>
</svg><span>{$n.date}</span></div>
                           
</div>
<div class="news-item__title">{$n.title}</div>
<div class="news-item__text">
<p><a name="{$n.id}"></a><a href="{"?a=news&id=`$n.i`"|encurl}">{$n.title}</a></p>
</div>
<div class="news-item__btn">
<div class="main-btn">Read more</div>
                            <svg>
<use xlink:href="assets/img/sprite.svg#left-arrow"></use>
                            </svg>
                        </div>
                    </a>
{foreachelse}
<tr>
 <td colspan=3 align=center>No news found</td>
</tr>
{/foreach}
 </div>
</div>
</div>
<div class="row" data-aos="fade-left" data-aos-delay="0">
            <div class="col-md-12 d-flex justify-content-end">
                <div class="pagination"><ul class="pagination"><li><a class=" disabled">&lt;&lt;</a></li><li><a class="active">1</a></li><li class="page-item"><a class=" disabled">&gt;&gt;</a></li></ul></div>
            </div>
        </div>
		    </div>
</div>






         </div>
            </div>
        </section>	

{/if}

{include file="footer2.tpl"}