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
7c7ff3e7
Commit
7c7ff3e7
authored
Jul 05, 2012
by
llaffont
Browse files
Bib numérique, diaporama: si la vignette est en cache, renvoie l'URL apache directement
parent
254ce79e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
6 deletions
+14
-6
library/ZendAfi/View/Helper/TagSlideshow.php
library/ZendAfi/View/Helper/TagSlideshow.php
+14
-6
No files found.
library/ZendAfi/View/Helper/TagSlideshow.php
View file @
7c7ff3e7
...
...
@@ -156,12 +156,20 @@ class ZendAfi_View_Helper_TagSlideshow extends Zend_View_Helper_HtmlElement {
* @return string
*/
protected
function
_renderMedia
(
$media
)
{
$content
=
$this
->
view
->
tagImg
(
$this
->
view
->
url
(
array
(
'controller'
=>
'bib-numerique'
,
'action'
=>
'thumbnail'
,
'width'
=>
$media
->
getAlbum
()
->
getThumbnailWidth
(),
'id'
=>
$media
->
getId
()),
null
,
true
),
$params
=
array
(
'width'
=>
(
int
)
$media
->
getAlbum
()
->
getThumbnailWidth
(),
'id'
=>
(
int
)
$media
->
getId
());
if
(
$media
->
isThumbnailExistsForParams
(
$params
))
$url_media
=
$media
->
getThumbnailUrlForParams
(
$params
);
else
$url_media
=
$this
->
view
->
url
(
array
(
'controller'
=>
'bib-numerique'
,
'action'
=>
'thumbnail'
,
'width'
=>
$media
->
getAlbum
()
->
getThumbnailWidth
(),
'id'
=>
$media
->
getId
()),
null
,
true
);
$content
=
$this
->
view
->
tagImg
(
$url_media
,
array
(
'style'
=>
sprintf
(
'width: %spx'
,
$this
->
_preferences
[
'op_largeur_img'
]),
'title'
=>
htmlspecialchars
(
$media
->
getTitre
()),
...
...
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