X-Git-Url: https://dev.renevier.net/gitweb.cgi?a=blobdiff_plain;f=application%2Fcontrollers%2FIdxController.php;h=c53b11b2146320b626aec2bc67e4e7314f1970f0;hb=7c71e5ae2f7a51fe5437334fd3c24f5cb7c226c1;hp=4f5fedd80c6e838be35724b8f6e265adfbcd7256;hpb=3f23e76d2aec02c5cc4f7a403bbc7d17a000c416;p=syj.git diff --git a/application/controllers/IdxController.php b/application/controllers/IdxController.php index 4f5fedd..c53b11b 100644 --- a/application/controllers/IdxController.php +++ b/application/controllers/IdxController.php @@ -6,24 +6,18 @@ class IdxController extends Zend_Controller_Action { public function init() { - $this->view->headScript()->appendFile('js/OpenLayers.js'); - $this->view->headScript()->appendFile('js/ModifiablePath.js'); - $this->view->headScript()->appendFile('js/prototype.js'); - $this->view->headScript()->appendFile('js/simplebox.js'); - $this->view->headScript()->appendFile('js/utils.js'); - $this->view->headScript()->appendFile('js/syj.js'); - $this->view->headLink()->appendStylesheet('css/openlayers/style.css', "all"); + $this->_helper->SyjMedias->addScripts('idx'); + $this->view->headLink()->appendStylesheet('css/olstyle.css', "all"); $this->view->headLink()->appendStylesheet('css/generic.css', "all"); $this->view->headLink()->appendStylesheet('css/syj.css', "all"); } public function rawmode(Syj_Model_Path $path) { $this->_helper->SyjReset->resetPlaceHolders(); + $this->_helper->SyjMedias->addScripts('rawidx'); $this->view->headLink()->appendStylesheet('css/generic.css', 'all'); $this->view->headLink()->appendStylesheet('css/syjraw.css', 'all'); - $this->view->headScript()->appendFile('js/OpenLayers.js'); - $this->view->headScript()->appendFile('js/syjraw.js'); $this->view->headTitle($path->displayTitle); $this->_jsRawLocaleStrings(); @@ -84,6 +78,7 @@ class IdxController extends Zend_Controller_Action $this->view->translate('route by %s', (string)$path->creator->pseudo); } $this->view->headTitle($title); + $this->view->headMeta()->appendName('description', $this->view->translate('website to share routes')); $this->view->geomform = $geomform; $this->view->loginform = $loginform; $this->view->userform = $userform;