Point to home button to www.opensuse.org
[opensuse:marguerite-bento.git] / bento / header.php
1 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
2   "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
3
4 <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
5 <head>
6
7
8   <!-- include local CSS file -->
9   <link rel="stylesheet" href="<?php bloginfo('stylesheet_url'); ?>" type="text/css" media="screen" />
10   <link rel="stylesheet" href="http://static.opensuse.org/themes/bento/css/print.css" type="text/css" media="print" />
11
12   <meta http-equiv="content-type" content="<?php bloginfo('html_type'); ?>; charset=<?php bloginfo('charset'); ?>" />
13   <!-- opengraph metadata -->
14   <meta property="og:site_name" content="<?php bloginfo('name'); ?>" />
15   <?php
16   if ( is_home() ) {
17   echo '<meta property="og:type" content="blog" />'; echo "\n";
18   echo '  <meta property="og:title" content="'; bloginfo('name'); echo '" />'; echo "\n";
19   echo '  <meta property="og:url" content="'; bloginfo('url'); echo '" />'; echo "\n";
20   echo '  <meta property="og:description" content="'; bloginfo('description'); echo '" />'; echo "\n";
21   } else {
22   echo '<meta property="og:type" content="article" />'; echo "\n";
23   echo '  <meta property="og:title" content="'; the_title(); echo '" />'; echo "\n";
24   echo '  <meta property="og:url" content="'; the_permalink();  echo '" />'; echo "\n";
25   echo '  <meta property="og:description" content="'; the_excerpt_rss(); echo '" />'; echo "\n";
26   }
27   ?>
28
29   <!-- include JS from static.opensuse.org -->
30   <script src="<?php remote_theme_url('get_theme_url'); ?>/js/jquery.js" type="text/javascript" charset="utf-8"></script>
31   <script src="<?php remote_theme_url('get_theme_url'); ?>/js/script.js" type="text/javascript" charset="utf-8"></script>
32   <!-- This is for local development:
33   <script src="<?php echo get_bloginfo('template_url'); ?>/js/script.js" type="text/javascript" charset="utf-8"></script>
34   -->
35
36   <!-- translated global navigation -->
37   <script src="<?php remote_theme_url('get_theme_url'); ?>/js/l10n/global-navigation-data-en_US.js" type="text/javascript" charset="utf-8"></script>
38   <script src="<?php remote_theme_url('get_theme_url'); ?>/js/global-navigation.js" type="text/javascript" charset="utf-8"></script>
39
40   <!-- social service scripts -->
41   <script type="text/javascript" src="http://platform.twitter.com/widgets.js"></script>
42
43   <link rel="alternate" type="application/rss+xml" href="<?php bloginfo('rss2_url'); ?>" title="<?php printf( __( '%s latest posts', 'your-theme' ), wp_specialchars( get_bloginfo('name'), 1 ) ); ?>" />
44   <link rel="alternate" type="application/rss+xml" href="<?php bloginfo('comments_rss2_url') ?>" title="<?php printf( __( '%s latest comments', 'your-theme' ), wp_specialchars( get_bloginfo('name'), 1 ) ); ?>" />
45   <link rel="pingback" href="<?php bloginfo('pingback_url'); ?>" />
46   
47   <?php if ( is_singular() ) wp_enqueue_script( 'comment-reply' ); ?>
48   <?php wp_head(); ?>
49   
50   <link rel="icon" type="image/png" href="http://static.opensuse.org/themes/bento/images/favicon.png" />
51   <title><?php echo bloginfo('name'); ?></title>
52   
53 </head>
54
55 <body>
56   
57   <!-- include header from static -->
58   <?php #get_remote_snippet('header'); ?>
59   
60   <!-- Start: Header -->
61   <div id="header">
62     
63     <div id="header-content" class="container_12">
64       
65       <a id="header-logo" href="http://www.opensuse.org">
66         <img src="http://static.opensuse.org/themes/bento/images/header-logo.png" width="46" height="26" alt="Header Logo" />
67       </a>
68       
69       <ul id="global-navigation">
70         <li id="item-downloads"><a href="http://opensuse.org/sitemap#downloads">Downloads</a></li>
71         <li id="item-support"><a href="http://opensuse.org/sitemap#support">Support</a></li>
72         <li id="item-community"><a href="http://opensuse.org/sitemap#community">Community</a></li>
73         <li id="item-development"><a href="http://opensuse.org/sitemap#development">Development</a></li>
74       </ul>
75       
76       <?php get_search_form(); ?>
77     
78     </div>
79   </div>
80   <!-- End: Header -->
81
82   <div id="subheader" class="container_12">
83     <div id="breadcrump" class="grid_8 alpha">
84       <a href="/"><img src="http://static.opensuse.org/themes/bento/images/home_grey.png" width="16" height="16" alt="Home" /></a> <?php echo do_shortcode('[simple_crumbs root="Home" /]') ?>
85     </div>
86     
87     <?php #if (!current_user_can('level_0')) { // show login ?>
88       
89     <?php if ( is_user_logged_in() ) { // Show Logout ?>
90       <div class="grid_4" id="login-wrapper">
91         <a href="<?php echo get_bloginfo('url'); ?>/wp-admin/" title="WP-Admin-Interface">Backend</a> |
92         <a href="<?php echo wp_logout_url(); ?>">Logout</a>
93       </div>
94     <?php } else { // Show Login ?>
95       <div class="grid_4" id="login-wrapper">
96         <a href="#signup-page">Sign up</a> | 
97         <!-- <a id="login-trigger" href="" title="Login">Login</a> -->
98         <!-- wp_login_form() ==> http://codex.wordpress.org/Function_Reference/wp_login_form -->
99         <a href="<?php echo wp_login_url(); ?>" title="Login">Login</a>
100       </div>
101     <?php } ?>
102   </div>