Fix the carousel in the Story. Bug #10915
Add a template variables for the photoWidth from the Story's Archive. Document the new template variable, with i18n. Modify both Archive and Topic templates.
This commit is contained in:
parent
f484a344b3
commit
494d97c53f
6 changed files with 9 additions and 0 deletions
|
|
@ -14,6 +14,7 @@
|
|||
- fixed #10902: Shelf asset is whiny
|
||||
- fixed #10879: Collaboration System Thread lose attachments
|
||||
- fixed #10876: EMS Schedule displaying wrong dates for ticket events
|
||||
- fixed #10915: StoryManager: Carousel clips content
|
||||
|
||||
7.7.19
|
||||
- fixed #10838: Forwarded forum post email to new CS adds reply to original thread
|
||||
|
|
|
|||
Binary file not shown.
Binary file not shown.
|
|
@ -914,6 +914,7 @@ sub viewTemplateVariables {
|
|||
$var->{hasPhotos} = $photoCounter;
|
||||
$var->{singlePhoto} = $photoCounter == 1;
|
||||
$var->{canEdit} = $self->canEdit;
|
||||
$var->{photoWidth} = $archive->get('photoWidth');
|
||||
return $var;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -85,6 +85,7 @@ our $HELP = {
|
|||
},
|
||||
],
|
||||
},
|
||||
{ name => 'photoWidth', },
|
||||
{ name => 'hasPhotos', },
|
||||
{ name => 'singlePhoto', },
|
||||
{ name => 'photo_loop',
|
||||
|
|
|
|||
|
|
@ -418,6 +418,12 @@ our $I18N = {
|
|||
lastUpdated => 0,
|
||||
},
|
||||
|
||||
'photoWidth' => {
|
||||
message => q|The width of photos, set in the Story Archive for this Story.|,
|
||||
context => q|Template variable|,
|
||||
lastUpdated => 0,
|
||||
},
|
||||
|
||||
'hasPhoto' => {
|
||||
message => q|This template variable will be true if the a photo in the photo_loop has an image in it.|,
|
||||
context => q|Template variable|,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue