]> dev.renevier.net Git - syj.git/blobdiff - application/views/scripts/idx/index.phtml
fixes welcome popup wording (bis)
[syj.git] / application / views / scripts / idx / index.phtml
index 37d4fca509cf9758df8d3cbc8dfab31dcbd8505f..a98f1d2137f5b41733468bd5e4cbfb72627ad310 100644 (file)
 <?php if (!$this->path and !$this->loggedUser) {?>
 <?php echo $this->translate('Welcome on Syj.')?>
 <br/>
-<?php echo $this->translate('To create a journey, just click on the map to add points to your route. You can zoom and move map with controls upper left.')?>
+<?php echo $this->translate('To create a journey, just press <strong>"start a route"</strong> button, then click on the map to add points to your route. You can zoom and move the map with the controls in the top left corner')?>
 <br/>
-<?php echo $this->translate('When you have finished a path, press "save", button.')?>
+<?php echo $this->translate('When you have finished a path, press "create", button.')?>
 <?php }?>
 </div>
 
 
 <div id="path-length" class="menu-group">
-    <div id="path-length-title"><?php echo $this->translate('route length')?></div>
+    <div id="path-length-title" class="info-title"><?php echo $this->translate('route length')?></div>
     <div id="path-length-content">
     </div>
 </div>
             <div class="menu-item">
                 <div id="path-infos-toggler"><a href="" id="path-infos-anchor"><?php echo $this->translate("route infos")?></a></div>
              </div>
-                <div id="path-infos-content">
+                <div id="path-infos-content" class="menu-item">
+
+                    <div id="path-directlink-title" class="info-title"><?php echo $this->translate("direct link")?></div>
+                    <div id="path-directlink-content"><?php
+                            $serverUrl = rtrim($this->serverUrl(), '/');
+                            $baseUrl = trim($this->baseUrl(), '/');
+                            $fullBaseUrl = $serverUrl . '/' . ($baseUrl ? ($baseUrl . '/'): '');
+                            $urlcomp = urlencode($this->path->urlcomp ?: $this->path->id);
+                            $href = $fullBaseUrl . 'idx/' . $urlcomp . '?format=raw';
+                            printf('<a href="%s" title="%s">%s</a>',
+                                        $href,
+                                        $this->translate('direct link'),
+                                        $this->escape($href));
+                        ?></div>
+
+                    <div id="path-export-title" class="info-title"><?php echo $this->translate("export")?></div>
+                    <div id="path-export-content"><?php
+                       $href = $fullBaseUrl . 'geom/' . urlencode($this->path->id) . '.kml';
+                       printf('<a href="%s" title="%s">%s</a>',
+                                        $href,
+                                        $this->translate('kml export'),
+                                        $this->translate('kml export'));
+
+                        print '<br>';
+                       $href = $fullBaseUrl . 'geom/' . urlencode($this->path->id) . '.gpx';
+                       printf('<a href="%s" title="%s">%s</a>',
+                                        $href,
+                                        $this->translate('gpx export'),
+                                        $this->translate('gpx export'));
+                       ?>
+
+
                 </div>
             </div>
         </div>