You are here

smart_ip_views_bridge_handler_field_latitude.inc in Smart IP 6

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.inc
View 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');
    if ($this->options['style'] == 'dd') {
      return $smart_ip_session['location']['latitude'];
    }
    else {
      return theme('smart_ip_longitude_dms', $smart_ip_session['location']['latitude']);
    }
  }

}

Classes

Namesort descending Description
smart_ip_views_bridge_handler_field_latitude Field handler to display visitor's latitude.