本文整理汇总了PHP中printCommentForm函数的典型用法代码示例。如果您正苦于以下问题:PHP printCommentForm函数的具体用法?PHP printCommentForm怎么用?PHP printCommentForm使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了printCommentForm函数的7个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: printPageListWithNav
<br class="clearall" />
<?php
if (hasPrevPage() || hasNextPage()) {
printPageListWithNav(gettext("prev"), gettext("next"), false, true, 'pagelist', NULL, true, 7);
}
if (function_exists('printSlideShowLink')) {
echo '<span id="slideshowlink">';
printSlideShowLink();
echo '</span>';
}
if (function_exists('printAddToFavorites')) {
echo "<br />";
printAddToFavorites($_zp_current_album);
}
if (function_exists('printCommentForm')) {
printCommentForm();
}
?>
</div>
<div class="content-secondary">
<?php
jqm_printMenusLinks();
?>
</div>
</div><!-- /content -->
<?php
jqm_printBacktoTopLink();
jqm_printFooterNav();
?>
</div><!-- /page -->
示例2: printCommentForm
?>
</div>
<?php
}
?>
</div>
<?php
if (is_NewsArticle()) {
if (function_exists('printCommentForm') and function_exists('zenFBComments')) {
$class = ' deux';
} else {
$class = ' un';
}
if (function_exists('printCommentForm')) {
echo '<div class="comments' . $class . '">';
printCommentForm(true, '', false);
echo '</div>';
}
if (function_exists('zenFBComments')) {
echo '<div class="facebook FBcomments comments' . $class . '">';
zenFBComments();
echo '</div>';
}
}
?>
<div class="clear"></div>
</div>
<div id="footer">
<?php
include_once 'footer.php';
?>
示例3: printCommentForm
?>
</p></dd>
<?php
}
if ($autonumber) {
?>
</dl>
<?php
}
?>
<script type="text/javascript">
// <!-- <![CDATA[
var initstate = <?php
echo $errors;
?>
;
// ]]> -->
</script>
<script type="text/javascript" src="<?php
echo $_zp_themeroot;
?>
/js/comments.js"></script>
<!-- BEGIN #commentblock -->
<div id="commentblock">
<?php
printCommentForm(false, '');
?>
</div>
<!-- END #commentblock -->
</div>
<!-- END #comments -->
示例4: commonComment
function commonComment()
{
if (function_exists('printCommentForm')) {
?>
<div id="commentbox">
<?php
if (getCommentErrors() || getCommentCount() == 0) {
$style = NULL;
$head = '';
} else {
//TODO: if the following line is used as intended the comment textarea is hidden to start with and when shown is not full width.
// $style = ' class="comment" style="display:none;"';
$style = ' class="commentx" style="display:block;"';
$head = "<div{$style}><h3>" . gettext('Add a comment') . '</h3></div>';
}
printCommentForm(true, $head, true, $style);
?>
</div><!-- id="commentbox" -->
<?php
}
}
示例5: commonComment
function commonComment()
{
if (function_exists('printCommentForm')) {
?>
<div id="commentbox">
<?php
if (getCommentErrors()) {
$style = NULL;
$head = '';
} else {
$style = 'style="display:none;"';
$head = '<br clear="all" /><p class="buttons"><a href="javascript:toggle(\'commententry\');" >' . gettext('Add a comment') . '</a></p><br clear="all" />';
}
printCommentForm(true, $head, true, $style);
?>
</div><!-- id="commentbox" -->
<?php
}
}
示例6: getCommentCount
$comments_allowed = $_zp_current_article->getCommentsAllowed();
break;
default:
return;
break;
}
?>
<?php
if ($comments_open && ($comments_allowed || getCommentCount() > 0)) {
?>
<a class="fadetoggler"><img src="<?php
echo $_zp_themeroot;
?>
/images/icon-comment.png" alt="icon-comment" id="icon-comment" />
<?php
$num = getCommentCount();
if ($num == 0) {
echo gettext('No Comments');
} else {
echo sprintf(ngettext('%u Comment', '%u Comments', $num), $num);
}
?>
</a>
<div id="comment-wrap" class="fader clearfix">
<?php
printCommentForm(true, NULL, true);
?>
</div>
<?php
}
示例7: commentFormDisplay
function commentFormDisplay()
{
?>
<div class="clear_left"></div>
<div id="commentaires">
<?php
if (function_exists('printCommentForm')) {
printCommentForm();
}
?>
</div>
<?php
}