functions.php
<?php
if ( function_exists('register_sidebars') )
register_sidebars(2);
?>
<?php //Begin Theme Options Code
$themename = "Revolution Code Blue";
$shortname = "cb";
$options = array (
array( "name" => "Color Scheme",
"id" => $shortname."_color_scheme",
"std" => "Default",
"type" => "select",
"options" => array("Blue","Gray","Red"))
);
function myFilter($query) {
if ($query->is_feed) {
$query->set('cat','-1323'); //Don't forget to change the category ID =^o^=
}
return $query;
}
add_filter('pre_get_posts','myFilter');
function my_akismet_count() {
$akismetcount = number_format_i18n(get_option('akismet_spam_count'));
echo "<a href='http://akismet.com/'>Akismet</a> on suojannut blogia " . $akismetcount . " roskakommentilta";
}
define( 'no_autostart_safe_report_comments', true );
require_once( ABSPATH . '/wp-content/plugins/safe-report-comments/safe-report-comments.php' );
$safe_report_comments = new Safe_Report_Comments(false);
function make_chunky($ret)
{
blah blah...
comments.php
<?php foreach ($comments as $comment) : ?>
<?php $comment_type = get_comment_type(); ?>
<?php if($comment_type == 'comment') { ?>
<li class="<?php echo $oddcomment; ?>" id="comment-<?php comment_ID() ?>">
<?php comment_author_link() ?> sanoi <?php comment_date('d.m.Y k\l\o\ H:i') ?> <?php edit_comment_link('(Muokkaa)','',''); ?><br />
<?php if ($comment->comment_approved == '0') : ?>
<em>Kommenttisi on moderoitavana.</em>
<?php endif; ?>
<div class="commenttext">
<?php comment_text() ?>
<?php echo $safe_report_comments->get_flagging_link( $comment_id='', $result_id='', $text='Report comment' ); ?>
</div>
<div style="border-bottom: margin-bottom:20px; padding:0px 0px 10px 0px; clear:both;"></div>
</li>
<?php } else { $trackback = true; } /* End of is_comment statement */ ?>
<?php endforeach; /* end for each comment */ ?>
</ol>
<?php if ($trackback == true) { ?>
<h4>Paluuviitteet</h4>
<ol>
<?php foreach ($comments as $comment) : ?>
<?php $comment_type = get_comment_type(); ?>
<?php if($comment_type != 'comment') { ?>
<li><?php comment_author_link() ?></li>
<?php } ?>
<?php endforeach; ?>
</ol>
<br class="clear" />
<br class="clear" />
<?php } ?>