コード例 #1
0
ファイル: page.php プロジェクト: justinisamaker/enlastablas
<!-- Page TEMPLATE -->

<?php get_header(); ?>

  <div id="main-container" class="container-fluid">
    <main role="main" class="main-content">

      <?php get_sidebar('menu-sidebar'); ?>

      <section id="internal-main">
        <h3><?php the_title();?></h3>
        <h4><?php the_field('work_category'); ?></h4>
        <p><?php the_field('work_description');?></p>

        <?php while(has_sub_field('internal_page_repeater')):?>
          <img src="<?php the_sub_field('internal_page_image');?>" width="100%" height="auto" />
        <?php endwhile; ?>

        <div class="next"><?php echo next_page_not_post('next page'); ?></div>

        <a id="scroll-to-top" href="#">
          <span id="triangle-one"></span>
          <span id="triangle-two"></span>
        </a>
      </section>

    </main>
  </div> <!-- END MAIN CONTAINER -->

<?php get_footer(); ?>
コード例 #2
0
function next_page_shortcode($attributes)
{
    extract(shortcode_atts(array('anchor' => '', 'loop' => NULL, 'get_pages_query' => 'sort_column=menu_order&sort_order=asc', 'class' => 'npnnp next', 'prefix' => '', 'suffix' => ''), $attributes));
    return next_page_not_post($anchor, $loop, $get_pages_query, $prefix, $suffix, $class);
}
コード例 #3
0
      }(document,"script","twitter-wjs");</script>
    <g:plusone size="medium"></g:plusone>
    <div class="fb-like" data-send="true" data-layout="button_count" data-width="100" data-show-faces="false"></div>
  </div>

  <!-- navigating between pages, uses plugin -->
  <div id="post-nav">
    <span class="prevPageNav">
      <?php 
        echo previous_page_not_post('', true, '');
        ?>
 
    </span>  
    <span class="nextPageNav" >
      <?php 
        echo next_page_not_post('', true, '');
        ?>
 
    </span>
  </div>

  <span class="button wpedit">
    <?php 
        edit_post_link(__('Edit', 'twentyten'), '', '');
        ?>
  </span>

<?php 
    }
}
?>
コード例 #4
0
<div class="row">
	<div class="fourcol prev">
			<?php 
echo previous_page_not_post('', '', '');
?>
	</div>

	<div class="fourcol back">
		<a href="site/portfolio-iso" title="Back to Portfolio" alt="Back to Portfolio">
			<span></span>
		</a>
	</div>
		
	<div class="fourcol last next">
		<?php 
echo next_page_not_post('', '', '');
?>
	</div>
</div>
</div><!-- end container  -->

<div class="container content">

	<div class="row">
		<div class="sixcol">
			<?php 
$mb = get_post_meta($post->ID, $custom_metabox->get_the_id(), true);
// $portfolioCF = mb['projects_img'];
echo $mb['projects_img'];
if ($portfolioCF != "") {
    $images = explode(",", $portfolioCF);
コード例 #5
0
ファイル: content-article.php プロジェクト: rosstavo/acucr
?>
		</ol>

		<?php 
the_content();
?>
		<?php 
wp_link_pages(array('before' => '<div class="page-links">' . __('Pages:', 'acucr'), 'after' => '</div>'));
?>

		<?php 
$nextPage = next_page_not_post();
if (!empty($nextPage)) {
    ?>

			<div class="next-article">
				<span class="next-article__label">Next article</span>
				<span class="next-article__link"><?php 
    echo next_page_not_post('%title');
    ?>
<span class="arrow">&#10140;</span></span>
			</div>

		<?php 
}
?>

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

</article><!-- #post-## -->
コード例 #6
0
function next_page_shortcode($attributes)
{
    extract(shortcode_atts(array('anchor' => '', 'loop' => NULL, 'getPagesQuery' => 'sort_column=menu_order&sort_order=asc'), $attributes));
    return next_page_not_post($anchor, $loop, $getPagesQuery);
}