PageRenderTime 51ms CodeModel.GetById 26ms RepoModel.GetById 0ms app.codeStats 0ms

/wp-content/themes/redtime/header.php

https://bitbucket.org/lgorence/quickpress
PHP | 76 lines | 65 code | 11 blank | 0 comment | 4 complexity | 3ac6a3e7a4d5f30b6a3fba2e0639e1f6 MD5 | raw file
Possible License(s): GPL-2.0, LGPL-2.1, AGPL-1.0
  1. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  2. <html xmlns="http://www.w3.org/1999/xhtml" <?php language_attributes(); ?>>
  3. <head profile="http://gmpg.org/xfn/11">
  4. <meta http-equiv="Content-Type" content="<?php bloginfo('html_type'); ?>; charset=<?php bloginfo('charset'); ?>" />
  5. <title><?php bloginfo('name'); ?> <?php if ( is_single() ) { ?> &raquo; Blog Archive <?php } ?> <?php wp_title(); ?></title>
  6. <meta name="generator" content="WordPress <?php bloginfo('version'); ?>" /> <!-- leave this for stats -->
  7. <link rel="stylesheet" href="<?php bloginfo('stylesheet_url'); ?>" type="text/css" media="screen" />
  8. <link rel="alternate" type="application/rss+xml" title="<?php bloginfo('name'); ?> RSS Feed" href="<?php bloginfo('rss2_url'); ?>" />
  9. <link rel="pingback" href="<?php bloginfo('pingback_url'); ?>" />
  10. <!--[if IE ]>
  11. <link rel="stylesheet" href="<?=bloginfo('template_url')?>/style-ie.css" type="text/css" media="screen" />
  12. <script type="text/javascript">
  13. var png_trans = "<?=bloginfo('template_url')?>/images/transparent.gif";
  14. </script>
  15. <![endif]-->
  16. <!-- Main Menu -->
  17. <script type="text/javascript" src="<?php bloginfo('stylesheet_directory'); ?>/js/jquery.min.1.2.6.js"></script>
  18. <script type="text/javascript" src="<?php bloginfo('stylesheet_directory'); ?>/js/jqueryslidemenu/jqueryslidemenu.js"></script>
  19. <!-- /Main Menu -->
  20. <?php if ( is_singular() ) wp_enqueue_script( 'comment-reply' ); ?>
  21. <?php wp_head(); ?>
  22. </head>
  23. <body>
  24. <div id="page">
  25. <div id="menu">
  26. <div id="top_rss"><a href="<?php bloginfo('rss2_url'); ?>" title="Rss"><img src="<?php bloginfo('template_url')?>/images/rss.png" alt="<?php bloginfo('name'); ?> Rss" /></a></div>
  27. <div id="mainmenu">
  28. <ul>
  29. <li class="first <? if(is_home()) echo 'current_page_item'; ?>"><a href="<?php echo get_option('home'); ?>/">Home</a></li>
  30. <?php $exclude = obwp_get_meta(SHORTNAME.'_exclude_page'); wp_list_pages2('title_li=&sort_column=menu_order&depth=0&exclude='.$exclude) ?>
  31. </ul>
  32. </div>
  33. </div>
  34. <div id="header">
  35. <div id="header_title">
  36. <h1><a href="<?php echo get_option('home'); ?>/"><?php bloginfo('name'); ?></a></h1>
  37. <span><?php bloginfo('description'); ?></span>
  38. </div>
  39. <div id="header_right">
  40. <div id="main_search">
  41. <form method="get" id="searchform_top" action="<?php bloginfo('url'); ?>/">
  42. <div>
  43. <input type="text" value="Type your search here..." name="s" id="searchform_top_text" onclick="this.value='';" />
  44. <input type="image" src="<?php bloginfo('template_url')?>/images/button_go.gif" id="gosearch" />
  45. </div>
  46. </form>
  47. </div>
  48. </div>
  49. </div>
  50. <div id="board">
  51. <div id="board_post">
  52. <h3>Featured Post</h3>
  53. <?php $recent = new WP_Query("showposts=1&orderby=rand"); while($recent->have_posts()) : $recent->the_post();?>
  54. <h2><?php the_title_limited(70); ?></h2>
  55. <p><?php the_content_limit(300); ?></p>
  56. <p><a href="<?php the_permalink() ?>">Read More</a></p>
  57. <?php endwhile; ?>
  58. </div>
  59. <div id="board_twitter">
  60. <p><a href="<?php echo theme_twitter_link_show(); ?>"><img src="<?php bloginfo('template_url')?>/images/button_twitter.png" alt="" /></a></p>
  61. </div>
  62. </div>
  63. <div id="body">
  64. <div id="body_left">
  65. <div id="body_left_content">