diff -r 0d9a58d2c515 -r 0d28b7c10758 web/wp-content/themes/inove/functions.php
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/web/wp-content/themes/inove/functions.php Fri Mar 12 13:29:04 2010 +0000
@@ -0,0 +1,591 @@
+
+
+
+
+
+
+
+ 'north_sidebar',
+ 'before_widget' => '',
+ 'after_widget' => '
',
+ 'before_title' => '',
+ 'after_title' => '
'
+ ));
+ register_sidebar(array(
+ 'name' => 'south_sidebar',
+ 'before_widget' => '',
+ 'after_widget' => '
',
+ 'before_title' => '',
+ 'after_title' => '
'
+ ));
+ register_sidebar(array(
+ 'name' => 'west_sidebar',
+ 'before_widget' => '',
+ 'after_widget' => '
',
+ 'before_title' => '',
+ 'after_title' => '
'
+ ));
+ register_sidebar(array(
+ 'name' => 'east_sidebar',
+ 'before_widget' => '',
+ 'after_widget' => '
',
+ 'before_title' => '',
+ 'after_title' => '
'
+ ));
+}
+
+/** Comments */
+if (function_exists('wp_list_comments')) {
+ // comment count
+ function comment_count( $commentcount ) {
+ global $id;
+ $_comments = get_comments('status=approve&post_id=' . $id);
+ $comments_by_type = &separate_comments($_comments);
+ return count($comments_by_type['comment']);
+ }
+}
+
+// custom comments
+function custom_comments($comment, $args, $depth) {
+ $GLOBALS['comment'] = $comment;
+ global $commentcount;
+ if(!$commentcount) {
+ $commentcount = 0;
+ }
+?>
+