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 @@ + + +
+
+

+ + + + + + + + +
+ +
+ + +
+ name="cx" in the Search box code of Google Custom Search Engine, and type the value here.
For example: 014782006753236413342:1ltfrybsbz4', 'inove'), 'http://www.google.com/coop/cse/'); ?> +
+ + + + + + + + +
+ + +
+ + + + + + + + +
+ +
+ + + + + + + + +
+ +
+ +
+ + +
+ + +
+ + + + + + + + +
+ +
+ +
+ + +
+ + + + +
+ + +
+ + + + + + + + +
+ +
+ +
+ + +
+ + + + +
+ + +
+ + +
+ + + + + + + + +
+ + + +
+ + + + + + + + +
+ +
+ + + + + + + + +
+ +
+ + +
+ + +
+ + + + + + + + +
+ +
+ + +
+ Follow NeoEase + | Follow MG12 +
+ + + + + + + + +
+ +
+ +
+ + +
+ +

+ +

+
+
+ + +
+
+ + + + + + + + +
Donation + If you find my work useful and you want to encourage the development of more free resources, you can do it by donating... +
+ + + + +
+ +
+
+ + '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; + } +?> +
  • +
    +
    + +
    +
    + + + + + + + + + + + + + +
    +
    + +
    +
    + + | +
    +
    + | + + +
    +
    +
    + comment_approved == '0') : ?> +

    + + +
    + +
    +
    +
    +
    + +