Changeset 29863 for extensions/rv_gmaps/trunk
- Timestamp:
- Oct 2, 2014, 9:49:30 PM (10 years ago)
- Location:
- extensions/rv_gmaps/trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/rv_gmaps/trunk/kml.php
r28598 r29863 164 164 $dataTpl->assign( 'region', $bounds ); 165 165 166 $dataTpl->smarty->registerPlugin( 'modifier', 'xmle', 'rvm_xmle'); 167 function rvm_xmle($s) { 168 if( strcspn($s, '&<') != strlen($s)) 169 return "<![CDATA[$s]]>"; 170 return $s; 171 } 172 166 173 /*header('Cache-Control: public' ); 167 174 header('Expires: '.gmdate('D, d M Y H:i:s', time()+600).' GMT'); -
extensions/rv_gmaps/trunk/template/earth_kml.tpl
r23083 r29863 72 72 <visibility>1</visibility> 73 73 <open>1</open> 74 <name> <![CDATA[{$img.TITLE}]]></name>75 <Snippet>{$img.DESCRIPTION|@strip_tags:false|@truncate:80 }</Snippet>74 <name>{$img.TITLE|xmle}</name> 75 <Snippet>{$img.DESCRIPTION|@strip_tags:false|@truncate:80|xmle}</Snippet> 76 76 <description><![CDATA[ 77 77 {$img.DESCRIPTION}<br/>
Note: See TracChangeset
for help on using the changeset viewer.