]> _ Git - cubeextranet.git/commitdiff
(no commit message)
authorvincent@cubedesigners.com <vincent@cubedesigners.com@f5622870-0f3c-0410-866d-9cb505b7a8ef>
Thu, 16 Dec 2010 15:17:01 +0000 (15:17 +0000)
committervincent@cubedesigners.com <vincent@cubedesigners.com@f5622870-0f3c-0410-866d-9cb505b7a8ef>
Thu, 16 Dec 2010 15:17:01 +0000 (15:17 +0000)
inc/ws/Controlleur/class.ws.url.php
inc/ws/Metier/class.ws.book.parametres.php

index f9c93616ec1f70f27d5618a58532f3eafceecd6c..5ceb91e275ba2b54c56538c1f3c176d785108d3e 100644 (file)
@@ -128,8 +128,8 @@ html{height:100%}' . "\n";
                global $meta;\r
 \r
                define('MINIMIZE_JS', false);\r
-               define('MINIMIZE_CSS',false);\r
-               define('JQUERY',false);\r
+               define('MINIMIZE_CSS', false);\r
+               define('JQUERY', false);\r
 \r
                $args = cubePage::getArgs($args);\r
 \r
@@ -155,14 +155,11 @@ html{height:100%}' . "\n";
                $webcompile = WEBROOT . '/fluidbook/compile/';\r
 \r
                $standard = 'XHTML 1.0 Transitional';\r
-               $css=$js=array();\r
+               $css = $js = array();\r
                $css[] = $webcompile . 'style.css';\r
-\r
                // $fv = array('base' => WEBROOT . '/fluidbook/books/final/' . $e[0]);\r
                $fv = array();\r
 \r
-\r
-\r
                cubePage::swfobject(2);\r
                cubePage::swfaddress();\r
                $js[] = $webcompile . 'fluidbook.js';\r
@@ -182,6 +179,14 @@ html{height:100%}' . "\n";
                $res .= '</head>';\r
                $res .= '<body>';\r
                $res .= cubeMedia::flash2($webcompile . 'index.swf?junk=' . TIME, '100%', '100%', $fv, 'fluidbook', '', 10, '#ffffff', '', true);\r
+\r
+               $gacodes = array(GA);\r
+               if ($book->parametres->googleAnalytics != '') {\r
+                       $gacodes[] = $book->parametres->googleAnalytics;\r
+               }\r
+\r
+               $res.=cubePage::googleAnalytics($gacodes,false);\r
+\r
                $res .= '</body>';\r
                $res .= '</html>';\r
 \r
index 49550537f917236c9e7276e1baf9fa970066af16..178c5d85efb142442848eb93c9e312e00b214236 100644 (file)
@@ -81,7 +81,7 @@ class wsBookParametres extends wsParametres {
                $this->fields['googleAnalytics'] = array('type' => 'text', 'default' => '', 'editable' => true, 'label' => __('Code Google Analytics'), 'size' => 10, 'extra' => true, 'grade' => 1);\r
                $this->fields['stats_score'] = array('type' => 'boolean', 'default' => true, 'editable' => true, 'label' => __('Affiche le score dans les statistiques'), 'extra' => false, 'grade' => 1);\r
                $this->forms['stats'] = array('label' => __('Statistiques'),\r
-                       'fieldsnames' => array('stats', 'statsWeborama'));\r
+                       'fieldsnames' => array('stats','googleAnalytics', 'statsWeborama'));\r
                // .\r
                $this->fields['displayChaptersAtStart'] = array('type' => 'boolean', 'default' => false, 'editable' => true, 'label' => __("Afficher le sommaire au chargement de la publication"), 'extra' => true, 'grade' => 4);\r
                $this->fields['chaptersPosition'] = array('type' => 'combo',\r