class="no-js"> $phone"; $site_url = site_url(); $current_url = "https://$_SERVER[HTTP_HOST]$_SERVER[REQUEST_URI]"; $hostname = getenv('HTTP_HOST'); $market_city = $post->market_city; $market_city = trim($market_city); $state = $post->state; $full_state = $post->state; $state = trim($state); $city_encode = str_replace(" ","_",$market_city); $state_wiki_encode = str_replace(" ","_",$state); $state_encode = strtolower($state); $state_encode = str_replace(" ","-",$state_encode); $state_abbr = $post->state_abbr; $zipcode = $post->zipcode; $zipcode = substr($zipcode, 0, strpos($zipcode, " ")); $lat = $post->lat; $lng = $post->long; $country = "US"; $hideLog = ( is_user_logged_in() ) ? 'none' : 'block'; $showLog = ( is_user_logged_in() ) ? 'block' : 'none'; // Get User Location // $user_ip = $_SERVER['HTTP_X_FORWARDED_FOR']; // $server_ip = $_SERVER['REMOTE_ADDR']; // $geo = unserialize(file_get_contents("http://www.geoplugin.net/php.gp?ip=$user_ip")); // $user_country = $geo["geoplugin_countryName"]; // $user_city = $geo["geoplugin_city"]; // $user_state = $geo["geoplugin_regionCode"]; // $user_lat = $geo["geoplugin_latitude"]; // $user_lng = $geo["geoplugin_longitude"]; ?>
>