* @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 comments_template( '/comments.php', true ); ?> <?php endwhile; ?>
tha_entry_top(); ?> <header class="entry-header"> <h1 <?php hybrid_attr('entry-title'); ?> ><?php single_post_title(); ?> </h1> </header><!-- .entry-header --> <div class="entry-content"> <?php hybrid_attachment(); // Function for handling non-image attachments. ?> <?php the_content(); ?> <?php wp_link_pages(); ?> </div><!-- .entry-content --> <footer class="entry-footer"> <p class="entry-meta"> <time <?php hybrid_attr('entry-published'); ?>
/** * Display any type of Attachment * @since 0.1.0 */ function tamatebako_attachment() { if (wp_attachment_is_image(get_the_ID())) { tamatebako_attachment_image(); } else { hybrid_attachment(); } }