include $_SERVER['DOCUMENT_ROOT']."/locations/includes/header.php" ?>
if( isset($_GET['agenturl']) )
{
$agenturl = str_replace('/','',$_GET['agenturl']);
}
if( isset($_GET['siteurl']) )
{
$siteurl = str_replace('/','',$_GET['siteurl']);
$offices = getOfficesbyURL($siteurl);
foreach ($offices as $office) {
$office_location = $office->c_office_location__c;
$office_country = $office->c_country__c;
$office_state = $office->c_state__c;
$office_county = $office->c_ttl_county__c;
}
}
if ($agenturl <> ''){
$agents = getAgentsbyUrl($agenturl);
}else{
$agents = getAgentsbyOffice($office_location);
}
foreach ($agents as $agent) {
$siteurl = $agent->c_wordpress_site_shortname__c;
$agentname = $agent->c_employee_full_name__c;
$agentphone = $agent->c_phone__c;
$agentemail = $agent->c_site_email__c;
$agentaddress = $agent->c_email__c;
$agentdescription = $agent->description;
$agenttwitter = $agent->c_twitter_url__c;
$agentfacebook = $agent->c_facebook_url__c;
$agentlinkedin = $agent->c_linkedin_url__c;
$agentimage = $agent->c_employee_imagetemp__c;
}
?>
Agent Profile
include $_SERVER['DOCUMENT_ROOT']."/includes/js-scripts.php" ?>