public function indexAction() {
$this->view->headLink()->appendStylesheet('css/generic.css');
$this->view->headLink()->appendStylesheet('css/termsofuse.css');
- $this->view->headScript()->appendFile('js/prototype.js');
- $this->view->headScript()->appendFile('js/termsofuse.js');
$this->view->headTitle($this->view->translate("terms of use"));
+ $this->view->rawmode = ($this->getRequest()->getQuery('format') == 'raw');
}
}
));
$translator = $this->getTranslator();
- $anchor = $this->getView()->Anchor("termsofuse", $translator->translate("terms of use"), array('id' => 'geom_termsofuse_anchor'));
+ $anchor = $this->getView()->Anchor("termsofuse?format=raw",
+ $translator->translate("terms of use"),
+ array('id' => 'geom_termsofuse_anchor'));
$text = $translator->translate("I've read and accepted %s");
$text = vsprintf($text, $anchor);
$touaccept = array('Checkbox', 'geom_accept', array("label" => $text,
$this->setMainElements(array($name, $pass, $pass_confirm, $email));
- $anchor = $this->getView()->Anchor("termsofuse", $translator->translate("terms of use"), array('id' => 'user_termsofuse_anchor'));
+ $anchor = $this->getView()->Anchor("termsofuse?format=raw",
+ $translator->translate("terms of use"),
+ array('id' => 'user_termsofuse_anchor'));
$text = $translator->translate("I've read and accepted %s");
$text = vsprintf($text, $anchor);
$this->addElement('Checkbox', 'user_accept', array("label" => $text,
-<?php echo $this->localeSwitcher(); ?>
+<?php if (!$this->rawmode) {
+ echo $this->localeSwitcher();
+}?>
<p><?php
echo $this->translate('Show Your Journey is a site whose goal is to allow anyone to publish routes, for example, hiking itinerary, bicycle trip, travel itinerary or whatever.');
?></p>
+++ /dev/null
-/* This file is part of Syj, Copyright (c) 2010 Arnaud Renevier,
- and is published under the AGPL license. */
-document.observe("dom:loaded", function() {
- if (window.top !== window) {
- $("other-language").hide();
- $("footer").hide();
- }
-});