Commit 8b132958 authored by Thomas Löffler's avatar Thomas Löffler

Use different icon for buildings and areas

parent ae60deec
......@@ -151,6 +151,19 @@ class RealEstate
return $squareFootage;
}
/**
* @return string
*/
public function getSquareFootageIcon()
{
$icon = 'house';
if (strtolower($this->getObjectType()['type']) === 'grundstueck') {
$icon = 'fence';
}
return $icon;
}
/**
* @return void
*/
......
<html xmlns:f="http://typo3.org/ns/TYPO3/CMS/Fluid/ViewHelpers" data-namespace-typo3-fluid="true">
<li class="property-teaser__area">
<svg role="img" class="icon icon-house" width="24" height="24" focusable="false">
<use xlink:href="/typo3conf/ext/dhimmo_package/Resources/Public/Images/all.svg#house"></use>
<use xlink:href="/typo3conf/ext/dhimmo_package/Resources/Public/Images/all.svg#{re.squareFootageIcon}"></use>
</svg>
{re.wohnflaeche -> f:format.number(decimals:'2',decimalSeparator:',',thousandsSeparator:'.')} <em>m&sup2;</em>
</li>
......
<html xmlns:f="http://typo3.org/ns/TYPO3/CMS/Fluid/ViewHelpers" data-namespace-typo3-fluid="true">
<li class="property-teaser__area">
<svg role="img" class="icon icon-house" width="24" height="24" focusable="false">
<use xlink:href="/typo3conf/ext/dhimmo_package/Resources/Public/Images/all.svg#house"></use>
<use xlink:href="/typo3conf/ext/dhimmo_package/Resources/Public/Images/all.svg#{re.squareFootageIcon}"></use>
</svg>
{re.bueroflaeche -> f:format.number(decimals:'2',decimalSeparator:',',thousandsSeparator:'.')} <em>m&sup2;</em>
</li>
......
<html xmlns:f="http://typo3.org/ns/TYPO3/CMS/Fluid/ViewHelpers" data-namespace-typo3-fluid="true">
<li class="property-teaser__area">
<svg role="img" class="icon icon-house" width="24" height="24" focusable="false">
<use xlink:href="/typo3conf/ext/dhimmo_package/Resources/Public/Images/all.svg#house"></use>
<use xlink:href="/typo3conf/ext/dhimmo_package/Resources/Public/Images/all.svg#{re.squareFootageIcon}"></use>
</svg>
{re.wohnflaeche -> f:format.number(decimals:'2',decimalSeparator:',',thousandsSeparator:'.')} <em>m&sup2;</em>
</li>
......
<html xmlns:f="http://typo3.org/ns/TYPO3/CMS/Fluid/ViewHelpers" data-namespace-typo3-fluid="true">
<li class="property-teaser__area">
<svg role="img" class="icon icon-house" width="24" height="24" focusable="false">
<use xlink:href="/typo3conf/ext/dhimmo_package/Resources/Public/Images/all.svg#house"></use>
<use xlink:href="/typo3conf/ext/dhimmo_package/Resources/Public/Images/all.svg#{re.squareFootageIcon}"></use>
</svg>
{re.wohnflaeche -> f:format.number(decimals:'2',decimalSeparator:',',thousandsSeparator:'.')} <em>m&sup2;</em>
</li>
......
......@@ -25,7 +25,7 @@
<ul class="property-teaser__detail">
<li class="property-teaser__area">
<svg role="img" class="icon icon-house" width="24" height="24" focusable="false">
<use xlink:href="/typo3conf/ext/dhimmo_package/Resources/Public/Images/all.svg#house"></use>
<use xlink:href="/typo3conf/ext/dhimmo_package/Resources/Public/Images/all.svg#{re.squareFootageIcon}"></use>
</svg>
{re.squareFootage -> f:format.number(decimals:'2',decimalSeparator:',',thousandsSeparator:'.')} <em>m&sup2;</em>
</li>
......
......@@ -44,7 +44,7 @@
</li>
<li class="property-teaser__area">
<svg role="img" class="icon icon-house" width="24" height="24" focusable="false">
<use xlink:href="/typo3conf/ext/dhimmo_package/Resources/Public/Images/all.svg#house"></use>
<use xlink:href="/typo3conf/ext/dhimmo_package/Resources/Public/Images/all.svg#{re.squareFootageIcon}"></use>
</svg>
{re.squareFootage -> f:format.number(decimals:'2',decimalSeparator:',',thousandsSeparator:'.')} <em>m&sup2;</em>
</li>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment