当前位置: 首页>>代码示例>>PHP>>正文


PHP printCommentForm函数代码示例

本文整理汇总了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 -->
开发者ID:rb26,项目名称:zenphoto,代码行数:30,代码来源:album.php

示例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';
?>
开发者ID:Imagenomad,项目名称:Unsupported,代码行数:31,代码来源:news.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 -->
开发者ID:hatone,项目名称:zenphoto-1.4.1.4,代码行数:31,代码来源:comment.php

示例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 
    }
}
开发者ID:rb26,项目名称:zenphoto,代码行数:21,代码来源:functions.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 
    }
}
开发者ID:hatone,项目名称:zenphoto-1.4.1.4,代码行数:19,代码来源:functions.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 
}
开发者ID:ariep,项目名称:ZenPhoto20-DEV,代码行数:31,代码来源:inc_print_comment.php

示例7: commentFormDisplay

function commentFormDisplay()
{
    ?>
	<div class="clear_left"></div>
	<div id="commentaires">
	<?php 
    if (function_exists('printCommentForm')) {
        printCommentForm();
    }
    ?>
	</div>
<?php 
}
开发者ID:Imagenomad,项目名称:Unsupported,代码行数:13,代码来源:functions.php


注:本文中的printCommentForm函数示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。