XPressME Integration Kit

Trac

source: trunk/xpressme_integration_kit/wp-content/themes/xpress_default/header.php @ 279

Last change on this file since 279 was 279, checked in by toemon, 15 years ago

WP2011でxpress_defaultテーマheader.php読み込み時get_avater()でエラーになるバグ修正 fixes #150

File size: 2.3 KB
Line 
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 if (function_exists('language_attributes')) { language_attributes(); }?>>
3
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 bloginfo('name');
8if ( is_single() ) {
9        _e('&raquo; Blog Archive', 'xpress');
10}
11wp_title(); ?></title>
12
13<link rel="stylesheet" href="<?php bloginfo('stylesheet_url'); ?>" type="text/css" media="screen" />
14<link rel="alternate" type="application/rss+xml" title="<?php printf(__('%s RSS Feed', 'xpress'), get_bloginfo('name')); ?>" href="<?php bloginfo('rss2_url'); ?>" />
15<link rel="alternate" type="application/atom+xml" title="<?php printf(__('%s Atom Feed', 'xpress'), get_bloginfo('name')); ?>" href="<?php bloginfo('atom_url'); ?>" />
16<link rel="pingback" href="<?php bloginfo('pingback_url'); ?>" />
17<?php
18// comment-replay.js load  @since 2.7.0
19if (function_exists('wp_enqueue_script')) { // not function Ver2.0
20        if ( is_singular() ){  //not function Ver2.0
21                wp_enqueue_script( 'comment-reply' );
22        }
23}
24?>
25<?php wp_head(); ?>
26</head>
27<body>
28<div id="xpress_page">
29<div id="xpress-header-bar">
30        <div id="xpress-header-bar-top">
31                <div class="xpress-header-title">
32                        <?php  if (xpress_selected_author_id('echo=0') && function_exists('get_avatar')) echo get_avatar(xpress_selected_author_id('echo=0'),$size = '32'); ?>
33                        <a href="<?php echo get_option('home'); ?>/"><?php bloginfo('name'); ?></a>
34                </div>
35                <div class="xpress-conditional-title">
36                        &nbsp; <?php xpress_conditional_title();?>
37                </div>
38        </div>
39        <div class="xpress-description">
40                <?php bloginfo('description'); ?>
41        </div>
42        <div class="xpress-operation-link">
43                <?php if (xpress_is_wpmu()) : ?>
44                <a href="<?php echo get_blog_details(1)->siteurl ; ?>/"><?php _e('Main Page','xpress')?></a> |
45                <?php endif; ?>
46                <a href="<?php echo get_option('home'); ?>/"><?php _e('Blogs Home','xpress')?></a>
47                <?php if(xpress_is_contributor()) { echo ' | ' ; xpress_post_new_link('link_title='. __('Post New','xpress'). '&echo=1'); }?>
48        </div>
49</div>
50<hr class="xpress-border"></hr>
Note: See TracBrowser for help on using the repository browser.