<?php // Do not delete these lines
if (!empty($_SERVER['SCRIPT_FILENAME']) && 'comments.php' == basename($_SERVER['SCRIPT_FILENAME']))
die ('Please do not load this page directly. Thanks!');
if (!empty($post->post_password)) { // if there's a password
if ($_COOKIE['wp-postpass_' . COOKIEHASH] != $post->post_password) { // and it doesn't match the cookie
?>
<p>This post is password protected. Enter the password to view comments.</p>
<?php
return;
}
}
/* This variable is for alternating comment background */
$oddcomment = 'class="alt" ';
?>
<!-- You can start editing here. -->
<?php if ($comments) : ?>
<h3 id="comments"><?php comments_number('No Responses', 'One Response', '% Responses' );?> to “<?php the_title(); ?>”</h3>
<ol class="commentlist">
<?php foreach ($comments as $comment) : ?>
<li <?php echo $oddcomment; ?>id="comment-<?php comment_ID() ?>">
<cite>
<?php echo get_avatar( $comment, 32 ); ?>
<span class="author"><?php comment_author_link() ?></span><br /><span class="time"><?php comment_time() ?></span> on <a href="#comment-<?php comment_ID() ?>" title=""><?php comment_date('F jS, Y') ?></a> <?php edit_comment_link('edit',' ',''); ?>
</cite>
<div class="commenttext"><?php comment_text() ?></div>
<?php if ($comment->comment_approved == '0') : ?>
<em>Your comment is awaiting moderation.</em>
<?php endif; ?>
</li>
<?php
/* Changes every other comment to a different class */
$oddcomment = ( empty( $oddcomment ) ) ? 'class="alt" ' : '';
?>
<?php endforeach; /* end for each comment */ ?>
</ol>
<?php else : // this is displayed if there are no comments so far ?>
<?php if ('open' == $post->comment_status) : ?>
<!-- If comments are open, but there are no comments. -->
<?php else : // comments are closed ?>
<!-- If comments are closed. -->
<p>Comments are closed.</p>
<?php endif; ?>
<?php endif; ?>
<?php if ('open' == $post->comment_status) : ?>
<h3 id="respond">Leave a Reply</h3>
<?php if ( get_option('comment_registration') && !$user_ID ) : ?>
<p>You must be <a href="<?php echo get_option('siteurl'); ?>/wp-login.php?redirect_to=<?php echo urlencode(get_permalink()); ?>">logged in</a> to post a comment.</p>
<?php else : ?>
<form action="<?php echo get_option('siteurl'); ?>/wp-comments-post.php" method="post" id="commentform">
<?php if ( $user_ID ) : ?>
<p>Logged in as <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 out »</a></p>
<?php else : ?>
<input type="text" name="author" id="author" value="<?php echo $comment_author; ?>" size="22" tabindex="1" <?php if ($req) echo "aria-required='true'"; ?> />
<label for="author">Name <?php if ($req) echo "(required)"; ?></label><br /><br />
<input type="text" name="email" id="email" value="<?php echo $comment_author_email; ?>" size="22" tabindex="2" <?php if ($req) echo "aria-required='true'"; ?> />
<label for="email">Mail (will not be published) <?php if ($req) echo "(required)"; ?></label><br /><br />
<input type="text" name="url" id="url" value="<?php echo $comment_author_url; ?>" size="22" tabindex="3" />
<label for="url">Website</label>
<?php endif; ?>
<p><strong>XHTML:</strong> You can use these tags: <code><?php echo allowed_tags(); ?></code></p>
<textarea name="comment" id="comment" cols="65%" rows="10" tabindex="4"></textarea><br />
<input name="submit" type="submit" id="submit" tabindex="5" value="Submit Comment" />
<input type="hidden" name="comment_post_ID" value="<?php echo $id; ?>" />
<?php do_action('comment_form', $post->ID); ?>
</form>
<?php endif; // If registration required and not logged in ?>
<?php endif; // if you delete this the sky will fall on your head ?>
没有合适的资源?快使用搜索试试~ 我知道了~
joomla主题模版 下载
共34个文件
php:16个
png:9个
css:6个
5星 · 超过95%的资源 需积分: 10 59 下载量 133 浏览量
2009-02-16
15:09:59
上传
评论
收藏 298KB ZIP 举报
温馨提示
joomla经典主题模版下载!Joomla!的模板世界丰富多彩,变幻诡谲。这些层出不穷的主题都不是由一个模子刻出来的。世界上也没有哪个设计师能把大千世界镶嵌进一个千篇一律的模板里。
资源推荐
资源详情
资源评论
收起资源包目录
strange-little-town.0.3.zip (34个子文件)
strange-little-town
archives.php 307B
iepngfix.htc 3KB
functions.php 273B
search.php 1KB
page-custom.php 84B
footer.php 473B
index.php 1KB
searchform.php 349B
image.php 2KB
screenshot.png 85KB
sidebar.php 3KB
single.php 2KB
img
rss.png 689B
footerbg.png 6KB
search.png 402B
Thumbs.db 18KB
menuhover.png 243B
sidebarbg.png 107B
footer.png 81KB
header.png 93KB
contentbg.png 107B
comments.php 4KB
Thumbs.db 6KB
404.php 104B
style
typography.css 2KB
reset.css 848B
ie.css 72B
ie6.css 69B
layout.css 963B
links.php 164B
page.php 569B
style.css 6KB
archive.php 2KB
header.php 2KB
共 34 条
- 1
资源评论
- gw11162015-03-09对我来说非常有用,是个很方便的做网页工具
jjyirui
- 粉丝: 0
- 资源: 1
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功