get_property_bed

Returns the number of bedrooms where you can specify the output type.

There are three return type options.

  • i
  • d
  • l (lowercase L)
// property bed
public function get_property_bed($returntype = 'i') {
	if($this->get_property_meta('property_bedrooms') == '')
		return;
	$bed['i'] = '<span title="'.__('Bedrooms', 'epl').'" class="icon beds"><span class="icon-value">'. $this->get_property_meta('property_bedrooms') . '</span></span>'; 
	$bed['d'] = $this->get_property_meta('property_bedrooms') . ' '.__('bed', 'epl').' ';
	$bed['l'] = '<li class="bedrooms">' . $this->get_property_meta('property_bedrooms') . ' '.__('bed', 'epl').'</li>';
	return $bed[$returntype];
}