Almost done

This commit is contained in:
rumperuu 2017-04-11 07:22:35 +00:00
parent b0a265ea24
commit 98ea090b9f
19 changed files with 2056 additions and 774 deletions

View file

@ -9,13 +9,16 @@
?>
<article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
<header class="entry-header">
<?php the_title( '<h1 class="entry-title">', '</h1>' ); ?>
<header class="entry-header post-header-image" style="background-image: url('<?php the_post_thumbnail_url(); ?>');">
<div id="post-header-details-container">
<img id="post-header-details-bg" src="<?php the_post_thumbnail_url(); ?>">
<div id="post-header-details">
<h1 id="post-title"><?php echo get_the_title(); ?></h1>
</div>
</div>
</header><!-- .entry-header -->
<?php twentysixteen_post_thumbnail(); ?>
<div class="entry-content">
<div id="body" class="entry-content">
<?php
the_content();

View file

@ -1,48 +1,65 @@
<?php
/**
* The template part for displaying single posts
*
* @package WordPress
* @subpackage Twenty_Sixteen
* @since Twenty Sixteen 1.0
*/
?>
<article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
<header class="entry-header">
<div class="post-header-image" style="background-image: url('<?php the_post_thumbnail_url(); ?>');">
<div class="post-header-title"><?php the_title( '<h1 id="post-title">', '</h1>' ); ?></div>
<div class="read-on"><a href="#body"><div class="arrow-down"></div></a></div>
</div>
</header><!-- .entry-header -->
<div id="body" class="entry-content">
<?php
if (get_the_content()):
the_content();
else : echo get_the_excerpt();
endif;
wp_link_pages( array(
'before' => '<div class="page-links"><span class="page-links-title">' . __( 'Pages:', 'twentysixteen' ) . '</span>',
'after' => '</div>',
'link_before' => '<span>',
'link_after' => '</span>',
'pagelink' => '<span class="screen-reader-text">' . __( 'Page', 'twentysixteen' ) . ' </span>%',
'separator' => '<span class="screen-reader-text">, </span>',
) );
if ( '' !== get_the_author_meta( 'description' ) ) {
get_template_part( 'template-parts/biography' );
}
?>
</div><!-- .entry-content -->
<footer class="entry-footer">
<?php twentysixteen_entry_meta(); ?>
<?php
?>
</footer><!-- .entry-footer -->
</article><!-- #post-## -->
<?php
/**
* The template part for displaying single posts
*
* @package WordPress
* @subpackage Twenty_Sixteen
* @since Twenty Sixteen 1.0
*/
?>
<article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
<header class="entry-header" id="post-header-image" style="background-image: url('<?php the_post_thumbnail_url(); ?>');">
<div id="post-header-details-container">
<div id="post-header-details">
<?php
if (strlen(get_the_title()) > 70) $small= "3em";
elseif (strlen(get_the_title()) > 35) $small = "4em";
elseif (strlen(get_the_title()) > 12) $small = "5em";
else $small = "6em"
?>
<h1 id="post-title" style="font-size: <?php echo $small ?>;">
<?php echo get_the_title(); ?>
<?php if ($versionNum = get_post_meta(get_the_ID(), 'Version', true)): ?>
<span id="version"><?php echo $versionNum ?></span>
<?php endif; ?>
</h1>
<?php the_date('F j, Y', '<p id="post-date">', '</p>'); ?>
<?php /*
<?php if ($posttags = get_the_tags()): ?>
<div id="post-tags">
<?php foreach ($posttags as $tag): ?>
<a class="hyperlink-button" href="<?php echo $tag->slug ?>"><?php echo $tag->name ?></a>
<?php endforeach; ?>
<?php endif; ?>
*/ ?>
</div>
</div>
</header><!-- .entry-header -->
<div id="body" class="entry-content">
<?php
if (get_the_content()):
the_content();
else : echo get_the_excerpt();
endif;
wp_link_pages( array(
'before' => '<div class="page-links"><span class="page-links-title">' . __( 'Pages:', 'twentysixteen' ) . '</span>',
'after' => '</div>',
'link_before' => '<span>',
'link_after' => '</span>',
'pagelink' => '<span class="screen-reader-text">' . __( 'Page', 'twentysixteen' ) . ' </span>%',
'separator' => '<span class="screen-reader-text">, </span>',
) );
if ( '' !== get_the_author_meta( 'description' ) ) {
get_template_part( 'template-parts/biography' );
}
?>
</div><!-- .entry-content -->
<footer class="entry-footer">
<?php //twentysixteen_entry_meta(); ?>
</footer><!-- .entry-footer -->
</article><!-- #post-## -->

View file

@ -12,15 +12,17 @@
<a href="<?php the_permalink(); ?>">
<article id="post-<?php the_ID(); ?>" class="index-item" style="background-image: url('<?php the_post_thumbnail_url(); ?>');">
<header class="entry-header">
<?php if ( is_sticky() && is_home() && ! is_paged() ) : ?>
<span class="sticky-post"><?php _e( 'Featured', 'bengoldsworthy' ); ?></span>
<?php endif; ?>
<?php
if (strlen(get_the_title()) > 70) $small= "vsmall";
elseif (strlen(get_the_title()) > 35) $small = "small";
the_title( '<h2 class="post-title '.$small.'">', '</h2>' );
?>
<div class="post-header-details">
<?php
if (strlen(get_the_title()) > 70) $small= "vsmall";
elseif (strlen(get_the_title()) > 35) $small = "small";
elseif (strlen(get_the_title()) > 12) $small = "qsmall";
?>
<h2 class="post-title <?php echo $small ?>">
<?php echo get_the_title(); ?>
<?php if ($versionNum = get_post_meta( get_the_ID(), 'Program/Version', true )) echo '<span id="version">'.$versionNum.'</span>'; ?>
</h2>
</div>
</header><!-- .entry-header -->
</article><!-- #post-## -->
</a>