1
0
Fork 0

[SITE] move back from the new thumb api

This commit is contained in:
Jannik Beyerstedt 2016-04-27 22:44:51 +02:00
parent d22adf0f81
commit 1de9571c20
3 changed files with 3 additions and 3 deletions

View file

@ -44,7 +44,7 @@ if ($page->depth() == 1) {
<div class="container">
<?php if ($img = $site->images()->find($site->title_image())) : ?>
<a class="logo" href="<?php echo url() ?>">
<img src="<?php echo $site->title_image()->url() ?>" alt="Logo">
<img src="<?php echo $site->url().'/content/'.$site->title_image()->html() ?>" alt="Logo">
</a>
<?php endif; ?>

View file

@ -23,7 +23,7 @@ snippet('base/cont-header');
<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 html::img($img->width(400)->quality(70)->url(), ['class'=>"card-img-top"]);
echo ThumbExt($img, ['width'=>400,'quality'=>70,'class'=>"card-img-top",'inline-size'=>false]);
} ?>
<div class="card-block">
<h5 class="card-title"><?php echo $c->title()->html(); ?></h5>

View file

@ -22,7 +22,7 @@ snippet('base/cont-header');
</div>
<div class="col-sm-3">
<?php if ($img = $page->images()->find($page->featurette_img())) {
echo html::img($img->width(235)->quality(70)->url(), ['class'=>"img-fluid img-rounded", 'alt'=>"Portrait"]);
echo ThumbExt($img, ['width'=>235,'quality'=>70,'class'=>"img-fluid img-rounded",'alt'=>"Portrait",'inline-size'=>false]);
}?>
</div>
</div>