wordpress-theme-openmamba/header-webbuild.php

149 lines
5.6 KiB
PHP
Raw Normal View History

2014-11-13 21:33:23 +01:00
<?php
/**
* Header Template
*
*
* @file header.php
* @package Responsive
* @author Emil Uzelac
* @copyright 2003 - 2014 CyberChimps
* @license license.txt
* @version Release: 1.3
* @filesource wp-content/themes/responsive/header.php
* @link http://codex.wordpress.org/Theme_Development#Document_Head_.28header.php.29
* @since available since Release 1.0
*/
// Exit if accessed directly
if ( !defined( 'ABSPATH' ) ) {
exit;
}
?>
<!doctype html>
<!--[if !IE]>
<html class="no-js non-ie" <?php language_attributes(); ?>> <![endif]-->
<!--[if IE 7 ]>
<html class="no-js ie7" <?php language_attributes(); ?>> <![endif]-->
<!--[if IE 8 ]>
<html class="no-js ie8" <?php language_attributes(); ?>> <![endif]-->
<!--[if IE 9 ]>
<html class="no-js ie9" <?php language_attributes(); ?>> <![endif]-->
<!--[if gt IE 9]><!-->
<html class="no-js" <?php language_attributes(); ?>> <!--<![endif]-->
<head>
<meta charset="<?php bloginfo( 'charset' ); ?>"/>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title><?php wp_title( '&#124;', true, 'right' ); ?></title>
<link rel="profile" href="http://gmpg.org/xfn/11"/>
<link rel="pingback" href="<?php bloginfo( 'pingback_url' ); ?>"/>
<?php
2014-11-22 11:55:35 +01:00
remove_action('wp_head', '_admin_bar_bump_cb');
add_filter('show_admin_bar', '__return_false' );
2014-11-13 21:33:23 +01:00
print "<script>";
print "var user = \"" . wp_get_current_user()->user_login . "\";";
print "var user_email = \"" . wp_get_current_user()->user_email . "\";";
print "var secret = \"" . wp_get_current_user()->user_pass . "\";";
2015-04-18 14:59:11 +02:00
print "</script>" . PHP_EOL;
2014-11-13 21:33:23 +01:00
2015-04-18 14:59:11 +02:00
print '<link rel="shortcut icon" type="image/x-icon" href="' . get_stylesheet_directory_uri() . '/images/webbuild.ico" />' . PHP_EOL;
2014-11-13 21:33:23 +01:00
# styles needed by jScrollPane
2015-04-18 14:59:11 +02:00
print '<link type="text/css" href="' . get_stylesheet_directory_uri() . '/scripts/jquery.jscrollpane.css" rel="stylesheet" media="all" >' . PHP_EOL;
2014-11-13 21:33:23 +01:00
# jQuery
2015-04-18 14:59:11 +02:00
print '<script type="text/javascript" src="' . get_stylesheet_directory_uri() . '/scripts/jquery.js"></script>' . PHP_EOL;
2014-11-13 21:33:23 +01:00
# the mousewheel plugin - optional to provide mousewheel suppor
2015-04-18 14:59:11 +02:00
print '<script type="text/javascript" src="' . get_stylesheet_directory_uri() . '/scripts/jquery.mousewheel.js"></script>' . PHP_EOL;
2014-11-13 21:33:23 +01:00
# the jScrollPane script
2015-04-18 14:59:11 +02:00
print '<script type="text/javascript" src="' . get_stylesheet_directory_uri() . '/scripts/jquery.jscrollpane.min.js"></script>' . PHP_EOL;
2014-11-13 21:33:23 +01:00
# webbuild css
2015-04-18 14:59:11 +02:00
print '<link rel="stylesheet" type="text/css" href="' . get_stylesheet_directory_uri() . '/styles/webbuild.css">' . PHP_EOL;
2014-11-13 21:33:23 +01:00
# socialbox
2015-04-18 14:59:11 +02:00
print '<script type="text/javascript" src="' . get_stylesheet_directory_uri() . '/scripts/socialbox.js"></script>' . PHP_EOL;
# webbuild
#print '<script type="text/javascript" src="' . get_stylesheet_directory_uri() . '/scripts/webbuild.js"></script>';
2015-04-06 20:46:06 +02:00
# distroquery
2015-04-18 14:59:11 +02:00
print '<script type="text/javascript" src="' . get_stylesheet_directory_uri() . '/scripts/distroquery.js"></script>' . PHP_EOL;
2014-11-13 21:33:23 +01:00
$file = fopen(get_stylesheet_directory() . "/webbuild.js.inc", "r");
print fread($file, 20000);
fclose($file);
# wordpress header code
wp_head();
# webbuild css
print '<link rel="stylesheet" type="text/css" href="' . get_stylesheet_directory_uri() . '/styles/webbuild-post.css"/>';
2014-11-13 21:33:23 +01:00
?>
</head>
<body <?php body_class(); ?>>
<?php responsive_container(); // before container hook ?>
<div id="container" class="hfeed">
<?php responsive_header(); // before header hook ?>
<div class="skip-container cf">
<a class="skip-link screen-reader-text focusable" href="#content"><?php _e( '&darr; Skip to Main Content', 'responsive' ); ?></a>
</div><!-- .skip-container -->
<div id="header">
<?php responsive_header_top(); // before header content hook ?>
<?php if ( has_nav_menu( 'top-menu', 'responsive' ) ) {
wp_nav_menu( array(
'container' => '',
'fallback_cb' => false,
'menu_class' => 'top-menu',
'theme_location' => 'top-menu'
) );
} ?>
<?php responsive_in_header(); // header hook ?>
<?php if ( get_header_image() != '' ) : ?>
<div id="logo">
<a href="<?php echo home_url( '/' ); ?>"><img src="<?php header_image(); ?>" width="<?php echo get_custom_header()->width; ?>" height="<?php echo get_custom_header()->height; ?>" alt="<?php bloginfo( 'name' ); ?>"/></a>
</div><!-- end of #logo -->
<?php endif; // header image was removed ?>
<?php if ( !get_header_image() ) : ?>
<div id="logo">
<span class="site-name"><a href="<?php echo home_url( '/' ); ?>" title="<?php echo esc_attr( get_bloginfo( 'name', 'display' ) ); ?>" rel="home"><?php bloginfo( 'name' ); ?></a></span>
<span class="site-description"><?php bloginfo( 'description' ); ?></span>
</div><!-- end of #logo -->
<?php endif; // header image was removed (again) ?>
<?php get_sidebar( 'top' ); ?>
<?php wp_nav_menu( array(
'container' => 'div',
'container_class' => 'main-nav',
'fallback_cb' => 'responsive_fallback_menu',
'theme_location' => 'header-menu'
) ); ?>
<?php if ( has_nav_menu( 'sub-header-menu', 'responsive' ) ) {
wp_nav_menu( array(
'container' => '',
'menu_class' => 'sub-header-menu',
'theme_location' => 'sub-header-menu'
) );
} ?>
<?php responsive_header_bottom(); // after header content hook ?>
</div><!-- end of #header -->
<?php responsive_header_end(); // after header container hook ?>
<?php responsive_wrapper(); // before wrapper container hook ?>
<div id="wrapper" class="clearfix">
<?php responsive_wrapper_top(); // before wrapper content hook ?>
<?php responsive_in_wrapper(); // wrapper hook ?>