function xtreme_image_pagination()
{
    $start = '<div class="pagination image">';
    $end = '</div>';
    if (xtreme_is_html5()) {
        $start = '<nav class="pagination image">';
        $end = '</nav>';
    }
    echo $start;
    ?>
	<div class="previous_link"><?php 
    previous_image_link('thumbnail');
    ?>
</div>
	<div class="next_link"><?php 
    next_image_link('thumbnail');
    ?>
</div>
	<?php 
    echo $end;
}
    the_post();
    ?>

            <article id="post-<?php 
    the_ID();
    ?>
" <?php 
    post_class();
    ?>
>

                <nav id="image-navigation" class="navigation image-navigation">
                    <div class="nav-links">
                        <div
                            class="nav-previous"><?php 
    previous_image_link(false, __('Previous Image', 'twentyfifteen'));
    ?>
</div>
                        <div class="nav-next"><?php 
    next_image_link(false, __('Next Image', 'twentyfifteen'));
    ?>
</div>
                    </div>
                    <!-- .nav-links -->
                </nav>
                <!-- .image-navigation -->

                <header class="entry-header">
                    <?php 
    the_title('<h1 class="entry-title">', '</h1>');
    ?>
Exemple #3
0
get_header(); ?>

	<div id="primary" class="content-area">
		<main id="main" class="site-main" role="main">

			<?php
				// Start the loop.
				while ( have_posts() ) : the_post();
			?>

				<article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>

					<nav id="image-navigation" class="navigation image-navigation">
						<div class="nav-links">
							<div class="nav-previous"><?php previous_image_link( false, __( 'Previous Image', 'twentyfifteen' ) ); ?></div><div class="nav-next"><?php next_image_link( false, __( 'Next Image', 'twentyfifteen' ) ); ?></div>
						</div><!-- .nav-links -->
					</nav><!-- .image-navigation -->

					<header class="entry-header">
						<?php the_title( '<h1 class="entry-title">', '</h1>' ); ?>
					</header><!-- .entry-header -->

					<div class="entry-content">

						<div class="entry-attachment">
							<?php
								/**
								 * Filter the default Twenty Fifteen image attachment size.
								 *
								 * @since Twenty Fifteen 1.0
Exemple #4
0
        ?>
									<img src="<?php 
        echo esc_url($image_attributes[0]);
        ?>
" width="<?php 
        echo $image_attributes[1];
        ?>
" height="<?php 
        echo $image_attributes[2];
        ?>
" />
								</div><!-- ./content -->
								<div id="image-thumbnails" class="clearfix">
									<div class="fl">
										<?php 
        previous_image_link();
        ?>
									</div>
									<div class="fr">
										<?php 
        next_image_link();
        ?>
									</div>
								</div><!-- /#image-thumbmails -->
							</div><!-- /.entry-content -->
						</div> <!-- /#post -->						
						<?php 
        comments_template('', true);
        ?>
						<?php 
        get_template_part('pagination');
$post_title = get_the_title($post->post_parent);
if (empty($post_title) || 0 == $post->post_parent) {
    $published_text = '<span class="attachment-meta"><time class="entry-date" datetime="%1$s">%2$s</time></span>';
}
printf($published_text, esc_attr(get_the_date('c')), esc_html(get_the_date()), esc_url(get_permalink($post->post_parent)), esc_attr(strip_tags($post_title)), $post_title);
$metadata = wp_get_attachment_metadata();
printf('<span class="attachment-meta full-size-link"><a href="%1$s" title="%2$s">%3$s (%4$s &times; %5$s)</a></span>', esc_url(wp_get_attachment_url()), esc_attr__('Link to full-size image', 'twentythirteen'), __('Full resolution', 'twentythirteen'), $metadata['width'], $metadata['height']);
edit_post_link(__('Edit', 'twentythirteen'), '<span class="edit-link">', '</span>');
?>
					</div><!-- .entry-meta -->
				</header><!-- .entry-header -->

				<div class="entry-content">
					<nav id="image-navigation" class="navigation image-navigation" role="navigation">
						<span class="nav-previous"><?php 
previous_image_link(false, __('<span class="meta-nav">&larr;</span> Previous', 'twentythirteen'));
?>
</span>
						<span class="nav-next"><?php 
next_image_link(false, __('Next <span class="meta-nav">&rarr;</span>', 'twentythirteen'));
?>
</span>
					</nav><!-- #image-navigation -->

					<div class="entry-attachment">
						<div class="attachment">
							<?php 
twentythirteen_the_attached_image();
?>

							<?php 
Exemple #6
0
$post_title = get_the_title($post->post_parent);
if (empty($post_title) || 0 == $post->post_parent) {
    $published_text = '<span class="attachment-meta"><time class="entry-date" datetime="%1$s">%2$s</time></span>';
}
printf($published_text, esc_attr(get_the_date('c')), esc_html(get_the_date()), esc_url(get_permalink($post->post_parent)), esc_attr(strip_tags($post_title)), $post_title);
$metadata = wp_get_attachment_metadata();
printf('<span class="attachment-meta full-size-link"><a href="%1$s" title="%2$s">%3$s (%4$s &times; %5$s)</a></span>', esc_url(wp_get_attachment_url()), esc_attr__('Link to full-size image', 'mckinley'), __('Full resolution', 'mckinley'), $metadata['width'], $metadata['height']);
edit_post_link(__('Edit', 'mckinley'), '<span class="edit-link">', '</span>');
?>
					</div><!-- .entry-meta -->
				</header><!-- .entry-header -->

				<div class="entry-content">
					<nav id="image-navigation" class="navigation image-navigation" role="navigation">
						<span class="nav-previous"><?php 
previous_image_link(false, __('<span class="meta-nav">&larr;</span> Previous', 'mckinley'));
?>
</span>
						<span class="nav-next"><?php 
next_image_link(false, __('Next <span class="meta-nav">&rarr;</span>', 'mckinley'));
?>
</span>
					</nav><!-- #image-navigation -->

					<div class="entry-attachment">
						<div class="attachment">
							<?php 
mckinley_the_attached_image();
?>

							<?php 
<?php
/**
 * @package WordPress
 * @subpackage Duster
 */

