Advertisement
mikeperazzetti

Annotum header.php

May 15th, 2012
110
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.87 KB | None | 0 0
  1. <?php
  2.  
  3. /**
  4. * @package anno
  5. * This file is part of the Annotum theme for WordPress
  6. * Built on the Carrington theme framework <http://carringtontheme.com>
  7. *
  8. * Copyright 2008-2011 Crowd Favorite, Ltd. All rights reserved. <http://crowdfavorite.com>
  9. * Released under the GPL license
  10. * http://www.opensource.org/licenses/gpl-license.php
  11. */
  12. if (__FILE__ == $_SERVER['SCRIPT_FILENAME']) { die(); }
  13. if (CFCT_DEBUG) { cfct_banner(__FILE__); }
  14. ?>
  15. <!doctype html>
  16. <?php anno_open_html(); ?>
  17. <head>
  18. <meta charset="<?php bloginfo('charset') ?>" />
  19.  
  20. <title><?php wp_title( '-', true, 'right' ); echo esc_html( get_bloginfo('name') ); ?></title>
  21.  
  22. <?php wp_head(); ?>
  23. <?php cfct_misc('custom-colors'); ?>
  24. </head>
  25.  
  26. <body <?php body_class(); ?>>
  27. <header id="header" class="act">
  28. <div class="header-body">
  29. <div class="in">
  30. <?php if (anno_has_header_image()): ?>
  31. <h1 id="site-name">/" title="Home" rel="home"><?php anno_header_image(); ?></h1>
  32. <?php else: ?>
  33.  
  34. <h1 id="site-name"><?php bloginfo('name')?></h1>
  35.  
  36. <?php endif; ?>
  37. <nav id="secondary-nav" class="clearfix">
  38. <?php
  39. $args = array(
  40. 'theme_location' => 'secondary',
  41. 'container' => false,
  42. );
  43. anno_nav_menu($args);
  44. ?>
  45. </nav>
  46. </div>
  47. </div>
  48. <div class="navigation">
  49. <div class="in">
  50. <nav id="site-nav" class="clearfix">
  51. <?php
  52. $args = array(
  53. 'theme_location' => 'main',
  54. 'container' => false,
  55. 'menu_class' => 'nav'
  56. );
  57. anno_nav_menu($args);
  58. cfct_form('search');
  59. ?>
  60. </nav>
  61. </div>
  62. </div>
  63. <?php
  64. if (is_home()) { ?>
  65. <div id="masthead" class="clearfix">
  66. <div class="in">
  67. <div id="masthead-body">
  68. <?php
  69. $featured = new Anno_Featured_Articles('anno_featured');
  70. $featured->render();
  71. ?>
  72. </div><!-- #masthead-body -->
  73. <div class="teasers">
  74. <?php dynamic_sidebar('masthead'); ?>
  75. </div><!-- #masthead-sidebar -->
  76. </div>
  77. </div><!-- #masthead -->
  78. <?php
  79. }
  80. ?>
  81. </header>
  82. <div id="main" class="act">
  83. <div class="in">
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement