From: vincent@cubedesigners.com Date: Fri, 28 Sep 2012 14:51:01 +0000 (+0000) Subject: (no commit message) X-Git-Url: http://git.cubedesigners.com/?a=commitdiff_plain;h=205d75eb3d969b0532505446f1481c1e4279b06c;p=cubeextranet.git --- diff --git a/fluidbook/icones/1/mobile/nav-archives.svg b/fluidbook/icones/1/mobile/nav-archives.svg new file mode 100644 index 000000000..e27a85544 --- /dev/null +++ b/fluidbook/icones/1/mobile/nav-archives.svg @@ -0,0 +1,14 @@ + + + + + + + + + + + \ No newline at end of file diff --git a/inc/ws/Metier/class.ws.book.parametres.php b/inc/ws/Metier/class.ws.book.parametres.php index 95bca2d50..e86eee388 100644 --- a/inc/ws/Metier/class.ws.book.parametres.php +++ b/inc/ws/Metier/class.ws.book.parametres.php @@ -206,9 +206,11 @@ class wsBookParametres extends wsParametres { //. $this->fields['externalArchives'] = array('type' => 'freefile', 'default' => '', 'editable' => true, 'label' => __('Archives'), 'grade' => 3, 'fileFilter' => $swfFilter); + $this->fields['archivesLink'] = array('type' => 'text', 'default' => '', 'editable' => true, 'label' => __('Lien'), 'grade' => 5); + $this->fields['archivesLabel'] = array('type' => 'text', 'default' => '', 'editable' => true, 'label' => __('Label'), 'grade' => 5); $this->forms['archives'] = array('label' => __('Archives'), - 'fieldsnames' => array('externalArchives')); + 'fieldsnames' => array('externalArchives', '|', 'archivesLink', 'archivesLabel')); // . $this->fields['basket'] = array('type' => 'boolean', 'default' => false, 'editable' => true, 'label' => __('Panier activé'), 'grade' => 5); $this->fields['basketManager'] = array('type' => 'combo', 'default' => 'classic', 'editable' => true, 'label' => __("Manager de panier"), diff --git a/inc/ws/Util/html5/class.ws.html5.compiler.php b/inc/ws/Util/html5/class.ws.html5.compiler.php index 9ee739f74..3a52bbc9c 100644 --- a/inc/ws/Util/html5/class.ws.html5.compiler.php +++ b/inc/ws/Util/html5/class.ws.html5.compiler.php @@ -456,6 +456,7 @@ class wsHTML5Compiler { $i = 0; $pages = array(); + $cpages = array(); $css = array(); foreach ($links as $linkData) { $link = wsHTML5Link::getInstance($this->base62($i), $linkData, $this); @@ -467,8 +468,13 @@ class wsHTML5Compiler { $css[] = $link->getCSSContainer(); if (!isset($pages[$link->page])) { $pages[$link->page] = ''; + $cpages[$link->page] = ''; + } + if ($link instanceof contentLink) { + $cpages[$link->page].=$c; + } else { + $pages[$link->page].=$c; } - $pages[$link->page].=$c; $i++; } @@ -479,10 +485,15 @@ class wsHTML5Compiler { foreach ($allpages as $i) { $c = ''; + $cc = ''; if (isset($pages[$i])) { $c = $pages[$i]; } + if (isset($cpages[$i])) { + $cc = $cpages[$i]; + } $this->config->links[$i] = $c; + $this->config->clinks[$i] = $cc; } return $css; } @@ -572,7 +583,7 @@ class wsHTML5Compiler { // Set the icon list with the color $icons = array('nav-bookmark' => $couleurI, 'nav-friend' => $couleurI, 'nav-help' => $couleurI, 'nav-index' => $couleurI, 'nav-sommaire' => $couleurI, 'next' => $arrowsColor, 'previous' => $arrowsColor, 'search' => $couleurI, 'nav-facebook' => $couleurI, 'nav-twitter' => $couleurI, - 'help-fingers' => $couleurI, 'help-mouse' => $couleurI, 'nav-home' => $couleurI); + 'help-fingers' => $couleurI, 'help-mouse' => $couleurI, 'nav-home' => $couleurI,'nav-archives'=>$couleurI); foreach ($icons as $icon => $color) { wsTools::colorizeAndRasterizeIcon($this->theme->parametres->iconSet, $icon, $color, $this->vdir . '/data/images/', 4, $w, $h); diff --git a/inc/ws/Util/html5/class.ws.html5.links.php b/inc/ws/Util/html5/class.ws.html5.links.php index 44a551749..7a270c03f 100644 --- a/inc/ws/Util/html5/class.ws.html5.links.php +++ b/inc/ws/Util/html5/class.ws.html5.links.php @@ -103,7 +103,8 @@ class wsHTML5Link { public function getCSSContainer() { - if ($this->page % 2 == 1) { + + if (!($this instanceof contentLink) && $this->page % 2 == 1) { $this->page--; $this->left+=$this->compiler->width; }