Tightened up footer to avoid line breaks on narrower layout. Set copyright name to default to the blog title if the admin user does not have a name entered.

This commit is contained in:
mindfaucet 2009-11-17 16:07:17 -07:00
parent fb4987f6e0
commit 7f3381016e
1 changed files with 26 additions and 5 deletions

View File

@ -9,10 +9,31 @@
<?php get_sidebar('footer'); ?> <?php get_sidebar('footer'); ?>
<?php global $disable_footer_text, $wpmu_version; if ($disable_footer_text != 'yes') { ?> <?php global $disable_footer_text, $wpmu_version; if ($disable_footer_text != 'yes') { ?>
<p> <p>
<span class="footer-copyright"><?php echo cp_copyright(); ?> <?php if (empty($wpmu_version)) { ?><?php echo the_author_meta('firstname',1); echo "&nbsp;"; echo the_author_meta('lastname',1); ?><span class="footer-pipe"> | </span><?php } ?></span> <span class="footer-copyright">
<span class="footer-powered"><?php bloginfo('name'); ?> <?Php _e('Powered by','comicpress'); ?> <a href="http://wordpress.org/">WordPress</a> <?php _e('with','comicpress'); ?> <a href="http://comicpress.org/">ComicPress</a><span class="footer-pipe"> | </span></span> <?php echo cp_copyright(); ?>
<span class="footer-subscribe">Subscribe: <a href="<?php bloginfo('rss2_url') ?>">RSS Feed</a><span class="footer-pipe"> | </span></span> <?php if (empty($wpmu_version)) {
<span class="footer-uptotop"><a href="#outside" onclick="scrollup(); return false;"><?php _e('Back to Top &uarr;','comicpress'); ?></a></span> $authorfirstname = get_the_author_meta('firstname',1);
$authorlastname = get_the_author_meta('lastname',1);
$blogname = get_bloginfo('title');
if ( $authorfirstname != "" ) {
echo $authorfirstname." ".$authorlastname;
} else {
echo $blogname;
}
} ?>
</span>
<span class="footer-powered">
<span class="footer-pipe">|</span>
<?php _e('Powered by','comicpress'); ?> <a href="http://wordpress.org/">WordPress</a> <?php _e('with','comicpress'); ?> <a href="http://comicpress.org/">ComicPress</a>
</span>
<span class="footer-subscribe">
<span class="footer-pipe">|</span>
Subscribe: <a href="<?php bloginfo('rss2_url') ?>">RSS</a>
</span>
<span class="footer-uptotop">
<span class="footer-pipe">|</span>
<a href="#outside" onclick="scrollup(); return false;"><?php _e('Back to Top &uarr;','comicpress'); ?></a>
</span>
<!-- <?php echo get_num_queries() ?> queries. <?php timer_stop(1) ?> seconds. --> <!-- <?php echo get_num_queries() ?> queries. <?php timer_stop(1) ?> seconds. -->
</p> </p>
<?php } ?> <?php } ?>