Advertisement
Guest User

Untitled

a guest
Mar 21st, 2018
81
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 61.32 KB | None | 0 0
  1. <div class="flex_column no_margin av_two_third realty-main-container">
  2. <section class="ji-info-section ji-info-section--photos">
  3.  
  4. <?php $photos_array = $realty->getPictures(); ?>
  5.  
  6. <?php if (!empty($photos_array)) : ?>
  7.  
  8. <ul class="ji-photos-list" id="lightSlider">
  9.  
  10. <?php foreach ($photos_array as $photo) : ?>
  11.  
  12. <?php
  13. try {
  14. $imageBigUrl = $photo->getUrl('big2');
  15. $imageMediumUrl = $photo->getUrl('medium');
  16. } catch (\Exception $e) {
  17. $imageBigUrl = null;
  18. $imageMediumUrl = null;
  19. }
  20. ?>
  21.  
  22. <?php if ($imageBigUrl && $imageMediumUrl) : ?>
  23.  
  24. <li class="ji-photos-list__item" data-thumb="<?php echo $imageBigUrl ?>">
  25. <a href="<?php echo $imageBigUrl ?>" class="fancybox" rel="gallery">
  26. <img src="<?php echo $imageMediumUrl ?>" class="ji-photo" alt=""/>
  27. </a>
  28.  
  29. </li>
  30.  
  31. <?php endif; ?>
  32.  
  33. <?php endforeach; ?>
  34.  
  35. </ul>
  36.  
  37. <?php endif; ?>
  38.  
  39. </section>
  40.  
  41. <!-- Mobile -->
  42. <section class="ji-info-section show-mobile">
  43. <hr/>
  44. <div class="row">
  45. <div class="">
  46. <ul class="ji-info-list">
  47. <div class="flex_column no_margin av_one_half">
  48. <div class="ji-info">
  49. <label class="ji-info__label basic-info-label">
  50. <?php _e('Objektart:', 'jiwp'); ?>
  51. </label>
  52. <br/>
  53. <span class="ji-info__value">
  54. <?php echo $realty->getRealtyTypeName(); ?>
  55. </span>
  56. </div>
  57.  
  58. <div class="ji-info">
  59. <label class="ji-info__label basic-info-label">
  60. <?php _e('Unterobjektart:', 'jiwp'); ?>
  61. </label>
  62. <br/>
  63. <span class="ji-info__value">
  64. <?php echo $realty->getSubRealtyTypeName(); ?>
  65. </span>
  66. </div>
  67. </div>
  68.  
  69. <div class="flex_column no_margin av_one_half">
  70. <?php if ($room_count = $realty->getRoomCount()) :?>
  71. <div class="ji-info">
  72. <label class="ji-info__label basic-info-label">
  73. <?php _e('Zimmer:', 'jiwp'); ?>
  74. </label>
  75. <br/>
  76. <span class="ji-info__value">
  77. <?php echo Justimmo\Wordpress\Helper\NumberFormatter::format($room_count); ?>
  78. </span>
  79. </div>
  80. <?php endif; ?>
  81. <?php if ($living_area = $realty->getLivingArea()) :?>
  82. <div class="ji-info">
  83. <label class="ji-info__label basic-info-label">
  84. <?php _e('Wohnfläche:', 'jiwp'); ?>
  85. </label>
  86. <br/>
  87. <span class="ji-info__value">
  88. <?php echo Justimmo\Wordpress\Helper\NumberFormatter::format($living_area) . ' m&sup2;'; ?>
  89. </span>
  90. </div>
  91. <?php endif; ?>
  92.  
  93. <?php if ($realty->getMarketingType()['KAUF'] == true): ?>
  94. <div class="ji-info">
  95. <label class="ji-info__label basic-info-label">
  96. <?php _e('Kaufpreis:', 'jiwp'); ?>
  97. </label>
  98. <span class="ji-info__value">
  99. <?php if ($realty->getPurchasePrice()): ?>
  100. <?php echo Justimmo\Wordpress\Helper\NumberFormatter::formatCurrency($realty->getPurchasePrice(), $currency, 0);
  101.  
  102. ?>
  103. <?php else: ?>
  104. <?php _e('Auf Anfrage', 'jiwp'); ?>
  105. <?php endif; ?>
  106. </span>
  107. </div>
  108. <?php else: ?>
  109. <div class="ji-info">
  110. <label class="ji-info__label basic-info-label">
  111. <?php _e('Miete:', 'jiwp'); ?>
  112. </label>
  113. <br/>
  114. <span class="ji-info__value">
  115. <?php if ($realty->getRentNet()): ?>
  116. <?php echo Justimmo\Wordpress\Helper\NumberFormatter::formatCurrency($realty->getRentNet(), $currency, 0); ?>
  117. <?php $vat += $realty->getRentGross() - $realty->getRentNet(); ?>
  118. <?php else: ?>
  119. <?php _e('Auf Anfrage', 'jiwp'); ?>
  120. <?php endif; ?>
  121. </span>
  122. </div>
  123. <?php endif; ?>
  124. </div>
  125. </ul>
  126. </div>
  127. </div>
  128. <hr style="margin: 0px 0 30px"/>
  129. </section>
  130. <!---->
  131.  
  132. <div class="flex_column no_margin">
  133. <!-- Description Text -->
  134. <section class="ji-info-section list-style-enabled">
  135. <h2 class="ji-info-section__title"><?php _e('Beschreibung', 'jiwp'); ?></h2>
  136. <?php echo $realty->getDescription(); ?>
  137.  
  138. <?php $locality = $realty->getLocality(); ?>
  139. <?php if (!empty($locality)): ?>
  140. <li class="ji-info">
  141. <h2 class="ji-info__label">
  142. <?php _e('Lage:', 'jiwp'); ?>
  143. </h2>
  144. <span class="ji-info__value">
  145. <?php echo $locality; ?>
  146. </span>
  147. </li>
  148. <?php endif; ?>
  149. </section>
  150. </div>
  151. <hr/>
  152. <section class="ji-info-section realty-basic-data">
  153. <h2 class="ji-info-section__title"><?php _e('Eckdaten', 'jiwp'); ?></h2>
  154. <div class="row">
  155. <div class="flex_column no_margin av_one_half">
  156. <section class="ji-info-section">
  157. <!-- Surface Details -->
  158. <h2 class="ji-info-section__title"><?php _e('Flächen:', 'jiwp'); ?></h2>
  159.  
  160. <ul class="ji-info-list ji-info-list--extended">
  161.  
  162. <?php if ($floor_area = $realty->getFloorArea()) :?>
  163.  
  164. <li class="ji-info">
  165. <label class="ji-info__label">
  166. <?php _e('Gesamtgrundläche:', 'jiwp'); ?>
  167. </label>
  168. <span class="ji-info__value">
  169. <?php echo Justimmo\Wordpress\Helper\NumberFormatter::format($floor_area) . ' m&sup2;'; ?>
  170. </span>
  171. </li>
  172.  
  173. <?php endif; ?>
  174.  
  175. <?php if ($surface_area = $realty->getSurfaceArea()) :?>
  176.  
  177. <li class="ji-info">
  178. <label class="ji-info__label">
  179. <?php _e('Grundfläche:', 'jiwp'); ?>
  180. </label>
  181. <span class="ji-info__value">
  182. <?php echo Justimmo\Wordpress\Helper\NumberFormatter::format($surface_area) . ' m&sup2;'; ?>
  183. </span>
  184. </li>
  185.  
  186. <?php endif; ?>
  187.  
  188. <?php if ($living_area = $realty->getLivingArea()) :?>
  189.  
  190. <li class="ji-info">
  191. <label class="ji-info__label">
  192. <?php _e('Wohnfläche:', 'jiwp'); ?>
  193. </label>
  194. <span class="ji-info__value">
  195. <?php echo Justimmo\Wordpress\Helper\NumberFormatter::format($living_area) . ' m&sup2;'; ?>
  196. </span>
  197. </li>
  198.  
  199. <?php endif; ?>
  200.  
  201. <?php if ($total_area = $realty->getTotalArea()) :?>
  202.  
  203. <li class="ji-info">
  204. <label class="ji-info__label">
  205. <?php _e('Gesamtfläche:', 'jiwp'); ?>
  206. </label>
  207. <span class="ji-info__value">
  208. <?php echo Justimmo\Wordpress\Helper\NumberFormatter::format($total_area) . ' m&sup2;'; ?>
  209. </span>
  210. </li>
  211.  
  212. <?php endif; ?>
  213.  
  214. <?php if ($balcony_area = $realty->getBalconyArea()) :?>
  215.  
  216. <li class="ji-info">
  217. <label class="ji-info__label">
  218. <?php _e('Balkonfläche:', 'jiwp'); ?>
  219. </label>
  220. <span class="ji-info__value">
  221. <?php echo Justimmo\Wordpress\Helper\NumberFormatter::format($balcony_area) . ' m&sup2;'; ?>
  222. </span>
  223. </li>
  224.  
  225. <?php endif; ?>
  226.  
  227. <?php if ($terrace_area = $realty->getTerraceArea()) :?>
  228.  
  229. <li class="ji-info">
  230. <label class="ji-info__label">
  231. <?php _e('Terrassenfläche:', 'jiwp'); ?>
  232. </label>
  233. <span class="ji-info__value">
  234. <?php echo Justimmo\Wordpress\Helper\NumberFormatter::format($terrace_area) . ' m&sup2;'; ?>
  235. </span>
  236. </li>
  237.  
  238. <?php endif; ?>
  239.  
  240. <?php if ($garden_area = $realty->getGardenArea()) :?>
  241.  
  242. <li class="ji-info">
  243. <label class="ji-info__label">
  244. <?php _e('Gartenfläche:', 'jiwp'); ?>
  245. </label>
  246. <span class="ji-info__value">
  247. <?php echo Justimmo\Wordpress\Helper\NumberFormatter::format($garden_area) . ' m&sup2;'; ?>
  248. </span>
  249. </li>
  250.  
  251. <?php endif; ?>
  252.  
  253. <?php if ($cellar_area = $realty->getCellarArea()) :?>
  254.  
  255. <li class="ji-info">
  256. <label class="ji-info__label">
  257. <?php _e('Kellerfläche:', 'jiwp'); ?>
  258. </label>
  259. <span class="ji-info__value">
  260. <?php echo Justimmo\Wordpress\Helper\NumberFormatter::format($cellar_area) . ' m&sup2;'; ?>
  261. </span>
  262. </li>
  263.  
  264. <?php endif; ?>
  265.  
  266. <?php if ($office_area = $realty->getOfficeArea()) :?>
  267.  
  268. <li class="ji-info">
  269. <label class="ji-info__label">
  270. <?php _e('Bürofläche:', 'jiwp'); ?>
  271. </label>
  272. <span class="ji-info__value">
  273. <?php echo Justimmo\Wordpress\Helper\NumberFormatter::format($office_area) . ' m&sup2;'; ?>
  274. </span>
  275. </li>
  276.  
  277. <?php endif; ?>
  278.  
  279. <?php if ($storage_area = $realty->getStorageArea()) :?>
  280.  
  281. <li class="ji-info">
  282. <label class="ji-info__label">
  283. <?php _e('Lagerfläche:', 'jiwp'); ?>
  284. </label>
  285. <span class="ji-info__value">
  286. <?php echo Justimmo\Wordpress\Helper\NumberFormatter::format($storage_area) . ' m&sup2;'; ?>
  287. </span>
  288. </li>
  289.  
  290. <?php endif; ?>
  291.  
  292. <?php if ($loggia_area = $realty->getLoggiaArea()) :?>
  293.  
  294. <li class="ji-info">
  295. <label class="ji-info__label">
  296. <?php _e('Loggiafläche:', 'jiwp'); ?>
  297. </label>
  298. <span class="ji-info__value">
  299. <?php echo Justimmo\Wordpress\Helper\NumberFormatter::format($loggia_area) . ' m&sup2;'; ?>
  300. </span>
  301. </li>
  302.  
  303. <?php endif; ?>
  304.  
  305. <?php if ($garage_area = $realty->getGarageArea()) :?>
  306.  
  307. <li class="ji-info">
  308. <label class="ji-info__label">
  309. <?php _e('Garagenfläche:', 'jiwp'); ?>
  310. </label>
  311. <span class="ji-info__value">
  312. <?php echo Justimmo\Wordpress\Helper\NumberFormatter::format($garage_area) . ' m&sup2;'; ?>
  313. </span>
  314. </li>
  315.  
  316. <?php endif; ?>
  317.  
  318. <?php if ($parking_area = $realty->getParkingArea()) :?>
  319.  
  320. <li class="ji-info">
  321. <label class="ji-info__label">
  322. <?php _e('Parkfläche:', 'jiwp'); ?>
  323. </label>
  324. <span class="ji-info__value">
  325. <?php echo Justimmo\Wordpress\Helper\NumberFormatter::format($parking_area) . ' m&sup2;'; ?>
  326. </span>
  327. </li>
  328.  
  329. <?php endif; ?>
  330.  
  331. <?php if ($buildable_area = $realty->getBuildableArea()) :?>
  332.  
  333. <li class="ji-info">
  334. <label class="ji-info__label">
  335. <?php _e('Baufläche:', 'jiwp'); ?>
  336. </label>
  337. <span class="ji-info__value">
  338. <?php echo Justimmo\Wordpress\Helper\NumberFormatter::format($buildable_area) . ' m&sup2;'; ?>
  339. </span>
  340. </li>
  341.  
  342. <?php endif; ?>
  343.  
  344. </ul>
  345. </section>
  346. </div>
  347. <div class="flex_column no_margin av_one_half">
  348. <!-- Room Details -->
  349. <section class="ji-info-section">
  350. <h2 class="ji-info-section__title"><?php _e('Räume:', 'jiwp'); ?></h2>
  351.  
  352. <ul class="ji-info-list" style="column-count: 2;">
  353.  
  354. <?php if ($room_count = $realty->getRoomCount()) :?>
  355.  
  356. <li class="ji-info">
  357. <label class="ji-info__label">
  358. <?php _e('Gesamt:', 'jiwp'); ?>
  359. </label>
  360. <span class="ji-info__value">
  361. <?php echo Justimmo\Wordpress\Helper\NumberFormatter::format($room_count); ?>
  362. </span>
  363. </li>
  364.  
  365. <?php endif; ?>
  366.  
  367. <?php if ($bathroom_count = $realty->getBathroomCount()) :?>
  368.  
  369. <li class="ji-info">
  370. <label class="ji-info__label">
  371. <?php _e('Badezimmer:', 'jiwp'); ?>
  372. </label>
  373. <span class="ji-info__value">
  374. <?php echo $bathroom_count; ?>
  375. </span>
  376. </li>
  377.  
  378. <?php endif; ?>
  379.  
  380. <?php if ($toiletroom_count = $realty->getToiletRoomCount()) :?>
  381.  
  382. <li class="ji-info">
  383. <label class="ji-info__label">
  384. <?php _e('Toiletten:', 'jiwp'); ?>
  385. </label>
  386. <span class="ji-info__value">
  387. <?php echo $toiletroom_count; ?>
  388. </span>
  389. </li>
  390.  
  391. <?php endif; ?>
  392.  
  393. <?php if ($balcony_count = $realty->getBalconyCount()) :?>
  394.  
  395. <li class="ji-info">
  396. <label class="ji-info__label">
  397. <?php _e('Balkone:', 'jiwp'); ?>
  398. </label>
  399. <span class="ji-info__value">
  400. <?php echo $balcony_count; ?>
  401. </span>
  402. </li>
  403.  
  404. <?php endif; ?>
  405.  
  406. <?php if ($terrace_count = $realty->getTerraceCount()) :?>
  407.  
  408. <li class="ji-info">
  409. <label class="ji-info__label">
  410. <?php _e('Terrassen:', 'jiwp'); ?>
  411. </label>
  412. <span class="ji-info__value">
  413. <?php echo $terrace_count; ?>
  414. </span>
  415. </li>
  416.  
  417. <?php endif; ?>
  418.  
  419. <?php if ($loggia_count = $realty->getLoggiaCount()) :?>
  420.  
  421. <li class="ji-info">
  422. <label class="ji-info__label">
  423. <?php _e('Loggias:', 'jiwp'); ?>
  424. </label>
  425. <span class="ji-info__value">
  426. <?php echo $loggia_count; ?>
  427. </span>
  428. </li>
  429.  
  430. <?php endif; ?>
  431.  
  432. <?php if ($garage_count = $realty->getGarageCount()) :?>
  433.  
  434. <li class="ji-info">
  435. <label class="ji-info__label">
  436. <?php _e('Garagen:', 'jiwp'); ?>
  437. </label>
  438. <span class="ji-info__value">
  439. <?php echo $garage_count; ?>
  440. </span>
  441. </li>
  442.  
  443. <?php endif; ?>
  444.  
  445. <?php if ($parking_count = $realty->getParkingCount()) :?>
  446.  
  447. <li class="ji-info">
  448. <label class="ji-info__label">
  449. <?php _e('Parkplätze:', 'jiwp'); ?>
  450. </label>
  451. <span class="ji-info__value">
  452. <?php echo $parking_count; ?>
  453. </span>
  454. </li>
  455.  
  456. <?php endif; ?>
  457.  
  458. <?php if ($storeroom_count = $realty->getStoreRoomCount()) :?>
  459.  
  460. <li class="ji-info">
  461. <label class="ji-info__label">
  462. <?php _e('Lagerräume:', 'jiwp'); ?>
  463. </label>
  464. <span class="ji-info__value">
  465. <?php echo $storeroom_count; ?>
  466. </span>
  467. </li>
  468.  
  469. <?php endif; ?>
  470.  
  471. </ul>
  472. </section>
  473. </div>
  474.  
  475. </div>
  476.  
  477.  
  478. </section>
  479.  
  480. <hr/>
  481. <div class="flex_column no_margin">
  482. <!-- Equipment Details -->
  483. <?php if ($realty->getEquipmentDescription()): ?>
  484. <section class="ji-info-section">
  485. <h2 class="ji-info-section__title"><?php _e('Ausstattung', 'jiwp'); ?></h2>
  486. <?php echo $realty->getEquipmentDescription(); ?>
  487. </section>
  488. <?php endif; ?>
  489.  
  490.  
  491. <!-- Price/Costs Details -->
  492. <section class="ji-info-section">
  493. <h2 class="ji-info-section__title"><?php _e('Preise / Kosten', 'jiwp'); ?></h2>
  494.  
  495. <ul class="ji-info-list">
  496. <?php $currency = empty($realty->getCurrency()) ? 'EUR' : $realty->getCurrency(); ?>
  497. <?php $vat = 0; ?>
  498.  
  499. <?php if ($realty->getMarketingType()['KAUF'] == true): ?>
  500. <li class="ji-info">
  501. <label class="ji-info__label">
  502. <?php _e('Kaufpreis:', 'jiwp'); ?>
  503. </label>
  504. <span class="ji-info__value">
  505. <?php if ($realty->getPurchasePrice()): ?>
  506. <?php echo Justimmo\Wordpress\Helper\NumberFormatter::formatCurrency($realty->getPurchasePrice(), $currency, 0); ?>
  507. <?php else: ?>
  508. <?php _e('Auf Anfrage', 'jiwp'); ?>
  509. <?php endif; ?>
  510. </span>
  511. </li>
  512. <?php else: ?>
  513. <label class="ji-info__label">
  514. <?php _e('Miete:', 'jiwp'); ?>
  515. </label>
  516. <span class="ji-info__value">
  517. <?php if ($realty->getRentNet()): ?>
  518. <?php echo Justimmo\Wordpress\Helper\NumberFormatter::formatCurrency($realty->getRentNet(), $currency, 0); ?>
  519. <?php $vat += $realty->getRentGross() - $realty->getRentNet(); ?>
  520. <?php else: ?>
  521. <?php _e('Auf Anfrage', 'jiwp'); ?>
  522. <?php endif; ?>
  523. </span><br />
  524. <?php endif; ?>
  525.  
  526. <?php $additional_costs = $realty->getAdditionalCosts(); ?>
  527. <?php $optionalCosts = 0; ?>
  528.  
  529. <?php if (!empty($additional_costs)): ?>
  530. <?php foreach ($additional_costs as $key => $additional_cost) :?>
  531. <?php if ($additional_cost->getOptional()): ?>
  532. <?php $optionalCosts++; ?>
  533. <?php else: ?>
  534. <label class="ji-info__label">
  535. <?php echo $additional_cost->getName() . ':'; ?>
  536. </label>
  537. <span class="ji-info__value">
  538. <?php echo Justimmo\Wordpress\Helper\NumberFormatter::formatCurrency($additional_cost->getNet(), $currency, 0); ?>
  539. <?php $vat += $additional_cost->getGross() - $additional_cost->getNet(); ?>
  540. </span><br />
  541. <?php endif; ?>
  542. <?php endforeach; ?>
  543. <?php endif; ?>
  544.  
  545. <?php if ($vat): ?>
  546. <label class="ji-info__label">
  547. <?php _e('Mehrwertsteuer:', 'jiwp'); ?>
  548. </label>
  549. <span class="ji-info__value">
  550. <?php echo Justimmo\Wordpress\Helper\NumberFormatter::formatCurrency($vat, $currency, 0); ?>
  551. </span><br />
  552. <?php endif; ?>
  553.  
  554. <?php $monthlyCosts = $realty->getMonthlyCosts() ? $realty->getMonthlyCosts() : $realty->getTotalRent(); ?>
  555.  
  556. <?php if ($monthlyCosts): ?>
  557. <li class="ji-info"></li>
  558.  
  559. <li class="ji-info">
  560. <label class="ji-info__label">
  561. <?php _e('Monatliche Kosten:', 'jiwp'); ?>
  562. </label>
  563.  
  564. <span class="ji-info__value">
  565. <?php echo Justimmo\Wordpress\Helper\NumberFormatter::formatCurrency($monthlyCosts, $currency, 0); ?>
  566. </span>
  567. </li>
  568. <?php endif; ?>
  569. </ul>
  570.  
  571. <?php if ($optionalCosts > 0): ?>
  572. <h2 class="ji-info-section__title"><?php _e('Optionale Kosten', 'jiwp'); ?></h2>
  573.  
  574. <ul class="ji-info-list">
  575. <?php foreach ($additional_costs as $key => $additional_cost) :?>
  576. <?php if ($additional_cost->getOptional()): ?>
  577. <li class="ji-info">
  578. <label class="ji-info__label">
  579. <?php echo $additional_cost->getName() . ':'; ?>
  580. </label>
  581. <span class="ji-info__value">
  582. <?php echo Justimmo\Wordpress\Helper\NumberFormatter::formatCurrency($additional_cost->getGross(), $currency, 0); ?>
  583. </span>
  584. </li>
  585. <?php endif; ?>
  586. <?php endforeach; ?>
  587. </ul>
  588. <?php endif; ?>
  589.  
  590. <?php $commision = $realty->getCommission(); ?>
  591. <?php $contract_establishment_costs = $realty->getContractEstablishmentCosts(); ?>
  592. <?php $land_registration_tax = $realty->getLandRegistration(); ?>
  593. <?php $transfer_tax = $realty->getTransferTax(); ?>
  594. <?php $transfer_fee = $realty->getCompensation(); ?>
  595. <?php $surety = $realty->getSurety(); ?>
  596. <?php $financial_contribution = $realty->getFinancialContribution(); ?>
  597. <?php $infrastructure_provision = $realty->getInfrastructureProvision(); ?>
  598.  
  599. <?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)): ?>
  600. <h2 class="ji-info-section__title"><?php _e('Nebenkosten', 'jiwp'); ?></h2>
  601.  
  602. <ul class="ji-info-list">
  603. <?php if (!empty($commision)): ?>
  604. <li class="ji-info">
  605. <label class="ji-info__label">
  606. <?php _e('Kommission:', 'jiwp'); ?>
  607. </label>
  608. <span class="ji-info__value">
  609. <?php echo $realty->getCommission(); ?>
  610. </span>
  611. </li>
  612. <?php endif; ?>
  613.  
  614. <?php if (!empty($contract_establishment_costs)): ?>
  615. <li class="ji-info">
  616. <label class="ji-info__label">
  617. <?php _e('Vertragskosten:', 'jiwp'); ?>
  618. </label>
  619. <span class="ji-info__value">
  620. <?php echo $contract_establishment_costs; ?>
  621. </span>
  622. </li>
  623. <?php endif; ?>
  624.  
  625. <?php if (!empty($land_registration_tax)): ?>
  626. <li class="ji-info">
  627. <label class="ji-info__label">
  628. <?php _e('Grunderwerbssteuer:', 'jiwp'); ?>
  629. </label>
  630. <span class="ji-info__value">
  631. <?php echo Justimmo\Wordpress\Helper\NumberFormatter::formatPercent($land_registration_tax / 100); ?>
  632. </span>
  633. </li>
  634. <?php endif; ?>
  635.  
  636. <?php if (!empty($transfer_fee)): ?>
  637. <li class="ji-info">
  638. <label class="ji-info__label">
  639. <?php _e('Ablöse:', 'jiwp'); ?>
  640. </label>
  641. <span class="ji-info__value">
  642. <?php echo Justimmo\Wordpress\Helper\NumberFormatter::formatCurrency( $transfer_fee, $currency, 0); ?>
  643. </span>
  644. </li>
  645. <?php endif; ?>
  646.  
  647. <?php if (!empty($surety)): ?>
  648. <li class="ji-info">
  649. <label class="ji-info__label">
  650. <?php _e('Kaution:', 'jiwp'); ?>
  651. </label>
  652. <span class="ji-info__value">
  653. <?php echo Justimmo\Wordpress\Helper\NumberFormatter::formatCurrency( $surety, $currency, 0); ?>
  654. </span>
  655. </li>
  656. <?php endif; ?>
  657.  
  658. <?php if (!empty($financial_contribution)): ?>
  659. <li class="ji-info">
  660. <label class="ji-info__label">
  661. <?php _e('Selbstbeteiligung:', 'jiwp'); ?>
  662. </label>
  663. <span class="ji-info__value">
  664. <?php echo Justimmo\Wordpress\Helper\NumberFormatter::formatCurrency( $financial_contribution, $currency, 0); ?>
  665. </span>
  666. </li>
  667. <?php endif; ?>
  668.  
  669. <?php if (!empty($transfer_tax)): ?>
  670. <li class="ji-info">
  671. <label class="ji-info__label">
  672. <?php _e('Grunderwerbssteuer:', 'jiwp'); ?>
  673. </label>
  674. <span class="ji-info__value">
  675. <?php echo Justimmo\Wordpress\Helper\NumberFormatter::formatPercent( $transfer_tax/100); ?>
  676. </span>
  677. </li>
  678. <?php endif; ?>
  679.  
  680. <?php if (!empty($infrastructure_provision)): ?>
  681. <li class="ji-info">
  682. <label class="ji-info__label">
  683. <?php _e('Provision Infrastruktur:', 'jiwp'); ?>
  684. </label>
  685. <span class="ji-info__value">
  686. <?php echo Justimmo\Wordpress\Helper\NumberFormatter::formatCurrency($infrastructure_provision, $currency, 0) ?>
  687. </span>
  688. </li>
  689. <?php endif; ?>
  690. </ul>
  691. <?php endif; ?>
  692.  
  693. <ul class="ji-info-list">
  694. <?php $building_subsidence = $realty->getBuildingSubsidies(); ?>
  695. <?php if (!empty($building_subsidence)): ?>
  696. <li class="ji-info">
  697. <label class="ji-info__label">
  698. <?php _e('Subsidenz:', 'jiwp'); ?>
  699. </label>
  700. <span class="ji-info__value">
  701. <?php echo Justimmo\Wordpress\Helper\NumberFormatter::formatCurrency($building_subsidence, $currency, 0) ?>
  702. </span>
  703. </li>
  704. <?php endif; ?>
  705.  
  706. <?php $yearly_net_earn = $realty->getNetEarningYearly(); ?>
  707. <?php if (!empty($yearly_net_earn)): ?>
  708. <li class="ji-info">
  709. <label class="ji-info__label">
  710. <?php _e('Jährliches Nettoeinkommen:', 'jiwp'); ?>
  711. </label>
  712. <span class="ji-info__value">
  713. <?php echo Justimmo\Wordpress\Helper\NumberFormatter::formatCurrency($yearly_net_earn, $currency, 0) ?>
  714. </span>
  715. </li>
  716. <?php endif; ?>
  717.  
  718. <?php $net_yield = $realty->getYield(); ?>
  719. <?php if (!empty($net_yield)): ?>
  720. <li class="ji-info">
  721. <label class="ji-info__label">
  722. <?php _e('Nettoertrag:', 'jiwp'); ?>
  723. </label>
  724. <span class="ji-info__value">
  725. <?php echo Justimmo\Wordpress\Helper\NumberFormatter::formatPercent($net_yield / 100); ?>
  726. </span>
  727. </li>
  728. <?php endif; ?>
  729. </ul>
  730. </section>
  731.  
  732. <!-- Energy Efficiency Certificate -->
  733. <?php $energy_pass = $realty->getEnergyPass(); ?>
  734.  
  735. <?php if (!empty($energy_pass)): ?>
  736. <section class="ji-info-section">
  737. <h2 class="ji-info-section__title"><?php _e('Energieeffizienz Zertifikat', 'jiwp'); ?></h2>
  738. <ul class="ji-info-list">
  739. <?php if (!empty($energy_pass->getValidUntil())): ?>
  740. <li class="ji-info">
  741. <label class="ji-info__label">
  742. <?php _e('Gültig bis:', 'jiwp'); ?>
  743. </label>
  744. <span class="ji-info__value">
  745. <?php echo $energy_pass->getValidUntil(); ?>
  746. </span>
  747. </li>
  748. <?php endif; ?>
  749. <li class="ji-info">
  750. <label class="ji-info__label">
  751. <?php _e('Jährlicher thermischer Energieverbrauch:', 'jiwp'); ?>
  752. </label>
  753. <span class="ji-info__value">
  754. <?php echo $energy_pass->getThermalHeatRequirementValue(); ?> kWh/m&sup2;a
  755. (<?php _e('Klasse', 'jiwp'); ?>
  756. <?php echo $energy_pass->getThermalHeatRequirementClass(); ?>)
  757. </span>
  758. </li>
  759.  
  760. <li class="ji-info">
  761. <label class="ji-info__label">
  762. <?php _e('Energieeffizienz Faktor:', 'jiwp'); ?>
  763. </label>
  764. <span class="ji-info__value">
  765. <?php echo $energy_pass->getEnergyEfficiencyFactorValue(); ?>
  766. (<?php _e('Klasse', 'jiwp'); ?>
  767. <?php echo $energy_pass->getEnergyEfficiencyFactorClass(); ?>)
  768. </span>
  769. </li>
  770. </ul>
  771. </section>
  772. <?php endif; ?>
  773.  
  774. <section class="ji-info-section">
  775. <h2 class="ji-info-section__title"><?php _e('Adresse', 'jiwp'); ?></h2>
  776. <ul class="ji-info-list ji-info-list--extended">
  777. <li class="ji-info">
  778. <label class="ji-info__label">
  779. <?php _e('', 'jiwp'); ?>
  780. </label>
  781. <span class="ji-info__value">
  782. <?php
  783. $addressParts = array();
  784.  
  785. $zipCode = $realty->getZipCode();
  786.  
  787. if (!empty($zipCode)) {
  788. $addressParts[0] = $zipCode;
  789. }
  790.  
  791. $place = $realty->getPlace();
  792.  
  793. if (!empty($place)) {
  794. $addressParts[0] .= ($addressParts[0] ? ' ' : '') . $place;
  795. }
  796.  
  797. $street = $realty->getStreet();
  798.  
  799. if (!empty($street)) {
  800. $addressParts[1] = $street;
  801. }
  802.  
  803. $houseNumber = $realty->getHouseNumber();
  804.  
  805. if (!empty($houseNumber)) {
  806. $addressParts[1] .= ($addressParts[1] ? ' ' : '') . $houseNumber;
  807. }
  808.  
  809. $stair = $realty->getStair();
  810.  
  811. if (!empty($stair)) {
  812. $addressParts[1] .= ($addressParts[1] ? '/' : '') . $stair;
  813. }
  814.  
  815. $doorNumber = $realty->getDoorNumber();
  816.  
  817. if (!empty($doorNumber)) {
  818. $addressParts[1] .= ($addressParts[1] ? '/' : '') . $doorNumber;
  819. }
  820.  
  821. echo implode(', ', $addressParts);
  822. ?>
  823.  
  824. </span>
  825. </li>
  826. <li class="ji-info">
  827. <label class="ji-info__label">
  828. <?php _e('', 'jiwp'); ?>
  829. </label>
  830. <span class="ji-info__value">
  831. <?php echo $realty->getCountry() . ' / ' . $realty->getFederalState(); ?>
  832. </span>
  833. </li>
  834.  
  835.  
  836. </ul>
  837. </section>
  838. <section class="ji-info-section">
  839. <h2 class="ji-info-section__title"><?php _e('Sonstiges', 'jiwp'); ?></h2>
  840. <?php $building_age = $realty->getStyleOfBuilding(); ?>
  841. <?php if (!empty($building_age)): ?>
  842. <ul class="ji-info-list ji-info-list--extended">
  843. <li class="ji-info">
  844. <label class="ji-info__label">
  845. <?php _e('Bauart:', 'jiwp'); ?>
  846. </label>
  847. <span class="ji-info__value">
  848. <?php echo $building_age; ?>
  849. </span>
  850. </li>
  851. <?php endif; ?>
  852.  
  853. <?php $categories = $realty->getCategories(); ?>
  854. <?php if (!empty($categories)): ?>
  855. <li class="ji-info">
  856. <label class="ji-info__label">
  857. <?php _e('Kategorien:', 'jiwp'); ?>
  858. </label>
  859. <span class="ji-info__value">
  860. <?php echo implode(', ', $categories); ?>
  861. </span>
  862. </li>
  863. <?php endif; ?>
  864.  
  865. <li class="ji-info">
  866. <label class="ji-info__label">
  867. <?php _e('Immobiliennummer:', 'jiwp'); ?>
  868. </label>
  869. <span class="ji-info__value">
  870. <?php echo $realty->getPropertyNumber(); ?>
  871. </span>
  872. </li>
  873.  
  874. </ul>
  875.  
  876.  
  877. <!-- Other Information Text -->
  878. <?php $other_information = $realty->getOtherInformation(); ?>
  879. <?php if (!empty($other_information)): ?>
  880. <section class="ji-info-section">
  881. <h2 class="ji-info-section__title"><?php _e('Weitere Information', 'jiwp'); ?></h2>
  882. <?php echo $other_information; ?>
  883. </section>
  884. <?php endif; ?>
  885. </section>
  886.  
  887. </div>
  888.  
  889. </div>
  890.  
  891.  
  892.  
  893. <div class="flex_column no_margin av_one_third">
  894.  
  895. <!-- Basic Details -->
  896. <section class="ji-info-section">
  897. <!-- Map -->
  898. <?php $lat = $realty->getLatitudePrecise(); ?>
  899. <?php $lng = $realty->getLongitudePrecise(); ?>
  900. <?php if ($lat && $lng && get_option(JIWP_GOOGLE_API_KEY_OPTION, '')): ?>
  901. <section class="ji-info-section">
  902. <h2 class="ji-info-section__title"><?php _e('', 'jiwp'); ?></h2>
  903. <div class="jiwp-map"></div>
  904. <script>
  905. var RealtyData = {
  906. position: {
  907. lat: <?php echo $lat; ?>,
  908. lng: <?php echo $lng; ?>
  909. },
  910. title: <?php echo wp_json_encode($realty->getTitle()); ?>
  911. };
  912. </script>
  913. </section>
  914. <?php endif; ?>
  915. <hr class="show-desktop"/>
  916. <section class="ji-info-section show-desktop">
  917. <ul class="ji-info-list">
  918. <?php if (!empty($realty->getRealtyTypeName())): ?>
  919. <div class="ji-info row">
  920. <div class="flex_column no_margin av_one_half basic-info-label">
  921. <label class="ji-info__label">
  922. <?php _e('Objektart:', 'jiwp'); ?>
  923. </label>
  924. </div>
  925. <div class="flex_column no_margin av_one_half">
  926. <span class="ji-info__value">
  927. <?php echo $realty->getRealtyTypeName(); ?>
  928. </span>
  929. </div>
  930. </div>
  931. <?php endif; ?>
  932. <?php if (!empty($realty->getSubRealtyTypeName())): ?>
  933. <div class="ji-info row">
  934. <div class="flex_column no_margin av_one_half basic-info-label">
  935. <label class="ji-info__label">
  936. <?php _e('Unterobjektart:', 'jiwp'); ?>
  937. </label>
  938. </div>
  939. <div class="flex_column no_margin av_one_half">
  940. <span class="ji-info__value">
  941. <?php echo $realty->getSubRealtyTypeName(); ?>
  942. </span>
  943. </div>
  944. </div>
  945. <?php endif; ?>
  946.  
  947. <?php if ($room_count = $realty->getRoomCount()) :?>
  948. <div class="ji-info row">
  949. <div class="flex_column no_margin av_one_half basic-info-label">
  950. <label class="ji-info__label">
  951. <?php _e('Zimmer:', 'jiwp'); ?>
  952. </label>
  953. </div>
  954. <div class="flex_column no_margin av_one_half">
  955. <span class="ji-info__value">
  956. <?php echo Justimmo\Wordpress\Helper\NumberFormatter::format($room_count); ?>
  957. </span>
  958. </div>
  959. </div>
  960. <?php endif; ?>
  961. <?php if ($living_area = $realty->getLivingArea()) :?>
  962. <div class="ji-info row">
  963. <div class="flex_column no_margin av_one_half basic-info-label">
  964. <label class="ji-info__label">
  965. <?php _e('Wohnfläche:', 'jiwp'); ?>
  966. </label>
  967. </div>
  968. <div class="flex_column no_margin av_one_half">
  969. <span class="ji-info__value">
  970. <?php echo Justimmo\Wordpress\Helper\NumberFormatter::format($living_area) . ' m&sup2;'; ?>
  971. </span>
  972. </div>
  973. </div>
  974. <?php endif; ?>
  975.  
  976. <?php if ($realty->getMarketingType()['KAUF'] == true): ?>
  977. <div class="ji-info row">
  978. <div class="flex_column no_margin av_one_half basic-info-label">
  979. <label class="ji-info__label">
  980. <?php _e('Kaufpreis:', 'jiwp'); ?>
  981. </label>
  982. </div>
  983. <div class="flex_column no_margin av_one_half">
  984. <span class="ji-info__value">
  985. <?php if ($realty->getPurchasePrice()): ?>
  986. <?php echo Justimmo\Wordpress\Helper\NumberFormatter::formatCurrency($realty->getPurchasePrice(), $currency, 0);
  987. ?>
  988.  
  989. <?php else: ?>
  990. <?php _e('Auf Anfrage', 'jiwp'); ?>
  991. <?php endif; ?>
  992. </span>
  993. </div>
  994. </div>
  995. <?php else: ?>
  996. <div class="ji-info row">
  997. <div class="flex_column no_margin av_one_half basic-info-label">
  998. <label class="ji-info__label">
  999. <?php _e('Miete:', 'jiwp'); ?>
  1000. </label>
  1001. </div>
  1002. <div class="flex_column no_margin av_one_half">
  1003. <span class="ji-info__value">
  1004. <?php if ($realty->getRentNet()): ?>
  1005. <?php echo Justimmo\Wordpress\Helper\NumberFormatter::formatCurrency($realty->getRentNet(), $currency, 0); ?>
  1006. <?php $vat += $realty->getRentGross() - $realty->getRentNet(); ?>
  1007. <?php else: ?>
  1008. <?php _e('Auf Anfrage', 'jiwp'); ?>
  1009. <?php endif; ?>
  1010. </span>
  1011. </div>
  1012. </div>
  1013. <?php endif; ?>
  1014.  
  1015. </ul>
  1016. </section>
  1017.  
  1018. <?php $contact = $realty->getContact(); ?>
  1019. <?php if (!empty($contact)): ?>
  1020. <hr style="opacity:0;" class="show-desktop"/>
  1021. <hr style="margin: 0px 0 30px"/>
  1022. <section class="ji-info-section">
  1023. <h2 class="ji-info-section__title"><?php _e('Ihre Kontaktperson', 'jiwp'); ?></h2>
  1024.  
  1025.  
  1026. <div class="contact-person ROW">
  1027. <?php $pictures = $contact->getPictures(); ?>
  1028. <?php if (!empty($pictures)): ?>
  1029. <div class="flex_column no_margin av_one_half">
  1030. <img src="<?php echo $pictures[0]->getUrl('small'); ?>" class="contact-person__avatar" alt=""/>
  1031. </div>
  1032. <?php endif; ?>
  1033. <?php if (!empty($pictures)): ?>
  1034. <div class="flex_column no_margin av_one_half">
  1035. <?php else: ?>
  1036. <div class="flex_column no_margin av_one_half">
  1037. <?php endif; ?>
  1038. <ul class="ji-info-list contact-person__info-list">
  1039. <li class="ji-info">
  1040. <label class="ji-info__label"><?php _e('', 'jiwp'); ?></label>
  1041. <span class="ji-info__value">
  1042. <?php
  1043.  
  1044. echo $contact->getTitle() . ' '
  1045. . $contact->getFirstName() . ' '
  1046. . $contact->getLastName() . ' ';
  1047.  
  1048. ?>
  1049. </span>
  1050. </li>
  1051.  
  1052. <?php $contact_email = $contact->getEmail(); ?>
  1053. <?php if (!empty($contact_email)): ?>
  1054. <li class="ji-info">
  1055. <label class="ji-info__label"><?php _e('', 'jiwp'); ?></label>
  1056. <span class="ji-info__value"><?php echo $contact_email; ?></span>
  1057. </li>
  1058. <?php endif; ?>
  1059.  
  1060. <?php $contact_phone = $contact->getPhone(); ?>
  1061. <?php if (!empty($contact_phone)): ?>
  1062. <li class="ji-info">
  1063. <label class="ji-info__label"><?php _e('', 'jiwp'); ?></label>
  1064. <span class="ji-info__value"><?php echo $contact_phone; ?></span>
  1065. </li>
  1066. <?php endif; ?>
  1067. </ul>
  1068. </div>
  1069. </div>
  1070. </section>
  1071. <?php endif; ?>
  1072. <hr />
  1073. </section>
  1074.  
  1075. <?php include(Justimmo\Wordpress\Templating::getPath('inquiry-form/_inquiry-form.php')); ?>
  1076. <hr/>
  1077. <h2 class="ji-info__label">
  1078. <?php _e('Exposé', 'jiwp'); ?>
  1079. </h2>
  1080. <a href="<?php echo Justimmo\Wordpress\Routing::getRealtyExposeUrl($realty); ?>"><button><?php _e('Download', 'jiwp'); ?></button></a>
  1081.  
  1082. <!-- Documents -->
  1083. <section class="ji-info-section">
  1084. <?php $attachments = $realty->getDocuments(); ?>
  1085. <?php if (!empty($attachments)): ?>
  1086. <br/>
  1087. <h2 class="ji-info__label">
  1088. <?php _e('Bau- und Ausstattungsbeschreibung', 'jiwp'); ?>
  1089. </h2>
  1090. <?php foreach ($attachments as $attachment): ?>
  1091. <a href="<?php echo $attachment->getUrl(); ?>"><button><?php _e('Download', 'jiwp'); ?></button></a>
  1092. <?php endforeach; ?>
  1093.  
  1094. <?php endif; ?>
  1095. </section>
  1096. </div>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement