امید 5 ارسال شده در بهمن 93 گزارش بازنشر ارسال شده در بهمن 93 سلاممن از این کد برای قسمت دیدگاها استفاده میکنم ولی وقتی لوگین هستی . متن وارد شده با نام امید رو نشون نمیدهلطفا کمک کنید <?php// Do not delete these linesif (!empty($_SERVER['SCRIPT_FILENAME']) && 'comments.php' == basename($_SERVER['SCRIPT_FILENAME']))die ('Please do not load this page directly. Thanks!');if ( post_password_required() ) { ?><p class="nocomments"><?php _e('This post is password protected. Enter the password to view comments','mythemeshop'); ?>.</p><?php return; } ?><!-- You can start editing here. --><?php if ( have_comments() ) : ?><div id="comments"> <div id="response"> <?php global $aria_req; $comments_args = array( 'title_reply'=>''.__('دیدگاه شما','mythemeshop').'', 'comment_notes_after' => '', 'label_submit' => 'ارسال متن شما', 'comment_field' => '<p class="comment-form-comment"><label for="comment">'.__('دیدگاه:','mythemeshop').'<span class="required">*</span></label><textarea id="comment" name="comment" cols="45" rows="5" aria-required="true"></textarea></p>', 'fields' => apply_filters( 'comment_form_default_fields', array( 'author' => '<p class="comment-form-author">' . '<label for="author">' . __( 'نام', 'mythemeshop' ) . ':<span class="required">*</span></label>' . ( $req ? '' : '' ) . '<input id="author" name="author" type="text" value="' . esc_attr( $commenter['comment_author'] ) . '" size="30"' . $aria_req . ' /></p>', 'email' => '<p class="comment-form-email"><label for="email">' . __( 'ایمیل', 'mythemeshop' ) . ':<span class="required">*</span></label>' . ( $req ? '' : '' ) . '<input id="email" name="email" type="text" value="' . esc_attr( $commenter['comment_author_email'] ) . '" size="30"' . $aria_req . ' /></p>', 'url' => '<p class="comment-form-url"><label for="url">' . __( 'وب سایت', 'mythemeshop' ) . ':</label>' . '<input id="url" name="url" type="text" value="' . esc_attr( $commenter['comment_author_url'] ) . '" size="30" /></p>' )) ); comment_form($comments_args); ?> </div> <div class="heading"><i class="icon-comments-alt"></i><?php comments_number(__('بدون دیدگاه','mythemeshop'), __('یک دیدگاه','mythemeshop'), __('% دیدگاه','mythemeshop') );?></div> <ol class="commentlist group"> <div class="navigation"> <div class="alignleft"><?php previous_comments_link() ?></div> <div class="alignright"><?php next_comments_link() ?></div> </div> <?php wp_list_comments(); ?> <div class="navigation bottomnav"> <div class="alignleft"><?php previous_comments_link() ?></div> <div class="alignright"><?php next_comments_link() ?></div> </div> </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 class="nocomments"></p><?php endif; ?><?php endif; ?><?php if ('open' == $post->comment_status) : ?><?php endif; // if you delete this the sky will fall on your head ?></div>با تشکر نقل قول لینک به ارسال
A-fshin 1936 ارسال شده در بهمن 93 گزارش بازنشر ارسال شده در بهمن 93 درود.تست کنید<?php// Do not delete these linesif (!empty($_SERVER['SCRIPT_FILENAME']) && 'comments.php' == basename($_SERVER['SCRIPT_FILENAME']))die ('Please do not load this page directly. Thanks!');if ( post_password_required() ) { ?><p class="nocomments"><?php _e('This post is password protected. Enter the password to view comments','mythemeshop'); ?>.</p><?php return; } ?><!-- You can start editing here. --><?php if ( have_comments() ) : ?><div id="comments"> <div id="response"> <?php global $aria_req; $comments_args = array( 'must_log_in' => '<p class="must-log-in">' . sprintf('شما باید <a href="%s">وارد شوید</a> تا نظر بنویسید.' , wp_login_url( apply_filters( 'the_permalink', get_permalink( ) ) ) ) . '</p>', 'logged_in_as' => '<p class="logged-in-as">' . sprintf('وارد شده به عنوان <a href="%1$s">%2$s</a>. <a href="%3$s" title="خروج از این حساب">خروج؟</a>', admin_url( 'profile.php' ), $user_identity, wp_logout_url( apply_filters( 'the_permalink', get_permalink( ) ) ) ) . '</p>', 'title_reply'=>''.__('دیدگاه شما','mythemeshop').'', 'comment_notes_after' => '', 'label_submit' => 'ارسال متن شما', 'comment_field' => '<p class="comment-form-comment"><label for="comment">'.__('دیدگاه:','mythemeshop').'<span class="required">*</span></label><textarea id="comment" name="comment" cols="45" rows="5" aria-required="true"></textarea></p>', 'fields' => apply_filters( 'comment_form_default_fields', array( 'author' => '<p class="comment-form-author">' . '<label for="author">' . __( 'نام', 'mythemeshop' ) . ':<span class="required">*</span></label>' . ( $req ? '' : '' ) . '<input id="author" name="author" type="text" value="' . esc_attr( $commenter['comment_author'] ) . '" size="30"' . $aria_req . ' /></p>', 'email' => '<p class="comment-form-email"><label for="email">' . __( 'ایمیل', 'mythemeshop' ) . ':<span class="required">*</span></label>' . ( $req ? '' : '' ) . '<input id="email" name="email" type="text" value="' . esc_attr( $commenter['comment_author_email'] ) . '" size="30"' . $aria_req . ' /></p>', 'url' => '<p class="comment-form-url"><label for="url">' . __( 'وب سایت', 'mythemeshop' ) . ':</label>' . '<input id="url" name="url" type="text" value="' . esc_attr( $commenter['comment_author_url'] ) . '" size="30" /></p>' )) ); comment_form($comments_args); ?> </div> <div class="heading"><i class="icon-comments-alt"></i><?php comments_number(__('بدون دیدگاه','mythemeshop'), __('یک دیدگاه','mythemeshop'), __('% دیدگاه','mythemeshop') );?></div> <ol class="commentlist group"> <div class="navigation"> <div class="alignleft"><?php previous_comments_link() ?></div> <div class="alignright"><?php next_comments_link() ?></div> </div> <?php wp_list_comments(); ?> <div class="navigation bottomnav"> <div class="alignleft"><?php previous_comments_link() ?></div> <div class="alignright"><?php next_comments_link() ?></div> </div> </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 class="nocomments"></p><?php endif; ?><?php endif; ?><?php if ('open' == $post->comment_status) : ?><?php endif; // if you delete this the sky will fall on your head ?></div> 3 نقل قول لینک به ارسال
پست های پیشنهاد شده
به گفتگو بپیوندید
هم اکنون می توانید مطلب خود را ارسال نمایید و بعداً ثبت نام کنید. اگر حساب کاربری دارید، برای ارسال با حساب کاربری خود اکنون وارد شوید .