From d11c0aa32d55964231e259c9cd7509df5aae766e Mon Sep 17 00:00:00 2001 From: yeneastgate Date: Thu, 28 Dec 2023 11:59:14 +0700 Subject: [PATCH 01/27] 42678 adaptive image resolution --- css/onoffice-default.css | 12 +++++ plugin/EstateList.php | 56 +++++++++++++++++++++++ templates.dist/estate/default.php | 6 ++- templates.dist/estate/default_detail.php | 7 ++- templates.dist/estate/similar_estates.php | 6 ++- tests/TestClassEstateList.php | 15 ++++++ 6 files changed, 94 insertions(+), 8 deletions(-) diff --git a/css/onoffice-default.css b/css/onoffice-default.css index f5507df92..88443bcaa 100644 --- a/css/onoffice-default.css +++ b/css/onoffice-default.css @@ -38,6 +38,18 @@ div.multiselect[data-values=""] > input[type=button] { opacity: 0.7; } +.oo-responsive-image { + display: block; + width: 100%; + min-height: 250px; + position: relative; + object-fit: cover; +} + +.oo-responsive-image.oo-height-image-detail { + min-height: 400px; +} + @keyframes rotating { from { transform: rotate(0deg); diff --git a/plugin/EstateList.php b/plugin/EstateList.php index b5e555486..47157e650 100644 --- a/plugin/EstateList.php +++ b/plugin/EstateList.php @@ -67,6 +67,18 @@ class EstateList { const DEFAULT_LIMIT_CHARACTER_DESCRIPTION = 150; + /** @var string */ + const MIN_WIDTH_TEXT = 'min-width'; + + /** @var array */ + const MIN_WIDTH_MEDIA_QUERY = [1600, 1400, 1200, 992, 768, 576]; + + /** @var string */ + const MAX_WIDTH_TEXT = 'max-width'; + + /** @var array */ + const MAX_WIDTH_MEDIA_QUERY = [575]; + /** @var array */ private $_records = []; @@ -697,6 +709,50 @@ public function getEstatePictureTitle($imageId) return $this->_pEstateFiles->getEstatePictureTitle($imageId, $currentEstate); } + /** + * @param int $imageId + * @return void + */ + public function generateSourceElementPictureTag(int $imageId) + { + $minWidthMediaQueries = self::MIN_WIDTH_MEDIA_QUERY; + $maxWidthMediaQueries = self::MAX_WIDTH_MEDIA_QUERY; + $height = $this->_pDataView instanceof DataDetailView ? 400 : 250; + $heightImageInDetailClass = $this->_pDataView instanceof DataDetailView ? 'oo-height-image-detail' : ''; + + echo ''; + foreach ($minWidthMediaQueries as $minWidthMediaQuery) { + $this->generateSourceElementHtml($imageId, $height, $minWidthMediaQuery, self::MIN_WIDTH_TEXT); + } + + foreach ($maxWidthMediaQueries as $maxWidthMediaQuery) { + $this->generateSourceElementHtml($imageId, $height, $maxWidthMediaQuery, self::MAX_WIDTH_TEXT); + } + + echo ''; + echo ''; + } + + /** + * @param int $imageId + * @param int $height + * @param int $mediaQuery + * @param string $mediaFeature + * @return void + */ + public function generateSourceElementHtml(int $imageId, int $height, int $mediaQuery, string $mediaFeature) + { + echo ''; + } + /** * @param int $imageId * @return string diff --git a/templates.dist/estate/default.php b/templates.dist/estate/default.php index 383d2d318..9fa80f6b2 100644 --- a/templates.dist/estate/default.php +++ b/templates.dist/estate/default.php @@ -84,9 +84,11 @@ $pictureValues = $pEstatesClone->getEstatePictureValues( $id ); if ( $referenz === "1" && $pEstatesClone->getViewRestrict() ) { - echo '
'; + echo ' diff --git a/templates.dist/estate/similar_estates.php b/templates.dist/estate/similar_estates.php index 9d3c79709..fddeda831 100644 --- a/templates.dist/estate/similar_estates.php +++ b/templates.dist/estate/similar_estates.php @@ -27,9 +27,11 @@ foreach ( $estatePictures as $id ) { $pictureValues = $pEstates->getEstatePictureValues( $id ); if ( $referenz === "1" && $pEstates->getViewRestrict() ) { - echo 'div style="background-image: url('.esc_url($pEstates->getEstatePictureUrl( $id )).');" class="oo-listimage">'; + echo '
'; + $pEstates->generateSourceElementPictureTag($id); } else { - echo ''; + echo ''; + $pEstates->generateSourceElementPictureTag($id); } if ($pictureValues['type'] === \onOffice\WPlugin\Types\ImageTypes::TITLE && $marketingStatus != '') { echo ''.esc_html($marketingStatus).''; diff --git a/tests/TestClassEstateList.php b/tests/TestClassEstateList.php index 26b118697..6fd2c7710 100644 --- a/tests/TestClassEstateList.php +++ b/tests/TestClassEstateList.php @@ -1039,4 +1039,19 @@ public function getEstateFieldsData() { } return $fieldsCollection; } + + /** + * + */ + public function testGenerateSourceElementPictureTag() + { + $this->_pEstateList->loadEstates(); + $this->_pEstateList->estateIterator(); + ob_start(); + $this->_pEstateList->generateSourceElementPictureTag(2); + $output = ob_get_clean(); + $this->assertEquals($output, + 'Name id 15' + ); + } } From 9fdd269eb82ee54c90b3f4110f4ec6f54a30a707 Mon Sep 17 00:00:00 2001 From: yeneastgate Date: Thu, 28 Dec 2023 17:05:42 +0700 Subject: [PATCH 02/27] 42678 update unit test --- plugin/EstateList.php | 2 +- tests/resources/templates/output_default_detail.html | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/plugin/EstateList.php b/plugin/EstateList.php index 47157e650..d5529e429 100644 --- a/plugin/EstateList.php +++ b/plugin/EstateList.php @@ -731,7 +731,7 @@ public function generateSourceElementPictureTag(int $imageId) echo ''; echo ''; } diff --git a/tests/resources/templates/output_default_detail.html b/tests/resources/templates/output_default_detail.html index 7cfaabd51..f7abc6e81 100644 --- a/tests/resources/templates/output_default_detail.html +++ b/tests/resources/templates/output_default_detail.html @@ -13,8 +13,7 @@