get_header(); ?>

		<div id="primary" class="image-attachment">
			<div id="content" role="main">

			<?php while ( have_posts() ) : the_post(); ?>

			<nav id="nav-single">
				<span class="nav-previous"><?php previous_image_link( false, __( '&larr; Previous' , 'duster' ) ); ?></span>
				<span class="nav-next"><?php next_image_link( false, __( 'Next &rarr;' , 'duster' ) ); ?></span>
			</nav><!-- #nav-single -->

				<article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
					<header class="entry-header">
						<h1 class="entry-title"><?php the_title(); ?></h1>

						<div class="entry-meta">
							<?php
								$metadata = wp_get_attachment_metadata();
								printf( __( '<span class="meta-prep meta-prep-entry-date">Published </span> <span class="entry-date"><abbr class="published" title="%1$s">%2$s</abbr></span> at <a href="%3$s" title="Link to full-size image">%4$s &times; %5$s</a> in <a href="%6$s" title="Return to %7$s" rel="gallery">%7$s</a>', 'duster' ),
									esc_attr( get_the_time() ),
									get_the_date(),
									wp_get_attachment_url(),
									$metadata['width'],
									$metadata['height'],
Exemple #8
0
        ?>
						<div class="entry-caption">
							<?php 
        the_excerpt();
        ?>
						</div>
						<?php 
    }
    ?>
					</div><!-- .attachment -->

				</div><!-- .entry-attachment -->

				<div id="image-navigation" class="navigation clearfix">
					<span class="previous-image"><?php 
    previous_image_link(false, __('&larr; Previous', 'Explorable'));
    ?>
</span>
					<span class="next-image"><?php 
    next_image_link(false, __('Next &rarr;', 'Explorable'));
    ?>
</span>
				</div><!-- #image-navigation -->

				<div class="entry-description">
					<?php 
    the_content();
    ?>
					<?php 
    wp_link_pages(array('before' => '<div class="page-links">' . __('Pages:', 'Explorable'), 'after' => '</div>'));
    ?>
