当前位置: 首页>>代码示例>>PHP>>正文


PHP previous_image_link函数代码示例

本文整理汇总了PHP中previous_image_link函数的典型用法代码示例。如果您正苦于以下问题:PHP previous_image_link函数的具体用法?PHP previous_image_link怎么用?PHP previous_image_link使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。


在下文中一共展示了previous_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;
}
开发者ID:katikos,项目名称:xtreme-one,代码行数:21,代码来源:xtreme-post-functions.php

示例2: the_post

    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>');
    ?>
开发者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: esc_url

        ?>
									<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');
开发者ID:ajmorris,项目名称:standard,代码行数:31,代码来源:image.php

示例5: get_the_title

$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 
开发者ID:harrisonsmith,项目名称:active-progression,代码行数:31,代码来源:image.php

示例6: get_the_title

$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 
开发者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, __( '&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'],
开发者ID:kevinreilly,项目名称:mendelements.com,代码行数:31,代码来源:image.php

示例8: the_excerpt

        ?>
						<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>'));
    ?>
开发者ID:iinspiration,项目名称:theme,代码行数:31,代码来源:image.php

示例9: the_title

				<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();
    ?>
开发者ID:jimdough,项目名称:Roadmaster,代码行数:31,代码来源:image.php

示例10: the_title

                    <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();
    ?>
开发者ID:beatrixmichella,项目名称:fufyflorist,代码行数:31,代码来源: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: the_title

>
					<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 
    /**
开发者ID:saranshkataria,项目名称:Dazzling,代码行数:31,代码来源:image.php

示例13: get_attachment_link

            }
        }
        $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 
开发者ID:jqjjian,项目名称:fcye,代码行数:31,代码来源:attachment.php

示例14: while

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">
开发者ID:jaiweb,项目名称:esolutions-wp-base,代码行数:31,代码来源:image.php

示例15: the_excerpt

        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();
    ?>
开发者ID:n-i-m-a,项目名称:independent-publisher,代码行数:31,代码来源:image.php


注:本文中的previous_image_link函数示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。