Changeset 14181
- Timestamp:
- Apr 16, 2012, 5:16:27 AM (12 years ago)
- Location:
- extensions/rv_gmaps/trunk
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/rv_gmaps/trunk/main.inc.php
r13092 r14181 104 104 { 105 105 global $template; 106 $template->append('head_elements', '<meta name= "geo.position" content="'.$pictures['current']['lat'].';'.$pictures['current']['lon'].'">' );106 $template->append('head_elements', '<meta name=geo.position content='.$pictures['current']['lat'].';'.$pictures['current']['lon'].'>' ); 107 107 include_once( dirname(__FILE__) .'/include/functions.php'); 108 108 rvm_load_language(); -
extensions/rv_gmaps/trunk/map.php
r12719 r14181 15 15 $section = ''; 16 16 if ( $conf['question_mark_in_urls']==false and 17 17 isset($_SERVER["PATH_INFO"]) and !empty($_SERVER["PATH_INFO"]) ) 18 18 { 19 $section = $_SERVER["PATH_INFO"]; 20 $section = str_replace('//', '/', $section); 21 $path_count = count( explode('/', $section) ); 22 $page['root_path'] = PHPWG_ROOT_PATH.str_repeat('../', $path_count-1); 19 $section = $_SERVER["PATH_INFO"]; 20 $section = str_replace('//', '/', $section); 21 $path_count = count( explode('/', $section) ); 22 $page['root_path'] = PHPWG_ROOT_PATH.str_repeat('../', $path_count-1); 23 if ( strncmp($page['root_path'], './', 2) == 0 ) 24 { 25 $page['root_path'] = substr($page['root_path'], 2); 26 } 23 27 } 24 28 else 25 29 { 26 27 28 29 30 30 foreach ($_GET as $key=>$value) 31 { 32 if (!strlen($value)) $section=$key; 33 break; 34 } 31 35 } 32 36 -
extensions/rv_gmaps/trunk/map_data.php
r13092 r14181 91 91 rvo( '{' ); 92 92 93 rvo( "\ntitle: 93 rvo( "\ntitle:".jsgm_str( strip_tags(trigger_event('render_element_description', $page['title']) ) ) ); 94 94 rvo( ",\n" ); 95 95 96 rvo( "page_url: 96 rvo( "page_url:".jsgm_str( duplicate_index_url( array('start'=>0) ) ) ); 97 97 rvo( ",\n" ); 98 98 99 rvo( "blowup_url: 99 rvo( "blowup_url:".jsgm_str( rvm_duplicate_blowup_url( array('start'=>0) ) ) ); 100 100 rvo( ",\n" ); 101 101 102 rvo( "kml_url: 102 rvo( "kml_url:".jsgm_str( rvm_duplicate_kml_index_url( array('start'=>0, 'flat'=>1) ) ) ); 103 103 rvo( ",\n" ); 104 104 105 rvo( "nb_items: 105 rvo( "nb_items:".count($page['items']) ); 106 106 rvo( ",\n" ); 107 107 108 rvo( "bounds: 108 rvo( "bounds:" ); 109 109 if ( isset($cm) ) 110 110 rvo( jsgm_bounds( $cm->bounds ) ); … … 114 114 115 115 116 rvo( "\nnb_clusters: 116 rvo( "\nnb_clusters:".count($clusters) ); 117 117 rvo( "," ); 118 118 119 rvo( "\nimage_clusters: 119 rvo( "\nimage_clusters:[\n" ); 120 120 $i=0; 121 121 foreach( $clusters as $c ) … … 123 123 if ($i) rvo( ",\n\n" ); 124 124 rvo( "{" ); 125 rvo( 'position: 125 rvo( 'position:'. jsgm_position( bounds_center($c->bounds) ) ); 126 126 rvo( ",\n" ); 127 rvo( 'bounds: 127 rvo( 'bounds:'. jsgm_bounds( $c->bounds ) ); 128 128 rvo( ",\n" ); 129 rvo( 'nb_items: 129 rvo( 'nb_items:'.count($c->items) ); 130 130 rvo( ",\n" ); 131 131 132 rvo( 'blowup_url: 132 rvo( 'blowup_url:"'.rvm_duplicate_blowup_url(array('box'=>$c->bounds), array('start') ). '"' ); 133 133 rvo( ",\n" ); 134 134 … … 138 138 $c->items = array_slice($c->items, 0, $max_per_cluster); 139 139 } 140 rvo( 'items: 140 rvo( 'items:[' ); 141 141 for ($j=0; $j<count($c->items); $j++) 142 142 { … … 157 157 if ($j) rvo( "," ); 158 158 rvo( "{" ); 159 rvo( "tn: 160 rvo( ",name: 161 rvo( ",comment: 162 rvo( ",page_url: 159 rvo( "tn:".jsgm_str( get_thumbnail_url( $img ) ) ); 160 rvo( ",name:".jsgm_str( trigger_event('render_element_description', $title) ) ); 161 rvo( ",comment:".jsgm_str( trigger_event('render_element_description', $img['comment']) ) ); 162 rvo( ",page_url:".jsgm_str( $page_url ) ); 163 163 rvo( "}" ); 164 164 } -
extensions/rv_gmaps/trunk/mapl.php
r13092 r14181 128 128 $template->assign( 129 129 array( 130 'PLUGIN_ROOT_URL' => get_absolute_root_url( ).'plugins/'.$rvm_dir,130 'PLUGIN_ROOT_URL' => get_absolute_root_url(false).'plugins/'.$rvm_dir, 131 131 'TITLE' => $title, 132 132 'U_HOME' => make_index_url(), -
extensions/rv_gmaps/trunk/template/map.tpl
r12719 r14181 1 1 <!DOCTYPE html> 2 <html xmlns="http://www.w3.org/1999/xhtml" xmlns:v="urn:schemas-microsoft-com:vml">2 <html> 3 3 <head> 4 4 <meta http-equiv="content-type" content="text/html; charset={$CONTENT_ENCODING}" /> … … 8 8 9 9 <script src="http://maps.googleapis.com/maps/api/js?sensor=false&language={$lang_info.code}&libraries=places" type="text/javascript"></script> 10 11 {combine_script id='jquery' load='header' path='http://ajax.googleapis.com/ajax/libs/jquery/1.6.2/jquery.min.js'} 10 {combine_script id='jquery' load='header' path='http://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js'} 12 11 {combine_script id='jquery.nyroModal' load='async' path="`$PLUGIN_LOCATION`/template/nyroModal/jquery.nyroModal-1.6.2.js" version='1.6.2'} 13 12 {combine_css path="`$PLUGIN_LOCATION`/template/style.css" version=$RVM_PLUGIN_VERSION} 14 13 {combine_css path="`$PLUGIN_LOCATION`/template/nyroModal/nyroModal.css" version=$RVM_PLUGIN_VERSION} 15 16 14 {combine_script id='rvm.dl' load='header' path="`$PLUGIN_LOCATION`/template/data_loader.js" version=$RVM_PLUGIN_VERSION} 17 15 {combine_script id='rvm.dh' load='header' path="`$PLUGIN_LOCATION`/template/data_handler.js" version=$RVM_PLUGIN_VERSION} … … 19 17 {combine_script id='rvm.st' load='header' path="`$PLUGIN_LOCATION`/template/styler.js" version=$RVM_PLUGIN_VERSION} 20 18 {combine_script id='core.scripts' load='header' path='themes/default/js/scripts.js'} 21 22 19 {get_combined_css} 23 20 {get_combined_scripts load='header'} 24 25 <!--[if IE]>26 <style type="text/css">27 v\:* {ldelim}28 behavior:url(#default#VML);29 }30 </style>31 <![endif]-->32 21 <!--[if lt IE 7]> 33 22 <style type="text/css"> … … 35 24 </style> 36 25 <![endif]--> 37 38 39 26 40 27 <script type="text/javascript">{literal} … … 96 83 pwgPageLinker = new PageLinker(map, "aLinkToThisPage" ); 97 84 98 /*var pwgMarkerOptions = (function(){ {/literal}{$MAP_MARKER_ICON_JS}{literal} }).call(null);*/99 85 var pwgStyler = {/literal}{$MAP_MARKER_ICON_JS}{literal}; 100 86 101 87 map.pwgDataLoader = new PwgDataLoader(map, {rectangle_of_confusion: pwgStyler.roc} ); 102 88 google.maps.event.addListener(map.pwgDataLoader, "dataloading", function() { 103 var pre = '<img src="{/literal}{$PLUGIN_ROOT_URL}{literal}/icons/progress_s.gif" width="16" height="16" alt="~" /> ';89 var pre = '<img src="{/literal}{$PLUGIN_ROOT_URL}{literal}/icons/progress_s.gif" width="16" height="16" alt="~"> '; 104 90 document.getElementById("dataLoadStatus").innerHTML = pre + Localization.get("Loading"); 105 91 } … … 190 176 <div class="titlebar_links" > 191 177 <span id="dataLoadStatus"></span> 192 <a id="aKml" href="" type="application/vnd.google-earth.kml+xml" class="gmnoprint"><img src="http://maps.google.com/mapfiles/ms/view_as_kml.png" width="16" height="16" alt="kml" /> <span>KML</span></a>193 <a id="aLinkToThisPage" href="" class="gmnoprint"><img src="http://maps.google.com/mapfiles/bar_icon_link.gif" alt="<->" width="16" height="16" /> <span>{'Link to this page'|@translate}</span></a>178 <a id="aKml" href="" type="application/vnd.google-earth.kml+xml" class="gmnoprint"><img src="http://maps.google.com/mapfiles/ms/view_as_kml.png" width="16" height="16" alt="kml"> <span>KML</span></a> 179 <a id="aLinkToThisPage" href="" class="gmnoprint"><img src="http://maps.google.com/mapfiles/bar_icon_link.gif" alt="<->" width="16" height="16"> <span>{'Link to this page'|@translate}</span></a> 194 180 <a id="aBlowup" href="" onclick="return PwgDataHandler.blowupUrl(this.href);" class="gmnoprint" title="{'show all photos around this location'|@translate}"> 195 <img src="{$PLUGIN_ROOT_URL}/icons/pic_s.gif" alt="" title="{'show all photos around this location'|@translate}" />181 <img src="{$PLUGIN_ROOT_URL}/icons/pic_s.gif" alt="" title="{'show all photos around this location'|@translate}"> 196 182 <span>{'Show all'|@translate}</span> 197 183 </a> 198 184 <span class="gmnoprint"> 199 <input type="text" size="48" id="q" />185 <input type="text" size="48" id="q"> 200 186 </span> 201 187 </div> 202 188 <div class="titlebar_title"> 203 189 <a href="{$U_HOME}" class="gmnoprint">{'Home'|@translate}</a> 204 <a href="{$U_HOME_MAP}" title="{'displays all photos on a map'|@translate}"><img src="{$PLUGIN_ROOT_URL}/icons/map_sw.gif" width="32" height="17" alt="map" /></a>190 <a href="{$U_HOME_MAP}" title="{'displays all photos on a map'|@translate}"><img src="{$PLUGIN_ROOT_URL}/icons/map_sw.gif" width="32" height="17" alt="map"></a> 205 191 {'Viewing'|@translate}: <a id="aPageUrl" href=""></a> 206 192 </div> … … 208 194 209 195 <div id="map"> </div> 196 {get_combined_scripts load='footer'} 210 197 </body> 211 {get_combined_scripts load='footer'}212 198 </html> -
extensions/rv_gmaps/trunk/template/mapl.tpl
r13092 r14181 3 3 text-align: justify; 4 4 padding: 0; 5 margin: 0.5em 1em 0.5em 1em ;5 margin: 0.5em 1em 0.5em 1em 6 6 } 7 7 .fullTagCloud LI {ldelim} … … 10 10 {/html_style} 11 11 12 <div id="content" class="content" style="margin: 0;">12 <div id="content" class="content"> 13 13 <div class="titrePage"> 14 14 <ul class="categoryActions"> … … 30 30 <li>{strip} 31 31 <a target="_top" href="{$cat.URL}" class="{$cat.CLASS}" title="{$cat.TITLE}">{$cat.NAME}</a> 32 <a target="_top" href="{$cat.U_MAP}" title="{$pwg->sprintf($displays_x_on_a_map, $cat.NAME)}" ><img src="{$PLUGIN_ROOT_URL}/icons/map_s.png" alt="map" class="button" /></a>33 {/strip} </li> 32 <a target="_top" href="{$cat.U_MAP}" title="{$pwg->sprintf($displays_x_on_a_map, $cat.NAME)}" ><img src="{$PLUGIN_ROOT_URL}/icons/map_s.png" alt="map"></a> 33 {/strip} </li> 34 34 {/foreach} 35 35 </ul> … … 42 42 <li>{strip} 43 43 <a target="_top" href="{$tag.URL}" class="tagLevel{$tag.level}{$tag.radu_class|@default}" title="{$tag.TITLE}">{$tag.name}</a> 44 <a target="_top" href="{$tag.U_MAP}" title="{$pwg->sprintf($displays_x_on_a_map, $tag.name)}"><img src="{$PLUGIN_ROOT_URL}/icons/map_s.png" alt="map" class="button" /></a>45 {/strip} </li> 44 <a target="_top" href="{$tag.U_MAP}" title="{$pwg->sprintf($displays_x_on_a_map, $tag.name)}"><img src="{$PLUGIN_ROOT_URL}/icons/map_s.png" alt="map"></a> 45 {/strip} </li> 46 46 {/foreach} 47 47 </ul>
Note: See TracChangeset
for help on using the changeset viewer.