$res .= commonPage::bf();\r
\r
$res .= commonPage::bh();\r
- $res .= cubeLang::translationForm(array(__('Version Flash') => PLAYER_SOURCES, __('Version HTML5') => WS_COMPILE_ASSETS . '/_html5', __('Application') => WS_COMPILE_ASSETS . '/_html5app'), $lang_id, null, 'liste', array(), '<a href="#" class="submit">' . $core->typo->Ajouter(__('Enregistrer')) . '</a>', $lang->traductions);\r
+ $res .= cubeLang::translationForm(array(__('Version Flash') => PLAYER_SOURCES, __('Version HTML5') => WS_COMPILE_ASSETS . '/_html5', __('Compilateur HTML5') => ROOT . '/inc/ws/Util/html5', __('Application') => WS_COMPILE_ASSETS . '/_html5app'), $lang_id, null, 'liste', array(), '<a href="#" class="submit">' . $core->typo->Ajouter(__('Enregistrer')) . '</a>', $lang->traductions);\r
$res .= commonPage::bf();\r
$res .= '</form>';\r
return $res;\r
public static function linksToExcel($links, $rulers, $pages = null) {
$cols = array(
- 'page' => __('Page de la publication'), 'left' => __('x'), 'top' => __('y'), 'width' => __('Largeur'), 'height' => __('Hauteur'),
+ 'page' => __('Page de la publication'), 'left' => __('x'), 'top' => __('y'), 'width' => __('Largeur'), 'height' => __('Hauteur'), 'rot' => __('Rotation'),
'type' => __('Type'), 'to' => __('Destination'), 'target' => __('Cible'),
'infobulle' => __('Infobulle'), 'numerotation' => __('Numérotation'),
'display_area' => __('Activer la surbrillance'),
$link = (array) $link;
$link['page'] = $p;
$link['id'] = $i;
+ if (!isset($link['rot'])) {
+ $link['rot'] = 0;
+ }
$links[] = $link;
}
}
return new wsHTML5Compiler($book_id, 'stable', $phonegap, $phonegapVersion, $dir, $standalone, $appcache, $home);
} else {
return new wsHTML5CompilerDev($book_id, 'dev', $phonegap, $phonegapVersion, $dir, $standalone, $appcache, $home);
- }
- }
+ }
+ }
protected static $resolutions = array(150, 300);
protected $maxRes = 300;
$cache = '';
if ($this->appcache) {
$cache = ' manifest="cache.appcache"';
- }
-
- $script = '';
- if ($this->phonegap) {
- //$script .= '<script type="text/javascript" charset="utf-8" src="data/cordova.js"></script>' . "\n";
}
+
+ $script = '';
$script .= '<script type="text/javascript" charset="utf-8" src="data/datas.js"></script>' . "\n";
$script .= '<script type="text/javascript" charset="utf-8" src="data/fluidbook.js"></script>' . "\n";
$script .= '<script type="text/javascript" charset="utf-8" src="data/search.js"></script>' . "\n";
}
$print = $this->writePrint();
+ $message = sprintf($this->__('Your browser is not up to date and is not able to run this publication. %sLearn more%s'), '<a href="http://www.whatbrowser.org/intl/' . $this->config->defaultLang . '/" target="_blank">', '</a>');
$splash = '';
if ($this->theme->parametres->logoLoader) {
}
}
- $vars = array('titre', 'credits', 'ga', 'style', 'script', 'pagesContents', 'description', 'print', 'hiddenContents', 'splash', 'cache', 'bgcolor');
+ $vars = array('titre', 'credits', 'ga', 'style', 'script', 'pagesContents', 'description', 'print', 'hiddenContents', 'splash', 'cache', 'bgcolor', 'message');
foreach ($vars as $v) {
$html = str_replace('<!-- $' . $v . ' -->', $$v, $html);
}
$scripts = array();
- //$scripts[] = '<script type="text/javascript" charset="utf-8" src="http://argo.fluidbook.com:8234/target/target-script-min.js#fb_html5_' . $this->book_id . '"></script>';
foreach ($this->debugJsFiles as $js) {
$scripts[] = '<script type="text/javascript" charset="utf-8" src="' . $js . '"></script>';
}
$thtml = $uhtml;
- $vars = array('titre', 'credits', 'ga', 'style', 'script', 'pagesContents', 'print', 'hiddenContents', 'splash', 'cache', 'bgcolor');
+ $vars = array('titre', 'credits', 'ga', 'style', 'script', 'pagesContents', 'print', 'hiddenContents', 'splash', 'cache', 'bgcolor', 'message');
foreach ($vars as $v) {
$uhtml = str_replace('<!-- $' . $v . ' -->', $$v, $uhtml);
}
$script.="\n\t\t" . '<script type="text/javascript" charset="utf-8">window.tester = true;</script>';
- $vars = array('titre', 'credits', 'ga', 'style', 'script', 'print', 'hiddenContents', 'splash');
+ $vars = array('titre', 'credits', 'ga', 'style', 'script', 'print', 'hiddenContents', 'splash', 'message');
foreach ($vars as $v) {
$thtml = str_replace('<!-- $' . $v . ' -->', $$v, $thtml);
}
$this->config->filesInfos[$key] = $infos;
}
+ protected function __($str) {
+ if (isset($this->config->l10n['default']->$str)) {
+ return $this->config->l10n['default']->$str;
+ } else {
+ return $str;
+ }
+ }
+
protected function writeLangs() {
global $core;
$daoLang = new wsDAOLang($core->con);
public $display_area;
public $infobulle;
public $id;
+ public $rot;
/**
*
$css = '#l_' . $this->id . '{';
$css.='left:' . $this->left * $this->getCssScale() . 'px;top:' . $this->top * $this->getCssScale() . 'px;';
$css.='width:' . $this->width * $this->getCssScale() . 'px;height:' . $this->height * $this->getCssScale() . 'px;';
+ if ($this->rot) {
+ $css.= wsHTML5Compiler::writeCSSUA('transform', 'rotate(' . $this->rot . 'deg)');
+ $css.= wsHTML5Compiler::writeCSSUA('transform-origin', '0% 0%');
+ }
$css.=$this->getCSS();
$css.='}';
return $css;
$css = '#l_' . $this->id . '{';
$css.='left:' . $this->left * $this->getCssScale() . 'px;top:' . $this->top * $this->getCssScale() . 'px;';
$css.='width:' . $this->width * $this->getCssScale() . 'px;height:' . $this->height * $this->getCssScale() . 'px;';
+ if ($this->rot) {
+ $css.= wsHTML5Compiler::writeCSSUA('transform', 'rotate(' . $this->rot . 'deg)');
+ $css.= wsHTML5Compiler::writeCSSUA('transform-origin', '0% 0%');
+ }
$css.=$this->getCSS();
$css.='}';
return $css;