1. <?php $wpcx_cxOptions = get_option('cxOptions'); ?>
  2. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  3. <html xmlns="http://www.w3.org/1999/xhtml" <?php language_attributes(); ?>>
  4. <head profile="http://gmpg.org/xfn/11">
  5. <meta http-equiv="Content-Type" content="<?php bloginfo('html_type'); ?>; charset=<?php bloginfo('charset'); ?>" />
  6.  
  7. <title><?php wp_title('&laquo;', true, 'right'); ?> <?php bloginfo('name'); ?></title>
  8.  
  9. <link rel="pingback" href="<?php bloginfo('pingback_url'); ?>" />
  10.  
  11. <?php if ( is_singular() ) wp_enqueue_script( 'comment-reply' ); ?>
  12.  
  13. <?php wp_head(); ?>
  14.  
  15. </head>
  16.  
  17. <body <?php body_class(); ?>>          
  18.  
  19. <div id="wrapper">
  20.    
  21.     <div id="topmenu">
  22.        
  23.         <?php
  24.        
  25.         if(!empty($wpcx_cxOptions["social_facebook"])) {
  26.            
  27.             ?>
  28.            
  29.             <a href="<?php echo $wpcx_cxOptions["social_facebook"];?>" title="facebook" target="_blank"><img src="<?php echo get_template_directory_uri();?>/images/icon_facebook.png" /></a>
  30.            
  31.             <?php
  32.            
  33.         }
  34.        
  35.         if(!empty($wpcx_cxOptions["social_linkedin"])) {
  36.            
  37.             ?>
  38.            
  39.             <a href="https://www.linkedin.com/e/fpf/<?php echo $wpcx_cxOptions["social_linkedin"]; ?>" title="linkedin" target="_blank"><img src="<?php echo get_template_directory_uri();?>/images/icon_linked.png" /></a>
  40.            
  41.             <?php
  42.            
  43.         }
  44.        
  45.         if(!empty($wpcx_cxOptions["social_twitter"])) {
  46.            
  47.             ?>
  48.            
  49.             <a href="http://www.twitter.com/#!/<?php echo $wpcx_cxOptions["social_twitter"]; ?>" title="twitter" target="_blank"><img src="<?php echo get_template_directory_uri();?>/images/icon_twitter.png" /></a>
  50.            
  51.             <?php
  52.            
  53.         }
  54.        
  55.         if(!empty($wpcx_cxOptions["social_rss"])) {
  56.            
  57.             if($wpcx_cxOptions["social_rss"] == "yes") {
  58.            
  59.                 ?>
  60.                
  61.                 <a href="<?php bloginfo('rss2_url'); ?>" title="rss" target="_blank"><img src="<?php echo get_template_directory_uri();?>/images/icon_rss.png" /></a>
  62.                
  63.                 <?php
  64.            
  65.             }
  66.            
  67.         }
  68.        
  69.         ?>
  70.    
  71.     </div>
  72.    
  73.     <div id="header">
  74.  
  75. <?php
  76.             // Check to see if the header image has been removed
  77.             $header_image = get_header_image();
  78.             if ( ! empty( $header_image ) ) :
  79.             ?>
  80.             <a href="<?php echo esc_url( home_url( '/' ) ); ?>">
  81.                     <img src="<?php header_image(); ?>" width="<?php echo HEADER_IMAGE_WIDTH; ?>" height="<?php echo HEADER_IMAGE_HEIGHT; ?>" alt="" />
  82.             </a>
  83.            
  84.             <?php else : // no header image, show title ?>
  85.            
  86.         <div id="logoname">        
  87.             <?php          
  88.             if(!empty($wpcx_cxOptions["logo_name"])) {         
  89.                 $wpcx_logo_name = $wpcx_cxOptions["logo_name"];        
  90.             } else{            
  91.                 $wpcx_logo_name = "<div class='logo_text'>" . wpcx_cut_text(get_bloginfo('name'), 13, "") . "</div>";              
  92.             }          
  93.             if(!empty($wpcx_cxOptions["logo_file"])) {             
  94.                 $wpcx_logo_name = "<img src='".get_template_directory_uri()."/images/logos/".$wpcx_cxOptions["logo_file"]."'/>";               
  95.             }          
  96.             ?>         
  97.             <a href="<?php echo home_url();?>" title=""><?php echo $wpcx_logo_name; ?></a>         
  98.         </div>
  99.         <?php endif; // end check for header image ?>
  100.  
  101.  
  102.         <div class="navigation">   
  103.             <ul id="navbar">
  104.                 <?php wp_nav_menu(array('theme_location'  => 'nav_menu', 'container' => false, 'fallback_cb' => 'wpcx_default_menu')); ?>
  105.             </ul>
  106.            
  107.             <div id="search">
  108.                 <form id="searchform" method="get" action="/">
  109.                 <input type="text" value="" name="s" id="searchbox" />
  110.                 <input type="submit" id="searchbutton" value="" />
  111.                 </form>
  112.             </div>
  113.         </div>
  114.     </div>