]> _ Git - cubeextranet.git/commitdiff
(no commit message)
authorvincent@cubedesigners.com <vincent@cubedesigners.com@f5622870-0f3c-0410-866d-9cb505b7a8ef>
Wed, 18 Jul 2012 16:07:04 +0000 (16:07 +0000)
committervincent@cubedesigners.com <vincent@cubedesigners.com@f5622870-0f3c-0410-866d-9cb505b7a8ef>
Wed, 18 Jul 2012 16:07:04 +0000 (16:07 +0000)
inc/ws/Util/html5/class.ws.html5.compiler.php
inc/ws/Util/html5/class.ws.html5.links.php

index df634e2d554accc338f35bffd59e6996765b3324..5276feed10509d4de44ef0243e673db1b0cb2253 100644 (file)
@@ -234,6 +234,7 @@ class wsHTML5Compiler {
                $this->writeIndex($numCSS);
                $this->writeJs();
                $this->writeTexts();
+               $this->writeExtras();
                $this->writeCache();
        }
 
@@ -442,11 +443,17 @@ class wsHTML5Compiler {
                }
        }
 
+       protected function writeExtras(){
+               if($this->theme->parametres->afterSearch!=''){
+                       copy($this->themeRoot . '/' . $this->theme->parametres->afterSearch, $this->vdir . '/data/images/' . $this->theme->parametres->afterSearch);
+               }
+       }
+       
        protected function writeLinks() {
                global $core;
                $daoDoc = new wsDAODocument($core->con);
                $daoDoc->getLinksAndRulers($this->book_id, $links, $rulers);
-
+               
                $i = 0;
                $pages = array();
                $css = array();
@@ -462,10 +469,13 @@ class wsHTML5Compiler {
                        $css[] = $link->getCSSContainer();
                        $i++;
                }
+               
+               $allpages=range(0,$this->book->parametres->pages+1);
+               $allpages[]='aftersearch';
 
                $this->config->links = array();
 
-               for ($i = 0; $i <= $this->book->parametres->pages + 1; $i++) {
+               foreach ($allpages as $i) {
                        $c = '';
                        if (isset($pages[$i])) {
                                $c = $pages[$i];
index bef5f7780aba438d51f1a147c110b693a2d6e9c6..0dd717ac62dd3fed4a727d4d5ea9d112243885d9 100644 (file)
@@ -289,7 +289,7 @@ class webVideoLink extends videoLink {
 class actionLink extends internalLink {
 
        public function getURL() {
-               return '#' . $to;
+               return '#/' . $this->to;
        }
 
 }