本文整理汇总了PHP中cfct_form函数的典型用法代码示例。如果您正苦于以下问题:PHP cfct_form函数的具体用法?PHP cfct_form怎么用?PHP cfct_form使用的例子?那么, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了cfct_form函数的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: cfct_banner
// http://crowdfavorite.com
//
// Released under the GPL license
// http://www.opensource.org/licenses/gpl-license.php
//
// **********************************************************************
// This program is distributed in the hope that it will be useful, but
// WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
// **********************************************************************
if (__FILE__ == $_SERVER['SCRIPT_FILENAME']) {
die;
}
if (CFCT_DEBUG) {
cfct_banner(__FILE__);
}
get_header();
?>
<div id="content">
<p><?php
_e('Sorry, we\'re not sure what you\'re looking for here.', 'carrington-blog');
?>
</p>
<?php
cfct_form('search');
?>
</div><!--#content-->
<?php
get_sidebar();
get_footer();
示例2: printf
<p><?php
printf(__('Stay in touch with the conversation, subscribe to the <a class="feed" rel="alternate" href="%s"><acronym title="Really Simple Syndication">RSS</acronym> feed for comments on this post</a>.', 'carrington-blog'), get_post_comments_feed_link($post->ID, ''));
?>
</p>
<?php
if ($comments) {
$comment_count = 0;
$ping_count = 0;
foreach ($comments as $comment) {
if (get_comment_type() == 'comment') {
$comment_count++;
} else {
$ping_count++;
}
}
if ($comment_count) {
cfct_template_file('comments', 'comments-loop');
}
if ($ping_count) {
?>
<h3 class="pings"><?php
_e('Continuing the Discussion', 'carrington-blog');
?>
</h3>
<?php
cfct_template_file('comments', 'pings-loop');
}
}
cfct_form('comment');
}