Index: views-rotator.js ========================================================= --- views-rotator.js (revision 1.6) +++ views-rotator.js Fri Feb 20 18:44:09 EST 2009 @@ -25,6 +25,23 @@ $(settings.next).removeClass('views-rotator-next-hover'); }); } + // Add jQuery Cycle Pager Functionality + if (this.pager != 'none') { + switch(this.pager) { + // Use pager, place it above + case 'top': + $('#' + id) + .before('
') + .cycle({ pager: '#nav-'+id }); + break; + // Use pager, place it below + case 'bottom': + $('#' + id) + .after('') + .cycle({ pager: '#nav-'+id }); + break; + } + }; if (this.auto_height == 1) { var height = null; $('#' + id + ' .views-rotator-item').each(function() { Index: views_rotator.module ========================================================= --- views_rotator.module (revision 1.4) +++ views_rotator.module Fri Feb 20 18:35:44 EST 2009 @@ -36,6 +36,7 @@ $view_settings['speed'] = check_plain($options['speed']) * 1000; $view_settings['pause'] = check_plain($options['pause']); $view_settings['cleartype'] = 1; + $view_settings['pager'] = check_plain($options['pager']); if (!empty($options['back_next_buttons'])) { $view_settings['next'] = '#'. $vars['views_rotator_id'] .'-views-rotator-next'; Index: views_rotator_style_plugin.inc ========================================================= --- views_rotator_style_plugin.inc (revision 1.1) +++ views_rotator_style_plugin.inc Fri Feb 20 18:36:48 EST 2009 @@ -52,5 +52,16 @@ '#default_value' => $this->options['height'], '#description' => t('If the height is left empty Views Rotator will attempt to detect the height. Enter a height as auto or a value in px or em to specify a height via CSS.'), ); + $form['pager'] = array( + '#type' => 'select', + '#title' => t('Pager Options'), + '#default_value' => $this->options['pager'], + '#options' => array( + 'none' => t('No Pager'), + 'top' => t('Add pager above content'), + 'bottom' => t('Add pager below content'), + ), + '#description' => t('Optionally display the jQuery Cycle pagers above or below the content.'), + ); } }