? jquery_cycle_pager.patch Index: views-rotator.css =================================================================== RCS file: /cvs/drupal-contrib/contributions/modules/views_rotator/views-rotator.css,v retrieving revision 1.3 diff -u -r1.3 views-rotator.css --- views-rotator.css 24 Aug 2008 00:06:44 -0000 1.3 +++ views-rotator.css 10 Jun 2010 20:44:38 -0000 @@ -31,4 +31,23 @@ a.views-rotator-next-hover { margin: 10px 0 0 42px; -} \ No newline at end of file +} + +/* Pager */ +.views-rotator-nav { + height: 1.5em; + margin-bottom: 1em; +} +.views-rotator-nav a { + background: #000; + border: solid 1px #444; + color: #fff; + float: left; + margin-right: 0.25em; + padding: 2px 6px; +} +.views-rotator-nav a:hover, +.views-rotator-nav a.activeSlide { + background: #333; + color: #fff; +} Index: views-rotator.js =================================================================== RCS file: /cvs/drupal-contrib/contributions/modules/views_rotator/views-rotator.js,v retrieving revision 1.5 diff -u -r1.5 views-rotator.js --- views-rotator.js 28 Aug 2008 15:30:54 -0000 1.5 +++ views-rotator.js 10 Jun 2010 20:44:38 -0000 @@ -24,6 +24,12 @@ $(settings.next).removeClass('views-rotator-next-hover'); }); } + // Add jQuery Cycle Pager Functionality + if (this.pager == 1) { + $('#' + id) + .before('
') + .cycle({ pager: '#nav-'+id }); + } if (this.auto_height == 1) { var height = null; $('#' + id + ' .views-rotator-item').each(function() { Index: views_rotator.module =================================================================== RCS file: /cvs/drupal-contrib/contributions/modules/views_rotator/views_rotator.module,v retrieving revision 1.4 diff -u -r1.4 views_rotator.module --- views_rotator.module 23 Sep 2008 02:28:12 -0000 1.4 +++ views_rotator.module 10 Jun 2010 20:44:38 -0000 @@ -37,9 +37,16 @@ $view_settings['pause'] = check_plain($options['pause']); $view_settings['cleartype'] = 1; - if (!empty($options['back_next_buttons'])) { - $view_settings['next'] = '#'. $vars['views_rotator_id'] .'-views-rotator-next'; - $view_settings['prev'] = '#'. $vars['views_rotator_id'] .'-views-rotator-prev'; + if ($options['navigation'] != 'none') { + switch ($options['navigation']) { + case 'back_next_buttons': + $view_settings['next'] = '#'. $vars['views_rotator_id'] .'-views-rotator-next'; + $view_settings['prev'] = '#'. $vars['views_rotator_id'] .'-views-rotator-prev'; + break; + case 'pager': + $view_settings['pager'] = 1; + break; + } } if (empty($options['height'])) { Index: views_rotator_style_plugin.inc =================================================================== RCS file: /cvs/drupal-contrib/contributions/modules/views_rotator/views_rotator_style_plugin.inc,v retrieving revision 1.1 diff -u -r1.1 views_rotator_style_plugin.inc --- views_rotator_style_plugin.inc 23 Sep 2008 02:28:12 -0000 1.1 +++ views_rotator_style_plugin.inc 10 Jun 2010 20:44:38 -0000 @@ -13,7 +13,7 @@ $options['timeout'] = 5; $options['speed'] = 1; $options['pause'] = 0; - $options['back_next_buttons'] = 0; + $options['navigation'] = 'none'; $options['height'] = ''; } @@ -39,10 +39,15 @@ '#title' => t('Pause rotation when the mouse is over the area.'), '#default_value' => $this->options['pause'], ); - $form['back_next_buttons'] = array( - '#type' => 'checkbox', - '#title' => t('Display back and next buttons when the mouse is over the area.'), - '#default_value' => $this->options['back_next_buttons'], + $form['navigation'] = array( + '#type' => 'select', + '#title' => t('Navigation Options'), + '#default_value' => $this->options['navigation'], + '#options' => array( + 'none' => t('No Navigation'), + 'back_next_buttons' => t('Display back and next buttons when the mouse is over the area.'), + 'pager' => t('Display the jQuery Cycle pagers.'), + ), ); $form['height'] = array( '#type' => 'textfield', @@ -53,4 +58,4 @@ '#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.'), ); } -} \ No newline at end of file +}