Development

Changeset 16906

You must first sign up to be able to contribute.

Changeset 16906

Show
Ignore:
Timestamp:
04/02/09 16:21:39 (4 years ago)
Author:
johnnyoffline
Message:

Remove slideshow controls if there is only a single image

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • plugins/pkMediaCMSSlotsPlugin/trunk/modules/pkContextCMSSlideshow/templates/_normalView.php

    r16892 r16906  
    4444</ul> 
    4545 
     46<?php if (count($items) > 1): ?> 
    4647<script type='text/javascript'> 
    4748$(function() { 
     
    5152     
    5253  $('.pk-context-media-show li.pk-context-media-show-item').click(function() { 
     54     
     55    $(this).attr('title','Click For Next Image &rarr;'); 
     56     
    5357    if (position <= img_count) 
    5458    { 
     
    5660      if (position == img_count+1 ) { position = 0; } 
    5761      $('.pk-context-media-show-item').hide(); 
    58       $('#pk-context-media-show-item-'+position).fadeIn('slow');      
     62      $('#pk-context-media-show-item-'+position).fadeIn('slow');   
    5963    } 
    6064  }); 
     
    8488}); 
    8589</script> 
     90<?php endif ?>