Page 1 of 1

Double css class declaration in index.image.phtml

Posted: 14 Jun 2013, 12:35
by virtualsof
Just to point out a small error at linde 52 to 59 of index.image.phtml file :
Code
<img class="single_image" id="<?php echo htmlspecialchars($fotomotoId); ?>"
src="<?php echo htmlspecialchars($this->file->getPath()); ?>"
alt="<?php echo htmlspecialchars(t($conf->get('/config/imagevue/settings/autoTitling') ? $this->file->getTitle() : $this->file->title)); ?>"
width="<?php echo htmlspecialchars($this->file->width); ?>"
height="<?php echo htmlspecialchars($this->file->height); ?>"
style="background: #<?php echo ivPool::get('conf')->get('/config/imagevue/thumbnails/thumbnail/backgroundColor')?>"
class="<?php echo ($this->file->width > $this->file->height)?'horizontal':'vertical' ?>"
/>
Maybe this form should be better :
Code
<img id="<?php echo htmlspecialchars($fotomotoId); ?>"
src="<?php echo htmlspecialchars($this->file->getPath()); ?>"
alt="<?php echo htmlspecialchars(t($conf->get('/config/imagevue/settings/autoTitling') ? $this->file->getTitle() : $this->file->title)); ?>"
width="<?php echo htmlspecialchars($this->file->width); ?>"
height="<?php echo htmlspecialchars($this->file->height); ?>"
style="background: #<?php echo ivPool::get('conf')->get('/config/imagevue/thumbnails/thumbnail/backgroundColor')?>"
class="single_image<?php echo ($this->file->width > $this->file->height)?' horizontal':' vertical' ?>"
/>

Re: Double css class declaration in index.image.phtml

Posted: 15 Jun 2013, 06:58
by Nick
Good one, thanks!

This is fixed in Imagevue 2.8.10.2 released just now.