__('Version HTML5') => 'html5',\r
__("Version HTML5 en images") => 'html5-images')\r
);\r
+\r
+ $this->fields['mobileTransitions'] = array('type' => 'combo', 'default' => 'none', 'editable' => true, 'label' => __('Transitions entre les pages'), 'grade' => 5,\r
+ 'datas' => array(__('Aucune transition') => 'none',\r
+ __('Glisser') => 'slide',\r
+ __('Tourner') => 'flip')\r
+ );\r
+\r
$this->forms['mobile'] = array('label' => __('Version mobile'),\r
- 'fieldsnames' => array('mobileVersion'));\r
+ 'fieldsnames' => array('mobileVersion', 'mobileTransitions'));\r
\r
$this->fields['secureURL'] = array('type' => 'text', 'default' => 'http://', 'editable' => true, 'label' => __('URL de sécurisation'), 'grade' => 5, 'hint' => __('URL intérrogé pour vérifier si le visiteur à les droits pour consulter la publication'));\r
$this->fields['secureURLRedirect'] = array('type' => 'text', 'default' => 'http://', 'editable' => true, 'label' => __('Redirection'), 'grade' => 5, 'hint' => __("Si l'authentification échoue, redirection vers cette adresse"));\r
$this->forms['v1'] = array('label' => __('Options spécifiques au fluidbook version 1'),\r
'fieldsnames' => array('extras', 'v1SWF'));\r
\r
- $this->fields['disableDemo'] = array('type' => 'boolean', 'default' => false, 'editable' => true, 'label' => __('Désactiver le lien de démo'), 'grade' => 5);\r
- $this->fields['redirectDemo'] = array('type' => 'text', 'default' => '', 'editable' => true, 'label' => __('Rediriger le lien de démo vers'), 'grade' => 5);\r
+ $this->fields['disableDemo'] = array('type' => 'boolean', 'default' => false, 'editable' => true, 'label' => __('Désactiver le lien de démo'), 'grade' => 5);\r
+ $this->fields['redirectDemo'] = array('type' => 'text', 'default' => '', 'editable' => true, 'label' => __('Rediriger le lien de démo vers'), 'grade' => 5);\r
$this->forms['demo'] = array('label' => __('Lien de démo'),\r
'fieldsnames' => array('disableDemo', 'redirectDemo'));\r
}\r
'js/libs/fluidbook/fluidbook.service.js',
'js/libs/fluidbook/fluidbook.l10n.js',
'js/libs/fluidbook/fluidbook.nav.js',
+ 'js/libs/fluidbook/fluidbook.touch.js',
'js/libs/fluidbook/fluidbook.js',
'js/main.js');
protected static $testJsFiles = array(
$this->cssOneWidth = $this->width * $this->cssOneScale;
$this->cssOneHeight = $this->height * $this->cssOneScale;
-
- $this->cssSVGScale=0.75/2;
+
+ $this->cssSVGScale = 0.75 / 2;
$this->scale = 1;
if ($this->book->parametres->zoomMode == 1) {
$res[] = '.landscape #fluidbook{left:' . $offsetLeft2 . 'px;}';
$res[] = '.portrait #pages,.portrait .doublePage.page,.page,.portrait #shadow,#shadow.single,.page .links{width:' . $w . ';max-width:' . $w . ';height:' . $h . ';max-height:' . $h . '}';
$res[] = '.doublePage,#pages,.landscape #shadow.double{width:' . $w2 . ';max-width:' . $w2 . ';height:' . $h . ';max-height:' . $h . '}';
+ $res[] = '.landscape .doublePage.next{' . $this->writeCSSUA('transform', 'translate(' . $w2 . ',0)') . '}';
+ $res[] = '.landscape .doublePage.prev{' . $this->writeCSSUA('transform', 'translate(-' . $w2 . ',0)') . '}';
+ $res[] = '.portrait .doublePage.next{' . $this->writeCSSUA('transform', 'translate(' . $w . ',0)') . '}';
+ $res[] = '.portrait .doublePage.prev{' . $this->writeCSSUA('transform', 'translate(-' . $w . ',0)') . '}';
$res[] = '.landscape #shadow.single.right{left: ' . $w . ';}';
$res[] = '.landscape .page.right{left:' . $w . '}';
if ($this->theme->parametres->displayPageNumber) {