static method activation_hook [line 219]
static void activation_hook(
)
|
|
WordPress hook to perform activation tasks.
Tags:
static method admin_menu [line 1087]
static void admin_menu(
)
|
|
WordPress action to add the Geo Mashup Options settings admin page.
admin_menu action called by WordPress.
Tags:
static method admin_notices [line 1101]
static void admin_notices(
)
|
|
WordPress action to display important messages in the admin.
admin_notices action called by WordPress.
Tags:
static method ajax_edit [line 386]
WordPress action to perform an ajax edit operation and echo results.
Tags:
static method ajax_kml_attachments [line 555]
static void ajax_kml_attachments(
)
|
|
Echo a JSONP array of URLs of KML or KMZ attachments for posts.
since 1.4
Tags:
static method build_map_data [line 694]
static void build_map_data(
$query)
|
|
Tags:
Parameters:
static method category_legend [line 1034]
static string category_legend(
[string|array
$args = null])
|
|
Category legend template tag.
Returns a placeholder where a related map should display a legend for the categories of the displayed content.
Tags:
Parameters:
static method category_name [line 1008]
static string category_name(
[string|array
$option_args = null])
|
|
Category name template tag.
If there is a map_cat parameter, return the name of that category.
Tags:
Parameters:
static method current_location [line 1178]
static object|bool current_location(
[string
$output = OBJECT])
|
|
Get the location of the current loop object, if any.
Tags:
Parameters:
static method dependent_init [line 242]
static void dependent_init(
)
|
|
WordPress action to supply an init action for plugins that would like to use Geo Mashup APIs.
Tags:
static method explode_assoc [line 452]
static array explode_assoc(
string
$glue1, string
$glue2, string
$str)
|
|
Helper to turn a string of key-value pairs into an associative array.
Tags:
Parameters:
static method full_post [line 985]
static string full_post(
[string|array
$args = null])
|
|
Full post template tag.
Returns a placeholder where a related map should display the full post content of the currently selected marker.
Tags:
Parameters:
static method geo_query [line 364]
Process an AJAX geo query.
Tags:
static method get_kml_attachment_urls [line 521]
static array get_kml_attachment_urls(
id
$post_id)
|
|
Get an array of URLs of KML or KMZ attachments for a post.
Tags:
Parameters:
static method get_language_code [line 496]
static string get_language_code(
)
|
|
Guess the best language code for the current context.
Takes some plugins and common practices into account.
Tags:
static method get_locations_json [line 607]
static string get_locations_json(
string|array
$query_args, [string
$format = 'JSON'])
|
|
Query object locations and return JSON.
Offers customization per object location via a filter, geo_mashup_locations_json_object.
Tags:
Parameters:
static method implode_assoc [line 474]
static string implode_assoc(
string
$inner_glue, string
$outer_glue, array
$array, [mixed
$skip_empty = false], [mixed
$urlencoded = false])
|
|
Helper to turn an associative array into a string of key-value pairs.
Tags:
Parameters:
static method init [line 90]
WordPress init action.
init action, called by WordPress.
Tags:
static method is_options_page [line 77]
static bool is_options_page(
)
|
|
Test to see if the current request is for the Geo Mashup options page.
Tags:
static method join_post_queries [line 438]
static void join_post_queries(
bool
$yes_or_no)
|
|
Toggle limiting of query_posts to located posts only, with Geo Mashup query extensions.
When enabled, only posts with locations will be returned from WordPress query_posts() and related functions. Also adds Geo Mashup public query variables.
Caution - what if a future Geo Mashup incorporates multiple locations per object?
Tags:
Parameters:
static method list_cats [line 1051]
static void list_cats(
$content, [
$category = null])
|
|
If the option is set, add a map link to category lists.
list_cats filter called by WordPress.
Tags:
Parameters:
static method list_located_posts [line 1376]
static string list_located_posts(
[
$option_args = null], string|array
$args)
|
|
List located posts template tag.
Returns an HTML list of all located posts.
Tags:
Parameters:
static method list_located_posts_by_area [line 1403]
static string list_located_posts_by_area(
string|array
$args)
|
|
List located posts by area template tag.
Returns an HTML list of all located posts by country and state. May try to look up this information when absent.
Tags:
Parameters:
static method load [line 62]
Load Geo Mashup.
Initializations that can be done before init().
Tags:
static method locate_template [line 319]
static string locate_template(
string
$template_base)
|
|
Locate a Geo Mashup template.
Geo Mashup looks for templates given a certain base name. Given a base name of 'info-window', it will return the first of: 'geo-mashup-info-window.php' in the active theme directory 'info-window.php' in the geo-mashup-custom plugin directory 'default-templates/info-window.php' in the geo-mashup plugin directory
Tags:
Parameters:
static method location_info [line 1211]
static string location_info(
[string|array
$args = ''])
|
|
A template tag to insert location information.
Tags:
Parameters:
static method map [line 778]
static string map(
[string|array
$atts = null])
|
|
The map template tag.
Returns HTML for a Google map. Must use with echo in a template: echo GeoMashup::map();.
Tags:
Parameters:
static method options_page [line 1165]
static void options_page(
)
|
|
WordPress action to produce the Geo Mashup Options admin page.
Called by the WordPress admin.
Tags:
static method plugin_action_links [line 1131]
static void plugin_action_links(
$links,
$file)
|
|
WordPress action to add custom action links to the plugin listing.
plugin_action_links filter, called by WordPress.
Tags:
Parameters:
static method plugin_row_meta [line 1148]
static void plugin_row_meta(
$links,
$file)
|
|
WordPress action to add custom meta links to the plugin listing.
plugin_row_meta filter, called by WordPress.
Tags:
Parameters:
static method post_coordinates [line 1470]
static array post_coordinates(
[string|array
$places = 10])
|
|
Post coordinates template tag.
Get the coordinates of the current post.
Tags:
Parameters:
static method post_link [line 1258]
static void post_link(
[
$option_args = ''])
|
|
A template tag to insert a link to a post on the mashup.
Tags:
Parameters:
static method query_vars [line 300]
static void query_vars(
$public_query_vars)
|
|
WordPress filter to add Geo Mashup query variables.
Tags:
Parameters:
static method register_script [line 257]
static void register_script(
string
$handle, string
$src, [array
$deps = array()], [string
$ver = false], [bool
$in_footer = false])
|
|
Register the Geo Mashup script appropriate for the request.
Tags:
Parameters:
static method register_style [line 275]
static void register_style(
string
$handle, string
$src, [array
$deps = array()], [string
$ver = false], [bool
$media = 'all'])
|
|
Register the Geo Mashup style appropriate for the request.
Tags:
Parameters:
static method rss_item [line 1512]
WordPress action to emit GeoRSS tags.
rss_item action called by WordPress.
Tags:
static method rss_ns [line 1500]
WordPress action to emit GeoRSS namespace.
rss_ns action called by WordPress.
Tags:
static method show_on_map_link [line 1309]
static string show_on_map_link(
[
$args = null])
|
|
A template tag to insert a link to the current location post on the global map page.
Tags:
Parameters:
static method show_on_map_link_url [line 1270]
static string show_on_map_link_url(
[
$args = null])
|
|
A template tag to return an URL for the current location on the global map page.
Tags:
Parameters:
static method tabbed_category_index [line 1535]
static string tabbed_category_index(
string|array
$args)
|
|
Tabbed category index template tag.
Returns a placeholder where a related map should display a list of map objects by category, organized into HTML suited for presentation as tabs.
Tags:
Parameters:
static method template_redirect [line 343]
static void template_redirect(
)
|
|
WordPress action to deliver templated Geo Mashup content.
Tags:
static method visible_posts_list [line 1344]
static string visible_posts_list(
[string|array
$args = null])
|
|
Visible posts list template tag.
Returns a placeholder where a related map should display a list of the currently visible posts.
Tags:
Parameters:
static method wp_footer [line 288]
WordPress action to add things like scripts to the footer.
Tags:
static method wp_head [line 578]
WordPress action to add relevant geo meta tags to the document head.
wp_head action, called by WordPress.
Tags: