本文整理汇总了PHP中CommentForm::author_input_text方法的典型用法代码示例。如果您正苦于以下问题:PHP CommentForm::author_input_text方法的具体用法?PHP CommentForm::author_input_text怎么用?PHP CommentForm::author_input_text使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类CommentForm
的用法示例。
在下文中一共展示了CommentForm::author_input_text方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: _e
?>
</div>
<div class="form-controls">
<?php
CommentForm::title_input_text($comment);
?>
</div>
</div>
<div class="form-row">
<div class="form-label"><?php
_e('Author');
?>
</div>
<div class="form-controls">
<?php
CommentForm::author_input_text($comment);
?>
<?php
if (isset($comment['fk_i_user_id']) && $comment['fk_i_user_id'] != '') {
_e("Registered user");
?>
<a href="<?php
echo osc_admin_base_url(true);
?>
?page=users&action=edit&id=<?php
echo $comment['fk_i_user_id'];
?>
"><?php
_e('Edit user');
?>
</a>
示例2: osc_logged_user_email
<input type="hidden" name="authorEmail" value="<?php
echo osc_logged_user_email();
?>
" />
<?php
} else {
?>
<div class="form-group col-md-6">
<label class="control-label" for="authorName">
<?php
_e('Your name', 'osclasswizards');
?>
</label>
<div class="controls">
<?php
CommentForm::author_input_text();
?>
</div>
</div>
<div class="form-group col-md-6">
<label class="control-label" for="authorEmail">
<?php
_e('Your e-mail', 'osclasswizards');
?>
</label>
<div class="controls">
<?php
CommentForm::email_input_text();
?>
</div>
</div>
示例3: item_comments
//.........这里部分代码省略.........
<?php
echo osc_comments_pagination();
?>
</div>
</div>
<?php
}
?>
<div class="comment_form">
<h2>
<?php
_e('Leave your comment', 'pop');
?>
</h2>
<div class="resp-wrapper">
<ul id="comment_error_list" class="error_list">
</ul>
<form action="<?php
echo osc_base_url(true);
?>
" method="post" name="comment_form" id="comment_form">
<fieldset>
<input type="hidden" name="action" value="add_comment" />
<input type="hidden" name="page" value="item" />
<input type="hidden" name="id" value="<?php
echo osc_item_id();
?>
" />
<?php
if (osc_is_web_user_logged_in()) {
?>
<input type="hidden" name="authorName" value="<?php
echo osc_esc_html(osc_logged_user_name());
?>
" />
<input type="hidden" name="authorEmail" value="<?php
echo osc_logged_user_email();
?>
" />
<?php
} else {
?>
<div class="form-group col-md-6">
<label class="control-label" for="authorName">
<?php
_e('Name', 'pop');
?>
</label>
<div class="controls">
<?php
CommentForm::author_input_text();
?>
</div>
</div>
<div class="form-group col-md-6">
<label class="control-label" for="authorEmail">
<?php
_e('Email', 'pop');
?>
</label>
<div class="controls">
<?php
CommentForm::email_input_text();
?>
</div>
</div>
<?php
}
?>
<div class="form-group col-md-12">
<label class="control-label" for="body">
<?php
_e('Comment', 'pop');
?>
</label>
<div class="controls textarea">
<?php
CommentForm::body_input_textarea();
?>
</div>
</div>
<div class="actions col-md-12">
<button type="submit" class="btn btn-primary">
<?php
_e('Send', 'pop');
?>
</button>
</div>
</fieldset>
</form>
</div>
</div>
</div>
<?php
}
?>
<?php
}