Up-to-date
This commit is contained in:
parent
98ea090b9f
commit
1958efe40f
10 changed files with 185 additions and 100 deletions
|
@ -9,11 +9,20 @@
|
|||
?>
|
||||
|
||||
<article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
|
||||
<header class="entry-header post-header-image" style="background-image: url('<?php the_post_thumbnail_url(); ?>');">
|
||||
|
||||
<header class="entry-header" id="post-header-image" style="background-image: url('<?php the_post_thumbnail_url(); ?>'); background-position: <?php if ($position = get_post_meta(get_the_ID(), 'Header Image Position', true)) echo $position; else echo 'centre'; ?>;">
|
||||
<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>
|
||||
<?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(); ?>
|
||||
</h1>
|
||||
<?php the_date('F j, Y', '<p id="post-date">', '</p>'); ?>
|
||||
</div>
|
||||
</div>
|
||||
</header><!-- .entry-header -->
|
||||
|
@ -33,16 +42,8 @@
|
|||
?>
|
||||
</div><!-- .entry-content -->
|
||||
|
||||
<?php
|
||||
edit_post_link(
|
||||
sprintf(
|
||||
/* translators: %s: Name of current post */
|
||||
__( 'Edit<span class="screen-reader-text"> "%s"</span>', 'twentysixteen' ),
|
||||
get_the_title()
|
||||
),
|
||||
'<footer class="entry-footer"><span class="edit-link">',
|
||||
'</span></footer><!-- .entry-footer -->'
|
||||
);
|
||||
?>
|
||||
<footer class="entry-footer">
|
||||
<?php //twentysixteen_entry_meta(); ?>
|
||||
</footer><!-- .entry-footer -->
|
||||
|
||||
</article><!-- #post-## -->
|
||||
|
|
Reference in a new issue