first commit
This commit is contained in:
19
templates/articles/articles-miniature.php
Normal file
19
templates/articles/articles-miniature.php
Normal file
@@ -0,0 +1,19 @@
|
||||
<ul id="grid" class="group">
|
||||
<? if ( is_array( $this -> _articles ) ): foreach ( $this -> _articles as $art ):?>
|
||||
<?
|
||||
$art -> getImg() ? $src = "resources/thumber.php?img=" . $art -> getImg() . "&w=300&h=200&cache=false" : $src = "resources/thumber.php?img=images/system/no_img.jpg&w=250&h=250";
|
||||
|
||||
$art -> _values['seo_link'] ? $link = $art -> _values['seo_link'] : $link = 'a,' . $art -> _values['id'] . ',' . \System::seo( $art -> _values['title'] );
|
||||
?>
|
||||
<li>
|
||||
<div class="details">
|
||||
<h3><?= $art -> _values['title'];?></h3>
|
||||
<a class="more" href="<?= $link;?>">więcej</a>
|
||||
</div>
|
||||
<a class="more" href="<?= $link;?>">
|
||||
<div style="height: 200px; width: 300px; background: url( '<?= $src;?>' ) center;"></div>
|
||||
</a>
|
||||
</li>
|
||||
<? endforeach; endif;?>
|
||||
</ul>
|
||||
<div style="clear: both;"></div>
|
||||
Reference in New Issue
Block a user