? syndication-builder.patch
? syndication-help.patch
? syndication-term-limit.patch
? syndication-theming.patch
? syndication-theming2.patch
? syndication-two-col.patch
? syndication.css
? temp.diff
? temp.patch
Index: syndication.module
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/syndication/syndication.module,v
retrieving revision 1.57
diff -u -p -r1.57 syndication.module
--- syndication.module	10 Jun 2008 20:04:06 -0000	1.57
+++ syndication.module	18 Jun 2008 22:39:04 -0000
@@ -205,14 +205,8 @@ function syndication_taxonomy_build_list
     if ($count) {
       $term_path = "taxonomy/term/$term->tid/0/feed";
       $term_link = l(t($term->name), $term_path, array('title' => t($term->description)));
-      if ($term->depth) {
-        $prefix = str_repeat('--', $term->depth) .' ';
-      }
-      else {
-        $prefix = '';
-      }
-      $item = $prefix . $term_link ." ($count)";
-      $items[] = theme('syndication_item', $term_path, $item);
+      $item = $term_link ." ($count)";
+      $items[] = theme('syndication_item', $term_path, $item, $term->depth);
       $index++;
     }
     else {
@@ -525,14 +519,29 @@ function theme_syndication_section ($tit
 /**
  * Theme a syndication item.
  */
-function theme_syndication_item ($path, $item) {
-  return theme('feed_icon', $path) . ' ' . $item;
+function theme_syndication_item ($path, $item, $depth = 0) {
+  return theme('feed_icon', $path) . '<span style="margin-left:'. (6 + ($depth * 15)) . 'px">'  . $item . '</span>';
 }
 
 /**
  * Theme a list of syndication items.
+ *
+ * Format lists into two columns.
  */
 function theme_syndication_item_list ($items, $title) {
-  return theme('item_list', $items, $title);
+  $output = '<div class="syndication-items">';
+  $output .= '<h3>' . check_plain($title) . '</h3>';
+  // Divide the items into two chunks. Use rounding to ensure the first
+  // chunk has one extra item if there is an odd number of items.
+  $items = array_chunk($items, round(count($items) / 2));
+  foreach (array(0 => 'left', 1 => 'right') as $key => $position) {
+    $output .= '<div class="syndication-items-' . $position . '">' . theme('item_list', $items[$key], NULL, 'ul', array('class' => 'syndication-item-list')) . '</div>';
+  }
+  $output .= '</div>';
+  // Needed because we are using float for two-column layout.
+  $output .= '<div class="syndication-clear"></div>';
+  // Don't aggregate this CSS file as it's only needed on one page.
+  drupal_add_css(drupal_get_path('module', 'syndication') . '/syndication.css', 'module', 'all', FALSE);
+  return $output;
 }
 
