diff -r 0d9a58d2c515 -r 0d28b7c10758 web/wp-content/themes/elegant-box/functions.php
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/web/wp-content/themes/elegant-box/functions.php Fri Mar 12 13:29:04 2010 +0000
@@ -0,0 +1,555 @@
+read())) {
+ if(is_dir($styleFolder . $styleFile) && $styleFile != '.' && $styleFile != '..') {
+ $styleArray[] = $styleFile;
+ }
+ }
+ $objStyleFolder->close();
+?>
+
+
+
+
+
+
+ '',
+ '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;
+ }
+?>
+