Warning: Cannot modify header information - headers already sent by (output started at /home/gabes/www/bebe-luc/inc/config.php:38) in /home/gabes/www/bebe-luc/inc/clearbricks/common/lib.http.php on line 211
Warning: Cannot modify header information - headers already sent by (output started at /home/gabes/www/bebe-luc/inc/config.php:38) in /home/gabes/www/bebe-luc/inc/clearbricks/common/lib.http.php on line 213
Warning: Cannot modify header information - headers already sent by (output started at /home/gabes/www/bebe-luc/inc/config.php:38) in /home/gabes/www/bebe-luc/inc/load_plugin_file.php on line 83
Warning: Cannot modify header information - headers already sent by (output started at /home/gabes/www/bebe-luc/inc/config.php:38) in /home/gabes/www/bebe-luc/inc/load_plugin_file.php on line 84
/* Inspired by http://iyus.info/at-reply-petit-plugin-wordpress-inspire-par-twitter/ */
$(function() {
$('span.commentAuthor').each(function() {
/* duplicate the link to create an element on-the-fly,
because the element with its event can't be used twice */
var link = $(atReplyLink).click( function () {
var commentAuthor = $(this).parent().children('.commentAuthor');
var id = commentAuthor.attr('id').replace('atreply_','c');
var name = commentAuthor.attr('title');
$('#c_content').val($('#c_content').val()+'@['+name+'|#'+id+'] : ');
/* show comment form on Noviny theme and its derivatives */
$('#comment-form h3').find('a').trigger('click');
/* Noviny will put the focus on the name field,
set the focus to the comment content*/
$('#c_content').focus();
return false;
});
/* add the link */
$(this).parent().append(link);
if (atReplyDisplayTitle != true) {return;}
/* add an hover effect */
$(this).parent().hover(
function () {
$(this).find('.at_reply_title').show();
},
function () {
$(this).find('.at_reply_title').hide();
});
});
});