Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
bibliossimo
opacce
Commits
b6ead2f1
Commit
b6ead2f1
authored
Jun 17, 2012
by
llaffont
Browse files
Amélioration compatibilità articles / bib num / diaporama
parent
eb2c51b2
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
3 deletions
+11
-3
library/ZendAfi/View/Helper/TagSlideshow.php
library/ZendAfi/View/Helper/TagSlideshow.php
+11
-3
No files found.
library/ZendAfi/View/Helper/TagSlideshow.php
View file @
b6ead2f1
...
...
@@ -30,7 +30,10 @@ class ZendAfi_View_Helper_TagSlideshow extends Zend_View_Helper_HtmlElement {
public
static
function
getTransitionDefinitions
()
{
return
array
(
'fade'
=>
'Transparence'
,
'shuffle'
=>
'Mélange'
,
'scrollHorz'
=>
'Défilement horizontal'
);
'scrollHorz'
=>
'Défilement horizontal'
,
'scrollVert'
=>
'Défilement vertical'
,
'curtainX'
=>
'Rideau horizontal'
,
'curtainY'
=>
'Rideau vertical'
);
}
...
...
@@ -70,7 +73,9 @@ class ZendAfi_View_Helper_TagSlideshow extends Zend_View_Helper_HtmlElement {
sprintf
(
'div.slideshow-%d .medias'
,
$this
->
_album
->
getId
()),
array
(
'width'
=>
$this
->
_preferences
[
'op_largeur_img'
],
'height'
=>
$this
->
_preferences
[
'op_hauteur_boite'
]));
'height'
=>
$this
->
_preferences
[
'op_hauteur_boite'
],
'fit'
=>
true
,
'aspect'
=>
true
));
}
...
...
@@ -80,7 +85,10 @@ class ZendAfi_View_Helper_TagSlideshow extends Zend_View_Helper_HtmlElement {
*/
public
function
renderSlideShowScriptsOn
(
$script_loader
,
$selector
,
$options
=
null
)
{
$cycle_options
=
array
(
'pause'
=>
1
,
'fx'
=>
'fade'
);
'fx'
=>
'fade'
,
'animIn'
=>
array
(
'opacity'
=>
1
),
'animOut'
=>
array
(
'opacity'
=>
0
),
);
if
(
array_isset
(
'op_transition'
,
$this
->
_preferences
)
&&
in_array
(
$this
->
_preferences
[
'op_transition'
],
array_keys
(
self
::
getTransitionDefinitions
())))
$cycle_options
[
'fx'
]
=
$this
->
_preferences
[
'op_transition'
];
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment