+ <?php if (isset($this->path)) { ?>
+ <div id="path-infos" class="menu-group">
+ <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" class="menu-item">
+
+ <section class="info-section">
+ <h1 id="path-directlink-title"><?php echo $this->translate("direct link")?></h1>
+ <?php
+ $urlcomp = urlencode($this->path->urlcomp ?: $this->path->id);
+ $href = $this->baseUrl() . '/idx/' . $urlcomp . '?format=raw';
+ printf('<a href="%s" title="%s">%s</a>',
+ $href,
+ $this->translate('direct link'),
+ $this->escape($href));
+ ?>
+ </section>
+
+ <section class="info-section">
+ <h1 id="path-export-title"><?php echo $this->translate("export")?></h1>
+ <?php
+ $fileName = $this->path->title ?: $this->path->id;
+ $href = $this->baseUrl() . '/geom/' . rawurlencode($fileName) . '.kml';
+ printf('<a href="%s" title="%s">%s</a>',
+ $href,
+ $this->translate('kml export'),
+ $this->translate('kml export'));
+
+ print '<br>';
+ $href = $this->baseUrl() . '/geom/' . rawurlencode($fileName) . '.gpx';
+ printf('<a href="%s" title="%s">%s</a>',
+ $href,
+ $this->translate('gpx export'),
+ $this->translate('gpx export'));
+ ?>
+ </section>
+
+ <?php if ($this->profileActive) { ?>
+ <section class="info-section">
+ <h1 id="path-profile-title"><?php echo $this->translate("altitude profile")?></h1>
+ <?php
+ $urlcomp = urlencode($this->path->urlcomp ?: $this->path->id);
+ $href = $this->baseUrl() . '/profile/' . $urlcomp . '.png';
+ $imgsrc = $this->addParamToUrl($href, 'size', 'small', true);
+ printf('<a href="%s"><img src="%s"></a>', $href, $imgsrc);
+ ?>
+ </section>
+ <?php }?>
+
+
+ </div>
+ </div>
+ <?php }?>
+