tag so that To use this module, simply place this file in the cookbook/ directory and add the following line into config.php: include_once('cookbook/includeSite.php'); */ $DefaultWidth = '640'; // pixels or % $DefaultHeight = '480'; // pixels or % $DefaultAlign = 'default'; // default, left, right, center $DefaultScroll = 'default'; // default, yes, no $DefaultBorder = 'default'; // pixels function includeMapAdapt($str) { global $DefaultWidth, $DefaultHeight, $DefaultAlign; global $DefaultScroll, $DefaultBorder; // parse the [[Double Bracket]] syntax $pieces = explode(" ", $str); // seperate the pieces in to $key and $value pairs foreach($pieces as $piece) { list($key,$value) = explode("=", $piece); $vars["$key"] = $value; } // initialize the "; // $Output .= "\n\n\n\n"; return $Output; } Markup('includeMapAdapt', 'directives', "/\\(:includeMapAdapt\\s+(http:[^$UrlExcludeChars]*?)\\s*:\\)/e", "includeMapAdapt('$1')"); ?>