footer.php 2.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. <script type="text/javascript" src="https://ajax.microsoft.com/ajax/jQuery/jquery-1.3.2.min.js"></script>
  2. <script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/jquery-color/2.1.1/jquery.color.js"></script>
  3. <!-- <script type="text/javascript" src="http://view.jquery.com/trunk/plugins/color/jquery.color.js"></script> -->
  4. <script type="text/javascript" src="<?php bloginfo('template_url'); ?>/js/yinheli.js"></script>
  5. <?php get_sidebar(); $options = get_option('philna_options');?>
  6. </div><!--container end-->
  7. <div class="fixed"></div>
  8. </div><!--page end-->
  9. </div><!--wall end-->
  10. </div>
  11. <div id="footerbg">
  12. <div id="footer">
  13. <?php if($options['show_welcome'] && !is_bot()) yinheli_welcome();?>
  14. <div id="foot-cotent">
  15. <span id="totop"><a href="#header">Top</a></span>
  16. <a id="powered" href="http://wordpress.org">wordpress</a>
  17. <div id="copyright">
  18. <?php
  19. global $wpdb;
  20. $post_datetimes = $wpdb->get_results("SELECT YEAR(post_date_gmt) AS year FROM wp_posts WHERE post_date_gmt > 1949 ORDER BY post_date_gmt ASC");
  21. $firstpost_year = $post_datetimes[0]->year;
  22. $lastpost_year = $post_datetimes[count($post_datetimes)-1]->year;
  23. $copyright = __('Copyright &copy; ', 'philna') . $firstpost_year;
  24. if($firstpost_year != $lastpost_year) {
  25. $copyright .= '-'. $lastpost_year;
  26. }
  27. echo $copyright;
  28. ?>
  29. <?php bloginfo('name'); ?> <?php echo $options['footer_content']; ?>
  30. </div>
  31. <div id="themeinfo">
  32. <?php _e('Theme by <a href="http://philna.com">yinheli</a>. Valid <a href="http://validator.w3.org/check?uri=referer">XHTML 1.1</a> and <a href="http://jigsaw.w3.org/css-validator/">CSS 3</a>.', 'philna');?>
  33. <?php if($options['show_online_counter']) include("yinheli_user_online.php");?>
  34. </div>
  35. <?if(!is_bot()):?>
  36. <?php if($_COOKIE["comment_author_" . COOKIEHASH]!=""): ?><!-- js rewrite the title -->
  37. <?php if (is_home()) : ?>
  38. <script type="text/javascript">
  39. document.title = "<?php printf(__('Hi! %s, Welcome back to '), $_COOKIE["comment_author_" . COOKIEHASH]) ?>" + document.title
  40. </script>
  41. <?php elseif (is_single()) : ?>
  42. <script type="text/javascript">
  43. document.title = "<?php printf(__('%s, you are reading '), $_COOKIE["comment_author_" . COOKIEHASH]) ?>" + document.title
  44. </script>
  45. <?php endif; ?>
  46. <?php endif; ?>
  47. <?endif;?>
  48. <?php wp_footer(); ?>
  49. <?php global $user_level;if( $user_level>8):?>
  50. <!-- <?php echo get_num_queries(); ?> queries. <?php timer_stop(1); ?> seconds. -->
  51. <?php endif;?>
  52. </div>
  53. </div>
  54. </div>
  55. </body>
  56. </html>