Page ce mois-ci (pagination ajax 1)

https://www.sanwebe.com/2013/03/ajax-pagination-with-jquery-php
This commit is contained in:
2016-12-27 06:22:34 +01:00
parent c7cc884ea6
commit 1fa1f61d0e
12 changed files with 1631 additions and 4 deletions

57
livre-d-or.php Executable file
View 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' );
?>