本文整理汇总了PHP中hybrid_entry_class函数的典型用法代码示例。如果您正苦于以下问题:PHP hybrid_entry_class函数的具体用法?PHP hybrid_entry_class怎么用?PHP hybrid_entry_class使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了hybrid_entry_class函数的7个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: get_header
/**
* Template Name: Custom Template - Text Left
*
* @package Hybrid
* @subpackage Template
*/
get_header(); ?>
<div class="hfeed content">
<?php hybrid_before_content(); // Before content hook ?>
<?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?>
<div id="post-<?php the_ID(); ?>" class="<?php hybrid_entry_class(); ?>">
<?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 -->
示例2: while
<!-- Begin featured area. -->
<div id="feature">
<?php
while (have_posts()) {
the_post();
?>
<?php
do_atomic('before_entry');
// Before entry hook
?>
<div class="<?php
hybrid_entry_class();
?>
">
<?php
do_atomic('open_entry');
// Open entry hook
?>
<?php
echo apply_atomic_shortcode('entry_title', '[entry-title]');
?>
<div class="entry-content">
<?php
the_content();
示例3: get_header
* Application Attachment Template
*
* This application attachment template is used when a reader is viewing a single application
* attachment. Applications are uploads (i.e., attachments) that have a mime type of 'application'.
* @link http://themehybrid.com/themes/hybrid/attachments
*
* @package Hybrid
* @subpackage Template
*/
get_header(); ?>
<?php hybrid_before_content(); // Before content hook ?>
<?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?>
<?php the_ID(); ?><?php hybrid_entry_class(); ?>
<?php hybrid_before_entry(); // Before entry hook ?>
<?php hybrid_attachment(); ?>
<?php the_content( sprintf( __( 'Continue reading %1$s', 'hybrid' ), the_title( ' "', '"', false ) ) ); ?>
<?php echo wp_get_attachment_url(); ?><?php the_title_attribute(); ?><?php echo get_post_mime_type(); ?>
<?php printf( __( 'Download "%1$s"', 'hybrid' ), the_title( '<span class="fn">', '</span>', false) ); ?>
<?php wp_link_pages( array( 'before' => '<p class="page-links pages">' . __( 'Pages:', 'hybrid' ), 'after' => '</p>' ) ); ?>
<?php hybrid_after_entry(); // After entry hook ?>
<?php hybrid_after_singular(); // After singular hook ?>
示例4: wp_link_pages
<?php wp_link_pages( array( 'before' => '<p class="page-links 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 comments_template( '/comments.php', true ); ?>
<?php endwhile; ?>
<?php elseif ( have_posts() && !is_user_logged_in() ) : // If user is not logged in ?>
<div id="post-0" class="<?php hybrid_entry_class(); ?>">
<?php hybrid_before_entry(); // Before entry hook ?>
<div class="entry-content">
<p class="alert">
<?php printf( __( 'You must be <a href="%1$s" title="Log in">logged in</a> to view the content of this page.', 'hybrid' ), wp_login_url( get_permalink() ) ); ?>
<?php if ( get_option( 'users_can_register' ) ) printf( __( 'If you\'re not currently a member, please take a moment to <a href="%1$s" title="Register">register</a>.', 'hybrid' ), site_url( 'wp-login.php?action=register', 'login' ) ); ?>
</p><!-- .alert -->
</div><!-- .entry-content -->
<?php hybrid_after_entry(); // After entry hook ?>
示例5: hybrid_post_class
/**
* Old equivalent of hybrid_entry_class().
*
* @since 0.2
* @deprecated 0.5 Use hybrid_entry_class() instead.
*/
function hybrid_post_class( $deprecated = '' ) {
_deprecated_function( __FUNCTION__, '0.5', 'hybrid_entry_class()' );
hybrid_entry_class( $deprecated );
}
示例6: hybrid_before_content
<div id="content" class="hfeed content">
<?php hybrid_before_content(); // Before content hook ?>
<div class="archive-info taxonomy-info">
<h1 class="archive-title taxonomy-title"><?php $term = get_term_by( 'slug', get_query_var( 'term' ), get_query_var( 'taxonomy' ) ); echo $term->name; ?></h1>
<div class="archive-description taxonomy-description">
<?php echo term_description( '', get_query_var( 'taxonomy' ) ); ?>
</div><!-- .archive-description -->
</div><!-- .archive-info -->
<div class="<?php hybrid_entry_class(); ?>">
<?php hybrid_before_entry(); // Before entry hook ?>
<div class="entry-content">
<?php $args = array(
'title_li' => false,
'title_before' => false,
'title_after' => false,
'category_name' => $term->name,
'category_before' => false,
'category_after' => false,
'categorize' => false,
'show_description' => true,
'between' => '<br />',
示例7: get_header
*
* This audio attachment template is used when a reader is viewing a single audio attachment.
* Audio attachments are uploads that have a mime type of 'audio'.
* @link http://themehybrid.com/themes/hybrid/attachments/audio
*
* @package Hybrid
* @subpackage Template
*/
get_header(); ?>
<?php hybrid_before_content(); // Before content hook ?>
<?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?>
<?php the_ID(); ?> <?php hybrid_entry_class( 'haudio' ); ?>
<?php hybrid_before_entry(); // Before entry hook ?>
<?php hybrid_attachment(); ?>
<?php the_content( sprintf( __( 'Continue reading %1$s', 'hybrid' ), the_title( ' "', '"', false ) ) ); ?>
<a href="<?php echo wp_get_attachment_url(); ?>" title="<?php the_title_attribute(); ?>" rel="enclosure" type="<?php echo get_post_mime_type(); ?>"><?php printf( __( 'Download "%1$s"', 'hybrid' ), the_title( '<span class="fn">', '</span>', false) ); ?></a>
</p><!-- .download -->
<?php wp_link_pages( array( 'before' => '<p class="page-links pages">' . __( 'Pages:', 'hybrid' ), 'after' => '</p>' ) ); ?>
</div><!-- .entry-content -->
<?php hybrid_after_entry(); // After entry hook ?>