Fine-tuning layout
Vanavond zijn er nog een paar kleine wijzigingen in de lay-out doorgevoerd.
In het bestand single.php heb ik de volgende code verwijderd:
<small>You can follow any responses to this entry through the
<?php comments_rss_link('RSS 2.0'); ?> feed.
<?php if (('open' == $post-> comment_status) && ('open' == $post->ping_status))
{// Both Comments and Pings are open ?>
You can
<a href="#respond">leave a response</a>, or <a href="<?php trackback_url(true); ?>"
rel="trackback">trackback</a> from your own site.
<?php } elseif (!('open' == $post-> comment_status) && ('open' == $post->ping_status))
{// Only Pings are Open ?>
Responses are currently closed, but you can <a href="
<?php trackback_url(true); ?> "
rel="trackback">trackback</a> from your own site.
<?php } elseif (('open' == $post-> comment_status) && !('open' == $post->ping_status))
{// Comments are open, Pings are not ?>
You can skip to the end and leave a response. Pinging is currently not allowed.
<?php } elseif (!('open' == $post-> comment_status) && !('open' == $post->ping_status))
{// Neither Comments, nor Pings are open ?>
Both comments and pings are currently closed.
<?php } ?>
</small>
</p>
Deze regels heb ik verwijderd omdat ik het gedeelte onderaan de post storend vond. Misschien laat ik het nog ergens terugkomen in de toekomst, maar misschien ook niet.
Daarnaast is de volgende code in single.php een paar regels naar beneden verhuisd zodat het onder het bericht verschijnt:
<a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title(); ?>">
<?php the_title(); ?></a> was posted by
<?php the_author() ?> on
<?php the_time(get_settings('date_format')); ?> at
<?php the_time() ?> in
<?php the_category(', ') ?>
<?php edit_post_link('Edit',''); ?>
<?php comments_popup_link('(No Comments »)', '(1 Comment »)', '(% Comments »)'); ?>
</p>
Ook in de index.php zijn deze regels verschoven zodat ze onder elk bericht komen te staan. Daarnaast is in de index.php eveneens de posttitel gewijzigd dat deze geen permalink meer is. De regel:
<a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to
<?php the_title(); ?>"><?php the_title(); ?></a>
</h2>
Is gewijzigd in:
<?php the_title(); ?>
</h2>