smart_ip_views_bridge_handler_field_latitude.inc in Smart IP 7.2
Same filename and directory in other branches
Contains the 'smart_ip_views_bridge_handler_field_latitude' field handler.
File
modules/smart_ip_views_bridge/views/smart_ip_views_bridge_handler_field_latitude.incView source
<?php
// $Id$
/**
* @file
* Contains the 'smart_ip_views_bridge_handler_field_latitude' field handler.
*/
/**
* Field handler to display visitor's latitude.
*/
class smart_ip_views_bridge_handler_field_latitude extends smart_ip_views_bridge_handler_field_coordinates {
function construct() {
parent::construct();
}
function render($values) {
$smart_ip_session = smart_ip_session_get('smart_ip');
$latitude = '';
if (!empty($smart_ip_session['location']['latitude'])) {
$latitude = $smart_ip_session['location']['latitude'];
}
if ($this->options['style'] == 'dd') {
return $latitude;
}
else {
return theme('smart_ip_latitude_dms', array(
'view' => $latitude,
));
}
}
}
Classes
Name![]() |
Description |
---|---|
smart_ip_views_bridge_handler_field_latitude | Field handler to display visitor's latitude. |