/** * Add PH Header Stripe */ public function add_header_stripe($post) { global $post, $propertyhive, $property; if ($post->post_status != 'auto-draft') { if ($post->post_type == 'property') { $property = new PH_Property((int) $post->ID); echo '<div style="background:#2ea2cc; border:1px solid #0074a2; border-radius:4px; padding:10px 15px; color:#FFF;">'; echo propertyhive_get_property_thumbnail('thumbnail', 'alignleft'); echo '<h1>' . get_the_title($post->ID) . '</h1>'; echo '<h3>' . $property->get_formatted_price() . '</h3>'; echo '<div class="clear"></div>'; echo '</div>'; } } }
/** * Get the property thumbnail for the loop. * * @access public * @subpackage Loop * @return void */ function propertyhive_template_loop_property_thumbnail() { echo propertyhive_get_property_thumbnail(); }