flach begrüntes Grundstück

-
-
+
label-objektart
Grundstück
From 7821c29180186e8c33d4809dc2b8f4184210ca3f Mon Sep 17 00:00:00 2001 From: yeneastgate Date: Fri, 29 Dec 2023 09:10:58 +0700 Subject: [PATCH 03/27] 42678 refactor code --- plugin/EstateList.php | 4 ++-- templates.dist/estate/default.php | 4 ++-- templates.dist/estate/default_detail.php | 2 +- templates.dist/estate/similar_estates.php | 4 ++-- tests/TestClassEstateList.php | 2 +- 5 files changed, 8 insertions(+), 8 deletions(-) diff --git a/plugin/EstateList.php b/plugin/EstateList.php index d5529e429..d3727ab18 100644 --- a/plugin/EstateList.php +++ b/plugin/EstateList.php @@ -713,7 +713,7 @@ public function getEstatePictureTitle($imageId) * @param int $imageId * @return void */ - public function generateSourceElementPictureTag(int $imageId) + public function generateEstatePictureTag(int $imageId) { $minWidthMediaQueries = self::MIN_WIDTH_MEDIA_QUERY; $maxWidthMediaQueries = self::MAX_WIDTH_MEDIA_QUERY; @@ -743,7 +743,7 @@ public function generateSourceElementPictureTag(int $imageId) * @param string $mediaFeature * @return void */ - public function generateSourceElementHtml(int $imageId, int $height, int $mediaQuery, string $mediaFeature) + private function generateSourceElementHtml(int $imageId, int $height, int $mediaQuery, string $mediaFeature) { echo 'getViewRestrict() ) { echo '
'; - $pEstatesClone->generateSourceElementPictureTag($id); + $pEstatesClone->generateEstatePictureTag($id); } else { echo ''; - $pEstatesClone->generateSourceElementPictureTag($id); + $pEstatesClone->generateEstatePictureTag($id); } if ($pictureValues['type'] === \onOffice\WPlugin\Types\ImageTypes::TITLE && $marketingStatus != '') { echo ''.esc_html($marketingStatus).''; diff --git a/templates.dist/estate/default_detail.php b/templates.dist/estate/default_detail.php index 714aaeb00..4e19ba2d3 100644 --- a/templates.dist/estate/default_detail.php +++ b/templates.dist/estate/default_detail.php @@ -56,7 +56,7 @@ $estatePictures = $pEstates->getEstatePictures(); foreach ($estatePictures as $id) { echo '
'; - $pEstates->generateSourceElementPictureTag($id); + $pEstates->generateEstatePictureTag($id); echo '
'; } ?> diff --git a/templates.dist/estate/similar_estates.php b/templates.dist/estate/similar_estates.php index fddeda831..f119ce7b3 100644 --- a/templates.dist/estate/similar_estates.php +++ b/templates.dist/estate/similar_estates.php @@ -28,10 +28,10 @@ $pictureValues = $pEstates->getEstatePictureValues( $id ); if ( $referenz === "1" && $pEstates->getViewRestrict() ) { echo '
'; - $pEstates->generateSourceElementPictureTag($id); + $pEstates->generateEstatePictureTag($id); } else { echo ''; - $pEstates->generateSourceElementPictureTag($id); + $pEstates->generateEstatePictureTag($id); } if ($pictureValues['type'] === \onOffice\WPlugin\Types\ImageTypes::TITLE && $marketingStatus != '') { echo ''.esc_html($marketingStatus).''; diff --git a/tests/TestClassEstateList.php b/tests/TestClassEstateList.php index 6fd2c7710..6192a06b8 100644 --- a/tests/TestClassEstateList.php +++ b/tests/TestClassEstateList.php @@ -1048,7 +1048,7 @@ public function testGenerateSourceElementPictureTag() $this->_pEstateList->loadEstates(); $this->_pEstateList->estateIterator(); ob_start(); - $this->_pEstateList->generateSourceElementPictureTag(2); + $this->_pEstateList->generateEstatePictureTag(2); $output = ob_get_clean(); $this->assertEquals($output, 'Name id 15' From c7ba1f076c22a9bef70706499043d9adc6a5ad82 Mon Sep 17 00:00:00 2001 From: andernath Date: Thu, 23 May 2024 09:55:37 +0200 Subject: [PATCH 04/27] refactor and fix output for responsive image sources #4246743 --- css/onoffice-default.css | 15 ++-- plugin/EstateList.php | 72 ++++------------- templates.dist/estate/default.php | 76 +++++++++++++++++- templates.dist/estate/default_detail.php | 56 ++++++++++++- templates.dist/estate/similar_estates.php | 80 ++++++++++++++++++- tests/TestClassEstateList.php | 42 +++++++++- .../templates/output_default_detail.html | 2 +- 7 files changed, 272 insertions(+), 71 deletions(-) diff --git a/css/onoffice-default.css b/css/onoffice-default.css index 88443bcaa..b8a8e3271 100644 --- a/css/onoffice-default.css +++ b/css/onoffice-default.css @@ -38,16 +38,19 @@ div.multiselect[data-values=""] > input[type=button] { opacity: 0.7; } -.oo-responsive-image { +.oo-picture { display: block; + height: 100%; width: 100%; - min-height: 250px; - position: relative; - object-fit: cover; + line-height: 0; + overflow: hidden; } -.oo-responsive-image.oo-height-image-detail { - min-height: 400px; +.oo-responsive-image { + width: 100%; + height: 100%; + object-fit: cover; + object-position: center center; } @keyframes rotating { diff --git a/plugin/EstateList.php b/plugin/EstateList.php index 872faf224..78f6efd70 100644 --- a/plugin/EstateList.php +++ b/plugin/EstateList.php @@ -67,18 +67,6 @@ class EstateList { const DEFAULT_LIMIT_CHARACTER_DESCRIPTION = 150; - /** @var string */ - const MIN_WIDTH_TEXT = 'min-width'; - - /** @var array */ - const MIN_WIDTH_MEDIA_QUERY = [1600, 1400, 1200, 992, 768, 576]; - - /** @var string */ - const MAX_WIDTH_TEXT = 'max-width'; - - /** @var array */ - const MAX_WIDTH_MEDIA_QUERY = [575]; - /** @var array */ private $_records = []; @@ -709,49 +697,23 @@ public function getEstatePictureTitle($imageId) return $this->_pEstateFiles->getEstatePictureTitle($imageId, $currentEstate); } - /** - * @param int $imageId - * @return void - */ - public function generateEstatePictureTag(int $imageId) - { - $minWidthMediaQueries = self::MIN_WIDTH_MEDIA_QUERY; - $maxWidthMediaQueries = self::MAX_WIDTH_MEDIA_QUERY; - $height = $this->_pDataView instanceof DataDetailView ? 400 : 250; - $heightImageInDetailClass = $this->_pDataView instanceof DataDetailView ? 'oo-height-image-detail' : ''; - - echo ''; - foreach ($minWidthMediaQueries as $minWidthMediaQuery) { - $this->generateSourceElementHtml($imageId, $height, $minWidthMediaQuery, self::MIN_WIDTH_TEXT); - } - - foreach ($maxWidthMediaQueries as $maxWidthMediaQuery) { - $this->generateSourceElementHtml($imageId, $height, $maxWidthMediaQuery, self::MAX_WIDTH_TEXT); - } - - echo ''; - echo ''; - } - - /** - * @param int $imageId - * @param int $height - * @param int $mediaQuery - * @param string $mediaFeature - * @return void - */ - private function generateSourceElementHtml(int $imageId, int $height, int $mediaQuery, string $mediaFeature) - { - echo ''; - } + /** + * @param int $imageId + * @param int $breakPoint + * @param float|null $width + * @param float|null $height + * @param bool $maxWidth + * @return string + */ + public function getResponsiveImageSource(int $imageId, int $breakPoint, float $width = null, float $height = null, bool $maxWidth = false) { + $imageUrl = $this->getEstatePictureUrl( $imageId, ['width'=> $width, 'height'=>$height]); + $sourceTag = ''; + } /** * @param int $imageId diff --git a/templates.dist/estate/default.php b/templates.dist/estate/default.php index cfc90f4a8..f98e36dee 100644 --- a/templates.dist/estate/default.php +++ b/templates.dist/estate/default.php @@ -30,6 +30,58 @@ $dontEcho = array("objekttitel", "objektbeschreibung", "lage", "ausstatt_beschr", "sonstige_angaben", "MPAreaButlerUrlWithAddress", "MPAreaButlerUrlNoAddress"); +// picture properties +$image_width_xs = 539; +$image_width_sm = 508; +$image_width_md = 690; +$image_width_lg = 444; +$image_width_xl = 540; +$image_width_xxl = 412; +$image_width_xxxl = 456; +$dimensions = [ + '575' => [ + 'w' => $image_width_xs, + 'h' => round( + ($image_width_xs * 2) / 3, + ), + ], + '1600' => [ + 'w' => $image_width_xxxl, + 'h' => round( + ($image_width_xxxl * 2) / 3, + ), + ], + '1400' => [ + 'w' => $image_width_xxl, + 'h' => round( + ($image_width_xxl * 2) / 3, + ), + ], + '1200' => [ + 'w' => $image_width_xl, + 'h' => round( + ($image_width_xl * 2) / 3, + ), + ], + '992' => [ + 'w' => $image_width_lg, + 'h' => round( + ($image_width_lg * 2) / 3, + ), + ], + '768' => [ + 'w' => $image_width_md, + 'h' => round( + ($image_width_md * 2) / 3, + ), + ], + '576' => [ + 'w' => $image_width_sm, + 'h' => round( + ($image_width_sm * 2) / 3, + ), + ] +]; ?> \ No newline at end of file + From b1d807da165ff6f2221e1b4ed3e1a624266eb3de Mon Sep 17 00:00:00 2001 From: Kristian Pospis Date: Wed, 12 Jun 2024 15:21:28 +0200 Subject: [PATCH 20/27] adapt image sizes --- templates.dist/estate/similar_estates.php | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/templates.dist/estate/similar_estates.php b/templates.dist/estate/similar_estates.php index 60b9f0536..a2099dfb1 100644 --- a/templates.dist/estate/similar_estates.php +++ b/templates.dist/estate/similar_estates.php @@ -3,13 +3,13 @@ /* responsive picture properties * customizable widths and heights for individual layouts */ -$image_width_xs = 545; -$image_width_sm = 355; -$image_width_md = 465; -$image_width_lg = 370; -$image_width_xl = 440; -$image_width_xxl = 500; -$image_width_xxxl = 605; +$image_width_xs = 400; +$image_width_sm = 600; +$image_width_md = 800; +$image_width_lg = 650; +$image_width_xl = 750; +$image_width_xxl = 750; +$image_width_xxxl = 750; $image_height_xs = null; $image_height_sm = null; $image_height_md = null; @@ -142,4 +142,4 @@
-
\ No newline at end of file +
From c5c98ece54387d400a15f7087bee6d85ba11f5c8 Mon Sep 17 00:00:00 2001 From: Kristian Pospis Date: Wed, 12 Jun 2024 16:04:00 +0200 Subject: [PATCH 21/27] fix unit test --- templates.dist/estate/default_detail.php | 1 + 1 file changed, 1 insertion(+) diff --git a/templates.dist/estate/default_detail.php b/templates.dist/estate/default_detail.php index 330edf72b..201cefac0 100644 --- a/templates.dist/estate/default_detail.php +++ b/templates.dist/estate/default_detail.php @@ -88,6 +88,7 @@ width: 25%; } +
resetEstateIterator(); From bdb074d9afb6ea19606f3c901bd99fd9b8a33888 Mon Sep 17 00:00:00 2001 From: Kristian Pospis Date: Wed, 12 Jun 2024 16:34:51 +0200 Subject: [PATCH 22/27] fix unit test --- templates.dist/estate/default_detail.php | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/templates.dist/estate/default_detail.php b/templates.dist/estate/default_detail.php index 201cefac0..e27a3a871 100644 --- a/templates.dist/estate/default_detail.php +++ b/templates.dist/estate/default_detail.php @@ -87,9 +87,7 @@ .clear { width: 25%; } - - -
+
resetEstateIterator(); while ($currentEstate = $pEstates->estateIterator(EstateViewFieldModifierTypes::MODIFIER_TYPE_DEFAULT)) { ?> From 33b73662938326f08b7c2f11f68374eaf38befd5 Mon Sep 17 00:00:00 2001 From: Kristian Pospis Date: Wed, 12 Jun 2024 16:44:14 +0200 Subject: [PATCH 23/27] revert --- templates.dist/estate/default_detail.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/templates.dist/estate/default_detail.php b/templates.dist/estate/default_detail.php index e27a3a871..330edf72b 100644 --- a/templates.dist/estate/default_detail.php +++ b/templates.dist/estate/default_detail.php @@ -87,7 +87,8 @@ .clear { width: 25%; } -
+ +
resetEstateIterator(); while ($currentEstate = $pEstates->estateIterator(EstateViewFieldModifierTypes::MODIFIER_TYPE_DEFAULT)) { ?> From bb8808bb8d00ba1d6cfc4a9d4e2d22533c6d4061 Mon Sep 17 00:00:00 2001 From: Kristian Pospis Date: Wed, 12 Jun 2024 19:28:03 +0200 Subject: [PATCH 24/27] fix unit test From 3801d29aeb882301d5d8366ab9d07b4df602c54b Mon Sep 17 00:00:00 2001 From: pospisk Date: Wed, 12 Jun 2024 19:38:30 +0200 Subject: [PATCH 25/27] fix unit test --- templates.dist/estate/default_detail.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/templates.dist/estate/default_detail.php b/templates.dist/estate/default_detail.php index 330edf72b..93199bafb 100644 --- a/templates.dist/estate/default_detail.php +++ b/templates.dist/estate/default_detail.php @@ -459,4 +459,4 @@ function headingLink($url, $title) text-decoration: none; color: #000; } - + \ No newline at end of file From 2c356bb267cbe8a04660cd1af2fd38744be78cd8 Mon Sep 17 00:00:00 2001 From: andernath Date: Tue, 18 Jun 2024 09:24:21 +0200 Subject: [PATCH 26/27] revert width sizes to a value with the best possible compatibility with different themes #4301435 --- templates.dist/estate/default.php | 16 ++++++++-------- templates.dist/estate/default_detail.php | 14 +++++++------- templates.dist/estate/similar_estates.php | 16 ++++++++-------- 3 files changed, 23 insertions(+), 23 deletions(-) diff --git a/templates.dist/estate/default.php b/templates.dist/estate/default.php index 184ed7e8b..a3a47dc95 100644 --- a/templates.dist/estate/default.php +++ b/templates.dist/estate/default.php @@ -33,13 +33,13 @@ /* responsive picture properties * customizable widths and heights for individual layouts */ -$image_width_xs = 300; -$image_width_sm = 350; -$image_width_md = 450; -$image_width_lg = 250; -$image_width_xl = 250; -$image_width_xxl = 250; -$image_width_xxxl = 250; +$image_width_xs = 545; +$image_width_sm = 355; +$image_width_md = 465; +$image_width_lg = 370; +$image_width_xl = 440; +$image_width_xxl = 500; +$image_width_xxxl = 600; $image_height_xs = null; $image_height_sm = null; $image_height_md = null; @@ -266,4 +266,4 @@ $('button.onoffice.favorize').each(onOffice.addFavoriteButtonLabel); }); - + \ No newline at end of file diff --git a/templates.dist/estate/default_detail.php b/templates.dist/estate/default_detail.php index 93199bafb..913058134 100644 --- a/templates.dist/estate/default_detail.php +++ b/templates.dist/estate/default_detail.php @@ -34,13 +34,13 @@ /* responsive picture properties * customizable widths and heights for individual layouts */ -$image_width_xs = 400; -$image_width_sm = 600; -$image_width_md = 900; -$image_width_lg = 500; -$image_width_xl = 500; -$image_width_xxl = 500; -$image_width_xxxl = 500; +$image_width_xs = 545; +$image_width_sm = 740; +$image_width_md = 960; +$image_width_lg = 870; +$image_width_xl = 1020; +$image_width_xxl = 1170; +$image_width_xxxl = 1400; $image_height_xs = null; $image_height_sm = null; $image_height_md = null; diff --git a/templates.dist/estate/similar_estates.php b/templates.dist/estate/similar_estates.php index a2099dfb1..60b9f0536 100644 --- a/templates.dist/estate/similar_estates.php +++ b/templates.dist/estate/similar_estates.php @@ -3,13 +3,13 @@ /* responsive picture properties * customizable widths and heights for individual layouts */ -$image_width_xs = 400; -$image_width_sm = 600; -$image_width_md = 800; -$image_width_lg = 650; -$image_width_xl = 750; -$image_width_xxl = 750; -$image_width_xxxl = 750; +$image_width_xs = 545; +$image_width_sm = 355; +$image_width_md = 465; +$image_width_lg = 370; +$image_width_xl = 440; +$image_width_xxl = 500; +$image_width_xxxl = 605; $image_height_xs = null; $image_height_sm = null; $image_height_md = null; @@ -142,4 +142,4 @@
-
+
\ No newline at end of file From dc9bccaaa41fdabbe859dc8d09bb8b921f42e184 Mon Sep 17 00:00:00 2001 From: andernath Date: Tue, 18 Jun 2024 09:45:56 +0200 Subject: [PATCH 27/27] Change image width on mobile to fit for lighthouse testing #4301435 --- templates.dist/estate/default.php | 2 +- templates.dist/estate/default_detail.php | 2 +- templates.dist/estate/similar_estates.php | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/templates.dist/estate/default.php b/templates.dist/estate/default.php index a3a47dc95..495e3abdf 100644 --- a/templates.dist/estate/default.php +++ b/templates.dist/estate/default.php @@ -33,7 +33,7 @@ /* responsive picture properties * customizable widths and heights for individual layouts */ -$image_width_xs = 545; +$image_width_xs = 382; $image_width_sm = 355; $image_width_md = 465; $image_width_lg = 370; diff --git a/templates.dist/estate/default_detail.php b/templates.dist/estate/default_detail.php index 913058134..68ef09cbb 100644 --- a/templates.dist/estate/default_detail.php +++ b/templates.dist/estate/default_detail.php @@ -34,7 +34,7 @@ /* responsive picture properties * customizable widths and heights for individual layouts */ -$image_width_xs = 545; +$image_width_xs = 382; $image_width_sm = 740; $image_width_md = 960; $image_width_lg = 870; diff --git a/templates.dist/estate/similar_estates.php b/templates.dist/estate/similar_estates.php index 60b9f0536..1795c7723 100644 --- a/templates.dist/estate/similar_estates.php +++ b/templates.dist/estate/similar_estates.php @@ -3,7 +3,7 @@ /* responsive picture properties * customizable widths and heights for individual layouts */ -$image_width_xs = 545; +$image_width_xs = 382; $image_width_sm = 355; $image_width_md = 465; $image_width_lg = 370;