Changeset 4521
- Timestamp:
- 01/27/12 10:43:24 (4 months ago)
- Location:
- plugins/apostrophePlugin/branches/1.5
- Files:
-
- 2 modified
-
lib/action/BaseaSlideshowSlotComponents.class.php (modified) (1 diff)
-
modules/aSlideshowSlot/templates/_slideshow.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
plugins/apostrophePlugin/branches/1.5/lib/action/BaseaSlideshowSlotComponents.class.php
r4520 r4521 81 81 $this->options['uncropped'] = $this->getOption('uncropped', false); 82 82 83 // Crossfade doesn't work well without a height unless you do special gymnastics. The simple84 // workaround is to specify maxHeight as a fallback85 if (($this->options['transition'] === 'crossfade') && ($this->options['height'] === false) && ($this->options['maxHeight'] !== false))86 {87 $this->options['height'] = $this->options['maxHeight'];88 }89 90 83 // We automatically set up the aspect ratio if the resizeType is set to 'c' 91 84 $constraints = $this->getOption('constraints', array()); -
plugins/apostrophePlugin/branches/1.5/modules/aSlideshowSlot/templates/_slideshow.php
r4381 r4521 12 12 13 13 <?php if (count($items)): ?> 14 <ul id="a-slideshow-<?php echo $id ?>" class="a-slideshow clearfix <?php echo (count($items === 1) ? 'single-image' : 'multi-image') ?> transition-<?php echo $options['transition'] ?>"<?php echo ($options['transition'] == 'crossfade')? ' style="height:'.$options['height'].'px; width:'.$options['width'].'px;"':'' ?>> 14 <?php // Crossfade doesn't work well without a height unless you do special gymnastics. The simple ?> 15 <?php // workaround is to specify maxHeight as a fallback ?> 16 17 <ul id="a-slideshow-<?php echo $id ?>" class="a-slideshow clearfix <?php echo (count($items === 1) ? 'single-image' : 'multi-image') ?> transition-<?php echo $options['transition'] ?>"<?php echo ($options['transition'] == 'crossfade')? ' style="height:'.($options['height'] ? $options['height'] : ($options['maxHeight'] ? $options['maxHeight'] : 0)) . 'px; width:'.$options['width'].'px;"':'' ?>> 15 18 <?php $first = true; $n=0; foreach ($items as $item): ?> 16 19 <?php $dimensions = aDimensions::constrain(