Exemple #9
0
				<header class="entry-header">
					<?php 
    the_title('<h1 class="entry-title">', '</h1>');
    ?>

					<div class="entry-meta">
						<?php 
    $metadata = wp_get_attachment_metadata();
    printf(__('Published <span class="entry-date"><time class="entry-date" datetime="%1$s">%2$s</time></span> at <a href="%3$s" title="Link to full-size image">%4$s &times; %5$s</a> in <a href="%6$s" title="Return to %7$s" rel="gallery">%8$s</a>', 'alexandria'), esc_attr(get_the_date('c')), esc_html(get_the_date()), esc_url(wp_get_attachment_url()), $metadata['width'], $metadata['height'], esc_url(get_permalink($post->post_parent)), esc_attr(strip_tags(get_the_title($post->post_parent))), get_the_title($post->post_parent));
    edit_post_link(__('Edit', 'alexandria'), '<span class="edit-link">', '</span>');
    ?>
					</div><!-- .entry-meta -->

					<nav role="navigation" id="image-navigation" class="image-navigation">
						<div class="nav-previous"><?php 
    previous_image_link(false, __('<span class="meta-nav">&larr;</span> Previous', 'alexandria'));
    ?>
</div>
						<div class="nav-next"><?php 
    next_image_link(false, __('Next <span class="meta-nav">&rarr;</span>', 'alexandria'));
    ?>
</div>
					</nav><!-- #image-navigation -->
				</header><!-- .entry-header -->

				<div class="entry-content">
					<div class="entry-attachment">
						<div class="attachment">
							<?php 
    alexandria_the_attached_image();
    ?>
Exemple #10
0
                    <header class="entry-header">
                        <?php 
    the_title('<h1 class="entry-title">', '</h1>');
    ?>
    
                        <div class="entry-meta">
                            <?php 
    $metadata = wp_get_attachment_metadata();
    printf(__('Published <span class="entry-date"><time class="entry-date" datetime="%1$s">%2$s</time></span> at <a href="%3$s">%4$s &times; %5$s</a> in <a href="%6$s" rel="gallery">%7$s</a>', 'restaurant'), esc_attr(get_the_date('c')), esc_html(get_the_date()), esc_url(wp_get_attachment_url()), $metadata['width'], $metadata['height'], esc_url(get_permalink($post->post_parent)), get_the_title($post->post_parent));
    edit_post_link(__('Edit', 'restaurant'), '<span class="edit-link">', '</span>');
    ?>
                        </div><!-- .entry-meta -->
    
                        <nav role="navigation" id="image-navigation" class="image-navigation">
                            <div class="nav-previous"><?php 
    previous_image_link(false, __('<span class="meta-nav">&larr;</span> Previous', 'restaurant'));
    ?>
</div>
                            <div class="nav-next"><?php 
    next_image_link(false, __('Next <span class="meta-nav">&rarr;</span>', 'restaurant'));
    ?>
</div>
                        </nav><!-- #image-navigation -->
                    </header><!-- .entry-header -->
    
                    <div class="entry-content">
                        <div class="entry-attachment">
                            <div class="attachment">
                                <?php 
    restaurant_the_attached_image();
    ?>
    function thinkup_input_imagesnav()
    {
        global $wp_query, $post;
        ?>

	<nav role="navigation" id="nav-below">
		<div class="nav-previous"><?php 
        previous_image_link('false', '<div class="nav-previous"><span class="meta-icon"><i class="fa fa-angle-left fa-lg"></i></span><span class="meta-nav">' . __('Previous', 'sento') . '</span></div>');
        ?>
</div>
		<div class="nav-next"><?php 
        next_image_link('false', '<span class="meta-nav">' . __('Next', 'sento') . '</span><span class="meta-icon"><i class="fa fa-angle-right fa-lg"></i></span>');
        ?>
</div>
	</nav><!-- #image-navigation -->

<?php 
    }
Exemple #12
0
>
					<header class="entry-header">
						<h1 class="entry-title"><?php 
    the_title();
    ?>
