Single v1
-commentaires cachés -settings -3 lightbox -enqueue js et css
This commit is contained in:
87
single.php
Executable file
87
single.php
Executable file
@@ -0,0 +1,87 @@
|
||||
<?php
|
||||
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>
|
||||
|
||||
<div class="entry-meta">
|
||||
<?php creator_entry_meta(); ?>
|
||||
<?php //edit_post_link( __( 'Edit', 'twentythirteen' ), '<span class="edit-link">', '</span>' ); ?>
|
||||
</div><!-- .entry-meta -->
|
||||
|
||||
<?php the_content(); ?>
|
||||
|
||||
|
||||
<?php //$content = apply_filters('the_content', get_the_content());
|
||||
//echo $content;
|
||||
?>
|
||||
|
||||
<?php //wp_read_image_metadata( $file );
|
||||
$my_data = wp_get_attachment_metadata( get_post_thumbnail_id( get_the_ID() ) );
|
||||
|
||||
echo $my_data['image_meta']['credit'];
|
||||
?>
|
||||
|
||||
<h3>EXIF Data</h3>
|
||||
<?php pa_the_post_thumbnail_exif_data(); ?>
|
||||
|
||||
<?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>' ); ?>
|
||||
<?php the_tags( '<div class="post_tags">' . __('Tags: ', 'CreatorThemeRes-child'), ', ', '</div>' ); ?>
|
||||
</article>
|
||||
|
||||
<?php
|
||||
if (current_user_can('edit_post')) {
|
||||
edit_post_link(
|
||||
sprintf(
|
||||
/* translators: %s: Name of current post */
|
||||
__( 'Edit post<span class="screen-reader-text"> "%s"</span>', 'CreatorThemeRes-child' ),
|
||||
get_the_title()
|
||||
),
|
||||
'<span class="edit-link">',
|
||||
'</span>'
|
||||
);
|
||||
}
|
||||
?>
|
||||
|
||||
<?php creator_post_nav(); ?>
|
||||
|
||||
<div class="clear"></div>
|
||||
<?php if ( comments_open() || '0' != get_comments_number() ) : ?>
|
||||
<div class="home_blog_box">
|
||||
|
||||
<button id="togle">
|
||||
<?php
|
||||
_e('Display','CreatorThemeRes-child');
|
||||
comments_number(esc_html__(' 0 Comment','CreatorThemeRes-child'), esc_html__(' 1 Comment','CreatorThemeRes-child'), '% '.esc_html__(' Comments','CreatorThemeRes-child') );
|
||||
?>
|
||||
</button>
|
||||
|
||||
<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();
|
||||
?>
|
||||
Reference in New Issue
Block a user