? 950884-styleguide-subtasks.patch
? 989060-styleguide-feed.patch
? 989060-styleguide-new.patch
? styleguide.js
Index: styleguide.styleguide.inc
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/styleguide/styleguide.styleguide.inc,v
retrieving revision 1.9
diff -u -p -r1.9 styleguide.styleguide.inc
--- styleguide.styleguide.inc	16 Dec 2010 18:33:27 -0000	1.9
+++ styleguide.styleguide.inc	21 Dec 2010 14:40:10 -0000
@@ -164,9 +164,9 @@ function styleguide_styleguide() {
     'content' => drupal_get_form('styleguide_form', $tabs),
     'group' => t('Forms'),
   );
-  $items['system_powered_by'] = array(
-    'title' => t('System powered by'),
-    'content' => theme('system_powered_by'),
+  $items['feed_icon'] = array(
+    'title' => t('Feed icon'),
+    'content' => theme('feed_icon', array('url' => url('rss.xml'), 'title' => t('Syndicate'))),
     'group' => t('System')
   );
   $items['maintenance_page'] = array(
@@ -174,6 +174,11 @@ function styleguide_styleguide() {
     'content' => theme('maintenance_page', array('content' => styleguide_paragraph(2))),
     'group' => t('System')
   );
+  $items['system_powered_by'] = array(
+    'title' => t('System powered by'),
+    'content' => theme('system_powered_by'),
+    'group' => t('System')
+  );
   $items['pager'] = array(
     'title' => t('Pager'),
     'content' => styleguide_pager(),
Index: modules/forum.inc
===================================================================
RCS file: modules/forum.inc
diff -N modules/forum.inc
--- /dev/null	1 Jan 1970 00:00:00 -0000
+++ modules/forum.inc	21 Dec 2010 14:40:10 -0000
@@ -0,0 +1,42 @@
+<?php
+// $Id$
+
+/**
+ * @file
+ * Style Guide plugin file for the Forum module.
+ */
+
+/**
+ * Implements hook_styleguide().
+ */
+function forum_styleguide() {
+  $items = array();
+
+  // Ensure that the functions are loaded.
+  module_load_include('inc', 'forum', 'forum.pages');
+  module_load_include('inc', 'forum', 'forum.admin');
+
+  // Load the base forum, if it exists.
+  $root = forum_forum_load(0);
+  if (count($root->forums) > 0) {
+    // Grab a sample forum from the list.
+    $child = forum_forum_load(array_rand($root->forums, 1));
+  }
+  $items['forum_list'] = array(
+    'title' => t('Forum list'),
+    'content' => forum_page($root),
+    'group' => t('Forum')
+  );
+  $items['forum_topic_list'] = array(
+    'title' => t('Forum topic list'),
+    'content' => (isset($child)) ? forum_page($child) : t('Please create a forum first.'),
+    'group' => t('Forum')
+  );
+  $items['forum_form'] = array(
+    'title' => t('Forum form'),
+    'content' => forum_form_main('forum'),
+    'group' => t('Forum')
+  );
+
+  return $items;
+}
Index: modules/image.inc
===================================================================
RCS file: modules/image.inc
diff -N modules/image.inc
--- /dev/null	1 Jan 1970 00:00:00 -0000
+++ modules/image.inc	21 Dec 2010 14:40:10 -0000
@@ -0,0 +1,31 @@
+<?php
+// $Id$
+
+/**
+ * @file
+ * Style Guide plugin file for the Image module.
+ */
+
+/**
+ * Implements hook_styleguide().
+ */
+function image_styleguide() {
+  $items = array();
+
+  // Get the sample file provided by the module.
+  if (file_destination('public://styleguide-preview.jpg', FILE_EXISTS_ERROR) !== FALSE) {
+    // Move the image so that styles may be applied.
+    file_unmanaged_copy(styleguide_image('vertical'), 'public://styleguide-preview.jpg', FILE_EXISTS_ERROR);
+  }
+
+  // Iterate through the image styles on the site.
+  foreach (image_style_options(FALSE) as $stylename => $style) {
+    $items['image_' . $stylename] = array(
+      'title' => t('Image style, @stylename', array('@stylename' => $stylename)),
+      'content' => theme('image_style', array('path' => 'public://styleguide-preview.jpg', 'style_name' => $stylename)),
+      'group' => t('Media')
+    );
+  }
+
+  return $items;
+}
