echo $params['form_title_start'];
 echo $params['form_title_text'];
 echo $params['form_title_end'];
 /*
 	echo '<script type="text/javascript">
 /* <![CDATA[ *
 function validateCommentForm(form)
 {
 	if( form.p.value.replace(/^\s+|\s+$/g,"").length == 0 )
 	{
 		alert("'.TS_('Please do not send empty comments.').'");
 		return false;
 	}
 }/* ]]> *
 </script>';*/
 $Form = new Form(get_htsrv_url() . 'comment_post.php', 'bComment_form_id_' . $Item->ID, 'post', NULL, 'multipart/form-data');
 $Form->switch_template_parts($params['form_params']);
 $Form->begin_form('bComment', '', array('target' => '_self'));
 // TODO: dh> a plugin hook would be useful here to add something to the top of the Form.
 //           Actually, the best would be, if the $Form object could be changed by a plugin
 //           before display!
 $Form->add_crumb('comment');
 $Form->hidden('comment_item_ID', $Item->ID);
 if (!empty($comment_reply_ID)) {
     $Form->hidden('reply_ID', $comment_reply_ID);
     // Link to scroll back up to replying comment
     echo '<a href="' . url_add_param($Item->get_permanent_url(), 'reply_ID=' . $comment_reply_ID . '&amp;redir=no') . '#c' . $comment_reply_ID . '" class="comment_reply_current" rel="' . $comment_reply_ID . '">' . T_('You are currently replying to a specific comment') . '</a>';
 }
 $Form->hidden('redirect_to', $Item->get_feedback_url($disp == 'feedback-popup', '&'));
 if (check_user_status('is_validated')) {
     // User is logged in and activated:
    $comment_author = param_cookie($cookie_name, 'string', '');
    $comment_author_email = utf8_strtolower(param_cookie($cookie_email, 'string', ''));
    $comment_author_url = param_cookie($cookie_url, 'string', '');
    $comment_text = '';
} else {
    $comment_author = $Comment->author;
    $comment_author_email = $Comment->author_email;
    $comment_author_url = $Comment->author_url;
    $comment_text = $Comment->content;
}
$redirect = htmlspecialchars(url_rel_to_same_host(regenerate_url('', '', '', '&'), get_htsrv_url()));
?>

<!-- form to add a comment -->
<form action="<?php 
echo get_htsrv_url();
?>
comment_post.php" method="post" id="bComment_form_id_<?php 
echo $Item->ID;
?>
">

	<input type="hidden" name="comment_item_ID" value="<?php 
echo $Item->ID();
?>
" />
	<input type="hidden" name="redirect_to" value="<?php 
echo $Item->get_feedback_url($disp == 'feedback-popup', '&');
?>
" />
	<input type="hidden" name="crumb_comment" value="<?php 
Ejemplo n.º 3
0
	<?php 
skin_keywords_tag();
?>
	<?php 
skin_opengraph_tags();
?>
	<?php 
robots_tag();
?>
	<?php 
$js_blog_id = "";
if (!empty($Blog)) {
    // Set global js var "blog_id"
    $js_blog_id = "\r\n\t\tvar blog_id = '" . $Blog->ID . "';";
}
add_js_headline("// Paths used by JS functions:\n\t\tvar htsrv_url = '" . get_htsrv_url() . "';\n\t\tvar restapi_url = '" . get_restapi_url() . "';" . $js_blog_id);
?>
	<meta name="generator" content="b2evolution <?php 
app_version();
?>
" /> <!-- Please leave this for stats -->
	<?php 
if ($Blog->get_setting('feed_content') != 'none') {
    // auto-discovery urls
    ?>
	<link rel="alternate" type="application/rss+xml" title="RSS 2.0" href="<?php 
    $Blog->disp('rss2_url', 'raw');
    ?>
" />
	<link rel="alternate" type="application/atom+xml" title="Atom" href="<?php 
    $Blog->disp('atom_url', 'raw');
Ejemplo n.º 4
0
    if ($Blog->get_setting('allow_comment_subscriptions')) {
        $sql = 'SELECT count( sub_user_ID ) FROM T_subscriptions
					WHERE sub_user_ID = ' . $current_User->ID . ' AND sub_coll_ID = ' . $Blog->ID . ' AND sub_comments <> 0';
        if ($DB->get_var($sql) > 0) {
            echo '<p>' . T_('You are receiving notifications when anyone comments on any post.');
            echo ' <a href="' . $Blog->get('subsurl') . '">' . T_('Click here to manage your subscriptions.') . '</a></p>';
            $not_subscribed = false;
        }
    }
    if ($not_subscribed && $creator_User->ID == $current_User->ID && $UserSettings->get('notify_published_comments', $current_User->ID) != 0) {
        echo '<p>' . $params['notification_text'];
        echo ' <a href="' . $Blog->get('subsurl') . '">' . T_('Click here to manage your subscriptions.') . '</a></p>';
        $not_subscribed = false;
    }
    if ($not_subscribed && $Blog->get_setting('allow_item_subscriptions')) {
        if (get_user_isubscription($current_User->ID, $Item->ID)) {
            echo '<p>' . T_('You will be notified by email when someone comments here.');
            echo ' <a href="' . get_htsrv_url() . 'action.php?mname=collections&action=isubs_update&p=' . $Item->ID . '&amp;notify=0&amp;' . url_crumb('collections_isubs_update') . '">' . T_('Click here to unsubscribe.') . '</a></p>';
        } else {
            echo '<p><a href="' . get_htsrv_url() . 'action.php?mname=collections&action=isubs_update&p=' . $Item->ID . '&amp;notify=1&amp;' . url_crumb('collections_isubs_update') . '">' . T_('Notify me by email when someone comments here.') . '</a></p>';
        }
    }
    echo '</div>';
}
if ($Item->can_see_comments(false) && ($params['disp_comments'] || $params['disp_trackbacks'] || $params['disp_pingbacks'])) {
    // user is allowed to see comments
    // Display link for comments feed:
    $Item->feedback_feed_link('_rss2', '<div class="feedback_feed_msg"><p>', '</p></div>');
}
echo '</div>';
// End of <div id="comment_wrapper">