Page ce mois-ci (pagination ajax 1)
https://www.sanwebe.com/2013/03/ajax-pagination-with-jquery-php
This commit is contained in:
57
livre-d-or.php
Executable file
57
livre-d-or.php
Executable file
@@ -0,0 +1,57 @@
|
||||
<?php
|
||||
/**
|
||||
* Template Name: Guestbook
|
||||
*
|
||||
* @package WordPress
|
||||
* @subpackage Twenty_Ten
|
||||
* @since Twenty Ten 1.0
|
||||
*/
|
||||
|
||||
get_header(); ?>
|
||||
|
||||
<div class="content">
|
||||
<div class="container">
|
||||
<div class="post_content">
|
||||
<?php while ( have_posts() ) : the_post(); ?>
|
||||
<article class="post_box" id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
|
||||
<h1><?php the_title(); ?></h1>
|
||||
<?php the_content(); ?>
|
||||
|
||||
|
||||
<?php
|
||||
$imagesDir = '../zenphoto/albums/photos-du-mois';
|
||||
$imageURL = getRandomFile($imagesDir);
|
||||
$RandomImage = '../' . $imagesDir . '/' . $imageURL;
|
||||
echo '<div id="randomImg"><img src="' . $RandomImage . '" alt="" title="" /></div>';
|
||||
?>
|
||||
|
||||
<?php
|
||||
wp_link_pages(array(
|
||||
'before' => '<div class="link_pages">'.__('Pages', 'creator'),
|
||||
'after' => '</div>',
|
||||
'link_before' => '<span>',
|
||||
'link_after' => '</span>'
|
||||
));
|
||||
?>
|
||||
|
||||
<?php the_tags( '<div class="post_tags">Tags: ', ', ', '</div>' ); ?>
|
||||
</article>
|
||||
<div class="clear"><br /></div>
|
||||
<?php if ( comments_open() || '0' != get_comments_number() ) : ?>
|
||||
<div class="home_blog_box">
|
||||
<div class="comments_cont">
|
||||
<?php
|
||||
// If comments are open or we have at least one comment, load up the comment template
|
||||
comments_template( '', true );
|
||||
?>
|
||||
</div>
|
||||
</div>
|
||||
<?php endif;
|
||||
endwhile;
|
||||
?>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<?php
|
||||
get_footer( 'page' );
|
||||
?>
|
||||
Reference in New Issue
Block a user