<script type="text/javascript" src="fluidbook.js?junk=$junk"></script>\r
<script type="text/javascript">FB_DEFAULT_LANG='$lang';</script>\r
$redirectScript\r
- </head>\r
- <body style="background-color:#$bgcolor" onload="this.focus();">\r
- <div id="fluidbook">\r
- <div style="padding:20px;text-align:center;"><a href="http://get.adobe.com/flashplayer/" target="_blank"><img style="border:0;" src="$pathToGetflash" alt="" width="734" height="409" /></a></div>\r
- <div style="padding:20px;">$alt</div>\r
- </div>\r
+ $ga\r
<script type="text/javascript">\r
if(isMobile()){\r
$redirectMobile\r
swfobject.embedSWF("$pathToIndex?junk=$junk", "fluidbook", "100%", "100%", "$flashversion","", getFlashvars($junk), {"allowScriptAccess":"always","quality":"high","scale":"noscale","wmode":getWmode(),"allowFullScreen":"true"},{"bgcolor":"#$bgcolor"});\r
}\r
</script>\r
- $ga\r
+ </head>\r
+ <body style="background-color:#$bgcolor" onload="this.focus();">\r
+ <div id="fluidbook">\r
+ <div style="padding:20px;text-align:center;"><a href="http://get.adobe.com/flashplayer/" target="_blank"><img style="border:0;" src="$pathToGetflash" alt="" width="734" height="409" /></a></div>\r
+ <div style="padding:20px;">$alt</div>\r
+ </div>\r
</body>\r
</html>
\ No newline at end of file
$this->fields['stats'] = array('type' => 'boolean', 'default' => true, 'editable' => true, 'label' => __('Activer les statistiques Fluidbook'), 'grade' => 3);\r
$this->fields['stats_score'] = array('type' => 'boolean', 'default' => true, 'editable' => true, 'label' => __('Afficher les scores dans les rapports'), 'grade' => 5);\r
$this->fields['googleAnalytics'] = array('type' => 'text', 'default' => '', 'editable' => true, 'label' => __('Code Google Analytics'), 'size' => 10);\r
+ $this->fields['googleAnalyticsCustom'] = array('type' => 'textarea', 'default' => '', 'editable' => true, 'label' => __('Code Google Analytics personnalisé'));\r
$this->forms['stats'] = array('label' => __('Statistiques'),\r
- 'fieldsnames' => array('stats', 'stats_score', '|', 'googleAnalytics'));\r
+ 'fieldsnames' => array('stats', 'stats_score', '|', 'googleAnalytics','googleAnalyticsCustom'));\r
// .\r
$swfFilter = new stdClass();\r
$swfFilter->name = __('Animation SWF') . ' (*.swf)';\r
mkdir($this->vdir . '/pages/', 0777, true);\r
\r
$ga = '';\r
- if ($this->book->parametres->googleAnalytics != '') {\r
+ if ($this->book->parametres->googleAnalyticsCustom) {\r
+ $ga=$this->book->parametres->googleAnalyticsCustom;\r
+ } elseif ($this->book->parametres->googleAnalytics != '') {\r
$variables = array('Language' => array('value' => 'getLang()', 'valueAsJS' => true, 'scope' => 2));\r
$ga = cubePage::googleAnalytics(explode(',', $this->book->parametres->googleAnalytics), true, $variables);\r
}\r
$dest = realpath($dest);\r
$lines = array();\r
$lines[] = 'CACHE MANIFEST';\r
- $lines[] = '# '.date('Y-m-d H:i:s');\r
+ $lines[] = '# ' . date('Y-m-d H:i:s');\r
$lines[] = '';\r
$lines[] = 'CACHE:';\r
$lines[] = 'index.html';\r