Skip to content

Commit

Permalink
Merge pull request #7 from contao-estatemanager/develop
Browse files Browse the repository at this point in the history
Fixed image size of project images in lists
  • Loading branch information
doishub authored Aug 3, 2020
2 parents 5984a36 + eac2a2a commit b27f012
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 b27f012

Please sign in to comment.