本文整理汇总了PHP中hybrid_after_singular函数的典型用法代码示例。如果您正苦于以下问题:PHP hybrid_after_singular函数的具体用法?PHP hybrid_after_singular怎么用?PHP hybrid_after_singular使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了hybrid_after_singular函数的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: hybrid_before_entry
<?php hybrid_before_entry(); // Before entry hook ?>
<div class="entry-content">
<?php the_content(); ?>
<?php wp_link_pages( array( 'before' => '<p class="pages">' . __( 'Pages:', 'hybrid' ), 'after' => '</p>' ) ); ?>
</div><!-- .entry-content -->
<?php hybrid_after_entry(); // After entry hook ?>
</div><!-- .hentry -->
<?php hybrid_after_singular(); // After singular hook ?>
<?php
$allowComments = get_post_custom_values('Enable comments?');
if ( $allowComments[0] == "yes" ) :
?>
<?php comments_template( '', true ); ?>
<?php endif; ?>
<?php endwhile; ?>
<?php else: ?>
<p class="no-data">
<?php _e( 'Sorry, no page matched your criteria.', 'hybrid' ); ?>
</p><!-- .no-data -->
示例2: hybrid_after_page
/**
* @since 0.2.0
* @deprecated 0.7.0
*/
function hybrid_after_page()
{
_deprecated_function(__FUNCTION__, '0.7', "do_atomic( 'after_singular' )");
hybrid_after_singular();
}
示例3: hybrid_after_page
/**
* After page content but before the comments template.
* @since 0.2
* @deprecated 0.7 Use hybrid_after_singular().
*/
function hybrid_after_page() {
_deprecated_function( __FUNCTION__, '0.7', 'hybrid_after_singular()' );
hybrid_after_singular();
}