PATH:
home
/
lab2454c
/
sothebankuab.com
/
wp-content
/
plugins
/
jetpack
/
modules
<?php require_once dirname( __FILE__ ) . '/geo-location/class.jetpack-geo-location.php'; /** * Geo-location shortcode for display of location data associated with a post. * * Usage with current global $post: * [geo-location] * * Usage with specific post ID: * [geo-location post=5] */ add_shortcode( 'geo-location', 'jetpack_geo_shortcode' ); function jetpack_geo_shortcode( $attributes ) { $attributes = shortcode_atts( array( 'post' => null, 'id' => null ), $attributes ); return jetpack_geo_get_location( $attributes['post'] ? $attributes['post'] : $attributes['id'] ); } /** * Get the geo-location data associated with the supplied post ID, if it's available * and marked as being available for public display. The returned array will contain * "latitude", "longitude" and "label" keys. * * If you do not supply a value for $post_id, the global $post will be used, if * available. * * @param integer|null $post_id * * @return array|null */ function jetpack_geo_get_data( $post_id = null) { $geo = Jetpack_Geo_Location::init(); if ( ! $post_id ) { $post_id = $geo->get_post_id(); } $meta_values = $geo->get_meta_values( $post_id ); if ( ! $meta_values['is_public'] || ! $meta_values['is_populated'] ) { return null; } return array( 'latitude' => $meta_values['latitude'], 'longitude' => $meta_values['longitude'], 'label' => $meta_values['label'] ); } /** * Display the label HTML for the geo-location information associated with the supplied * post ID. * * If you do not supply a value for $post_id, the global $post will be used, if * available. * * @param integer|null $post_id * * @return void */ function jetpack_geo_display_location( $post_id = null ) { echo jetpack_geo_get_location( $post_id ); } /** * Return the label HTML for the geo-location information associated with the supplied * post ID. * * If you do not supply a value for $post_id, the global $post will be used, if * available. * * @param integer|null $post_id * * @return string */ function jetpack_geo_get_location( $post_id = null ) { return Jetpack_Geo_Location::init()->get_location_label( $post_id ); }
[+]
publicize
[+]
photon-cdn
[-] module-headings.php
[edit]
[+]
search
[-] shortcodes.php
[edit]
[-] lazy-images.php
[edit]
[-] minileven.php
[edit]
[+]
site-icon
[-] notes.php
[edit]
[+]
verification-tools
[-] carousel.php
[edit]
[+]
widgets
[+]
plugin-search
[+]
likes
[-] monitor.php
[edit]
[-] geo-location.php
[edit]
[-] seo-tools.php
[edit]
[-] search.php
[edit]
[-] enhanced-distribution.php
[edit]
[+]
theme-tools
[+]
custom-post-types
[-] subscriptions.php
[edit]
[+]
sitemaps
[-] post-by-email.php
[edit]
[-] gravatar-hovercards.php
[edit]
[-] videopress.php
[edit]
[+]
..
[-] shortlinks.php
[edit]
[+]
subscriptions
[-] module-extras.php
[edit]
[-] custom-css.php
[edit]
[-] publicize.php
[edit]
[+]
videopress
[-] latex.php
[edit]
[-] woocommerce-analytics.php
[edit]
[-] widgets.php
[edit]
[-] module-info.php
[edit]
[+]
tiled-gallery
[+]
google-analytics
[-] json-api.php
[edit]
[+]
scan
[+]
contact-form
[-] infinite-scroll.php
[edit]
[-] comment-likes.php
[edit]
[-] tiled-gallery.php
[edit]
[-] plugin-search.php
[edit]
[-] sharedaddy.php
[edit]
[-] sitemaps.php
[edit]
[-] masterbar.php
[edit]
[-] contact-form.php
[edit]
[+]
simple-payments
[-] photon-cdn.php
[edit]
[+]
post-by-email
[-] custom-content-types.php
[edit]
[+]
carousel
[-] widget-visibility.php
[edit]
[+]
photon
[+]
seo-tools
[-] theme-tools.php
[edit]
[-] verification-tools.php
[edit]
[+]
gravatar
[+]
memberships
[+]
shortcodes
[+]
protect
[-] protect.php
[edit]
[+]
widget-visibility
[+]
cloudflare-analytics
[-] sso.php
[edit]
[-] google-analytics.php
[edit]
[+]
sharedaddy
[-] markdown.php
[edit]
[-] wpgroho.js
[edit]
[-] vaultpress.php
[edit]
[+]
geo-location
[+]
markdown
[+]
infinite-scroll
[-] photon.php
[edit]
[+]
wpcom-block-editor
[-] stats.php
[edit]
[-] copy-post.php
[edit]
[+]
related-posts
[-] related-posts.php
[edit]
[+]
custom-css
[+]
comment-likes
[+]
wpcom-tos
[-] wordads.php
[edit]
[+]
woocommerce-analytics
[+]
comments
[-] comments.php
[edit]
[+]
wordads
[+]
masterbar
[+]
sso
[+]
calypsoify
[-] likes.php
[edit]