first commit
This commit is contained in:
15
templates/articles/articles-list.php
Normal file
15
templates/articles/articles-list.php
Normal file
@@ -0,0 +1,15 @@
|
||||
<?
|
||||
global $lang;
|
||||
if ( is_array( $this -> _articles ) ) foreach ( $this -> _articles as $art )
|
||||
{
|
||||
$art -> _values['seo_link'] ? $link = $art -> _values['seo_link'] : $link = 'a,' . $art -> _values['id'] . ',' . \System::seo( $art -> _values['title'] );
|
||||
?>
|
||||
<div class='article_list' onClick='document.location.href="<?= $link;?>";'>
|
||||
<div class='article_title'><?= (++$i);?>.<a><?= ucfirst( $art -> _values['title'] );?></a></div>
|
||||
<? if ( $art -> _values['show_date'] ):?>
|
||||
<div class='article_date'><?= $lang -> getTrans( 'T_DATA_PUBLIKACJI' );?>: <?= date( 'Y-m-d H:s' , strtotime( $art -> _values['date_add'] ) );?></div>
|
||||
<? endif;?>
|
||||
</div>
|
||||
<?
|
||||
}
|
||||
?>
|
||||
Reference in New Issue
Block a user