<?php global $agent_mail_sent_success; $schemaorg_enabled = estetico_get_setting('schemaorg_enabled'); $property = new Property(); $property->setData($post); $meta = $property->getMeta(); $property->increaseViewCount(); ob_start(); the_content(__('Continue reading <span class="meta-nav">→</span>', THEME_NAME)); $content = ob_get_contents(); ob_end_clean(); $gallery_content = ""; $gallery_content_regex = '/<extract>(.*?)<\\/extract>/s'; preg_match($gallery_content_regex, $content, $matches); if (isset($matches[1])) { $gallery_content = $matches[1]; $content = preg_replace($gallery_content_regex, '', $content, 1); } $show_map = false; $lat = $property->getLatitude(); $lng = $property->getLongitude(); if (!empty($lat) && !empty($lng)) { $show_map = true; } $properties_page_url = estetico_get_properties_page_url(); ?> <article id="post-<?php the_ID(); ?>