So here is updated code for agent data in property details file:
Also you will need to add extra lines in index.css file for better styling or simply style div`s directly in code below.
| Code: |
<?php
if($agent->logo_image){
?>
<div class="agent" style="agent-img">
<img src="images/properties/profiles/<?php echo $agent->logo_image;?>" alt="<?php echo $agent->alias;?>" />
</div>
<?php }?>
<?php }?>
<?php
$db =& JFactory::getDBO();
$query = 'SELECT * FROM #__properties_profiles WHERE mid ='.$Product->agent_id;
$db->setQuery($query);
$agent = $db->loadObject();
if($agent->company){echo '<div class="list-company">'.JText::_('Company').' : '.$agent->company.'</div>';}
if($agent->address1){echo '<div class="list-address1">'.JText::_('Address').' : '.$agent->address1.'</div>';}
if($agent->locality){echo '<div class="list-locality">'.JText::_('Locality').' : '.$agent->pcode.' '.$agent->locality.'</div>';}
if($agent->state){echo '<div class="list-state">'.JText::_('State').' : '.$agent->state.' '.$agent->country.'</div>';}
if($agent->phone){echo '<div class="list-phone">'.JText::_('Phone').' : '.$agent->phone.'</div>';}
if($agent->fax){echo '<div class="list-fax">'.JText::_('Fax').' : '.$agent->fax.'</div>';}
if($agent->mobile){echo '<div class="list-tel">'.JText::_('Mobile').' : '.$agent->mobile.'</div>';}
if($agent->email){echo '<div class="list-email">'.JText::_('Email').' : '.$agent->email.'</div>';}
if($agent->logo_image ){echo '<div class="list-image">'.JText::_('Image').' : '.$agent->logo_image.'</div>';
} ?>
|
Web info is excluded, you can add web info if you want just before last } ?>
if($agent->web){echo '<div class="list-web">'.JText::_('Web').' : '.$agent->web.'</div>';
HERE IS ONE EXAMPLE:
croatiaexclusive.hr/en/properties/showpr...first-row-hotel.html
Cheers!
admlivasi