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
$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
$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
$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