get_id() != 'menubar' ) return; if ( ($block=$mb_arr[0]->get_block('mbMenu')) != null ) { include_once( dirname(__FILE__) .'/include/functions.php'); load_language('plugin.lang', OSM_PATH); global $conf; $linkname = isset($conf['osm_conf']['left_menu']['link']) ? $conf['osm_conf']['left_menu']['link'] : 'OS World Map'; $link_title = sprintf( l10n('displays %s on a map'), strip_tags($conf['gallery_title']) ); $block->data['osm'] = array( 'URL' => osm_make_map_index_url( array('section'=>'categories') ), 'TITLE' => $link_title, 'NAME' => $linkname, 'REL'=> 'rel=nofollow' ); } } function osm_strbool($value) { return $value ? 'true' : 'false'; } function imagery($bl, $style){ $return = ""; if ($bl == 'mapnik') $return = "OSM.org (CC BY-SA)"; else if($bl == 'mapnikfr') $return = "Openstreetmap.fr (CC BY-SA)"; else if($bl == 'mapnikde') $return = "Openstreetmap.de (CC BY-SA)"; else if($bl == 'cloudmade') $return = "Cloudmade (CC BY-SA)"; else if($bl == 'mapquest') $return = "Mapquest (CC BY-SA)"; else if($bl == 'custom') $return = $style; return $return; } ?>