</h1>

						<div class="entry-meta">
							<?php 
    dazzling_posted_on();
    ?>
						</div><!-- .entry-meta -->

						<nav role="navigation" id="image-navigation" class="navigation-image nav-links">
							<div class="nav-previous"><?php 
    previous_image_link(false, __('<i class="fa fa-chevron-left"></i> Previous', 'dazzling'));
    ?>
</div>
							<div class="nav-next"><?php 
    next_image_link(false, __('Next <i class="fa fa-chevron-right"></i>', 'dazzling'));
    ?>
</div>
						</nav><!-- #image-navigation -->
					</header><!-- .entry-header -->

					<div class="entry-content">

						<div class="entry-attachment">
							<div class="attachment">
								<?php 
    /**
Exemple #13
0
            }
        }
        $k++;
        if (count($attachments > 1)) {
            if (isset($attachments[$k])) {
                $next_attachments_url = get_attachment_link($attachments[$k]->ID);
            } else {
                $next_attachments_url = get_attachment_link($attachments[0]->ID);
            }
        } else {
            $next_attachments_url = wp_get_attachment();
        }
        ?>
            	<div class="pic-box">
                    <span><?php 
        previous_image_link(0, '&nbsp;');
        ?>
</span>
            		<img src="<?php 
        echo wp_get_attachment_image_src($post->ID, 'medium')[0];
        ?>
" width="100%" class="img-responsive">
            		<span><?php 
        next_image_link(0, '&nbsp;');
        ?>
</span>
            	</div>
            <?php 
    }
    ?>
        <?php 
Exemple #14
0
while (have_posts()) {
    the_post();
    ?>

				<article id="post-<?php 
    the_ID();
    ?>
" <?php 
    post_class();
    ?>
>

					<nav id="image-navigation" class="navigation image-navigation">
						<div class="nav-links">
							<div class="nav-previous"><?php 
    previous_image_link(false, __('Previous Image', 'esc'));
    ?>
</div><div class="nav-next"><?php 
    next_image_link(false, __('Next Image', 'esc'));
    ?>
</div>
						</div><!-- .nav-links -->
					</nav><!-- .image-navigation -->

					<header class="entry-header">
						<?php 
    the_title('<h1 class="entry-title">', '</h1>');
    ?>
					</header><!-- .entry-header -->

					<div class="entry-content">
        the_excerpt();
        ?>
								</div><!-- .entry-caption -->
							<?php 
    }
    ?>
						</div>
						<!-- .entry-attachment -->

						<?php 
    the_content();
    ?>

						<nav id="image-navigation" class="site-navigation">
							<span class="previous-image"><?php 
    previous_image_link(false, __('&larr; Previous image', 'independent-publisher'));
    ?>
</span>
							<span class="next-image"><?php 
    next_image_link(false, __('Next image &rarr;', 'independent-publisher'));
    ?>
</span>
						</nav>
						<!-- #image-navigation -->

					</div>
					<!-- .entry-content -->

					<?php 
    independent_publisher_posted_author_bottom_card();
    ?>
 function mh_newsdesk_lite_postnav()
 {
     global $post;
     $parent_post = get_post($post->post_parent);
     $attachment = is_attachment();
     $previous = $attachment ? $parent_post : get_adjacent_post(false, '', true);
     $next = get_adjacent_post(false, '', false);
     if (!$next && !$previous) {
         return;
     }
     if ($attachment) {
         $attachments = get_children(array('post_type' => 'attachment', 'post_mime_type' => 'image', 'post_parent' => $parent_post->ID));
         $count = count($attachments);
     }
     echo '<nav class="post-nav-wrap" role="navigation">' . "\n";
     echo '<ul class="post-nav clearfix">' . "\n";
     echo '<li class="post-nav-prev">' . "\n";
     if ($attachment) {
         if ($count == 1) {
             $permalink = get_permalink($parent_post);
             echo '<a href="' . $permalink . '"><i class="fa fa-chevron-left"></i>' . __('Back to post', 'mh-newsdesk-lite') . '</a>';
         } else {
             previous_image_link('%link', '<i class="fa fa-chevron-left"></i>' . __('Previous image', 'mh-newsdesk-lite'));
         }
     } else {
         previous_post_link('%link', '<i class="fa fa-chevron-left"></i>' . __('Previous post', 'mh-newsdesk-lite'));
     }
     echo '</li>' . "\n";
     echo '<li class="post-nav-next">' . "\n";
     if ($attachment) {
         next_image_link('%link', __('Next image', 'mh-newsdesk-lite') . '<i class="fa fa-chevron-right"></i>');
     } else {
         next_post_link('%link', __('Next post', 'mh-newsdesk-lite') . '<i class="fa fa-chevron-right"></i>');
     }
     echo '</li>' . "\n";
     echo '</ul>' . "\n";
     echo '</nav>' . "\n";
 }
Exemple #17
0
	<div id="xpress_content" class="widecolumn">

  <?php if (have_posts()) : while (have_posts()) : the_post(); ?>

		<div class="post" id="post-<?php the_ID(); ?>">
			<h2><a href="<?php echo get_permalink($post->post_parent); ?>" rev="attachment"><?php echo get_the_title($post->post_parent); ?></a> &raquo; <?php the_title(); ?></h2>
			<div class="entry">
				<p class="attachment"><a href="<?php echo wp_get_attachment_url($post->ID); ?>"><?php echo wp_get_attachment_image( $post->ID, 'medium' ); ?></a></p> 
				<div class="caption"><?php if ( !empty($post->post_excerpt) ) the_excerpt(); // this is the "caption" ?></div>

				<?php the_content('<p class="serif">' . __('Read the rest of this entry &raquo;', 'xpress') . '</p>'); ?>

				<?php wp_link_pages(array('before' => '<p><strong>' . __('Pages:', 'xpress') . '</strong> ', 'after' => '</p>', 'next_or_number' => 'number')); ?>

				<div class="navigation">
					<div class="alignleft"><?php previous_image_link() ?></div>
					<div class="alignright"><?php next_image_link() ?></div>
				</div>
				<br class="clear" />

				<p class="postmetadata alt">
					<small>
						<?php printf(__('This entry was posted on %1$s at %2$s and is filed under %3$s.', 'xpress'),  get_the_time(__('l, F jS, Y', 'xpress')), get_the_time(), get_the_category_list(', ')); ?>
						<?php the_taxonomies(); ?>
						<?php printf(__("You can follow any responses to this entry through the <a href='%s'>RSS 2.0</a> feed.", "xpress"), get_post_comments_feed_link()); ?> 

						<?php if (('open' == $post-> comment_status) && ('open' == $post->ping_status)) {
							// Both Comments and Pings are open ?>
							<?php printf(__('You can <a href="#respond">leave a response</a>, or <a href="%s" rel="trackback">trackback</a> from your own site.', 'xpress'), trackback_url(false)); ?>

						<?php } elseif (!('open' == $post-> comment_status) && ('open' == $post->ping_status)) {
Exemple #18
0
				<header class="entry-header">
					<?php 
    the_title('<h1 class="entry-title">', '</h1>');
    ?>

					<div class="entry-meta">
						<?php 
    $metadata = wp_get_attachment_metadata();
    printf(__('Published <span class="entry-date"><time class="entry-date" datetime="%1$s">%2$s</time></span> at <a href="%3$s">%4$s &times; %5$s</a> in <a href="%6$s" rel="gallery">%7$s</a>', 'inkness'), esc_attr(get_the_date('c')), esc_html(get_the_date()), esc_url(wp_get_attachment_url()), $metadata['width'], $metadata['height'], esc_url(get_permalink($post->post_parent)), get_the_title($post->post_parent));
    edit_post_link(__('Edit', 'inkness'), '<span class="edit-link">', '</span>');
    ?>
					</div><!-- .entry-meta -->

					<nav role="navigation" id="image-navigation" class="image-navigation">
						<div class="nav-previous"><?php 
    previous_image_link(false, __('<span class="meta-nav">&larr;</span> Previous', 'inkness'));
    ?>
</div>
						<div class="nav-next"><?php 
    next_image_link(false, __('Next <span class="meta-nav">&rarr;</span>', 'inkness'));
    ?>
</div>
					</nav><!-- #image-navigation -->
				</header><!-- .entry-header -->

				<div class="entry-content">
					<div class="entry-attachment">
						<div class="attachment">
							<?php 
    inkness_the_attached_image();
    ?>
							<?php 
    }
    ?>
						</div><!-- .entry-attachment -->

						<?php 
    the_content();
    wp_link_pages(array('before' => '<div class="page-links"><span class="page-links-title">' . __('Pages:', 'galo') . '</span>', 'after' => '</div>', 'link_before' => '<span>', 'link_after' => '</span>'));
    ?>
					</div><!-- .entry-content -->
				</article><!-- #post-## -->

				<nav id="image-navigation" class="navigation image-navigation">
					<div class="nav-links">
					<?php 
    previous_image_link(false, '<div class="previous-image">' . __('Previous Image', 'galo') . '</div>');
    ?>
					<?php 
    next_image_link(false, '<div class="next-image">' . __('Next Image', 'galo') . '</div>');
    ?>
					</div><!-- .nav-links -->
				</nav><!-- #image-navigation -->

				<?php 
    // If comments are open or we have at least one comment, load up the comment template
    if (comments_open() || '0' != get_comments_number()) {
        comments_template();
    }
    ?>

			<?php 
Exemple #20
0
		<div id="primary" class="image-attachment">
			<div id="content" role="main">

			<?php 
while (have_posts()) {
    the_post();
    ?>

				<nav id="nav-single">
					<h3 class="assistive-text"><?php 
    _e('Image navigation', 'twentyeleven');
    ?>
</h3>
					<span class="nav-previous"><?php 
    previous_image_link(false, __('&larr; Previous', 'twentyeleven'));
    ?>
</span>
					<span class="nav-next"><?php 
    next_image_link(false, __('Next &rarr;', 'twentyeleven'));
    ?>
</span>
				</nav><!-- #nav-single -->

					<article id="post-<?php 
    the_ID();
    ?>
" <?php 
    post_class();
    ?>
>
Exemple #21
0
                    <header class="entry-header">
                        <?php 
    the_title('<h1 class="entry-title">', '</h1>');
    ?>
    
                        <div class="entry-meta">
                            <?php 
    $metadata = wp_get_attachment_metadata();
    printf(__('Published <span class="entry-date"><time class="entry-date" datetime="%1$s">%2$s</time></span> at <a href="%3$s">%4$s &times; %5$s</a> in <a href="%6$s" rel="gallery">%7$s</a>', 'skt-kraft'), esc_attr(get_the_date('c')), esc_html(get_the_date()), esc_url(wp_get_attachment_url()), $metadata['width'], $metadata['height'], esc_url(get_permalink($post->post_parent)), get_the_title($post->post_parent));
    edit_post_link(__('Edit', 'skt-kraft'), '<span class="edit-link">', '</span>');
    ?>
                        </div><!-- .entry-meta -->
    
                        <nav role="navigation" id="image-navigation" class="image-navigation">
                            <div class="nav-previous"><?php 
    previous_image_link(false, __('<span class="meta-nav">&larr;</span> Previous', 'skt-kraft'));
    ?>
</div>
                            <div class="nav-next"><?php 
    next_image_link(false, __('Next <span class="meta-nav">&rarr;</span>', 'skt-kraft'));
    ?>
</div>
                        </nav><!-- #image-navigation -->
                    </header><!-- .entry-header -->
    
                    <div class="entry-content">
                        <div class="entry-attachment">
                            <div class="attachment">
                                <?php 
    skt_kraft_the_attached_image();
    ?>
            ?>
" title="<?php 
            echo esc_attr(get_the_title());
            ?>
" rel="attachment">
                                            <?php 
            $attachment_width = apply_filters('appthemes_attachment_size', 800);
            $attachment_height = apply_filters('appthemes_attachment_height', 800);
            echo wp_get_attachment_image($post->ID, array($attachment_width, $attachment_height));
            ?>
</a></p>
                    
                                            <div id="nav-below" class="navigation">
                                            
                                                <div class="next-prev"><?php 
            previous_image_link(false, __('&larr; prev', 'appthemes'));
            ?>
&nbsp;&nbsp;&nbsp;<?php 
            next_image_link(false, __('next &rarr;', 'appthemes'));
            ?>
</div>
                                                
                                            </div><!-- /nav-below -->
                                            
                                        <?php 
        } else {
            ?>
                                        
                                            <a href="<?php 
            echo wp_get_attachment_url();
            ?>
						<p class="attachment"><a href="<?php 
            echo $next_attachment_url;
            ?>
" title="<?php 
            echo esc_attr(get_the_title());
            ?>
" rel="attachment"><?php 
            $attachment_size = apply_filters('wfts_attachment_size', 900);
            echo wp_get_attachment_image($post->ID, array($attachment_size, 9999));
            // filterable image width with, essentially, no limit for image height.
            ?>
</a></p>

						<nav id="nav-below" class="navigation">
							<div class="nav-previous"><?php 
            previous_image_link(false);
            ?>
</div>
							<div class="nav-next"><?php 
            next_image_link(false);
            ?>
</div>
						</nav><!-- #nav-below -->
<?php 
        } else {
            ?>
						<a href="<?php 
            echo wp_get_attachment_url();
            ?>
" title="<?php 
            echo esc_attr(get_the_title());
Exemple #24
0
        if (!empty($post->post_excerpt)) {
            the_excerpt();
        }
        ?>
					<?php 
        the_content(__('Read more &#8250;', 'responsive'));
        ?>
					<?php 
        wp_link_pages(array('before' => '<div class="pagination">' . __('Pages:', 'responsive'), 'after' => '</div>'));
        ?>
				</div>
				<!-- end of .attachment-entry -->

				<div class="navigation">
					<div class="previous"><?php 
        previous_image_link('thumbnail');
        ?>
</div>
					<div class="next"><?php 
        next_image_link('thumbnail');
        ?>
</div>
				</div>
				<!-- end of .navigation -->

				<?php 
        if (comments_open()) {
            ?>
					<div class="post-data">
						<?php 
            the_tags(__('Tagged with:', 'responsive') . ' ', ', ', '<br />');
Exemple #25
0
            $att_content = '<p class="attachment-file"><a href="' . esc_url($att_url) . '">' . $att_filename . '</a></p>';
        }
        // Check if the attachment has a caption and continue attachment content block
        if ($att_caption) {
            $att_content .= '<p class="caption">' . $att_caption . '</p>';
        }
        // Display attachment content block
        echo $att_content;
        ?>
						</div>
					</div>
				</div>
				<nav class="navigation-links">
					<ul>
						<li class="prev"><?php 
        previous_image_link(false, __('Previous', 'ambase'));
        ?>
</li>
						<li class="next"><?php 
        next_image_link(false, __('Next', 'ambase'));
        ?>
</li>					
					</ul>
				</nav>
			<?php 
    }
}
?>
		</article>
		<?php 
get_sidebar();
            echo wp_get_attachment_image($post->ID, array($attachment_size, 9999));
            // filterable image width with, essentially, no limit for image height.
            ?>
</a></p>
                        
						<?php 
            the_content(__('Read More', 'klasik'));
            ?>
						<?php 
            wp_link_pages(array('before' => '<div class="page-link">' . __('Pages:', 'klasik'), 'after' => '</div>'));
            ?>
                        

						<div id="nav-below" class="navigation">
							<div class="nav-previous"><?php 
            previous_image_link(true);
            ?>
</div>
							<div class="nav-next"><?php 
            next_image_link(true);
            ?>
</div>
						</div><!-- #nav-below -->
                        
						<?php 
        } else {
            ?>
						<a href="<?php 
            echo wp_get_attachment_url();
            ?>
" title="<?php 
Exemple #27
0
    ?>
</h1>

						<footer class="entry-meta">
							<?php 
    $metadata = wp_get_attachment_metadata();
    printf(__('<span class="meta-prep meta-prep-entry-date">Published </span> <span class="entry-date"><time class="entry-date" datetime="%1$s">%2$s</time></span> at <a href="%3$s" title="Link to full-size image">%4$s &times; %5$s</a> in <a href="%6$s" title="Return to %7$s" rel="gallery">%8$s</a>.', 'twentytwelve'), esc_attr(get_the_date('c')), esc_html(get_the_date()), esc_url(wp_get_attachment_url()), $metadata['width'], $metadata['height'], esc_url(get_permalink($post->post_parent)), esc_attr(strip_tags(get_the_title($post->post_parent))), get_the_title($post->post_parent));
    ?>
							<?php 
    edit_post_link(__('Edit', 'twentytwelve'), '<span class="edit-link">', '</span>');
    ?>
						</footer><!-- .entry-meta -->

						<nav id="image-navigation" class="navigation" role="navigation">
							<span class="previous-image"><?php 
    previous_image_link(false, __('&larr; Previous', 'twentytwelve'));
    ?>
</span>
							<span class="next-image"><?php 
    next_image_link(false, __('Next &rarr;', 'twentytwelve'));
    ?>
</span>
						</nav><!-- #image-navigation -->
					</header><!-- .entry-header -->

					<div class="entry-content">

						<div class="entry-attachment">
							<div class="attachment">
<?php 
    /*
Exemple #28
0
			
				<div class="pinbin-image"><?php 
            the_post_thumbnail('detail-image');
            ?>
</div>
                <div class="pinbin-category"><p><?php 
            the_category(', ');
            ?>
</p></div>
             <?php 
        }
        ?>
                   
      <div class="post-nav">
          <div class="post-prev"><?php 
        previous_image_link('%link', '&larr;');
        ?>
</div>
          <div class="post-next"><?php 
        next_image_link('%link', '&rarr;');
        ?>
</div>
      </div>  
       			<div class="pinbin-copy">
                <h1><?php 
        the_title();
        ?>
</h1>
                 <p class="pinbin-date"> <?php 
        the_time(get_option('date_format'));
        ?>
Exemple #29
0
<header class="entry-header">
<?php 
    the_title('<h1 class="entry-title">', '</h1>');
    ?>
<div class="entry-meta">
<?php 
    $metadata = wp_get_attachment_metadata();
    printf(__('Published <span class="entry-date"><time class="entry-date" datetime="%1$s">%2$s</time></span> at <a href="%3$s" title="Link to full-size image">%4$s &times; %5$s</a> in <a href="%6$s" title="Return to %7$s" rel="gallery">%8$s</a>', 'gridster'), esc_attr(get_the_date('c')), esc_html(get_the_date()), wp_get_attachment_url(), $metadata['width'], $metadata['height'], get_permalink($post->post_parent), esc_attr(strip_tags(get_the_title($post->post_parent))), get_the_title($post->post_parent));
    edit_post_link(__('Edit', 'gridster'), '<span class="sep"> | </span> <span class="edit-link">', '</span>');
    ?>
</div>
<!-- .entry-meta -->
<nav role="navigation" id="image-navigation" class="navigation-image">
<div class="nav-previous">
<?php 
    previous_image_link(false, __('<span class="meta-nav">&larr;</span> Previous', 'gridster'));
    ?>
</div>
<div class="nav-next">
<?php 
    next_image_link(false, __('Next <span class="meta-nav">&rarr;</span>', 'gridster'));
    ?>
</div>
</nav>
<!-- #image-navigation -->
</header>
<!-- .entry-header -->
<div class="entry-content">
<div class="entry-attachment">
<div class="attachment">
<?php 
					</footer><!-- .entry-meta -->
				</article><!-- #post-<?php 
    the_ID();
    ?>
 -->
                
                <?php 
    // If comments are open or we have at least one comment, load up the comment template
    if (comments_open() || '0' != get_comments_number()) {
        comments_template('', true);
    }
    ?>
                
                <nav id="image-navigation">
							<span class="previous-image"><?php 
    previous_image_link(false, __('&larr; Previous Image', 'wp-advocate'));
    ?>
</span>
							<span class="next-image"><?php 
    next_image_link(false, __('Next Image &rarr;', 'wp-advocate'));
    ?>
</span>
						</nav><!-- #image-navigation -->

			<?php 
}
// end of the loop.
?>

			</div>
		</div>