To participate you must create an account on apostrophenow.org. If you have already done so, click Login.

Show
Ignore:
Timestamp:
04/30/10 13:00:41 (2 years ago)
Author:
dordille
Message:

Added support for setting max number of images used in post slots.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • plugins/apostropheBlogPlugin/trunk/modules/aBlog/templates/_singleColumnTemplate_slot.php

    r1102 r1104  
    33</div> 
    44 
     5<?php if($options['maxImages'] > 0): ?> 
    56<div class="a-blog-post-media"> 
    67<?php include_component('aSlideshowSlot', 'slideshow', array( 
    7   'items' => $aBlogPost->getMediaForArea('blog-body', 'image', 1), 
     8  'items' => $aBlogPost->getMediaForArea('blog-body', 'image', $options['maxImages']), 
    89  'id' => 'test', 
    910  'options' => $options['slideshowOptions'] 
    1011  )) ?> 
    1112</div> 
    12  
     13<?php endif ?>