first commit
This commit is contained in:
32
templates/articles/articles-list-static.php
Normal file
32
templates/articles/articles-list-static.php
Normal file
@@ -0,0 +1,32 @@
|
||||
<? global $lang;?>
|
||||
<div class="title"><?= $this -> _site -> _values['title'];?></div>
|
||||
<div class="arts-list-st-container" id="arts-list-st-container-<?= $this -> _id;?>">
|
||||
<? 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'>
|
||||
<? if ( $art -> getImg() ):?>
|
||||
<div class="article-img">
|
||||
<div style="background: url( 'resources/thumber.php?img=<?= $art -> getImg();?>&h=300&w=300' ) no-repeat center;"></div>
|
||||
</div>
|
||||
<? else:?>
|
||||
<div class="article-img">
|
||||
<div style="background: url( 'resources/thumber.php?img=/images/nosystem/no-img.jpg&h=250&w=250' ) no-repeat center;"></div>
|
||||
</div>
|
||||
<? endif;?>
|
||||
<div class='article-title'>
|
||||
<a href="<?= $link;?>"><?= ucfirst( $art -> _values['title'] );?></a>
|
||||
</div>
|
||||
<div class="article-text">
|
||||
<?
|
||||
$text = $art -> getModifyText( true );
|
||||
|
||||
echo mb_substr( strip_tags( $text ) , 0 , 250 , 'UTF-8' );
|
||||
if ( strlen( $text ) > 250 )
|
||||
echo '...';
|
||||
?>
|
||||
</div>
|
||||
<a href="<?= $link;?>" class='button'><?= $lang -> getTrans( 'T_WIECEJ' );?></a>
|
||||
<div class="clear"></div>
|
||||
</div>
|
||||
<? endforeach; endif;?>
|
||||
</div>
|
||||
Reference in New Issue
Block a user