Skip to content

Commit

Permalink
Fixed image size of project images in lists
Browse files Browse the repository at this point in the history
  • Loading branch information
doishub committed Aug 3, 2020
1 parent ac39b2d commit eac2a2a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -166,6 +166,7 @@ protected function compile()
$objTemplate->realEstate = $realEstate;
$objTemplate->children = $arrProjects[ $objProjects->master ]['children'] ?: array();
$objTemplate->jumpTo = $this->jumpToProject;
$objTemplate->imgSize = $this->projectImgSize;
$objTemplate->details = Project::getProjectSpecificDetails($realEstate);

$objTemplate->buttonLabel = Translator::translateExpose('button_project');
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,11 @@
<div class="main-image">
<?php if ($this->jumpTo): ?>
<a href="<?= $link ?>" title="<?= $this->realEstate->title ?>">
<?php endif; ?>
<figure class="image_container"><?= $this->realEstate->generateMainImage() ?></figure>
<?php if ($this->jumpTo): ?>
<?php endif; ?>
<figure class="image_container"><?= $this->realEstate->generateMainImage($this->imgSize) ?></figure>
<?php if ($this->jumpTo): ?>
</a>
<?php endif; ?>
<?php endif; ?>
</div>
<div class="info">

Expand Down

0 comments on commit eac2a2a

Please sign in to comment.