olebole, du kan se indholdet af comments.php herunder.
Comments.php bliver bl.a. flettet sammen med andre filer. Bl.a. header.php hvor der er linket op til et stylesheet som også indeholder tagget @charset "utf-8";
-----------------------
Header.php (Head):
<head profile="
http://gmpg.org/xfn/11"> <link rel="shortcut icon" href="<?php bloginfo('template_directory'); ?>/images/favicon.ico" />
<meta http-equiv="Content-Type" content="<?php bloginfo('html_type'); ?>; charset=<?php bloginfo('charset'); ?>" />
<title><?php bloginfo('name'); ?><?php wp_title(); ?></title>
<style type="text/css" media="screen">
@import url( <?php bloginfo('stylesheet_url'); ?> );
</style>
<link rel="alternate" type="application/rss+xml" title="RSS 2.0" href="<?php bloginfo('rss2_url'); ?>" />
<link rel="alternate" type="text/xml" title="RSS .92" href="<?php bloginfo('rss_url'); ?>" />
<link rel="alternate" type="application/atom+xml" title="Atom 1.0" href="<?php bloginfo('atom_url'); ?>" />
<link rel="pingback" href="<?php bloginfo('pingback_url'); ?>" />
<?php wp_get_archives('type=monthly&format=link'); ?>
<?php //comments_popup_script(); // off by default ?>
<?php wp_head(); ?>
</head>
-----------------------
Comments.php:
<?php if(!empty($_SERVER['SCRIPT_FILENAME']) && 'comments.php' == basename($_SERVER['SCRIPT_FILENAME'])) : ?>
<?php die('You can not access this page directly!'); ?>
<?php endif; ?>
<?php if(!empty($post->post_password)) : ?>
<?php if($_COOKIE['wp-postpass_' . COOKIEHASH] != $post->post_password) : ?>
<p>Dette indlæg er beskyttet. Indtast din kode for adgang.</p>
<?php endif; ?>
<?php endif; ?>
<?php if($comments) : ?>
<?php // related_posts(); ?>
<p><?php comments_rss_link('Se kommentarer i RSS-format'); ?> </span><span id="trackback-link">
<!--<a href="<?php //trackback_url() ?>" rel="trackback">Trackback-adresse:</a></p></p>-->
<p><h4><?php comments_number('Der er ikke oprettet nogle kommentarer endnu.','1 har skrevet en kommentar','% har skrevet en kommentar'); ?></h4></p>
<ul class="commentlist">
<?php foreach ($comments as $comment) : ?>
<li <?php echo $oddcomment; ?>id="comment-<?php comment_ID() ?>">
<div class="quote"><?php comment_text() ?></div>
<?php if ($comment->comment_approved == '0') : ?>
<div class="comment_security">(Din kommentar afventer godkendelse)</div>
<?php endif; ?>
</li>
<cite><?php echo get_avatar( $id_or_email, $size = '25', $default = '
http://www.creative.dk/designs/staldhoj/wp-content/themes/staldhoj/images/default_gravatar.gif' ); $rating = 'G' ?> <?php comment_author_link() ?> den <?php comment_date('j. F, Y') ?> kl. <?php comment_time() ?>. <?php if (function_exists('quoter_comment')) { quoter_comment(); } ?><?php edit_comment_link('Rediger',' ',''); ?></cite>
<?php
/* Changes every other comment to a different class */
$oddcomment = ( empty( $oddcomment ) ) ? 'class="alt" ' : '';
?>
<?php endforeach; /* end for each comment */ ?>
</ul>
<?php else : ?>
<?php if(is_single()){?><p><h4>Der er ikke oprettet nogle kommentarer endnu.</h4></p><?php } ?>
<?php endif; ?>
<?php if(comments_open()) : ?>
<?php if(get_option('comment_registration') && !$user_ID) : ?>
<p class="comments-closed">Du skal være <a href="<?php echo get_option('siteurl'); ?>/wp-login.php?redirect_to=<?php echo urlencode(get_permalink()); ?>">logget ind</a> for at kommentere.</p><p><?php else : ?>
<form action="<?php echo get_option('siteurl'); ?>/wp-comments-post.php" method="post" id="commentform">
<?php if($user_ID) : ?>
<p>Logget ind som <a href="<?php echo get_option('siteurl'); ?>/wp-admin/profile.php"><?php echo $user_identity; ?></a>. <a href="<?php echo get_option('siteurl'); ?>/wp-login.php?action=logout" title="Log out of this account">Log ud »</a></p>
<?php else : ?>
<p><input type="text" name="author" id="author" value="<?php echo $comment_author; ?>" size="22" tabindex="1" />
<label for="author"><small>Navn <?php if($req) echo "(required)"; ?></small></label></p>
<p><input type="text" name="email" id="email" value="<?php echo $comment_author_email; ?>" size="22" tabindex="2" />
<label for="email"><small>Mail (er hemmeligt for andre) <?php if($req) echo "(required)"; ?></small></label></p>
<p><input type="text" name="url" id="url" value="<?php echo $comment_author_url; ?>" size="22" tabindex="3" />
<label for="url"><small>Website</small></label></p>
<?php endif; ?>
<p><?php if (function_exists('quoter_page')) { quoter_page(); } ?></p>
<p><textarea name="comment" id="comment" cols="45" rows="10" tabindex="4"></textarea></p>
<p><input name="submit" type="submit" id="submit" tabindex="5" value="Send kommentar" />
<input type="hidden" name="comment_post_ID" value="<?php echo $id; ?>" /> <?php show_subscription_checkbox(); ?></p>
<span class="note">Bemærk: Du kan muligvis ikke se din kommentar med det samme. <br />Dette kan skyldes at kommentaren skal godkendes af en redaktør først.</span>
<?php do_action('comment_form', $post->ID); ?>
</form>
<?php endif; ?>
<?php else : ?>
<?php if(is_single()){?><p class="comments-closed">Det er ikke muligt at kommentere på dette indlæg.</p><p><?php } ?>
<?php endif; ?>