1 | <?xml version="1.0" encoding="{$CONTENT_ENCODING}"?> |
---|
2 | <kml xmlns="http://earth.google.com/kml/2.2"> |
---|
3 | <Document> |
---|
4 | <Style id="img_normal"> |
---|
5 | <IconStyle> |
---|
6 | <Icon><href>http://maps.google.com/mapfiles/kml/shapes/camera.png</href></Icon> |
---|
7 | <scale>1</scale> |
---|
8 | </IconStyle> |
---|
9 | </Style> |
---|
10 | <Style id="img_highlight"> |
---|
11 | <IconStyle> |
---|
12 | <Icon><href>http://maps.google.com/mapfiles/kml/shapes/camera.png</href></Icon> |
---|
13 | <scale>1</scale> |
---|
14 | </IconStyle> |
---|
15 | </Style> |
---|
16 | <StyleMap id="img"> |
---|
17 | <Pair> |
---|
18 | <key>normal</key><styleUrl>#img_normal</styleUrl> |
---|
19 | </Pair> |
---|
20 | <Pair> |
---|
21 | <key>highlight</key><styleUrl>#img_highlight</styleUrl> |
---|
22 | </Pair> |
---|
23 | </StyleMap> |
---|
24 | <name><![CDATA[{$PAGE_TITLE}]]></name> |
---|
25 | <description><![CDATA[{$NB_ITEMS_DESC|@default}<a href="{$U_INDEX}">{'Go to'|@translate} {$PAGE_TITLE}</a><br/>{$PAGE_COMMENT} |
---|
26 | ]]></description> |
---|
27 | {if not empty($region)} |
---|
28 | <Region> |
---|
29 | <LatLonAltBox> |
---|
30 | <north>{$region.n}</north> |
---|
31 | <south>{$region.s}</south> |
---|
32 | <east>{$region.e}</east> |
---|
33 | <west>{$region.w}</west> |
---|
34 | </LatLonAltBox> |
---|
35 | </Region> |
---|
36 | {/if} |
---|
37 | |
---|
38 | {if not empty($categories)} |
---|
39 | {foreach from=$categories item=category} |
---|
40 | <NetworkLink> |
---|
41 | <visibility>0</visibility> |
---|
42 | <name><![CDATA[{$category.NAME}]]></name> |
---|
43 | <description><![CDATA[{$category.COMMENT} |
---|
44 | {if not empty($category.TN_SRC)} |
---|
45 | <br/><img src="{$category.TN_SRC}" /> |
---|
46 | {/if} |
---|
47 | ]]></description> |
---|
48 | <Link> |
---|
49 | <href>{$category.U_KML}</href> |
---|
50 | </Link> |
---|
51 | {if not empty($category.region)} |
---|
52 | <Region> |
---|
53 | <LatLonAltBox> |
---|
54 | <north>{$category.region.n}</north> |
---|
55 | <south>{$category.region.s}</south> |
---|
56 | <east>{$category.region.e}</east> |
---|
57 | <west>{$category.region.w}</west> |
---|
58 | </LatLonAltBox> |
---|
59 | </Region> |
---|
60 | <TimeSpan> |
---|
61 | <begin>{$category.region.min_date}</begin> |
---|
62 | <end>{$category.region.max_date}</end> |
---|
63 | </TimeSpan> |
---|
64 | {/if} |
---|
65 | </NetworkLink> |
---|
66 | {/foreach} |
---|
67 | {/if} |
---|
68 | |
---|
69 | {if not empty($images)} |
---|
70 | {foreach from=$images item=img} |
---|
71 | <Placemark> |
---|
72 | <visibility>1</visibility> |
---|
73 | <open>1</open> |
---|
74 | <name><![CDATA[{$img.TITLE}]]></name> |
---|
75 | <Snippet>{$img.DESCRIPTION|@strip_tags:false|@truncate:80}</Snippet> |
---|
76 | <description><![CDATA[ |
---|
77 | {$img.DESCRIPTION}<br/> |
---|
78 | <a href="{$img.U_PAGE}"><img src="{$img.TN_SRC}"/></a><br/> |
---|
79 | ]]></description> |
---|
80 | <styleUrl>#img</styleUrl> |
---|
81 | <Point> |
---|
82 | <coordinates>{$img.LON},{$img.LAT},0</coordinates> |
---|
83 | </Point> |
---|
84 | {if not empty($img.date_creation)} |
---|
85 | <TimeStamp> |
---|
86 | <when>{$img.date_creation}</when> |
---|
87 | </TimeStamp> |
---|
88 | {/if} |
---|
89 | </Placemark> |
---|
90 | {/foreach} |
---|
91 | {/if} |
---|
92 | </Document> |
---|
93 | </kml> |
---|