? LICENSE.txt
? views_rotator-hover_numbers.patch
Index: THEME.txt
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/views_rotator/Attic/THEME.txt,v
retrieving revision 1.1.2.4
diff -u -p -r1.1.2.4 THEME.txt
--- THEME.txt	13 Sep 2008 18:42:12 -0000	1.1.2.4
+++ THEME.txt	1 Jul 2009 22:23:36 -0000
@@ -16,7 +16,8 @@ The Views Rotator module provides the fo
 - interval_time: The time a single element is displayed for (default is 5 seconds)
 - transition_time: The amount of time the crossfade takes (default is .5 seconds)
 - mouseover_pause: Whether or not to pause rotation when the mouse is over the rotating region. 1 is on, 0 is off (default)
-- back_next_buttons: Whether to display back and next buttons when the mouse is over the region. 1 is on, 0 is off (default)
+- back_next_buttons_hover: Whether to display back and next buttons when the mouse is over the region. 1 is on, 0 is off (default)
+- back_next_buttons: Whether to display back and next buttons. 1 is on, 0 is off (default) Show's #s & Buttons
 - area_height: The height of the rotating region. (default is 'auto')
 
 These options are configured in the theme functions. To override them the theme functions need to be overridden in your
@@ -40,7 +41,9 @@ function phptemplate_views_rotator_node(
   $options['interval_time'] = 5;
   $options['transition_time'] = 1;
   $options['mouseover_pause'] = 0;
-  $options['back_next_buttons'] = 0;
+  $options['hover_back_next_buttons'] = 0;
+  $options['back_next_buttons'] = 1;
   $options['area_height'] = 'auto';
   $options['auto_height'] = 1; // When this is set to 1 views rotator will attempt to detect and set the region height
   // End editable options
@@ -75,7 +78,9 @@ function phptemplate_views_rotator_tease
   $options['interval_time'] = 5;
   $options['transition_time'] = 1;
   $options['mouseover_pause'] = 0;
-  $options['back_next_buttons'] = 0;
+  $options['hover_back_next_buttons'] = 0;
+  $options['back_next_buttons'] = 1;
   $options['area_height'] = 'auto';
   $options['auto_height'] = 1; // When this is set to 1 views rotator will attempt to detect and set the region height
   // End editable options
@@ -110,7 +115,9 @@ function phptemplate_views_rotator_item(
   $options['interval_time'] = 5;
   $options['transition_time'] = 1;
   $options['mouseover_pause'] = 0;
-  $options['back_next_buttons'] = 0;
+  $options['hover_back_next_buttons'] = 0;
+  $options['back_next_buttons'] = 1;
   $options['area_height'] = 'auto';
   $options['auto_height'] = 1; // When this is set to 1 views rotator will attempt to detect and set the region height
   // End editable options
@@ -157,7 +164,9 @@ function phptemplate_views_rotator_item(
   $options['interval_time'] = 5;
   $options['transition_time'] = .5;
   $options['mouseover_pause'] = 0;
-  $options['back_next_buttons'] = 0;
+  $options['hover_back_next_buttons'] = 0;
+  $options['back_next_buttons'] = 1;
   $options['area_height'] = 'auto';
   $options['auto_height'] = 1; // When this is set to 1 views rotator will attempt to detect and set the region height
   // End editable options
Index: views-rotator.css
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/views_rotator/views-rotator.css,v
retrieving revision 1.2.2.4
diff -u -p -r1.2.2.4 views-rotator.css
--- views-rotator.css	28 Aug 2008 15:44:22 -0000	1.2.2.4
+++ views-rotator.css	1 Jul 2009 22:23:36 -0000
@@ -1,28 +1,24 @@
 .views-rotator ul li {
-  list-style-type: none;
 }
 
 .views-rotator ul,
 .views-rotator ul li {
-  margin: 0;
-  padding: 0;
 }
 
 div.views-rotator-prev a,
 div.views-rotator-next a {
-  height: 0;
 }
 
-div.views-rotator-prev a {
+div.views-rotator-prev-hover {
   background: url(images/prev.jpg) left 50% no-repeat;
 }
 
-div.views-rotator-next a {
+div.views-rotator-next-hover {
   background: url(images/next.jpg) right 50% no-repeat;
 }
 
-div.views-rotator-prev-hover a,
-div.views-rotator-next-hover a {
+div.views-rotator-prev-hover,
+div.views-rotator-next-hover {
   height: 30px;
   width: 30px;
   margin: 10px;
@@ -30,10 +26,10 @@ div.views-rotator-next-hover a {
   z-index: 1000;
 }
 
-div.views-rotator-prev-hover a {
+div.views-rotator-prev-hover {
   margin: 10px 0 0 10px;
 }
 
-div.views-rotator-next-hover a {
+div.views-rotator-next-hover {
   margin: 10px 0 0 42px;
 }
\ No newline at end of file
Index: views-rotator.js
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/views_rotator/views-rotator.js,v
retrieving revision 1.3.2.4
diff -u -p -r1.3.2.4 views-rotator.js
--- views-rotator.js	13 Sep 2008 18:42:12 -0000	1.3.2.4
+++ views-rotator.js	1 Jul 2009 22:23:37 -0000
@@ -17,6 +17,7 @@
       'vclass':             'views_rotator',
       'children':           null,
       'mouseover_pause':    0,
+      'hover_back_next_buttons':  0,
       'back_next_buttons':  0
     };
     if (options)
@@ -47,7 +48,7 @@
           info[settings.id].timeoutID = setTimeout((function() {
             $.views_rotator.next(elements, settings);
           }), settings.interval_time);
-          if (settings.back_next_buttons == 1) {
+          if (settings.hover_back_next_buttons == 1) {
             $('.' + settings.id + ' .views-rotator-prev').removeClass('views-rotator-prev-hover');
             $('.' + settings.id + ' .views-rotator-next').removeClass('views-rotator-next-hover');
           }
@@ -56,13 +57,13 @@
             clearTimeout(info[settings.id].timeoutID);
             delete info[settings.id].timeoutID;
           }
-          if (settings.back_next_buttons == 1) {
+          if (settings.hover_back_next_buttons == 1) {
             $('.' + settings.id + ' .views-rotator-prev').addClass('views-rotator-prev-hover');
             $('.' + settings.id + ' .views-rotator-next').addClass('views-rotator-next-hover');
           }
         });
       }
-      else if (settings.back_next_buttons == 1) {
+      else if (settings.hover_back_next_buttons == 1) {
         $('.' + settings.id).mouseover(function() {
           $('.' + settings.id + ' .views-rotator-prev').addClass('views-rotator-prev-hover');
           $('.' + settings.id + ' .views-rotator-next').addClass('views-rotator-next-hover');
@@ -73,7 +74,52 @@
       }
       if (settings.back_next_buttons == 1) {
         $(container).parent().css('height', settings.area_height);
-        $('.' + settings.id).prepend('<div class="views-rotator-prev"><a></a></div><div class="views-rotator-next"><a></a></div>');
+        var nums = "";
+        // Set the number of pictures to display their numbers.
+        for ( var i = 1; i < (elements.length+1); i++ ) {
+          nums += "<span class='"+i+"'><a>"+i+"</a></span>";
+        }
+        $('.' + settings.id).prepend('<div class="views-rotator-cover"><div class="views-rotator-prev"><a>&nbsp;</a></div><div class="views-rotator-nums">'+nums+'</div><div class="views-rotator-next"><a>&nbsp;</a></div></div>');
+
+        for ( i = 0; i < elements.length; i++ ) {
+          j = i+1;
+          $('.' + settings.id + ' .'+j).click(function() {
+            // Set image user wants to view.
+            var current = $(this).children("a").text()-1;
+            var last = info[settings.id].last;
+            // Fix IE6/Cleartype bug.
+            if (ie6) {
+              $.views_rotator.clearTypeFix($(elements[last]));
+              $.views_rotator.clearTypeFix($(elements[current]));
+            }
+            $(elements[last]).fadeOut(settings.transition_time, function() {
+              // Work around IE/cleartype bug.
+              if(this.style.removeAttribute){
+                this.style.removeAttribute('filter');
+              }
+            });
+            $(elements[current]).fadeIn(settings.transition_time, function() {
+              // Work around IE/cleartype bug.
+              if(this.style.removeAttribute){
+                this.style.removeAttribute('filter');
+              }
+            });
+            if ((current + 1) < elements.length) {
+              current = current + 1;
+              last = current - 1;
+            } else {
+              current = 0;
+              last = elements.length - 1;
+            }
+            info[settings.id].current = current;
+            info[settings.id].last = last;
+            
+            // Set timeout.
+            info[settings.id].timeoutID = setTimeout((function() {
+              $.views_rotator.next(elements, settings);
+            }), settings.interval_time);
+          });
+        }
         $('.' + settings.id + ' .views-rotator-prev a').click(function() {
           var current = info[settings.id].current;
           var last = info[settings.id].last;
@@ -82,19 +128,19 @@
           } else {
             current = last - 1;
           }
-          // Fix IE6/Cleartype bug
+          // Fix IE6/Cleartype bug.
           if (ie6) {
             $.views_rotator.clearTypeFix($(elements[last]));
             $.views_rotator.clearTypeFix($(elements[current]));
           }
           $(elements[last]).fadeOut(settings.transition_time, function() {
-            // Work around IE/cleartype bug
+            // Work around IE/cleartype bug.
             if(this.style.removeAttribute){
               this.style.removeAttribute('filter');
             }
           });
           $(elements[current]).fadeIn(settings.transition_time, function() {
-            // Work around IE/cleartype bug
+            // Work around IE/cleartype bug.
             if(this.style.removeAttribute){
               this.style.removeAttribute('filter');
             }
@@ -108,23 +154,28 @@
           }
           info[settings.id].current = current;
           info[settings.id].last = last;
+          
+          // Set timeout.
+          info[settings.id].timeoutID = setTimeout((function() {
+            $.views_rotator.next(elements, settings);
+          }), settings.interval_time);
         });
         $('.' + settings.id + ' .views-rotator-next a').click(function() {
           var current = info[settings.id].current;
           var last = info[settings.id].last;
-          // Fix IE6/Cleartype bug
+          // Fix IE6/Cleartype bug.
           if (ie6) {
             $.views_rotator.clearTypeFix($(elements[last]));
             $.views_rotator.clearTypeFix($(elements[current]));
           }
           $(elements[last]).fadeOut(settings.transition_time, function() {
-            // Work around IE/cleartype bug
+            // Work around IE/cleartype bug.
             if(this.style.removeAttribute){
               this.style.removeAttribute('filter');
             }
           });
           $(elements[current]).fadeIn(settings.transition_time, function() {
-            // Work around IE/cleartype bug
+            // Work around IE/cleartype bug.
             if(this.style.removeAttribute){
               this.style.removeAttribute('filter');
             }
@@ -138,6 +189,11 @@
           }
           info[settings.id].current = current;
           info[settings.id].last = last;
+          
+          // Set timeout.
+          info[settings.id].timeoutID = setTimeout((function() {
+            $.views_rotator.next(elements, settings);
+          }), settings.interval_time);
         });
       }
 		}
@@ -146,19 +202,19 @@
   $.views_rotator.next = function(elements, settings) {
     var current = info[settings.id].current;
     var last = info[settings.id].last;
-    // Fix IE6/Cleartype bug
+    // Fix IE6/Cleartype bug.
     if (ie6) {
       $.views_rotator.clearTypeFix($(elements[last]));
       $.views_rotator.clearTypeFix($(elements[current]));
     }
     $(elements[last]).fadeOut(settings.transition_time, function() {
-      // Work around IE/cleartype bug
+      // Work around IE/cleartype bug.
       if(this.style.removeAttribute){
         this.style.removeAttribute('filter');
       }
     });
     $(elements[current]).fadeIn(settings.transition_time, function() {
-			// Work around IE/cleartype bug
+      // Work around IE/cleartype bug.
       if(this.style.removeAttribute){
         this.style.removeAttribute('filter');
       }
Index: views_rotator.info
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/views_rotator/views_rotator.info,v
retrieving revision 1.2.2.1
diff -u -p -r1.2.2.1 views_rotator.info
--- views_rotator.info	20 Aug 2008 00:33:51 -0000	1.2.2.1
+++ views_rotator.info	1 Jul 2009 22:23:37 -0000
@@ -2,4 +2,9 @@
 name = Views Rotator
 description = Provides a rotating item views display plugin.
 package = Views
-dependencies = views
\ No newline at end of file
+dependencies = views
+; Information added by drupal.org packaging script on 2008-09-23
+version = "5.x-1.0-rc2"
+project = "views_rotator"
+datestamp = "1222128630"
+
Index: views_rotator.module
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/views_rotator/views_rotator.module,v
retrieving revision 1.2.2.3
diff -u -p -r1.2.2.3 views_rotator.module
--- views_rotator.module	13 Sep 2008 18:42:12 -0000	1.2.2.3
+++ views_rotator.module	1 Jul 2009 22:23:37 -0000
@@ -28,7 +28,8 @@ function theme_views_rotator_node($view,
   $options['interval_time'] = 5;
   $options['transition_time'] = .5;
   $options['mouseover_pause'] = 0;
-  $options['back_next_buttons'] = 0;
+  $options['hover_back_next_buttons'] = 0;
+  $options['back_next_buttons'] = 1;
   $options['area_height'] = 'auto';
   $options['auto_height'] = 1; // When this is set to 1 views rotator will attempt to detect and set the region height
   // End editable options
@@ -63,7 +64,8 @@ function theme_views_rotator_teaser($vie
   $options['interval_time'] = 5;
   $options['transition_time'] = .5;
   $options['mouseover_pause'] = 0;
-  $options['back_next_buttons'] = 0;
+  $options['hover_back_next_buttons'] = 0;
+  $options['back_next_buttons'] = 1;
   $options['area_height'] = 'auto';
   $options['auto_height'] = 1; // When this is set to 1 views rotator will attempt to detect and set the region height
   // End editable options
@@ -98,13 +100,14 @@ function theme_views_rotator_item($view,
   $options['interval_time'] = 5;
   $options['transition_time'] = .5;
   $options['mouseover_pause'] = 0;
-  $options['back_next_buttons'] = 0;
+  $options['hover_back_next_buttons'] = 0;
+  $options['back_next_buttons'] = 1;
   $options['area_height'] = 'auto';
   $options['auto_height'] = 1; // When this is set to 1 views rotator will attempt to detect and set the region height
   // End editable options
   
   drupal_add_css(drupal_get_path('module', 'views_rotator') .'/views-rotator.css');
-  drupal_add_js(drupal_get_path('module', 'views_rotator') .'/views-rotator.min.js');
+  drupal_add_js(drupal_get_path('module', 'views_rotator') .'/views-rotator.js');
   
   $options['id'] = $views_rotator_id = 'views-rotator-'. $view->name .'-'. $view->build_type;
   $options['interval_time'] = $options['interval_time'] * 1000;
@@ -128,7 +131,6 @@ function theme_views_rotator_item($view,
     if (views_rotator_display_item($views_rotator_id)) $output .= ' style="display:none;"';
     $output .= '><div class="view-item '. views_css_safe('view-item-'. $view->name) .'">'. $item ."</div></li>\n";
   }
-  
   if (!empty($output)) {
     $output = '<div class="item-list views-rotator '. $views_rotator_id .' clear-block"><ul id="'. $views_rotator_id .'">'. $output;
     $output .= '</ul></div>';
