59 $this->Settings =
get_package_object(
'settings::package_settings' ,
'last' , __FILE__ );
60 $this->String =
get_package(
'string' ,
'last' , __FILE__ );
90 $PageJS =
get_package(
'page::page_js' ,
'last' , __FILE__ );
93 $PageJS->add_javascript(
"{http_host}/$Path/include/js/google_maps.js" );
95 $Key = $this->Settings->get_package_setting(
96 'maps::google_maps' ,
'1.0.0::1.0.0' ,
'cf_google_maps' ,
'google_maps_api_key'
99 $URL =
'http://maps.google.com/maps?file=api&v=2&sensor=true&key='.$Key;
100 $PageJS->add_javascript( $URL ,
false );
102 catch( Exception $e )
134 $Settings->set_undefined(
'id' , md5( microtime(
true ) ) );
135 $Settings->set_undefined(
'height' ,
'300px' );
136 $Settings->set_undefined(
'width' ,
'500px' );
137 $Settings->set_undefined(
'class' ,
'google_map' );
138 $Code = $this->CachedMultyFS->get_template( __FILE__ ,
'google_map_frame.tpl' );
139 return( $this->String->print_record( $Code ,
$Settings->get_raw_settings() ) );
141 catch( Exception $e )