Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <div class="flex_column no_margin av_two_third realty-main-container">
- <section class="ji-info-section ji-info-section--photos">
- <?php $photos_array = $realty->getPictures(); ?>
- <?php if (!empty($photos_array)) : ?>
- <ul class="ji-photos-list" id="lightSlider">
- <?php foreach ($photos_array as $photo) : ?>
- <?php
- try {
- $imageBigUrl = $photo->getUrl('big2');
- $imageMediumUrl = $photo->getUrl('medium');
- } catch (\Exception $e) {
- $imageBigUrl = null;
- $imageMediumUrl = null;
- }
- ?>
- <?php if ($imageBigUrl && $imageMediumUrl) : ?>
- <li class="ji-photos-list__item" data-thumb="<?php echo $imageBigUrl ?>">
- <a href="<?php echo $imageBigUrl ?>" class="fancybox" rel="gallery">
- <img src="<?php echo $imageMediumUrl ?>" class="ji-photo" alt=""/>
- </a>
- </li>
- <?php endif; ?>
- <?php endforeach; ?>
- </ul>
- <?php endif; ?>
- </section>
- <!-- Mobile -->
- <section class="ji-info-section show-mobile">
- <hr/>
- <div class="row">
- <div class="">
- <ul class="ji-info-list">
- <div class="flex_column no_margin av_one_half">
- <div class="ji-info">
- <label class="ji-info__label basic-info-label">
- <?php _e('Objektart:', 'jiwp'); ?>
- </label>
- <br/>
- <span class="ji-info__value">
- <?php echo $realty->getRealtyTypeName(); ?>
- </span>
- </div>
- <div class="ji-info">
- <label class="ji-info__label basic-info-label">
- <?php _e('Unterobjektart:', 'jiwp'); ?>
- </label>
- <br/>
- <span class="ji-info__value">
- <?php echo $realty->getSubRealtyTypeName(); ?>
- </span>
- </div>
- </div>
- <div class="flex_column no_margin av_one_half">
- <?php if ($room_count = $realty->getRoomCount()) :?>
- <div class="ji-info">
- <label class="ji-info__label basic-info-label">
- <?php _e('Zimmer:', 'jiwp'); ?>
- </label>
- <br/>
- <span class="ji-info__value">
- <?php echo Justimmo\Wordpress\Helper\NumberFormatter::format($room_count); ?>
- </span>
- </div>
- <?php endif; ?>
- <?php if ($living_area = $realty->getLivingArea()) :?>
- <div class="ji-info">
- <label class="ji-info__label basic-info-label">
- <?php _e('Wohnfläche:', 'jiwp'); ?>
- </label>
- <br/>
- <span class="ji-info__value">
- <?php echo Justimmo\Wordpress\Helper\NumberFormatter::format($living_area) . ' m²'; ?>
- </span>
- </div>
- <?php endif; ?>
- <?php if ($realty->getMarketingType()['KAUF'] == true): ?>
- <div class="ji-info">
- <label class="ji-info__label basic-info-label">
- <?php _e('Kaufpreis:', 'jiwp'); ?>
- </label>
- <span class="ji-info__value">
- <?php if ($realty->getPurchasePrice()): ?>
- <?php echo Justimmo\Wordpress\Helper\NumberFormatter::formatCurrency($realty->getPurchasePrice(), $currency, 0);
- ?>
- <?php else: ?>
- <?php _e('Auf Anfrage', 'jiwp'); ?>
- <?php endif; ?>
- </span>
- </div>
- <?php else: ?>
- <div class="ji-info">
- <label class="ji-info__label basic-info-label">
- <?php _e('Miete:', 'jiwp'); ?>
- </label>
- <br/>
- <span class="ji-info__value">
- <?php if ($realty->getRentNet()): ?>
- <?php echo Justimmo\Wordpress\Helper\NumberFormatter::formatCurrency($realty->getRentNet(), $currency, 0); ?>
- <?php $vat += $realty->getRentGross() - $realty->getRentNet(); ?>
- <?php else: ?>
- <?php _e('Auf Anfrage', 'jiwp'); ?>
- <?php endif; ?>
- </span>
- </div>
- <?php endif; ?>
- </div>
- </ul>
- </div>
- </div>
- <hr style="margin: 0px 0 30px"/>
- </section>
- <!---->
- <div class="flex_column no_margin">
- <!-- Description Text -->
- <section class="ji-info-section list-style-enabled">
- <h2 class="ji-info-section__title"><?php _e('Beschreibung', 'jiwp'); ?></h2>
- <?php echo $realty->getDescription(); ?>
- <?php $locality = $realty->getLocality(); ?>
- <?php if (!empty($locality)): ?>
- <li class="ji-info">
- <h2 class="ji-info__label">
- <?php _e('Lage:', 'jiwp'); ?>
- </h2>
- <span class="ji-info__value">
- <?php echo $locality; ?>
- </span>
- </li>
- <?php endif; ?>
- </section>
- </div>
- <hr/>
- <section class="ji-info-section realty-basic-data">
- <h2 class="ji-info-section__title"><?php _e('Eckdaten', 'jiwp'); ?></h2>
- <div class="row">
- <div class="flex_column no_margin av_one_half">
- <section class="ji-info-section">
- <!-- Surface Details -->
- <h2 class="ji-info-section__title"><?php _e('Flächen:', 'jiwp'); ?></h2>
- <ul class="ji-info-list ji-info-list--extended">
- <?php if ($floor_area = $realty->getFloorArea()) :?>
- <li class="ji-info">
- <label class="ji-info__label">
- <?php _e('Gesamtgrundläche:', 'jiwp'); ?>
- </label>
- <span class="ji-info__value">
- <?php echo Justimmo\Wordpress\Helper\NumberFormatter::format($floor_area) . ' m²'; ?>
- </span>
- </li>
- <?php endif; ?>
- <?php if ($surface_area = $realty->getSurfaceArea()) :?>
- <li class="ji-info">
- <label class="ji-info__label">
- <?php _e('Grundfläche:', 'jiwp'); ?>
- </label>
- <span class="ji-info__value">
- <?php echo Justimmo\Wordpress\Helper\NumberFormatter::format($surface_area) . ' m²'; ?>
- </span>
- </li>
- <?php endif; ?>
- <?php if ($living_area = $realty->getLivingArea()) :?>
- <li class="ji-info">
- <label class="ji-info__label">
- <?php _e('Wohnfläche:', 'jiwp'); ?>
- </label>
- <span class="ji-info__value">
- <?php echo Justimmo\Wordpress\Helper\NumberFormatter::format($living_area) . ' m²'; ?>
- </span>
- </li>
- <?php endif; ?>
- <?php if ($total_area = $realty->getTotalArea()) :?>
- <li class="ji-info">
- <label class="ji-info__label">
- <?php _e('Gesamtfläche:', 'jiwp'); ?>
- </label>
- <span class="ji-info__value">
- <?php echo Justimmo\Wordpress\Helper\NumberFormatter::format($total_area) . ' m²'; ?>
- </span>
- </li>
- <?php endif; ?>
- <?php if ($balcony_area = $realty->getBalconyArea()) :?>
- <li class="ji-info">
- <label class="ji-info__label">
- <?php _e('Balkonfläche:', 'jiwp'); ?>
- </label>
- <span class="ji-info__value">
- <?php echo Justimmo\Wordpress\Helper\NumberFormatter::format($balcony_area) . ' m²'; ?>
- </span>
- </li>
- <?php endif; ?>
- <?php if ($terrace_area = $realty->getTerraceArea()) :?>
- <li class="ji-info">
- <label class="ji-info__label">
- <?php _e('Terrassenfläche:', 'jiwp'); ?>
- </label>
- <span class="ji-info__value">
- <?php echo Justimmo\Wordpress\Helper\NumberFormatter::format($terrace_area) . ' m²'; ?>
- </span>
- </li>
- <?php endif; ?>
- <?php if ($garden_area = $realty->getGardenArea()) :?>
- <li class="ji-info">
- <label class="ji-info__label">
- <?php _e('Gartenfläche:', 'jiwp'); ?>
- </label>
- <span class="ji-info__value">
- <?php echo Justimmo\Wordpress\Helper\NumberFormatter::format($garden_area) . ' m²'; ?>
- </span>
- </li>
- <?php endif; ?>
- <?php if ($cellar_area = $realty->getCellarArea()) :?>
- <li class="ji-info">
- <label class="ji-info__label">
- <?php _e('Kellerfläche:', 'jiwp'); ?>
- </label>
- <span class="ji-info__value">
- <?php echo Justimmo\Wordpress\Helper\NumberFormatter::format($cellar_area) . ' m²'; ?>
- </span>
- </li>
- <?php endif; ?>
- <?php if ($office_area = $realty->getOfficeArea()) :?>
- <li class="ji-info">
- <label class="ji-info__label">
- <?php _e('Bürofläche:', 'jiwp'); ?>
- </label>
- <span class="ji-info__value">
- <?php echo Justimmo\Wordpress\Helper\NumberFormatter::format($office_area) . ' m²'; ?>
- </span>
- </li>
- <?php endif; ?>
- <?php if ($storage_area = $realty->getStorageArea()) :?>
- <li class="ji-info">
- <label class="ji-info__label">
- <?php _e('Lagerfläche:', 'jiwp'); ?>
- </label>
- <span class="ji-info__value">
- <?php echo Justimmo\Wordpress\Helper\NumberFormatter::format($storage_area) . ' m²'; ?>
- </span>
- </li>
- <?php endif; ?>
- <?php if ($loggia_area = $realty->getLoggiaArea()) :?>
- <li class="ji-info">
- <label class="ji-info__label">
- <?php _e('Loggiafläche:', 'jiwp'); ?>
- </label>
- <span class="ji-info__value">
- <?php echo Justimmo\Wordpress\Helper\NumberFormatter::format($loggia_area) . ' m²'; ?>
- </span>
- </li>
- <?php endif; ?>
- <?php if ($garage_area = $realty->getGarageArea()) :?>
- <li class="ji-info">
- <label class="ji-info__label">
- <?php _e('Garagenfläche:', 'jiwp'); ?>
- </label>
- <span class="ji-info__value">
- <?php echo Justimmo\Wordpress\Helper\NumberFormatter::format($garage_area) . ' m²'; ?>
- </span>
- </li>
- <?php endif; ?>
- <?php if ($parking_area = $realty->getParkingArea()) :?>
- <li class="ji-info">
- <label class="ji-info__label">
- <?php _e('Parkfläche:', 'jiwp'); ?>
- </label>
- <span class="ji-info__value">
- <?php echo Justimmo\Wordpress\Helper\NumberFormatter::format($parking_area) . ' m²'; ?>
- </span>
- </li>
- <?php endif; ?>
- <?php if ($buildable_area = $realty->getBuildableArea()) :?>
- <li class="ji-info">
- <label class="ji-info__label">
- <?php _e('Baufläche:', 'jiwp'); ?>
- </label>
- <span class="ji-info__value">
- <?php echo Justimmo\Wordpress\Helper\NumberFormatter::format($buildable_area) . ' m²'; ?>
- </span>
- </li>
- <?php endif; ?>
- </ul>
- </section>
- </div>
- <div class="flex_column no_margin av_one_half">
- <!-- Room Details -->
- <section class="ji-info-section">
- <h2 class="ji-info-section__title"><?php _e('Räume:', 'jiwp'); ?></h2>
- <ul class="ji-info-list" style="column-count: 2;">
- <?php if ($room_count = $realty->getRoomCount()) :?>
- <li class="ji-info">
- <label class="ji-info__label">
- <?php _e('Gesamt:', 'jiwp'); ?>
- </label>
- <span class="ji-info__value">
- <?php echo Justimmo\Wordpress\Helper\NumberFormatter::format($room_count); ?>
- </span>
- </li>
- <?php endif; ?>
- <?php if ($bathroom_count = $realty->getBathroomCount()) :?>
- <li class="ji-info">
- <label class="ji-info__label">
- <?php _e('Badezimmer:', 'jiwp'); ?>
- </label>
- <span class="ji-info__value">
- <?php echo $bathroom_count; ?>
- </span>
- </li>
- <?php endif; ?>
- <?php if ($toiletroom_count = $realty->getToiletRoomCount()) :?>
- <li class="ji-info">
- <label class="ji-info__label">
- <?php _e('Toiletten:', 'jiwp'); ?>
- </label>
- <span class="ji-info__value">
- <?php echo $toiletroom_count; ?>
- </span>
- </li>
- <?php endif; ?>
- <?php if ($balcony_count = $realty->getBalconyCount()) :?>
- <li class="ji-info">
- <label class="ji-info__label">
- <?php _e('Balkone:', 'jiwp'); ?>
- </label>
- <span class="ji-info__value">
- <?php echo $balcony_count; ?>
- </span>
- </li>
- <?php endif; ?>
- <?php if ($terrace_count = $realty->getTerraceCount()) :?>
- <li class="ji-info">
- <label class="ji-info__label">
- <?php _e('Terrassen:', 'jiwp'); ?>
- </label>
- <span class="ji-info__value">
- <?php echo $terrace_count; ?>
- </span>
- </li>
- <?php endif; ?>
- <?php if ($loggia_count = $realty->getLoggiaCount()) :?>
- <li class="ji-info">
- <label class="ji-info__label">
- <?php _e('Loggias:', 'jiwp'); ?>
- </label>
- <span class="ji-info__value">
- <?php echo $loggia_count; ?>
- </span>
- </li>
- <?php endif; ?>
- <?php if ($garage_count = $realty->getGarageCount()) :?>
- <li class="ji-info">
- <label class="ji-info__label">
- <?php _e('Garagen:', 'jiwp'); ?>
- </label>
- <span class="ji-info__value">
- <?php echo $garage_count; ?>
- </span>
- </li>
- <?php endif; ?>
- <?php if ($parking_count = $realty->getParkingCount()) :?>
- <li class="ji-info">
- <label class="ji-info__label">
- <?php _e('Parkplätze:', 'jiwp'); ?>
- </label>
- <span class="ji-info__value">
- <?php echo $parking_count; ?>
- </span>
- </li>
- <?php endif; ?>
- <?php if ($storeroom_count = $realty->getStoreRoomCount()) :?>
- <li class="ji-info">
- <label class="ji-info__label">
- <?php _e('Lagerräume:', 'jiwp'); ?>
- </label>
- <span class="ji-info__value">
- <?php echo $storeroom_count; ?>
- </span>
- </li>
- <?php endif; ?>
- </ul>
- </section>
- </div>
- </div>
- </section>
- <hr/>
- <div class="flex_column no_margin">
- <!-- Equipment Details -->
- <?php if ($realty->getEquipmentDescription()): ?>
- <section class="ji-info-section">
- <h2 class="ji-info-section__title"><?php _e('Ausstattung', 'jiwp'); ?></h2>
- <?php echo $realty->getEquipmentDescription(); ?>
- </section>
- <?php endif; ?>
- <!-- Price/Costs Details -->
- <section class="ji-info-section">
- <h2 class="ji-info-section__title"><?php _e('Preise / Kosten', 'jiwp'); ?></h2>
- <ul class="ji-info-list">
- <?php $currency = empty($realty->getCurrency()) ? 'EUR' : $realty->getCurrency(); ?>
- <?php $vat = 0; ?>
- <?php if ($realty->getMarketingType()['KAUF'] == true): ?>
- <li class="ji-info">
- <label class="ji-info__label">
- <?php _e('Kaufpreis:', 'jiwp'); ?>
- </label>
- <span class="ji-info__value">
- <?php if ($realty->getPurchasePrice()): ?>
- <?php echo Justimmo\Wordpress\Helper\NumberFormatter::formatCurrency($realty->getPurchasePrice(), $currency, 0); ?>
- <?php else: ?>
- <?php _e('Auf Anfrage', 'jiwp'); ?>
- <?php endif; ?>
- </span>
- </li>
- <?php else: ?>
- <label class="ji-info__label">
- <?php _e('Miete:', 'jiwp'); ?>
- </label>
- <span class="ji-info__value">
- <?php if ($realty->getRentNet()): ?>
- <?php echo Justimmo\Wordpress\Helper\NumberFormatter::formatCurrency($realty->getRentNet(), $currency, 0); ?>
- <?php $vat += $realty->getRentGross() - $realty->getRentNet(); ?>
- <?php else: ?>
- <?php _e('Auf Anfrage', 'jiwp'); ?>
- <?php endif; ?>
- </span><br />
- <?php endif; ?>
- <?php $additional_costs = $realty->getAdditionalCosts(); ?>
- <?php $optionalCosts = 0; ?>
- <?php if (!empty($additional_costs)): ?>
- <?php foreach ($additional_costs as $key => $additional_cost) :?>
- <?php if ($additional_cost->getOptional()): ?>
- <?php $optionalCosts++; ?>
- <?php else: ?>
- <label class="ji-info__label">
- <?php echo $additional_cost->getName() . ':'; ?>
- </label>
- <span class="ji-info__value">
- <?php echo Justimmo\Wordpress\Helper\NumberFormatter::formatCurrency($additional_cost->getNet(), $currency, 0); ?>
- <?php $vat += $additional_cost->getGross() - $additional_cost->getNet(); ?>
- </span><br />
- <?php endif; ?>
- <?php endforeach; ?>
- <?php endif; ?>
- <?php if ($vat): ?>
- <label class="ji-info__label">
- <?php _e('Mehrwertsteuer:', 'jiwp'); ?>
- </label>
- <span class="ji-info__value">
- <?php echo Justimmo\Wordpress\Helper\NumberFormatter::formatCurrency($vat, $currency, 0); ?>
- </span><br />
- <?php endif; ?>
- <?php $monthlyCosts = $realty->getMonthlyCosts() ? $realty->getMonthlyCosts() : $realty->getTotalRent(); ?>
- <?php if ($monthlyCosts): ?>
- <li class="ji-info"></li>
- <li class="ji-info">
- <label class="ji-info__label">
- <?php _e('Monatliche Kosten:', 'jiwp'); ?>
- </label>
- <span class="ji-info__value">
- <?php echo Justimmo\Wordpress\Helper\NumberFormatter::formatCurrency($monthlyCosts, $currency, 0); ?>
- </span>
- </li>
- <?php endif; ?>
- </ul>
- <?php if ($optionalCosts > 0): ?>
- <h2 class="ji-info-section__title"><?php _e('Optionale Kosten', 'jiwp'); ?></h2>
- <ul class="ji-info-list">
- <?php foreach ($additional_costs as $key => $additional_cost) :?>
- <?php if ($additional_cost->getOptional()): ?>
- <li class="ji-info">
- <label class="ji-info__label">
- <?php echo $additional_cost->getName() . ':'; ?>
- </label>
- <span class="ji-info__value">
- <?php echo Justimmo\Wordpress\Helper\NumberFormatter::formatCurrency($additional_cost->getGross(), $currency, 0); ?>
- </span>
- </li>
- <?php endif; ?>
- <?php endforeach; ?>
- </ul>
- <?php endif; ?>
- <?php $commision = $realty->getCommission(); ?>
- <?php $contract_establishment_costs = $realty->getContractEstablishmentCosts(); ?>
- <?php $land_registration_tax = $realty->getLandRegistration(); ?>
- <?php $transfer_tax = $realty->getTransferTax(); ?>
- <?php $transfer_fee = $realty->getCompensation(); ?>
- <?php $surety = $realty->getSurety(); ?>
- <?php $financial_contribution = $realty->getFinancialContribution(); ?>
- <?php $infrastructure_provision = $realty->getInfrastructureProvision(); ?>
- <?php if (!empty($commision) || !empty($transfer_fee) || !empty($surety) || !empty($financial_contribution) || !empty($contract_establishment_costs) || !empty($land_registration_tax) || !empty($transfer_tax) || !empty($infrastructure_provision)): ?>
- <h2 class="ji-info-section__title"><?php _e('Nebenkosten', 'jiwp'); ?></h2>
- <ul class="ji-info-list">
- <?php if (!empty($commision)): ?>
- <li class="ji-info">
- <label class="ji-info__label">
- <?php _e('Kommission:', 'jiwp'); ?>
- </label>
- <span class="ji-info__value">
- <?php echo $realty->getCommission(); ?>
- </span>
- </li>
- <?php endif; ?>
- <?php if (!empty($contract_establishment_costs)): ?>
- <li class="ji-info">
- <label class="ji-info__label">
- <?php _e('Vertragskosten:', 'jiwp'); ?>
- </label>
- <span class="ji-info__value">
- <?php echo $contract_establishment_costs; ?>
- </span>
- </li>
- <?php endif; ?>
- <?php if (!empty($land_registration_tax)): ?>
- <li class="ji-info">
- <label class="ji-info__label">
- <?php _e('Grunderwerbssteuer:', 'jiwp'); ?>
- </label>
- <span class="ji-info__value">
- <?php echo Justimmo\Wordpress\Helper\NumberFormatter::formatPercent($land_registration_tax / 100); ?>
- </span>
- </li>
- <?php endif; ?>
- <?php if (!empty($transfer_fee)): ?>
- <li class="ji-info">
- <label class="ji-info__label">
- <?php _e('Ablöse:', 'jiwp'); ?>
- </label>
- <span class="ji-info__value">
- <?php echo Justimmo\Wordpress\Helper\NumberFormatter::formatCurrency( $transfer_fee, $currency, 0); ?>
- </span>
- </li>
- <?php endif; ?>
- <?php if (!empty($surety)): ?>
- <li class="ji-info">
- <label class="ji-info__label">
- <?php _e('Kaution:', 'jiwp'); ?>
- </label>
- <span class="ji-info__value">
- <?php echo Justimmo\Wordpress\Helper\NumberFormatter::formatCurrency( $surety, $currency, 0); ?>
- </span>
- </li>
- <?php endif; ?>
- <?php if (!empty($financial_contribution)): ?>
- <li class="ji-info">
- <label class="ji-info__label">
- <?php _e('Selbstbeteiligung:', 'jiwp'); ?>
- </label>
- <span class="ji-info__value">
- <?php echo Justimmo\Wordpress\Helper\NumberFormatter::formatCurrency( $financial_contribution, $currency, 0); ?>
- </span>
- </li>
- <?php endif; ?>
- <?php if (!empty($transfer_tax)): ?>
- <li class="ji-info">
- <label class="ji-info__label">
- <?php _e('Grunderwerbssteuer:', 'jiwp'); ?>
- </label>
- <span class="ji-info__value">
- <?php echo Justimmo\Wordpress\Helper\NumberFormatter::formatPercent( $transfer_tax/100); ?>
- </span>
- </li>
- <?php endif; ?>
- <?php if (!empty($infrastructure_provision)): ?>
- <li class="ji-info">
- <label class="ji-info__label">
- <?php _e('Provision Infrastruktur:', 'jiwp'); ?>
- </label>
- <span class="ji-info__value">
- <?php echo Justimmo\Wordpress\Helper\NumberFormatter::formatCurrency($infrastructure_provision, $currency, 0) ?>
- </span>
- </li>
- <?php endif; ?>
- </ul>
- <?php endif; ?>
- <ul class="ji-info-list">
- <?php $building_subsidence = $realty->getBuildingSubsidies(); ?>
- <?php if (!empty($building_subsidence)): ?>
- <li class="ji-info">
- <label class="ji-info__label">
- <?php _e('Subsidenz:', 'jiwp'); ?>
- </label>
- <span class="ji-info__value">
- <?php echo Justimmo\Wordpress\Helper\NumberFormatter::formatCurrency($building_subsidence, $currency, 0) ?>
- </span>
- </li>
- <?php endif; ?>
- <?php $yearly_net_earn = $realty->getNetEarningYearly(); ?>
- <?php if (!empty($yearly_net_earn)): ?>
- <li class="ji-info">
- <label class="ji-info__label">
- <?php _e('Jährliches Nettoeinkommen:', 'jiwp'); ?>
- </label>
- <span class="ji-info__value">
- <?php echo Justimmo\Wordpress\Helper\NumberFormatter::formatCurrency($yearly_net_earn, $currency, 0) ?>
- </span>
- </li>
- <?php endif; ?>
- <?php $net_yield = $realty->getYield(); ?>
- <?php if (!empty($net_yield)): ?>
- <li class="ji-info">
- <label class="ji-info__label">
- <?php _e('Nettoertrag:', 'jiwp'); ?>
- </label>
- <span class="ji-info__value">
- <?php echo Justimmo\Wordpress\Helper\NumberFormatter::formatPercent($net_yield / 100); ?>
- </span>
- </li>
- <?php endif; ?>
- </ul>
- </section>
- <!-- Energy Efficiency Certificate -->
- <?php $energy_pass = $realty->getEnergyPass(); ?>
- <?php if (!empty($energy_pass)): ?>
- <section class="ji-info-section">
- <h2 class="ji-info-section__title"><?php _e('Energieeffizienz Zertifikat', 'jiwp'); ?></h2>
- <ul class="ji-info-list">
- <?php if (!empty($energy_pass->getValidUntil())): ?>
- <li class="ji-info">
- <label class="ji-info__label">
- <?php _e('Gültig bis:', 'jiwp'); ?>
- </label>
- <span class="ji-info__value">
- <?php echo $energy_pass->getValidUntil(); ?>
- </span>
- </li>
- <?php endif; ?>
- <li class="ji-info">
- <label class="ji-info__label">
- <?php _e('Jährlicher thermischer Energieverbrauch:', 'jiwp'); ?>
- </label>
- <span class="ji-info__value">
- <?php echo $energy_pass->getThermalHeatRequirementValue(); ?> kWh/m²a
- (<?php _e('Klasse', 'jiwp'); ?>
- <?php echo $energy_pass->getThermalHeatRequirementClass(); ?>)
- </span>
- </li>
- <li class="ji-info">
- <label class="ji-info__label">
- <?php _e('Energieeffizienz Faktor:', 'jiwp'); ?>
- </label>
- <span class="ji-info__value">
- <?php echo $energy_pass->getEnergyEfficiencyFactorValue(); ?>
- (<?php _e('Klasse', 'jiwp'); ?>
- <?php echo $energy_pass->getEnergyEfficiencyFactorClass(); ?>)
- </span>
- </li>
- </ul>
- </section>
- <?php endif; ?>
- <section class="ji-info-section">
- <h2 class="ji-info-section__title"><?php _e('Adresse', 'jiwp'); ?></h2>
- <ul class="ji-info-list ji-info-list--extended">
- <li class="ji-info">
- <label class="ji-info__label">
- <?php _e('', 'jiwp'); ?>
- </label>
- <span class="ji-info__value">
- <?php
- $addressParts = array();
- $zipCode = $realty->getZipCode();
- if (!empty($zipCode)) {
- $addressParts[0] = $zipCode;
- }
- $place = $realty->getPlace();
- if (!empty($place)) {
- $addressParts[0] .= ($addressParts[0] ? ' ' : '') . $place;
- }
- $street = $realty->getStreet();
- if (!empty($street)) {
- $addressParts[1] = $street;
- }
- $houseNumber = $realty->getHouseNumber();
- if (!empty($houseNumber)) {
- $addressParts[1] .= ($addressParts[1] ? ' ' : '') . $houseNumber;
- }
- $stair = $realty->getStair();
- if (!empty($stair)) {
- $addressParts[1] .= ($addressParts[1] ? '/' : '') . $stair;
- }
- $doorNumber = $realty->getDoorNumber();
- if (!empty($doorNumber)) {
- $addressParts[1] .= ($addressParts[1] ? '/' : '') . $doorNumber;
- }
- echo implode(', ', $addressParts);
- ?>
- </span>
- </li>
- <li class="ji-info">
- <label class="ji-info__label">
- <?php _e('', 'jiwp'); ?>
- </label>
- <span class="ji-info__value">
- <?php echo $realty->getCountry() . ' / ' . $realty->getFederalState(); ?>
- </span>
- </li>
- </ul>
- </section>
- <section class="ji-info-section">
- <h2 class="ji-info-section__title"><?php _e('Sonstiges', 'jiwp'); ?></h2>
- <?php $building_age = $realty->getStyleOfBuilding(); ?>
- <?php if (!empty($building_age)): ?>
- <ul class="ji-info-list ji-info-list--extended">
- <li class="ji-info">
- <label class="ji-info__label">
- <?php _e('Bauart:', 'jiwp'); ?>
- </label>
- <span class="ji-info__value">
- <?php echo $building_age; ?>
- </span>
- </li>
- <?php endif; ?>
- <?php $categories = $realty->getCategories(); ?>
- <?php if (!empty($categories)): ?>
- <li class="ji-info">
- <label class="ji-info__label">
- <?php _e('Kategorien:', 'jiwp'); ?>
- </label>
- <span class="ji-info__value">
- <?php echo implode(', ', $categories); ?>
- </span>
- </li>
- <?php endif; ?>
- <li class="ji-info">
- <label class="ji-info__label">
- <?php _e('Immobiliennummer:', 'jiwp'); ?>
- </label>
- <span class="ji-info__value">
- <?php echo $realty->getPropertyNumber(); ?>
- </span>
- </li>
- </ul>
- <!-- Other Information Text -->
- <?php $other_information = $realty->getOtherInformation(); ?>
- <?php if (!empty($other_information)): ?>
- <section class="ji-info-section">
- <h2 class="ji-info-section__title"><?php _e('Weitere Information', 'jiwp'); ?></h2>
- <?php echo $other_information; ?>
- </section>
- <?php endif; ?>
- </section>
- </div>
- </div>
- <div class="flex_column no_margin av_one_third">
- <!-- Basic Details -->
- <section class="ji-info-section">
- <!-- Map -->
- <?php $lat = $realty->getLatitudePrecise(); ?>
- <?php $lng = $realty->getLongitudePrecise(); ?>
- <?php if ($lat && $lng && get_option(JIWP_GOOGLE_API_KEY_OPTION, '')): ?>
- <section class="ji-info-section">
- <h2 class="ji-info-section__title"><?php _e('', 'jiwp'); ?></h2>
- <div class="jiwp-map"></div>
- <script>
- var RealtyData = {
- position: {
- lat: <?php echo $lat; ?>,
- lng: <?php echo $lng; ?>
- },
- title: <?php echo wp_json_encode($realty->getTitle()); ?>
- };
- </script>
- </section>
- <?php endif; ?>
- <hr class="show-desktop"/>
- <section class="ji-info-section show-desktop">
- <ul class="ji-info-list">
- <?php if (!empty($realty->getRealtyTypeName())): ?>
- <div class="ji-info row">
- <div class="flex_column no_margin av_one_half basic-info-label">
- <label class="ji-info__label">
- <?php _e('Objektart:', 'jiwp'); ?>
- </label>
- </div>
- <div class="flex_column no_margin av_one_half">
- <span class="ji-info__value">
- <?php echo $realty->getRealtyTypeName(); ?>
- </span>
- </div>
- </div>
- <?php endif; ?>
- <?php if (!empty($realty->getSubRealtyTypeName())): ?>
- <div class="ji-info row">
- <div class="flex_column no_margin av_one_half basic-info-label">
- <label class="ji-info__label">
- <?php _e('Unterobjektart:', 'jiwp'); ?>
- </label>
- </div>
- <div class="flex_column no_margin av_one_half">
- <span class="ji-info__value">
- <?php echo $realty->getSubRealtyTypeName(); ?>
- </span>
- </div>
- </div>
- <?php endif; ?>
- <?php if ($room_count = $realty->getRoomCount()) :?>
- <div class="ji-info row">
- <div class="flex_column no_margin av_one_half basic-info-label">
- <label class="ji-info__label">
- <?php _e('Zimmer:', 'jiwp'); ?>
- </label>
- </div>
- <div class="flex_column no_margin av_one_half">
- <span class="ji-info__value">
- <?php echo Justimmo\Wordpress\Helper\NumberFormatter::format($room_count); ?>
- </span>
- </div>
- </div>
- <?php endif; ?>
- <?php if ($living_area = $realty->getLivingArea()) :?>
- <div class="ji-info row">
- <div class="flex_column no_margin av_one_half basic-info-label">
- <label class="ji-info__label">
- <?php _e('Wohnfläche:', 'jiwp'); ?>
- </label>
- </div>
- <div class="flex_column no_margin av_one_half">
- <span class="ji-info__value">
- <?php echo Justimmo\Wordpress\Helper\NumberFormatter::format($living_area) . ' m²'; ?>
- </span>
- </div>
- </div>
- <?php endif; ?>
- <?php if ($realty->getMarketingType()['KAUF'] == true): ?>
- <div class="ji-info row">
- <div class="flex_column no_margin av_one_half basic-info-label">
- <label class="ji-info__label">
- <?php _e('Kaufpreis:', 'jiwp'); ?>
- </label>
- </div>
- <div class="flex_column no_margin av_one_half">
- <span class="ji-info__value">
- <?php if ($realty->getPurchasePrice()): ?>
- <?php echo Justimmo\Wordpress\Helper\NumberFormatter::formatCurrency($realty->getPurchasePrice(), $currency, 0);
- ?>
- <?php else: ?>
- <?php _e('Auf Anfrage', 'jiwp'); ?>
- <?php endif; ?>
- </span>
- </div>
- </div>
- <?php else: ?>
- <div class="ji-info row">
- <div class="flex_column no_margin av_one_half basic-info-label">
- <label class="ji-info__label">
- <?php _e('Miete:', 'jiwp'); ?>
- </label>
- </div>
- <div class="flex_column no_margin av_one_half">
- <span class="ji-info__value">
- <?php if ($realty->getRentNet()): ?>
- <?php echo Justimmo\Wordpress\Helper\NumberFormatter::formatCurrency($realty->getRentNet(), $currency, 0); ?>
- <?php $vat += $realty->getRentGross() - $realty->getRentNet(); ?>
- <?php else: ?>
- <?php _e('Auf Anfrage', 'jiwp'); ?>
- <?php endif; ?>
- </span>
- </div>
- </div>
- <?php endif; ?>
- </ul>
- </section>
- <?php $contact = $realty->getContact(); ?>
- <?php if (!empty($contact)): ?>
- <hr style="opacity:0;" class="show-desktop"/>
- <hr style="margin: 0px 0 30px"/>
- <section class="ji-info-section">
- <h2 class="ji-info-section__title"><?php _e('Ihre Kontaktperson', 'jiwp'); ?></h2>
- <div class="contact-person ROW">
- <?php $pictures = $contact->getPictures(); ?>
- <?php if (!empty($pictures)): ?>
- <div class="flex_column no_margin av_one_half">
- <img src="<?php echo $pictures[0]->getUrl('small'); ?>" class="contact-person__avatar" alt=""/>
- </div>
- <?php endif; ?>
- <?php if (!empty($pictures)): ?>
- <div class="flex_column no_margin av_one_half">
- <?php else: ?>
- <div class="flex_column no_margin av_one_half">
- <?php endif; ?>
- <ul class="ji-info-list contact-person__info-list">
- <li class="ji-info">
- <label class="ji-info__label"><?php _e('', 'jiwp'); ?></label>
- <span class="ji-info__value">
- <?php
- echo $contact->getTitle() . ' '
- . $contact->getFirstName() . ' '
- . $contact->getLastName() . ' ';
- ?>
- </span>
- </li>
- <?php $contact_email = $contact->getEmail(); ?>
- <?php if (!empty($contact_email)): ?>
- <li class="ji-info">
- <label class="ji-info__label"><?php _e('', 'jiwp'); ?></label>
- <span class="ji-info__value"><?php echo $contact_email; ?></span>
- </li>
- <?php endif; ?>
- <?php $contact_phone = $contact->getPhone(); ?>
- <?php if (!empty($contact_phone)): ?>
- <li class="ji-info">
- <label class="ji-info__label"><?php _e('', 'jiwp'); ?></label>
- <span class="ji-info__value"><?php echo $contact_phone; ?></span>
- </li>
- <?php endif; ?>
- </ul>
- </div>
- </div>
- </section>
- <?php endif; ?>
- <hr />
- </section>
- <?php include(Justimmo\Wordpress\Templating::getPath('inquiry-form/_inquiry-form.php')); ?>
- <hr/>
- <h2 class="ji-info__label">
- <?php _e('Exposé', 'jiwp'); ?>
- </h2>
- <a href="<?php echo Justimmo\Wordpress\Routing::getRealtyExposeUrl($realty); ?>"><button><?php _e('Download', 'jiwp'); ?></button></a>
- <!-- Documents -->
- <section class="ji-info-section">
- <?php $attachments = $realty->getDocuments(); ?>
- <?php if (!empty($attachments)): ?>
- <br/>
- <h2 class="ji-info__label">
- <?php _e('Bau- und Ausstattungsbeschreibung', 'jiwp'); ?>
- </h2>
- <?php foreach ($attachments as $attachment): ?>
- <a href="<?php echo $attachment->getUrl(); ?>"><button><?php _e('Download', 'jiwp'); ?></button></a>
- <?php endforeach; ?>
- <?php endif; ?>
- </section>
- </div>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement