本文整理汇总了PHP中CommentForm::js_validation方法的典型用法代码示例。如果您正苦于以下问题:PHP CommentForm::js_validation方法的具体用法?PHP CommentForm::js_validation怎么用?PHP CommentForm::js_validation使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类CommentForm
的用法示例。
在下文中一共展示了CommentForm::js_validation方法的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: customHead
function customHead()
{
?>
<script type="text/javascript" src="<?php
echo osc_current_admin_theme_js_url('jquery.validate.min.js');
?>
"></script>
<?php
CommentForm::js_validation(true);
}
示例2: _e
<div id="comments">
<?php
if (osc_count_item_comments() >= 1) {
?>
<h2 class="title">
<?php
_e('Comments', 'osclasswizards');
?>
</h2>
<?php
}
?>
<ul id="comment_error_list">
</ul>
<?php
CommentForm::js_validation();
?>
<?php
if (osc_count_item_comments() >= 1) {
?>
<div class="comments_list">
<?php
while (osc_has_item_comments()) {
?>
<div class="comment">
<h4><?php
echo osc_comment_title();
?>
<em>
<?php
_e("by", 'osclasswizards');
示例3: customHead
function customHead()
{
CommentForm::js_validation(true);
}
示例4: __
?>
<?php
if (isset($comment['pk_i_id'])) {
//editing...
$title = __("Edit comment");
$action_frm = "comment_edit_post";
$btn_text = __("Save");
} else {
//adding...
$title = __("Add a comment");
$action_frm = "add_comment_post";
$btn_text = __('Add');
}
?>
<?php
CommentForm::js_validation(true);
?>
<div id="content">
<?php
osc_current_admin_theme_path('include/backoffice_menu.php');
?>
<div id="right_column" class="right">
<div class="header_title">
<h1 class="comments"><?php
echo $title;
?>
</h1>
</div>
<?php
osc_show_flash_message('admin');
?>
示例5: item_comments
function item_comments()
{
if (osc_reg_user_post_comments() && osc_is_web_user_logged_in() || !osc_reg_user_post_comments()) {
?>
<div id="comments" class="box">
<?php
if (osc_count_item_comments() >= 1) {
?>
<h2>
<?php
_e('Comments', 'pop');
?>
(<?php
echo osc_count_item_comments();
?>
)
</h2>
<?php
}
?>
<?php
CommentForm::js_validation();
?>
<?php
if (osc_count_item_comments() >= 1) {
?>
<div class="comments_list">
<?php
while (osc_has_item_comments()) {
?>
<div class="comment">
<div class="user-avatar" style="background-image: url('<?php
echo osc_current_web_theme_url('images/seller-default.png');
?>
')"></div>
<?php
if (osc_comment_author_name()) {
?>
<h4><em><?php
echo osc_comment_author_name();
?>
:</em></h4>
<?php
} else {
?>
<h4><em><?php
echo osc_comment_author_email();
?>
:</em></h4>
<?php
}
?>
<div class="date">
<?php
echo osc_comment_pub_date();
?>
</div>
<p class="body"><?php
echo nl2br(osc_comment_body());
?>
</p>
<?php
if (osc_comment_user_id() && osc_comment_user_id() == osc_logged_user_id()) {
?>
<a rel="nofollow" href="<?php
echo osc_delete_comment_url();
?>
" title="<?php
_e('Delete your comment', 'pop');
?>
">
<?php
_e('Delete', 'pop');
?>
</a>
<?php
}
?>
</div>
<?php
}
?>
<div class="pagination">
<?php
echo osc_comments_pagination();
?>
</div>
</div>
<?php
}
?>
<div class="comment_form">
<h2>
<?php
_e('Leave your comment', 'pop');
?>
</h2>
//.........这里部分代码省略.........