Your address will show here +12 34 56 78
#103894

web.tec
Participant

/////////////////////////////////////////////////////////////////////////////////////////////////////

// end get agent details

/////////////////////////////////////////////////////////////////////////////////////////////////////

print ‘<html><head><link href=”‘.get_stylesheet_uri().'” rel=”stylesheet” type=”text/css” /></head>’;

print ‘<script src=”http://code.jquery.com/jquery-1.10.1.min.js”></script><script>$(window).load(function(){ print(); });</script>’;

print ‘<body style=”background:#ffffff;”>’;

$logo=get_option(‘wp_estate_logo_image’,”);

if ( $logo!=” ){

print ‘logo‘;

} else {

print ‘logo‘;

}

print ‘<table border=”0″ width=”100%” cellpadding=”0″ cellspacing=”2″>

<tbody>

<tr>

<td><h1 class=”print_title”>’.custom_get_agent_name($post->ID).’ ‘.(‘ – ‘).’ ‘.$title.'</h1></td></tr></tbody></table>’;

print ‘<div class=”print-addr”>’. $property_category .’ ‘.__(‘in’,’wpestate’).’ ‘.$property_action.’ ‘.__(‘a’,’wpestate’).’ ‘.$property_area.’ ‘.__(‘(‘).”.$property_city.”.__(‘)’).'</div>’;

print ‘<div class=”print-price”>’.__(‘Price’,’wpestate’).’: ‘.$price.’ ‘.$price_label.'</div>’;

print ‘<div class=”print-col-img”></div>’;

print ‘<h2 class=”print_header”>’.__(‘Property Description’,’wpestate’).'</h2><div class=”print-content”>’.ucfirst($content).'</div></div>’;

print ‘<h2 class=”print_header”>’.__(‘Property Address’,’wpestate’).'</h2>’;

print ‘<div class=”print_wrapper”>’;

print estate_listing_address_print($post_id);

print ‘<h2 class=”print_header”>’.__(‘Property Details’,’wpestate’).'</h2>’;

print estate_listing_details($post_id);

print ‘<h2 class=”print_header”>’.__(‘Features and Amenities’,’wpestate’).'</h2>’;

print estate_listing_features($post_id);

print ‘<h2 class=”print_header”>’.__(‘Agent’,’wpestate’).'</h2>’;

if($thumb_id==”){

print ‘<div class=”print-col-img”>agent-images</div>’;

}else{

print ‘<div class=”print-col-img”></div>’;

}

print ‘<h3><div class=”listing_detail_agent col-md-4 agent_name”>’ . $name. ‘</div></h3>

<div class=”agent_position”>’. $agent_posit .'</div>’;

if ($agent_phone) {

print ‘<div class=”listing_detail_agent col-md-4″>‘.__(‘Telephone’,’wpestate’).’: ‘.$agent_phone.'</div>’;

}

if ($agent_mobile) {

print ‘<div class=”listing_detail_agent col-md-4″>‘.__(‘Mobile’,’wpestate’).’: ‘.$agent_mobile.'</div>’;

}

if ($agent_email) {

print ‘<div class=”listing_detail_agent col-md-4″>‘.__(‘Email’,’wpestate’).’: ‘.$agent_email.'</div>’;

}

if ($agent_skype) {

print ‘<div class=”listing_detail_agent col-md-4″>‘.__(‘Skype’,’wpestate’).’: ‘.$agent_skype.'</div>’;

}

print ‘</div>’;

print ‘<div class=”printbreak”></div>’;

print ‘<h2 class=”print_header”>’.__(‘Images’,’wpestate’).'</h2>’;

foreach ($post_attachments as $attachment) {

$original = wp_get_attachment_image_src($attachment->ID, ‘full’);

print ‘<div class=”print-col-img printimg”></div>’;

}

print ‘<div class=”print_agent”>’;

print ‘</div>’;

print ‘<div style=”margin-bottom:40px”></div>’;

print ‘</body></html>’;die();

}

////////////////////////////////////////////////////////////////////////////////

/// delete search function

////////////////////////////////////////////////////////////////////////////////

  • This reply was modified 2 years, 7 months ago by  web.tec.