[SITE] move img-Tags to new thumb syntax
This commit is contained in:
parent
edf3ce49c8
commit
8ebfbbfab4
5 changed files with 28 additions and 4 deletions
|
@ -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>':'';
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue