]> _ Git - cubeextranet.git/commitdiff
wip #768 @0.5
authorvincent@cubedesigners.com <vincent@cubedesigners.com@f5622870-0f3c-0410-866d-9cb505b7a8ef>
Tue, 4 Oct 2016 10:14:15 +0000 (10:14 +0000)
committervincent@cubedesigners.com <vincent@cubedesigners.com@f5622870-0f3c-0410-866d-9cb505b7a8ef>
Tue, 4 Oct 2016 10:14:15 +0000 (10:14 +0000)
inc/ws/Controlleur/class.ws.services.php
inc/ws/Util/html5/class.ws.html5.links.php

index e803b072a6720f6e43c49b9134dccf4fb4a894e8..f8b3a3a4ce29c2636237e7627d0ce90bf08104fa 100644 (file)
@@ -743,7 +743,7 @@ class wsServices extends cubeFlashGateway {
 
                $r = $core->con->select('SELECT url FROM flfref WHERE ref="' . $core->con->escape($this->args['ref']) . '"');
                if ($r->count()) {
-                       header('Location: http://www.flf.fr' . $r->url . '?tkpub=ecatalogue-general-2017');
+                       header('Location: http://www.flf.fr' . $r->url . '?tkpub=ecata-general&tkcmpg=2017');
                        exit;
                }
                $q = 'site:http://www.flf.fr/formation-professionnelle/ "Code stage : ' . $this->args['ref'] . '"';
index 5beea33366e773b6eedf464f2d12e7b4f562392d..e4523f37e0601a4b9bf4caddd35f7bcc70b7064c 100644 (file)
@@ -183,7 +183,11 @@ class wsHTML5Link {
        }
 
        public function getHTMLContainerClass() {
-               return 'link';
+               $res = 'link';
+               if ($this->page % 2 == 1) {
+                       $res .= ' odd';
+               }
+               return $res;
        }
 
        public function getHTMLContent() {
@@ -331,7 +335,7 @@ class tooltipLink extends normalLink {
 class htmlMultimediaImage extends wsHTML5Link {
 
        public function getHTMLContainerClass() {
-               return 'link multimedia';
+               return parent::getHTMLContainerClass() . ' multimedia';
        }
 
        public function getHTMLContent() {
@@ -381,7 +385,7 @@ class htmlMultimediaPopupImage extends normalLink {
 class contentLink extends wsHTML5Link {
 
        public function getHTMLContainerClass() {
-               return 'link contentLink';
+               return parent::getHTMLContainerClass() . ' contentLink';
        }
 
 }
@@ -740,7 +744,7 @@ class htmlMultimediaLink extends wsHTML5Link {
        }
 
        public function getHTMLContainerClass() {
-               $res = 'link multimedia';
+               $res = parent::getHTMLContainerClass() . ' multimedia';
                if (!$this->interactive) {
                        $res .= ' notinteractive';
                }