1
0
Fork 0

[SITE] move img-Tags to new thumb syntax

This commit is contained in:
Jannik Beyerstedt 2016-04-22 23:35:45 +02:00
parent edf3ce49c8
commit 8ebfbbfab4
5 changed files with 28 additions and 4 deletions

View file

@ -21,14 +21,16 @@ snippet('base/cont-header');
<div class="container"><div class="row">
<?php $i=0; foreach($children as $c) : $i++; ?>
<div class="col-sm-6 col-lg-3"><div class="card">
<a href="<?php echo $c->url(); ?>">
<?php if ($img = $c->images()->find($c->exrpt_img())) {
echo thumb($img, array('width'=>400, 'class'=>"card-img-top"));
echo html::img($img->width(400)->quality(70)->url(), ['class'=>"card-img-top"]);
} ?>
<div class="card-block">
<h5 class="card-title"><?php echo $c->title()->html(); ?></h5>
<p class="card-text"><?php echo $c->exrpt_text()->kirbytext(); ?> </p>
<p class="card-text"><?php echo $c->exrpt_text()->kirbytext(); ?></p>
<a href="<?php echo $c->url(); ?>" class="card-link">mehr</a>
</div>
</a>
</div></div>
<?php
echo ($i%2 == 0)?'<div class="clearfix hidden-lg-up"></div>':'';