initial commit
This commit is contained in:
130
single.php
Executable file
130
single.php
Executable file
@@ -0,0 +1,130 @@
|
||||
<?php get_header(); ?>
|
||||
|
||||
<main role="main">
|
||||
<!-- section -->
|
||||
<section>
|
||||
|
||||
<?php if (have_posts()): while (have_posts()) : the_post(); ?>
|
||||
|
||||
<!-- article -->
|
||||
<article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
|
||||
|
||||
<!-- post thumbnail -->
|
||||
<div class="thumbnail-wrapper">
|
||||
<?php if ( has_post_thumbnail()) : // Check if Thumbnail exists ?>
|
||||
<?php the_post_thumbnail('home-thumb'); // Fullsize image for the single post ?>
|
||||
<?php endif; ?>
|
||||
</div>
|
||||
<!-- /post thumbnail -->
|
||||
|
||||
<!-- post title -->
|
||||
<h1>
|
||||
|
||||
<?php the_title(); ?>
|
||||
</h1>
|
||||
<!-- /post title -->
|
||||
|
||||
<!-- post +meta-->
|
||||
|
||||
<?php
|
||||
$key_project_date = get_post_meta(get_the_ID(), 'project-date', true);
|
||||
$key_project_client = get_post_meta(get_the_ID(), 'project-client', true);
|
||||
$key_project_contributors = get_post_meta(get_the_ID(), 'project-contributors', true);
|
||||
|
||||
?>
|
||||
|
||||
|
||||
|
||||
<div class="metawrapper">
|
||||
<div class="metaline meta-tags">
|
||||
<?php the_tags( '<ul><li>', '</li><li>', '</li></ul>' ); ?>
|
||||
|
||||
<?php if ( ! empty( $key_project_client ) ) { ?>
|
||||
<span>CLIENT</span>
|
||||
<?php } ?>
|
||||
|
||||
</div>
|
||||
<div class="metaline meta-data">
|
||||
<span class="meta-date">
|
||||
<?php
|
||||
if ( ! empty( $key_project_date ) ) {
|
||||
echo $key_project_date;
|
||||
}
|
||||
?>
|
||||
</span>
|
||||
<span class="meta-client">
|
||||
<?php
|
||||
if ( ! empty( $key_project_client ) ) {
|
||||
echo $key_project_client;
|
||||
}
|
||||
?>
|
||||
</span>
|
||||
</div>
|
||||
|
||||
<?php if ( ! empty( $key_project_contributors ) ) { ?>
|
||||
<div class="metaline meta-contributors">
|
||||
<span class="contrib-title">
|
||||
CONTRIBUTORS
|
||||
</span>
|
||||
<span class="contrib-body" >
|
||||
<?php echo $key_project_contributors ?>
|
||||
</span>
|
||||
</div>
|
||||
<?php } ?>
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<!-- post /+meta-->
|
||||
|
||||
|
||||
|
||||
<?php the_content(); // Dynamic Content ?>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</article>
|
||||
<!-- /article -->
|
||||
|
||||
<?php endwhile; ?>
|
||||
|
||||
<?php else: ?>
|
||||
|
||||
<!-- article -->
|
||||
<article>
|
||||
|
||||
<h1>
|
||||
<?php _e( 'Sorry, nothing to display.', 'iotheme' ); ?>
|
||||
</h1>
|
||||
|
||||
</article>
|
||||
<!-- /article -->
|
||||
|
||||
<?php endif; ?>
|
||||
|
||||
</section>
|
||||
<!-- /section -->
|
||||
</main>
|
||||
|
||||
|
||||
|
||||
<?php get_footer(); ?>
|
||||
Reference in New Issue
Block a user