本文整理汇总了PHP中cfct_misc函数的典型用法代码示例。如果您正苦于以下问题:PHP cfct_misc函数的具体用法?PHP cfct_misc怎么用?PHP cfct_misc使用的例子?那么, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了cfct_misc函数的10个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: cfct_banner
//
// 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__);
}
if (have_posts()) {
echo '<ol class="archive">';
while (have_posts()) {
the_post();
?>
<li class="search">
<?php
cfct_template_file('excerpt', 'search');
?>
</li>
<?php
}
echo '</ol>';
} else {
cfct_misc('no-results');
}
示例2: while
if (have_posts()) {
while (have_posts()) {
the_post();
?>
<h1><?php
printf(__('Posts by: <a href="%s">%s</a>', 'carrington-jam'), get_author_posts_url(get_the_author_meta('id')), get_the_author_meta('display_name'));
?>
</h1>
<?php
$bio = get_the_author_meta('description');
if (!empty($bio)) {
?>
<h2><?php
printf(__('About %s', 'carrington-jam'), get_the_author_meta('display_name'));
?>
</h2>
<?php
echo cfct_basic_content_formatting($bio);
}
break;
}
}
rewind_posts();
cfct_loop();
cfct_misc('nav-posts');
get_sidebar();
get_footer();
示例3: the_time
?>
</a></h1>
<time class="entry-date" datetime="<?php
the_time('c');
?>
" pubdate><a href="<?php
the_permalink();
?>
"><?php
echo cfcp_date();
?>
</a></time>
</div>
<div class="entry-content">
<div class="entry-media">
<a href="<?php
the_permalink();
?>
"><?php
the_post_thumbnail('medium-img');
?>
</a>
</div>
<?php
the_excerpt();
?>
</div>
<?php
cfct_misc('entry-meta-excerpts');
?>
</article>
示例4: cfct_banner
// 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();
?>
<p class="pagination"><?php
cfct_misc('nav-single');
?>
</p>
<div id="content" class="group">
<?php
cfct_loop();
comments_template();
?>
</div><!--#content-->
<p id="next-prev-bottom" class="pagination"><?php
cfct_misc('nav-single');
?>
</p>
<?php
get_footer();
示例5: 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__);
}
if (have_posts()) {
echo '<ul class="disclosure table group">';
while (have_posts()) {
the_post();
?>
<li>
<?php
cfct_excerpt();
?>
</li>
<?php
}
echo '<li class="pagination">', cfct_misc('nav-list'), '</li>';
echo '</ul>';
}
示例6: trim
echo trim(str_replace(array("'", "\n", '/'), array("\\'", '', '\\/'), $wp_scripts));
?>
');
//--></script>
</head>
<body<?php
if (is_single() || is_page()) {
echo '';
} else {
echo ' id="is-list"';
}
?>
>
<h1 id="site-name"><a rel="home" href="<?php
bloginfo('url');
?>
"><?php
bloginfo('name');
?>
</a></h1>
<hr />
<p id="navigation-top" class="navigation">
<?php
cfct_misc('main-nav');
?>
</p>
<hr />
示例7: cfct_banner
* 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="primary">
<?php
cfct_loop();
comments_template();
cfct_misc('nav-post');
?>
</div>
<div id="secondary">
<?php
get_sidebar();
?>
</div>
<?php
get_footer();
示例8: the_time
→</a></h1>
<time class="entry-date" datetime="<?php
the_time('c');
?>
" pubdate><?php
echo cfcp_date();
?>
</time>
</header>
<div class="entry-content clearfix">
<?php
if (has_post_thumbnail()) {
?>
<a href="<?php
echo $url;
?>
" class="link-screenshot"><?php
the_post_thumbnail('thumb-img');
?>
</a>
<?php
}
the_content();
?>
</div><!-- .entry-content -->
<?php
cfct_misc('entry-meta');
?>
</article><!-- .post -->
示例9: the_time
?>
</div>
<div class="meta">
<time class="published" pubdate datetime="<?php
the_time('c');
?>
"><?php
the_time('F j, Y');
?>
</time>
<?php
anno_the_terms('article_category', '<span class="article-categories"> <span class="sep">·</span> ', ',', '</span>');
?>
</div>
<?php
cfct_misc('tools-bar');
?>
<div class="sec sec-authors">
<span class="title"><span><?php
_e('Authors', 'anno');
?>
</span></span>
<ul class="authors nav">
<?php
anno_the_authors();
?>
</ul>
</div>
</header>
<div class="main">
<div class="content entry-content">
示例10: bloginfo
<meta charset="<?php
bloginfo('charset');
?>
" />
<title><?php
wp_title('-', true, 'right');
echo esc_html(get_bloginfo('name'));
?>
</title>
<?php
wp_head();
?>
<?php
cfct_misc('custom-colors');
?>
</head>
<body <?php
body_class();
?>
>
<header id="header" class="act">
<div class="header-body">
<div class="in">
<?php
if (anno_has_header_image()) {
?>
<h1 id="site-name"><a href="<?php
echo home_url();