XPressME Integration Kit

Trac

Changeset 629


Ignore:
Timestamp:
Jul 6, 2010, 12:23:08 PM (14 years ago)
Author:
toemon
Message:

スレッドタイプのコメントしにたとき、返信フォームの位置がおかしくなるバグ修正 Fixes #358

Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/extras/my_themes/comments.php

    r613 r629  
    6767 
    6868<?php if ('open' == $post->comment_status) : ?> 
    69         <div id="xpress-respond"> 
     69        <div id="respond"> 
    7070                <h3><?php comment_form_title( __('Leave a Reply', 'xpress'), __('Leave a Reply for %s' , 'xpress') ); ?></h3> 
     71                         
     72                <?php if ( function_exists('cancel_comment_reply_link') ): ?> 
     73                        <div id="cancel-comment-reply">  
     74                                <small><?php cancel_comment_reply_link() ?></small> 
     75                        </div>  
     76                <?php endif; ?> 
     77                 
     78                <?php if ( get_option('comment_registration') && !$user_ID ) : ?> 
     79                        <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> 
     80                <?php else : ?> 
     81                        <form action="<?php echo get_option('siteurl'); ?>/wp-comments-post.php" method="post" id="commentform"> 
     82                                <div id="xpress-comment-user"> 
     83                                        <?php if ( $user_ID ) : ?> 
     84                                                <?php if ( function_exists('wp_logout_url') ): ?> 
     85                                                        <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> 
     86                                                <?php else : ?> 
     87                                                        <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 get_option('siteurl'); ?>/wp-login.php?action=logout" title="<?php _e('Log out of this account', 'xpress'); ?>"><?php _e('Log out &raquo;', 'xpress'); ?></a></p> 
     88                                                <?php endif; ?> 
     89                                        <?php else : ?> 
     90                                                <p><input type="text" name="author" id="author" value="<?php echo $comment_author; ?>" size="22" tabindex="1" <?php if ($req) echo "aria-required='true'"; ?> /> 
     91                                                <label for="author"><small><?php _e('Name', 'xpress'); ?> <?php if ($req) _e("(required)", "xpress"); ?></small></label></p> 
     92 
     93                                                <p><input type="text" name="email" id="email" value="<?php echo $comment_author_email; ?>" size="22" tabindex="2" <?php if ($req) echo "aria-required='true'"; ?> /> 
     94                                                <label for="email"><small><?php _e('Mail (will not be published)', 'xpress'); ?> <?php if ($req) _e("(required)", "xpress"); ?></small></label></p> 
     95 
     96                                                <p><input type="text" name="url" id="url" value="<?php echo $comment_author_url; ?>" size="22" tabindex="3" /> 
     97                                                <label for="url"><small><?php _e('Website', 'xpress'); ?></small></label></p> 
     98                                        <?php endif; ?> 
     99                                </div> 
     100 
     101                                <div id="xpress-comment-form"> 
     102                                        <!--<p><small><?php printf(__('<strong>XHTML:</strong> You can use these tags: <code>%s</code>', 'xpress'), allowed_tags()); ?></small></p>--> 
     103 
     104                                        <textarea name="comment" id="comment" cols="100" rows="5" tabindex="4" style="width:100%"></textarea> 
     105                                        <div class ="xpress-comment-submit"> 
     106                                                <input name="submit" type="submit" id="submit" tabindex="5" value="<?php _e('Submit Comment', 'xpress'); ?>" /> 
     107                                        </div> 
     108                                        <?php if (function_exists('comment_id_fields')) : ?> 
     109                                                <?php comment_id_fields(); //@since 2.7.0 ?>   
     110                                        <?php else : ?> 
     111                                                <input type="hidden" name="comment_post_ID" value="<?php echo $id; ?>" /> 
     112                                        <?php endif; ?> 
     113                                        <?php do_action('comment_form', $post->ID); ?> 
     114                                </div> 
     115                        </form> 
     116                <?php endif; // If registration required and not logged in ?> 
    71117        </div> 
    72                          
    73         <?php if ( function_exists('cancel_comment_reply_link') ): ?> 
    74                 <div id="cancel-comment-reply">  
    75                         <small><?php cancel_comment_reply_link() ?></small> 
    76                 </div>  
    77         <?php endif; ?> 
    78          
    79         <?php if ( get_option('comment_registration') && !$user_ID ) : ?> 
    80                 <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> 
    81         <?php else : ?> 
    82                 <form action="<?php echo get_option('siteurl'); ?>/wp-comments-post.php" method="post" id="commentform"> 
    83                         <div id="xpress-comment-user"> 
    84                                 <?php if ( $user_ID ) : ?> 
    85                                         <?php if ( function_exists('wp_logout_url') ): ?> 
    86                                                 <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> 
    87                                         <?php else : ?> 
    88                                                 <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 get_option('siteurl'); ?>/wp-login.php?action=logout" title="<?php _e('Log out of this account', 'xpress'); ?>"><?php _e('Log out &raquo;', 'xpress'); ?></a></p> 
    89                                         <?php endif; ?> 
    90                                 <?php else : ?> 
    91                                         <p><input type="text" name="author" id="author" value="<?php echo $comment_author; ?>" size="22" tabindex="1" <?php if ($req) echo "aria-required='true'"; ?> /> 
    92                                         <label for="author"><small><?php _e('Name', 'xpress'); ?> <?php if ($req) _e("(required)", "xpress"); ?></small></label></p> 
    93  
    94                                         <p><input type="text" name="email" id="email" value="<?php echo $comment_author_email; ?>" size="22" tabindex="2" <?php if ($req) echo "aria-required='true'"; ?> /> 
    95                                         <label for="email"><small><?php _e('Mail (will not be published)', 'xpress'); ?> <?php if ($req) _e("(required)", "xpress"); ?></small></label></p> 
    96  
    97                                         <p><input type="text" name="url" id="url" value="<?php echo $comment_author_url; ?>" size="22" tabindex="3" /> 
    98                                         <label for="url"><small><?php _e('Website', 'xpress'); ?></small></label></p> 
    99                                 <?php endif; ?> 
    100                         </div> 
    101  
    102                         <div id="xpress-comment-form"> 
    103                                 <!--<p><small><?php printf(__('<strong>XHTML:</strong> You can use these tags: <code>%s</code>', 'xpress'), allowed_tags()); ?></small></p>--> 
    104  
    105                                 <textarea name="comment" id="comment" cols="100" rows="5" tabindex="4" style="width:100%"></textarea> 
    106                                 <div class ="xpress-comment-submit"> 
    107                                         <input name="submit" type="submit" id="submit" tabindex="5" value="<?php _e('Submit Comment', 'xpress'); ?>" /> 
    108                                 </div> 
    109                                 <?php if (function_exists('comment_id_fields')) : ?> 
    110                                         <?php comment_id_fields(); //@since 2.7.0 ?>   
    111                                 <?php else : ?> 
    112                                         <input type="hidden" name="comment_post_ID" value="<?php echo $id; ?>" /> 
    113                                 <?php endif; ?> 
    114                                 <?php do_action('comment_form', $post->ID); ?> 
    115                         </div> 
    116                 </form> 
    117         <?php endif; // If registration required and not logged in ?> 
    118118 
    119119<?php endif; // if you delete this the sky will fall on your head ?> 
  • trunk/xpressme_integration_kit/wp-content/themes/xpress_default/comments.php

    r360 r629  
    6767 
    6868<?php if ('open' == $post->comment_status) : ?> 
    69         <div id="xpress-respond"> 
     69        <div id="respond"> 
    7070                <h3><?php comment_form_title( __('Leave a Reply', 'xpress'), __('Leave a Reply for %s' , 'xpress') ); ?></h3> 
     71                         
     72                <?php if ( function_exists('cancel_comment_reply_link') ): ?> 
     73                        <div id="cancel-comment-reply">  
     74                                <small><?php cancel_comment_reply_link() ?></small> 
     75                        </div>  
     76                <?php endif; ?> 
     77                 
     78                <?php if ( get_option('comment_registration') && !$user_ID ) : ?> 
     79                        <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> 
     80                <?php else : ?> 
     81                        <form action="<?php echo get_option('siteurl'); ?>/wp-comments-post.php" method="post" id="commentform"> 
     82                                <div id="xpress-comment-user"> 
     83                                        <?php if ( $user_ID ) : ?> 
     84                                                <?php if ( function_exists('wp_logout_url') ): ?> 
     85                                                        <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> 
     86                                                <?php else : ?> 
     87                                                        <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 get_option('siteurl'); ?>/wp-login.php?action=logout" title="<?php _e('Log out of this account', 'xpress'); ?>"><?php _e('Log out &raquo;', 'xpress'); ?></a></p> 
     88                                                <?php endif; ?> 
     89                                        <?php else : ?> 
     90                                                <p><input type="text" name="author" id="author" value="<?php echo $comment_author; ?>" size="22" tabindex="1" <?php if ($req) echo "aria-required='true'"; ?> /> 
     91                                                <label for="author"><small><?php _e('Name', 'xpress'); ?> <?php if ($req) _e("(required)", "xpress"); ?></small></label></p> 
     92 
     93                                                <p><input type="text" name="email" id="email" value="<?php echo $comment_author_email; ?>" size="22" tabindex="2" <?php if ($req) echo "aria-required='true'"; ?> /> 
     94                                                <label for="email"><small><?php _e('Mail (will not be published)', 'xpress'); ?> <?php if ($req) _e("(required)", "xpress"); ?></small></label></p> 
     95 
     96                                                <p><input type="text" name="url" id="url" value="<?php echo $comment_author_url; ?>" size="22" tabindex="3" /> 
     97                                                <label for="url"><small><?php _e('Website', 'xpress'); ?></small></label></p> 
     98                                        <?php endif; ?> 
     99                                </div> 
     100 
     101                                <div id="xpress-comment-form"> 
     102                                        <!--<p><small><?php printf(__('<strong>XHTML:</strong> You can use these tags: <code>%s</code>', 'xpress'), allowed_tags()); ?></small></p>--> 
     103 
     104                                        <textarea name="comment" id="comment" cols="100" rows="5" tabindex="4" style="width:100%"></textarea> 
     105                                        <div class ="xpress-comment-submit"> 
     106                                                <input name="submit" type="submit" id="submit" tabindex="5" value="<?php _e('Submit Comment', 'xpress'); ?>" /> 
     107                                        </div> 
     108                                        <?php if (function_exists('comment_id_fields')) : ?> 
     109                                                <?php comment_id_fields(); //@since 2.7.0 ?>   
     110                                        <?php else : ?> 
     111                                                <input type="hidden" name="comment_post_ID" value="<?php echo $id; ?>" /> 
     112                                        <?php endif; ?> 
     113                                        <?php do_action('comment_form', $post->ID); ?> 
     114                                </div> 
     115                        </form> 
     116                <?php endif; // If registration required and not logged in ?> 
    71117        </div> 
    72                          
    73         <?php if ( function_exists('cancel_comment_reply_link') ): ?> 
    74                 <div id="cancel-comment-reply">  
    75                         <small><?php cancel_comment_reply_link() ?></small> 
    76                 </div>  
    77         <?php endif; ?> 
    78          
    79         <?php if ( get_option('comment_registration') && !$user_ID ) : ?> 
    80                 <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> 
    81         <?php else : ?> 
    82                 <form action="<?php echo get_option('siteurl'); ?>/wp-comments-post.php" method="post" id="commentform"> 
    83                         <div id="xpress-comment-user"> 
    84                                 <?php if ( $user_ID ) : ?> 
    85                                         <?php if ( function_exists('wp_logout_url') ): ?> 
    86                                                 <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> 
    87                                         <?php else : ?> 
    88                                                 <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 get_option('siteurl'); ?>/wp-login.php?action=logout" title="<?php _e('Log out of this account', 'xpress'); ?>"><?php _e('Log out &raquo;', 'xpress'); ?></a></p> 
    89                                         <?php endif; ?> 
    90                                 <?php else : ?> 
    91                                         <p><input type="text" name="author" id="author" value="<?php echo $comment_author; ?>" size="22" tabindex="1" <?php if ($req) echo "aria-required='true'"; ?> /> 
    92                                         <label for="author"><small><?php _e('Name', 'xpress'); ?> <?php if ($req) _e("(required)", "xpress"); ?></small></label></p> 
    93  
    94                                         <p><input type="text" name="email" id="email" value="<?php echo $comment_author_email; ?>" size="22" tabindex="2" <?php if ($req) echo "aria-required='true'"; ?> /> 
    95                                         <label for="email"><small><?php _e('Mail (will not be published)', 'xpress'); ?> <?php if ($req) _e("(required)", "xpress"); ?></small></label></p> 
    96  
    97                                         <p><input type="text" name="url" id="url" value="<?php echo $comment_author_url; ?>" size="22" tabindex="3" /> 
    98                                         <label for="url"><small><?php _e('Website', 'xpress'); ?></small></label></p> 
    99                                 <?php endif; ?> 
    100                         </div> 
    101  
    102                         <div id="xpress-comment-form"> 
    103                                 <!--<p><small><?php printf(__('<strong>XHTML:</strong> You can use these tags: <code>%s</code>', 'xpress'), allowed_tags()); ?></small></p>--> 
    104  
    105                                 <textarea name="comment" id="comment" cols="100" rows="5" tabindex="4" style="width:100%"></textarea> 
    106                                 <div class ="xpress-comment-submit"> 
    107                                         <input name="submit" type="submit" id="submit" tabindex="5" value="<?php _e('Submit Comment', 'xpress'); ?>" /> 
    108                                 </div> 
    109                                 <?php if (function_exists('comment_id_fields')) : ?> 
    110                                         <?php comment_id_fields(); //@since 2.7.0 ?>   
    111                                 <?php else : ?> 
    112                                         <input type="hidden" name="comment_post_ID" value="<?php echo $id; ?>" /> 
    113                                 <?php endif; ?> 
    114                                 <?php do_action('comment_form', $post->ID); ?> 
    115                         </div> 
    116                 </form> 
    117         <?php endif; // If registration required and not logged in ?> 
    118118 
    119119<?php endif; // if you delete this the sky will fall on your head ?> 
Note: See TracChangeset for help on using the changeset viewer.