رفتن به مطلب

پست های پیشنهاد شده

با سلام

این کد مربوط به قسمت نظرات این سایت http://hemmatnews.co...-خدمت-پزشکان-م/ هستش.

میخوام یه کم مرتب سازی کنمش و تقریبا شبیه این http://sowmesaranews.../news/31323��در بیاد

کسی میتونه راهنمایی کنه ؟ :(

<?php // Do not delete these lines

if ('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 // 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('امکان درج نظر برای این مطلب مسدود شده است. با مدیر سایت تماس برقرار کنید.'); ?></p>

<?php

return;

}

}

/* This variable is for alternating comment background */

$oddcomment = 'class="alt" ';

?>

<?php if ($comments) : ?>

<div style="clear:both; margin-top:10px;"></div>

<div id="comments" class="cat-news">

<div class="up">

<div class="title">

<div class="bg">

<div class="right"></div>

<div class="middle"></div>

<div class="left"></div>

</div>

<div class="forground"></div>

</div>

<div class="archive">

</div>

</div>

<ol class="commentlist">

<?php

/* Loop through and list the comments. Tell wp_list_comments()

* to use twentyten_comment() to format the comments.

* If you want to overload this in a child theme then you can

* define twentyten_comment() and that will be used instead.

* See twentyten_comment() in twentyten/functions.php for more.

*/

wp_list_comments('');

?>

</ol>

</div>

<?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. -->

<?php echo('امکان درج نظر مسدود شده است. از صفحۀ تماس با ما استفاده نمایید. ')?>

<?php endif; ?>

<?php endif; ?>

<?php if ('open' == $post->comment_status) : ?>

<?php if ( get_option('comment_registration') && !$user_ID ) : ?>

<p><?php _e('برای درج نظر وارد حساب خود شوید.'); ?> <a href="<?php echo get_option('siteurl'); ?>/wp-login.php?redirect_to=<?php echo urlencode(get_permalink()); ?>"><?php _e('ورود'); ?></a> </p>

<?php else : ?>

<form action="<?php echo get_option('siteurl'); ?>/wp-comments-post.php" method="post" id="commentform">

<?php if ( $user_ID ) : ?>

<p style="margin-right:30px;"><?php _e('سلام: '); ?> <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('?خارج شوید.'); ?>"><?php _e('خروج'); ?> »</a></p>

<div class="cat-news" id="newcomment">

<div class="com-contact">

<label for="com-name"></br>نام:</label><input type="text" name="author" id="com-name" value="<?php echo $comment_author; ?>" size="22" tabindex="1" />

<label for="om-email"></br>(رایانامه (ایمیل:</label><input type="text" name="email" id="com-email" value="<?php echo $comment_author_email; ?>" size="22" tabindex="2" />

<label for="com-website"></br>(تارنما (وب سایت:</label><input type="text" name="url" id="com-website" value="<?php echo $comment_author_url; ?>" size="22" tabindex="3" />

<div style="clear:both; margin-top:9px;"></div>

<input name="submit" type="submit" id="submit" tabindex="5" value="ثبت نظر" />

<input type="hidden" name="comment_post_ID" value="<?php echo $id; ?>" />

</div>

<div class="com-text">

<label for="comment">متن نظر:</label><textarea name="comment" id="comment" rows="7" tabindex="4" style="font-family:tahoma; font-size:11px; background-color:#eeeeee; border:1px solid #cccccc; text-align:right; height:100px; width:230px;"></textarea>

</div></div>

<?php else : ?>

<div class="cat-news" id="newcomment">

<div class="up">

<div class="title">

<div class="bg">

<div class="right"></div>

<div class="middle"></div>

<div class="left"></div>

</div>

<div class="forground"></div>

</div>

</div>

<div class="com-contact">

<label for="com-name">نام و نام خانوادگی:</label><input type="text" name="author" id="com-name" value="<?php echo $comment_author; ?>" size="22" tabindex="1" />

</br>

<label for="om-email">رایانامه) ایمیل):</label><input type="text" name="email" id="com-email" value="<?php echo $comment_author_email; ?>" size="22" tabindex="2" />

</br>

<label for="com-website">تارنما) وب سایت):</label><input type="text" name="url" id="com-website" value="<?php echo $comment_author_url; ?>" size="22" tabindex="3" />

</div>

<div class="com-text">

<label for="comment">متن نظر:</label><textarea name="comment" id="comment" rows="7" tabindex="4"></textarea>

<input name="submit" type="submit" id="submit" tabindex="5" value="ثبت نظر" />

<input type="hidden" name="comment_post_ID" value="<?php echo $id; ?>" />

</div></div>

<?php endif; ?>

</form>

<?php endif; // If registration required and not logged in ?>

<?php endif; // if you delete this the sky will fall on your head ?>

لینک به ارسال

به گفتگو بپیوندید

هم اکنون می توانید مطلب خود را ارسال نمایید و بعداً ثبت نام کنید. اگر حساب کاربری دارید، برای ارسال با حساب کاربری خود اکنون وارد شوید .

مهمان
ارسال پاسخ به این موضوع ...

×   شما در حال چسباندن محتوایی با قالب بندی هستید.   حذف قالب بندی

  تنها استفاده از 75 اموجی مجاز می باشد.

×   لینک شما به صورت اتوماتیک جای گذاری شد.   نمایش به صورت لینک

×   محتوای قبلی شما بازگردانی شد.   پاک کردن محتوای ویرایشگر

×   شما مستقیما نمی توانید تصویر خود را قرار دهید. یا آن را اینجا بارگذاری کنید یا از یک URL قرار دهید.

×
×
  • اضافه کردن...