Changeset 17468 for extensions/rv_gmaps/trunk/map_data.php
- Timestamp:
- Aug 7, 2012, 8:59:45 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/rv_gmaps/trunk/map_data.php
r14181 r17468 119 119 rvo( "\nimage_clusters:[\n" ); 120 120 $i=0; 121 $thumb_params = ImageStdParams::get_by_type(IMG_THUMB); 121 122 foreach( $clusters as $c ) 122 123 { … … 143 144 $img = $page['items'] [ $c->items[$j] ]; 144 145 $img['file'] = basename( $img['path'] ); 145 if (!empty( $img['name'] ) )146 $title = $img['name'];147 else148 $title = str_replace('_', ' ', get_filename_wo_extension($img['file']));149 146 150 147 $params = array( … … 157 154 if ($j) rvo( "," ); 158 155 rvo( "{" ); 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']) ) );156 rvo( "tn:".jsgm_str( DerivativeImage::url( $thumb_params,$img ) ) ); 157 rvo( ",name:".jsgm_str( render_element_name($img) ) ); 158 rvo( ",comment:".jsgm_str( render_element_description($img) ) ); 162 159 rvo( ",page_url:".jsgm_str( $page_url ) ); 163 160 rvo( "}" );
Note: See TracChangeset
for help on using the changeset viewer.