本文整理汇总了PHP中next_image_link函数的典型用法代码示例。如果您正苦于以下问题:PHP next_image_link函数的具体用法?PHP next_image_link怎么用?PHP next_image_link使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了next_image_link函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: xtreme_image_pagination
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;
}
示例2: the_ID
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">
示例3: get_header
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
示例4: previous_image_link
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');
?>
<?php
}
// end while
示例5: printf
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 × %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">←</span> Previous', 'twentythirteen'));
?>
</span>
<span class="nav-next"><?php
next_image_link(false, __('Next <span class="meta-nav">→</span>', 'twentythirteen'));
?>
</span>
</nav><!-- #image-navigation -->
<div class="entry-attachment">
<div class="attachment">
<?php
twentythirteen_the_attached_image();
?>
<?php
if (has_excerpt()) {
?>
<div class="entry-caption">
<?php
示例6: printf
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 × %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">←</span> Previous', 'mckinley'));
?>
</span>
<span class="nav-next"><?php
next_image_link(false, __('Next <span class="meta-nav">→</span>', 'mckinley'));
?>
</span>
</nav><!-- #image-navigation -->
<div class="entry-attachment">
<div class="attachment">
<?php
mckinley_the_attached_image();
?>
<?php
if (has_excerpt()) {
?>
<div class="entry-caption">
<?php
示例7: get_header
<?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, __( '← Previous' , 'duster' ) ); ?></span>
<span class="nav-next"><?php next_image_link( false, __( 'Next →' , '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 × %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'],
示例8: previous_image_link
?>
</div>
<?php
}
?>
</div><!-- .attachment -->
</div><!-- .entry-attachment -->
<div id="image-navigation" class="navigation clearfix">
<span class="previous-image"><?php
previous_image_link(false, __('← Previous', 'Explorable'));
?>
</span>
<span class="next-image"><?php
next_image_link(false, __('Next →', '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>'));
?>
</div><!-- .entry-description -->
</article> <!-- .image-attachment -->
<?php
示例9: wp_get_attachment_metadata
<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 × %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">←</span> Previous', 'alexandria'));
?>
</div>
<div class="nav-next"><?php
next_image_link(false, __('Next <span class="meta-nav">→</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();
?>
</div><!-- .attachment -->
<?php
if (has_excerpt()) {
示例10: wp_get_attachment_metadata
<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 × %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">←</span> Previous', 'restaurant'));
?>
</div>
<div class="nav-next"><?php
next_image_link(false, __('Next <span class="meta-nav">→</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();
?>
</div><!-- .attachment -->
<?php
if (has_excerpt()) {
示例11: thinkup_input_imagesnav
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
}
示例12: dazzling_posted_on
?>
</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
/**
* Grab the IDs of all the image attachments in a gallery so we can get the URL of the next adjacent image in a gallery,
* or the first image (if we're looking at the last image in a gallery), or, in a gallery of one, just the link to that image file
*/
$attachments = array_values(get_children(array('post_parent' => $post->post_parent, 'post_status' => 'inherit', 'post_type' => 'attachment', 'post_mime_type' => 'image', 'order' => 'ASC', 'orderby' => 'menu_order ID')));
示例13: wp_get_attachment
}
} else {
$next_attachments_url = wp_get_attachment();
}
?>
<div class="pic-box">
<span><?php
previous_image_link(0, ' ');
?>
</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, ' ');
?>
</span>
</div>
<?php
}
?>
<?php
}
?>
</div>
<?php
$myqueryargs = array('post_type' => 'activity', 'posts_per_page' => 9, 'orderby' => 'date', 'category__in' => 15);
?>
<?php
$myquery = new WP_Query($myqueryargs);
示例14: the_ID
<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">
<div class="entry-attachment">
<?php
示例15: the_content
}
?>
</div>
<!-- .entry-attachment -->
<?php
the_content();
?>
<nav id="image-navigation" class="site-navigation">
<span class="previous-image"><?php
previous_image_link(false, __('← Previous image', 'independent-publisher'));
?>
</span>
<span class="next-image"><?php
next_image_link(false, __('Next image →', 'independent-publisher'));
?>
</span>
</nav>
<!-- #image-navigation -->
</div>
<!-- .entry-content -->
<?php
independent_publisher_posted_author_bottom_card();
?>
<footer class="entry-meta">
<?php
do_action('independent_publisher_entry_meta_top');