/htdocs/wp-content/themes/phc/header.php
PHP | 90 lines | 55 code | 15 blank | 20 comment | 9 complexity | 24b81d609f28f8c1b9e189230e24ba88 MD5 | raw file
Possible License(s): GPL-2.0
- <?php
- /**
- * The Header for our theme.
- *
- * Displays all of the <head> section
- *
- * @package WordPress
- * @subpackage Starkers
- * @since Starkers HTML5 3.0
- */
- ?><!DOCTYPE html>
- <html <?php language_attributes(); ?>>
- <head>
- <meta charset="<?php bloginfo( 'charset' ); ?>" />
- <link rel="icon" type="image/png" href="<?php bloginfo('stylesheet_directory'); ?>/img/favico.png"/>
- <title><?php
-
- global $page, $paged;
-
- wp_title( '|', true, 'right' );
-
- bloginfo( 'name' );
-
- $site_description = get_bloginfo( 'description', 'display' );
- if ( $site_description && ( is_home() || is_front_page() ) )
- echo " | $site_description";
-
- if ( $paged >= 2 || $page >= 2 )
- echo ' | ' . sprintf( __( 'Page %s', 'starkers' ), max( $paged, $page ) );
-
- ?></title>
- <link rel="profile" href="http://gmpg.org/xfn/11" />
- <link rel="stylesheet" type="text/css" media="all" href="<?php bloginfo( 'stylesheet_directory' ); ?>/css/fonts/stylesheet.css" />
- <link rel="stylesheet" type="text/css" media="all" href="<?php bloginfo( 'stylesheet_url' ); ?>" />
- <link rel="pingback" href="<?php bloginfo( 'pingback_url' ); ?>" />
-
- <script src="<?php bloginfo('template_directory'); ?>/js/modernizr-1.6.min.js"></script>
- <script type="text/javascript" src="<?php bloginfo('stylesheet_directory'); ?>/js/jquery-1.7.2.min.js"></script>
- <script type="text/javascript" src="<?php bloginfo('stylesheet_directory'); ?>/js/jquery.cycle.all.js"></script>
- <script type="text/javascript" src="<?php bloginfo('stylesheet_directory'); ?>/js/header.js"></script>
- <script type="text/javascript" src="http://maps.google.com/maps/api/js?sensor=false"></script>
-
-
- <?php
- /* We add some JavaScript to pages with the comment form
- * to support sites with threaded comments (when in use).
- */
- if ( is_singular() && get_option( 'thread_comments' ) )
- wp_enqueue_script( 'comment-reply' );
-
- /* Always have wp_head() just before the closing </head>
- * tag of your theme, or you will break many plugins, which
- * generally use this hook to add elements to <head> such
- * as styles, scripts, and meta tags.
- */
- wp_head();
- ?>
- </head>
-
-
- <body <?php body_class(); ?>>
- <div id="body-container">
- <div id="container">
- <header id="page-header">
- <a id="logo" href="<?php bloginfo('url'); ?>"><img src="<?php bloginfo('stylesheet_directory'); ?>/img/logo.png"></a>
-
- <?php
- function language_selector_flags(){
- $languages = icl_get_languages('skip_missing=0&orderby=id');
- //print_r($languages);
- if(!empty($languages)){
- foreach($languages as $l){
- echo '<a ';
- if($l['active']) echo 'class="active" ';
- echo 'href="'.$l['url'].'">';
- /*if ($l['language_code']=='') echo 'pl';
- else echo $l['language_code'];*/
- echo '<img src="'.$l['country_flag_url'].'" height="12" alt="'.$l['language_code'].'" width="18" />';
- echo '</a>';
- }
- }
- }
- ?>
- <div id="languages"><?php language_selector_flags(); ?></div>
- <?php /* Our navigation menu. If one isn't filled out, wp_nav_menu falls back to the 'starkers_menu' function which can be found in functions.php. The menu assiged to the primary position is the one used. If none is assigned, the menu with the lowest ID is used. */ ?>
- <?php wp_nav_menu(); ?>
- <?php //wp_nav_menu( array( 'container' => 'nav', 'fallback_cb' => 'starkers_menu', 'theme_location' => 'primary' ) ); ?>
- </header>