device-geolocation-visitor-info.html.twig in Smart IP 8.3
Same filename and directory in other branches
device-geolocation-visitor-info.tpl.php Default theme implementation for rendering user's geolocation details block.
Available variables:
- location: An associative array with possible array items:
-- Latitude: May came from Smart IP or W3C Geolocation API -- Longitude: May came from Smart IP or W3C Geolocation API -- Street Number: Google Geocoder service specific item -- Postal Code: Google Geocoder service specific item -- Route: Google Geocoder service specific item -- Neighborhood: Google Geocoder service specific item -- Locality: Google Geocoder service specific item -- Sublocality: Google Geocoder service specific item -- Establishment: Google Geocoder service specific item -- Administrative Area Level N: Google Geocoder service specific item -- Country: May came from Smart IP or Google Geocoder service -- Country Code: May came from Smart IP or Google Geocoder service -- Zip: Smart IP specific item -- Region: Smart IP specific item -- Region Code: Smart IP specific item -- Time Zone: Smart IP specific item -- Ip Address: Smart IP specific item -- Timestamp: Timestamp of these data stored
1 theme call to device-geolocation-visitor-info.html.twig
- VisitorGeolocation::build in modules/
device_geolocation/ src/ Plugin/ Block/ VisitorGeolocation.php - Builds and returns the renderable array for this block plugin.
File
modules/device_geolocation/templates/device-geolocation-visitor-info.html.twigView source
- {#
- /**
- * @file device-geolocation-visitor-info.tpl.php
- * Default theme implementation for rendering user's geolocation details block.
- *
- * Available variables:
- * - location: An associative array with possible array items:
- * -- Latitude: May came from Smart IP or W3C Geolocation API
- * -- Longitude: May came from Smart IP or W3C Geolocation API
- * -- Street Number: Google Geocoder service specific item
- * -- Postal Code: Google Geocoder service specific item
- * -- Route: Google Geocoder service specific item
- * -- Neighborhood: Google Geocoder service specific item
- * -- Locality: Google Geocoder service specific item
- * -- Sublocality: Google Geocoder service specific item
- * -- Establishment: Google Geocoder service specific item
- * -- Administrative Area Level N: Google Geocoder service specific item
- * -- Country: May came from Smart IP or Google Geocoder service
- * -- Country Code: May came from Smart IP or Google Geocoder service
- * -- Zip: Smart IP specific item
- * -- Region: Smart IP specific item
- * -- Region Code: Smart IP specific item
- * -- Time Zone: Smart IP specific item
- * -- Ip Address: Smart IP specific item
- * -- Timestamp: Timestamp of these data stored
- *
- * @see template_preprocess_device_geolocation_visitor_info()
- *
- * @ingroup themeable
- */
- #}
-
- {% if location is not empty %}
- <dl>
- {% for label, value in location %}
- <dt>{{ label }}</dt>
- <dd>{{ value }}</dd>
- {% endfor %}
- </dl>
- {% endif %}