Example #1
0
      
      <?php 
comments_template();
?>
      
    </div><!-- #post-## -->

    </div><!-- #content -->
  </div><!-- #container -->
<?php 
// Primary property-type sidebar.
if (isset($post->property_type) && is_active_sidebar("wpp_sidebar_" . $post->property_type)) {
    ?>

    <div id="primary" class="<?php 
    wpp_css('property::primary', "widget-area wpp_sidebar_{$post->property_type}");
    ?>
" role="complementary">
      <ul class="xoxo">
        <?php 
    dynamic_sidebar("wpp_sidebar_" . $post->property_type);
    ?>
      </ul>
    </div><!-- #primary .widget-area -->

<?php 
}
?>

<?php 
get_footer();
        wpp_css('property_featured_shortcode::thumbnail', "featured_property_thumbnail");
        ?>
"  href="<?php 
        echo $property['permalink'];
        ?>
">
          <?php 
        property_overview_image($thumbnail_size);
        ?>
        </a>

        <?php 
        if (is_array($stats)) {
            ?>
          <ul class="<?php 
            wpp_css('property_featured_shortcode::stats', "wp-caption-text shortcode_featured_properties");
            ?>
">

            <?php 
            foreach ($stats as $stat) {
                if (empty($property[$stat])) {
                    continue;
                }
                ?>
              <li class="<?php 
                echo $stat;
                ?>
">
                <dl>
                  <dt><?php 
          <?php 
        property_overview_image();
        ?>
        </div>

        <div class="<?php 
        wpp_css('property_overview::right_column', "wpp_overview_right_column");
        ?>
" style="margin-left:<?php 
        echo $thumbnail_dimentions['width'] + 12;
        /* 12 is boubled image border */
        ?>
px; ">

            <ul class="<?php 
        wpp_css('property_overview::data', "wpp_overview_data");
        ?>
">
                <li class="property_title">
                    <a <?php 
        echo $in_new_window;
        ?>
 href="<?php 
        echo $property['permalink'];
        ?>
"><?php 
        echo $property['post_title'];
        ?>
</a>
                    <?php 
        if (!empty($property['is_child'])) {
    ?>
_result" style="border:0; color:#f6931f; font-weight:bold; width: 155px;"  />
      </p>
      <div id="<?php 
    echo $searchable_attribute;
    ?>
_slider"></div>
    </div>
  <?php 
}
?>
  </div>
</div>

<div id="content" class="<?php 
wpp_css('property_search::content', "page type-page hentry");
?>
" >
  <div style="width: 890px; float: left;">
    <?php 
$searchable_properties = WPP_F::get_searchable_properties();
if ($searchable_properties) {
    foreach ($searchable_properties as $property_id) {
        $property = WPP_F::get_property($property_id);
        // 1. Try template in theme folder
        $template_found = WPP_F::get_template_part(array("property-search-block"), array(WPP_Templates));
        if ($template_found) {
            include $template_found;
        }
    }
}
            <ul class="clearfix">
              <li>
                <a class="<?php 
            wpp_css('property_overview::button', 'button wpp_edit');
            ?>
" href="<?php 
            echo class_wpp_feps::get_edit_feps_permalink($property['ID'], 'edit');
            ?>
"><?php 
            _e('Edit', ud_get_wp_property()->domain);
            ?>
</a>
              </li>
              <li>
                <a class="<?php 
            wpp_css('property_overview::button', 'button');
            ?>
" href="<?php 
            echo WPP_F::base_url(FEPS_VIEW_PAGE, array('feps' => $property['ID'], 'hash' => $property['wpp::feps::pending_hash'], 'action' => 'remove'));
            ?>
" onclick="return confirm('<?php 
            _e('Are you sure?', ud_get_wp_property()->domain);
            ?>
')"><?php 
            _e('Remove', ud_get_wp_property()->domain);
            ?>
</a>
              </li>
            </ul>
          </li>
          <?php 
        <?php 
if (is_404()) {
    ?>
        <p><?php 
    _e('Sorry, we could not find what you were looking for.  Since you are here, take a look at some of our properties.', ud_get_wp_property()->domain);
    ?>
</p>
        <?php 
}
?>
        <?php 
if (isset($wp_properties['configuration']['do_not_override_search_result_page']) && $wp_properties['configuration']['do_not_override_search_result_page'] == 'true') {
    echo $content = apply_filters('the_content', $post->post_content);
}
?>
        <div class="<?php 
wpp_css('property_overview_page::all_properties', "all-properties");
?>
">
          <?php 
echo do_shortcode('[property_overview]');
?>
        </div>
      </div><!-- .entry-content -->
    </div><!-- #post-## -->
  </div><!-- #content -->
</div><!-- #container -->

<?php 
get_sidebar();
get_footer();
Example #7
0
 */
global $wp_properties;
if (!($coords = \WPP_F::get_coordinates($property['ID']))) {
    return;
}
$unique_id = 'property_map_' . rand(10000, 99999);
?>
<div class="<?php 
wpp_css('property_map::wrapper', "property_map_wrapper");
?>
">
  <div id="<?php 
echo $unique_id;
?>
" class="<?php 
wpp_css('property_map::dom_id');
?>
" style="width:<?php 
echo $data['width'];
?>
; height:<?php 
echo $data['height'];
?>
"></div>
</div>

<?php 
ob_start();
?>

  <script type='text/javascript'>
<?php

/**
 * [property_attributes] template
 *
 * To modify it, copy it to your theme's root.
 */
?>

<?php 
if ($data['display'] == 'list' && $data['sort_by_groups'] != 'true') {
    ?>
  <ul id="property_stats" class="<?php 
    wpp_css('property::property_stats', "property_stats overview_stats list");
    ?>
">
    <?php 
    @draw_stats($data);
    ?>
  </ul>
<?php 
} else {
    ?>
  <?php 
    @draw_stats($data);
}
if ($properties) {
    ?>
<ul class="<?php 
    wpp_css('property_overview_plain_list::row_view', "wpp_row_view");
    ?>
">
    <?php 
    foreach ($properties as $property_id) {
        ?>

    <?php 
        $property = prepare_property_for_display(get_property($property_id, $show_children ? "get_property['children']={$show_property['children']}" : ""));
        ?>

    <li class="<?php 
        wpp_css('property_overview_plain_list::property_div', "property_div");
        ?>
">
      <a href="<?php 
        echo $property['permalink'];
        ?>
"><?php 
        echo $property['post_title'];
        ?>
</a>
      <?php 
        if ($show_children && $property['children']) {
            ?>
        <ul class="child_properties">
            <?php 
            foreach ($property['children'] as $child) {
?>
">
    <a href="<?php 
echo $property[permalink];
?>
"><img src="<?php 
echo $property[grid_view];
?>
" alt="<?php 
echo $property[post_title];
?>
" /></a>
  </div>

  <div class="<?php 
wpp_css('property_search_block::body', "wpp_search_body");
?>
">
    <div class="wpp_s_price">$<?php 
echo $property[price];
?>
</div>
    <div class="wpp_s_bedroom">
      <?php 
if (!empty($property[custom_attribute_overview])) {
    ?>
              <?php 
    echo $property[custom_attribute_overview];
    ?>
      <?php 
} else {