/** * 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 -->
<!-- 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();
* 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 ?>
<?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 ?>
/** * 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 ); }
<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 />',
* * 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 ?>