XPressME Integration Kit

Trac


Ignore:
Timestamp:
Apr 8, 2009, 9:07:06 PM (15 years ago)
Author:
toemon
Message:

#101 xpress_defaultテーマ シングルページレイアウト崩れのためcomments.php修正

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-content/themes/xpress_default/comments.php

    r150 r168  
    3636<?php if ('open' == $post->comment_status) : ?> 
    3737        <div id="xpress-respond"> 
    38  
    3938                <h3><?php comment_form_title( __('Leave a Reply', 'xpress'), __('Leave a Reply for %s' , 'xpress') ); ?></h3> 
    4039        </div> 
     
    4241        <div id="cancel-comment-reply">  
    4342                <small><?php cancel_comment_reply_link() ?></small> 
    44                 </div>  
     43        </div>  
    4544         
    46                 <?php if ( get_option('comment_registration') && !$user_ID ) : ?> 
    47                         <p><?php printf(__('You must be <a href="%s">logged in</a> to post a comment.', 'xpress'), get_option('siteurl') . '/wp-login.php?redirect_to=' . urlencode(get_permalink())); ?></p> 
    48                 <?php else : ?> 
     45        <?php if ( get_option('comment_registration') && !$user_ID ) : ?> 
     46                <p><?php printf(__('You must be <a href="%s">logged in</a> to post a comment.', 'xpress'), get_option('siteurl') . '/wp-login.php?redirect_to=' . urlencode(get_permalink())); ?></p> 
     47        <?php else : ?> 
     48                <form action="<?php echo get_option('siteurl'); ?>/wp-comments-post.php" method="post" id="commentform"> 
    4949                        <div id="xpress-comment-user"> 
    50                                 <form action="<?php echo get_option('siteurl'); ?>/wp-comments-post.php" method="post" id="commentform"> 
    5150                                <?php if ( $user_ID ) : ?> 
    5251                                        <p><?php printf(__('Logged in as <a href="%1$s">%2$s</a>.', 'xpress'), get_option('siteurl') . '/wp-admin/profile.php', $user_identity); ?> <a href="<?php echo wp_logout_url(get_permalink()); ?>" title="<?php _e('Log out of this account', 'xpress'); ?>"><?php _e('Log out &raquo;', 'xpress'); ?></a></p> 
     
    7271                                <?php comment_id_fields(); ?>    
    7372                                <?php do_action('comment_form', $post->ID); ?> 
    74                                 </form> 
    7573                        </div> 
    76                 <?php endif; // If registration required and not logged in ?> 
    77         </div> 
     74                </form> 
     75        <?php endif; // If registration required and not logged in ?> 
    7876 
    7977<?php endif; // if you delete this the sky will fall on your head ?> 
Note: See TracChangeset for help on using the changeset viewer.