本文整理汇总了PHP中next_image_link函数的典型用法代码示例。如果您正苦于以下问题:PHP next_image_link函数的具体用法?PHP next_image_link怎么用?PHP next_image_link使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了next_image_link函数的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的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;
}
开发者ID:katikos,项目名称:xtreme-one,代码行数:21,代码来源:xtreme-post-functions.php
示例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">
开发者ID:richardbota,项目名称:WordPress-Theme-Development-with-Bootstrap,代码行数:31,代码来源:image.php
示例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
开发者ID:pombredanne,项目名称:ArcherSys,代码行数:30,代码来源:image.php
示例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
开发者ID:ajmorris,项目名称:standard,代码行数:31,代码来源:image.php
示例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
开发者ID:harrisonsmith,项目名称:active-progression,代码行数:31,代码来源:image.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
开发者ID:pixwind,项目名称:pixwind,代码行数:31,代码来源:image.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'],
开发者ID:kevinreilly,项目名称:mendelements.com,代码行数:31,代码来源:image.php
示例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
开发者ID:iinspiration,项目名称:theme,代码行数:31,代码来源:image.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()) {
开发者ID:jimdough,项目名称:Roadmaster,代码行数:30,代码来源:image.php
示例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()) {
开发者ID:beatrixmichella,项目名称:fufyflorist,代码行数:30,代码来源:image.php
示例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
}
开发者ID:EasyDayCleaning,项目名称:Easy-Day-Team2,代码行数:18,代码来源:template-tags.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')));
开发者ID:saranshkataria,项目名称:Dazzling,代码行数:31,代码来源:image.php
示例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);
开发者ID:jqjjian,项目名称:fcye,代码行数:31,代码来源:attachment.php
示例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
开发者ID:jaiweb,项目名称:esolutions-wp-base,代码行数:30,代码来源:image.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');
开发者ID:n-i-m-a,项目名称:independent-publisher,代码行数:31,代码来源:image.php
示例16: mh_newsdesk_lite_postnav
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";
}
开发者ID:rafaelnco,项目名称:tiamaria,代码行数:38,代码来源:mh-custom-functions.php
示例17: if
<?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> » <?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 »', '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)) {
// Only Pings are Open ?>
开发者ID:nunoluciano,项目名称:uxcl,代码行数:30,代码来源:image.php
示例18: 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>', '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">←</span> Previous', 'inkness'));
?>
</div>
<div class="nav-next"><?php
next_image_link(false, __('Next <span class="meta-nav">→</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();
?>
</div><!-- .attachment -->
<?php
if (has_excerpt()) {
开发者ID:katekbg,项目名称:2thinkers_cebu,代码行数:30,代码来源:image.php
示例19: the_content
</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
}
// end of the loop.
?>
开发者ID:coolassninja,项目名称:horoscope-studio,代码行数:31,代码来源:image.php
示例20: while
<?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, __('← Previous', 'twentyeleven'));
?>
</span>
<span class="nav-next"><?php
next_image_link(false, __('Next →', 'twentyeleven'));
?>
</span>
</nav><!-- #nav-single -->
<article id="post-<?php
the_ID();
?>
" <?php
post_class();
?>
>
<header class="entry-header">
<h1 class="entry-title"><?php
the_title();
?>
开发者ID:vivekkodira1,项目名称:wordpress,代码行数:31,代码来源:image.php
注:本文中的next_image_link函数示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论