38 lines
1.4 KiB
PHP
38 lines
1.4 KiB
PHP
<?
|
|
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_entry'>
|
|
<? if ( $art -> getImg() ):?>
|
|
<div class="article_img">
|
|
<div style="background: url( 'resources/thumber.php?img=<?= $art -> getImg();?>&h=150&w=150' ) no-repeat center;"></div>
|
|
</div>
|
|
<? endif;?>
|
|
<? if ( $art -> _values['show_title'] ):?>
|
|
<div class='article_title'>
|
|
<a href="<?= $link;?>"><?= stripslashes( $art -> _values['title'] );?></a>
|
|
</div>
|
|
<? endif;?>
|
|
<? if ( $art -> _values['show_date'] ):?>
|
|
<div class='article_date'><?= date( 'H:i d/m/Y', strtotime( $art -> _values['date_add'] ) );?></div>
|
|
<? endif;?>
|
|
<? if ( $art -> _values['comments_enabled'] ):?>
|
|
<div class="article_comments_count"><?= $lang -> getTrans( 'T_KOMENTARZE' );?>: <?= count( $art -> _values['comments'] );?></div>
|
|
<? endif;?>
|
|
<div class="article_entry_text">
|
|
<?
|
|
$text = $art -> getModifyText( true );
|
|
|
|
echo mb_substr( strip_tags( $text ) , 0 , 500 , 'UTF-8' );
|
|
if ( strlen( $text ) > 500 )
|
|
echo '...';
|
|
?>
|
|
</div>
|
|
<a href="<?= $link;?>" class='article_more'><?= $lang -> getTrans( 'T_WIECEJ' );?></a>
|
|
<p style='clear:both'></p>
|
|
</div>
|
|
<?
|
|
}
|
|
?>
|