[SITE] move back from the new thumb api
This commit is contained in:
parent
d22adf0f81
commit
1de9571c20
|
@ -44,7 +44,7 @@ if ($page->depth() == 1) {
|
||||||
<div class="container">
|
<div class="container">
|
||||||
<?php if ($img = $site->images()->find($site->title_image())) : ?>
|
<?php if ($img = $site->images()->find($site->title_image())) : ?>
|
||||||
<a class="logo" href="<?php echo url() ?>">
|
<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>
|
</a>
|
||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
|
|
||||||
|
|
|
@ -23,7 +23,7 @@ snippet('base/cont-header');
|
||||||
<div class="col-sm-6 col-lg-3"><div class="card">
|
<div class="col-sm-6 col-lg-3"><div class="card">
|
||||||
<a href="<?php echo $c->url(); ?>">
|
<a href="<?php echo $c->url(); ?>">
|
||||||
<?php if ($img = $c->images()->find($c->exrpt_img())) {
|
<?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">
|
<div class="card-block">
|
||||||
<h5 class="card-title"><?php echo $c->title()->html(); ?></h5>
|
<h5 class="card-title"><?php echo $c->title()->html(); ?></h5>
|
||||||
|
|
|
@ -22,7 +22,7 @@ snippet('base/cont-header');
|
||||||
</div>
|
</div>
|
||||||
<div class="col-sm-3">
|
<div class="col-sm-3">
|
||||||
<?php if ($img = $page->images()->find($page->featurette_img())) {
|
<?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>
|
||||||
</div>
|
</div>
|
||||||
|
|
Loading…
Reference in a new issue