當前位置: 首頁>>代碼示例>>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;未經允許,請勿轉載。