1er commit
WP theme
This commit is contained in:
41
content-livre.php
Normal file
41
content-livre.php
Normal file
@@ -0,0 +1,41 @@
|
||||
<?php
|
||||
/**
|
||||
* The template used for displaying page content in page.php
|
||||
*
|
||||
* @package WordPress
|
||||
* @subpackage Twenty_Twelve
|
||||
* @since Twenty Twelve 1.0
|
||||
*/
|
||||
?>
|
||||
|
||||
<article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
|
||||
<header class="entry-header">
|
||||
<h1 class="entry-title"><?php the_title(); ?></h1>
|
||||
</header>
|
||||
|
||||
<div class="entry-content">
|
||||
|
||||
<?php the_content(); ?>
|
||||
|
||||
<?php $imagesDir = '../zenphoto/albums/photos-du-mois';
|
||||
$imageURL = getRandomFile($imagesDir);
|
||||
// depuis le template
|
||||
$RandomImage = '../' . $imagesDir . '/' . $imageURL;
|
||||
// depuis watermark2.php
|
||||
$RandomImage2 = $imagesDir . '/' . $imageURL;
|
||||
|
||||
echo '<div class="cadre"><img src="../../photoblog/watermark2.php?src=' . $RandomImage2 .'" alt="Livre d\'Or" title="" /></div>';
|
||||
//echo '<div class="cadre"><img src="' . $RandomImage .'" alt="Livre d\'Or" title="" /></div>';
|
||||
?>
|
||||
|
||||
<?php //wp_link_pages( array( 'before' => '<div class="page-links">' . __( 'Pages:', 'twentytwelve' ), 'after' => '</div>' ) ); ?>
|
||||
</div><!-- .entry-content -->
|
||||
|
||||
<footer class="entry-meta">
|
||||
<?php edit_post_link( __( 'Edit', 'twentytwelve' ), '<span class="edit-link">', '</span>' ); ?>
|
||||
</footer><!-- .entry-meta -->
|
||||
</article><!-- #post -->
|
||||
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user