Skip to content

withinboredom/themap

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

TheMap

TheMap is a project to create a physical site locator using Bing Maps as a wordpress plugin

Available hooks

Filters

  • themap(getFolders)
    • Gets an array containing the location of the plugin by directory and url
  • themap(applyConfig)
    • Gets an array describing the configuration of the plugin
  • themap(shortcode(themap))
    • answers to the shortcode "themap"
  • themap(default_options)
    • loads the default options for the plugin if no options are set
  • themap(getSettings)
    • Returns the settings for the plugin

Actions

  • themap(update)
    • Called when the plugin has been updated
    • takes two args (old_version, new_version)

Cool Features

Uses autoloading

static public function autoload($classname) {
    $file = str_replace("__", "/", $classname);
    $folders = apply_filters("themap(getFolders)", array());
    if (file_exists($folders['PluginDir'] . $file . ".php"))
        include_once($folders['PluginDir'] . $file . ".php");
}

so you can just say

$settings = new skel__settings();

and it will load skel/settings.php

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages