Ticket #952 -> En el inicio, escribir comentarios sin cambiar de página

git-svn-id: https://192.168.0.254/svn/Proyectos.ASong2U_Web/trunk@100 cd1a4ea2-8c7f-e448-aada-19d1fee9e1d6
This commit is contained in:
David Arranz 2012-08-09 21:21:25 +00:00
parent 135df5fa47
commit 99131b2105

View File

@ -37,70 +37,33 @@ require(ghostpool_inc . 'options.php');
?>
<li <?php comment_class(); ?> id="li-comment-<?php comment_ID() ?>">
<div id="comment-<?php comment_ID() ?>" class="comment-box">
<div id="comment-<?php comment_ID() ?>" class="comment-box">
<div class="comment-avatar">
<?php echo get_avatar($comment, $size = '50'); ?>
</div>
<div class="comment-avatar">
<?php echo get_avatar($comment,$size='32'); ?>
</div>
<div class="comment-meta">
<span class="comment-author">
<?php printf(__('%s', 'gp_lang'), comment_author_link()) ?>
</span>
<span class="post-author">(<?php _e('Author', 'gp_lang'); ?>)</span>
<div class="clear"></div>
<div class="comment-date">
<?php comment_time(get_option('date_format')); ?>, <?php comment_time(get_option('time_format')); ?>
</div>
<div class="reply-link">&nbsp;&nbsp;/&nbsp;
<?php comment_reply_link(array_merge($args, array('reply_text' => __('Reply', 'gp_lang').' &rarr;', 'add_below' => 'comment', 'depth' => $depth, 'max_depth' => $args['max_depth']))); ?>
</div>
</div>
<?php if(defined("STARRATING_INSTALLED")) { ?>
<div class="comment-user-score">
<?php wp_gdsr_comment_integrate_standard_result(get_comment_ID(), '', 16); ?>
</div>
<?php } ?>
<div class="comment-meta">
<span class="comment-author">
<?php printf(__('%s', 'gp_lang'), comment_author_link()) ?>
</span>
<div class="clear"></div>
<div class="comment-text">
<?php comment_text(); ?>
<?php if($comment->comment_approved == '0') { ?>
<div class="moderation">
<?php _e('Your comment is awaiting moderation.', 'gp_lang'); ?>
</div>
<?php } ?>
</div>
<?php if(defined('STARRATING_INSTALLED') && $gp_settings['post_type'] == "Review" && $gp_settings['comment_thumbs'] == "Users can rate other comments") {
wp_gdsr_render_comment_thumbs(48, 0, '');
// Calls GDSR Data
//if(defined('STARRATING_INSTALLED')) { $gp_gdsrc = wp_gdsr_rating_comment(); }
?>
<!--<div class="thumb-rating">
<div class="left"><?php //echo $gp_gdsrc->thumb_votes; ?> found this helpful</div>
<div class="right">
<div class="left">Was this review helpful?</div>
<?php //wp_gdsr_render_comment_thumbs(); ?>
</div>
</div><div class="clear"></div>-->
<?php } ?>
</div>
<div class="clear"></div>
<div class="comment-date">
<?php comment_time(get_option('date_format')); ?>, <?php comment_time(get_option('time_format')); ?>
</div>
<div class="clear"></div>
<div class="comment-text">
<?php comment_text(); ?>
<?php if ($comment->comment_approved == '0') { ?>
<div class="moderation">
<?php _e('Your comment is awaiting moderation.', 'gp_lang'); ?>
</div>
<?php } ?>
</div>
</div>
<div class="clear"></div>
</div>
</li>
<?php } ?>
@ -154,15 +117,6 @@ require(ghostpool_inc . 'options.php');
<form action="<?php echo get_option('siteurl'); ?>/wp-comments-post.php" method="post" id="commentform" class="commentform">
<?php if(defined('STARRATING_INSTALLED') && $gp_settings['post_type'] == "Review" && ($gp_settings['user_voting'] == "Vote with or without posting a comment" OR $gp_settings['user_voting'] == "Vote only when posting a comment")) { ?>
<div class="comment-score">
<div class="comment-score-title"><?php _e('Rate This Item', 'gp_lang'); ?></div>
<div class="comment-score-stars">
<?php wp_gdsr_comment_integrate_standard_rating(); ?>
</div>
</div>
<?php } ?>
<?php if ($user_ID) {} else { ?>
<p><input type="text" name="author" id="author" value="<?php echo $comment_author; ?>" size="22" tabindex="1" <?php if ($req) echo "aria-required='true'"; ?> /> <label for="author"><?php _e('Name', 'gp_lang'); ?> <span class="required"><?php if ($req) echo "*"; ?></span></label></p>