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-## -->
|
||||
|
|
|
@ -10,17 +10,17 @@
|
|||
|
||||
<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(); ?>');">
|
||||
<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">
|
||||
<div id="post-header-details">
|
||||
<?php
|
||||
<?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 echo get_the_title(); ?>
|
||||
<?php if ($versionNum = get_post_meta(get_the_ID(), 'Version', true)): ?>
|
||||
<span id="version"><?php echo $versionNum ?></span>
|
||||
<?php endif; ?>
|
||||
|
@ -39,6 +39,11 @@
|
|||
</header><!-- .entry-header -->
|
||||
|
||||
<div id="body" class="entry-content">
|
||||
<?php if (has_tag('ohwhatohjeez')): ?>
|
||||
<div class="note">
|
||||
<p>This piece was originally written for my old site, <a href="/website/oh-what-oh-jeez">Oh What? Oh Jeez!</a> As such, it may not have transferred over properly and some images and links might be broken (and, to a lesser extent, my writing from years ago is about 80% run-on sentences).</p>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
<?php
|
||||
if (get_the_content()):
|
||||
the_content();
|
||||
|
|
|
@ -10,8 +10,8 @@
|
|||
|
||||
<div class="col-m-6 col-4 col-w-3">
|
||||
<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">
|
||||
<article id="post-<?php the_ID(); ?>" class="index-item" 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'; ?>;">
|
||||
<header class="entry-header <?php if (has_tag('ohwhatohjeez')) echo 'ohwhatohjeez' ?>">
|
||||
<div class="post-header-details">
|
||||
<?php
|
||||
if (strlen(get_the_title()) > 70) $small= "vsmall";
|
||||
|
|
Reference in a new issue