Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- /**
- * The Header for our theme.
- *
- *
- * @package WordPress
- * @subpackage Hosting Square
- * @since Hosting Square 1.0
- */
- ?><!DOCTYPE html>
- <html <?php language_attributes(); ?>>
- <head>
- <meta charset="<?php bloginfo( 'charset' ); ?>" />
- <title><?php
- /*
- * Print the <title> tag based on what is being viewed.
- */
- global $page, $paged;
- if( function_exists('bbp_form_forum_title')) {
- bbp_form_forum_title();
- } else {
- wp_title( '|', true, 'right' );
- }
- // Add the blog description for the home/front page.
- $site_description = get_bloginfo( 'description', 'display' );
- if ( $site_description && ( is_home() || is_front_page() ) )
- echo " | $site_description";
- // Add a page number if necessary:
- if ( $paged >= 2 || $page >= 2 )
- echo ' | ' . sprintf( __( 'Page %s', 'templatesquare' ), 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_url' ); ?>" />
- <link href="<?php bloginfo('template_url'); ?>/prettyPhoto.css" rel="stylesheet" type="text/css" />
- <link href="<?php bloginfo('template_url'); ?>/nivo-slider.css" rel="stylesheet" type="text/css" />
- <link rel="pingback" href="<?php bloginfo( 'pingback_url' ); ?>" />
- <?php
- $favicon = get_option('templatesquare_favicon');
- if($favicon =="" ){
- ?>
- <link rel="shortcut icon" href="<?php bloginfo('template_url'); ?>/images/favicon.ico" />
- <?php }else{?>
- <link rel="shortcut icon" href="<?php echo $favicon; ?>" />
- <?php }?>
- <?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();
- ?>
- <!-- ////////////////////////////////// -->
- <!-- // Javascript Files // -->
- <!-- ////////////////////////////////// -->
- <script type="text/javascript">
- jQuery(document).ready(function($) {
- /* for cycle */
- $('.boxslideshow').cycle({
- timeout: 6000, // milliseconds between slide transitions (0 to disable auto advance)
- fx: 'fade', // choose your transition type, ex: fade, scrollUp, shuffle, etc...
- pause: 0, // true to enable "pause on hover"
- next:'.navnext', // selector for element to use as click trigger for next slide
- prev:'.navprev', // selector for element to use as click trigger for previous slide
- cleartypeNoBg:true, // set to true to disable extra cleartype fixing (leave false to force background color setting on slides)
- pauseOnPagerHover: 0 // true to pause when hovering over pager link
- });
- $('.boxslideshow2').cycle({
- timeout: 6000, // milliseconds between slide transitions (0 to disable auto advance)
- fx: 'scrollVert', // choose your transition type, ex: fade, scrollUp, shuffle, etc...
- pause: 0, // true to enable "pause on hover"
- next:'.navnext', // selector for element to use as click trigger for next slide
- prev:'.navprev', // selector for element to use as click trigger for previous slide
- cleartypeNoBg:true, // set to true to disable extra cleartype fixing (leave false to force background color setting on slides)
- pauseOnPagerHover: 0 // true to pause when hovering over pager link
- });
- /* for map link */
- $("#map a[rel^='prettyPhoto']").prettyPhoto({theme:'dark_rounded'});
- /* for portfolio prettyPhoto */
- $("#gallery-pf a[rel^='prettyPhoto']").prettyPhoto({theme:'dark_rounded'});
- $('#slider img').css ('display', 'none');
- });
- </script>
- <?php
- $effect = get_option('templatesquare_slider_effect');
- $slices = get_option('templatesquare_slider_slices');
- $speed = get_option('templatesquare_slider_speed');
- $timeout = get_option('templatesquare_slider_timeout');
- ?>
- <script type="text/javascript">
- $(window).load(function() {
- $('#slider img').css ('display', 'block');
- $('#slider').nivoSlider({
- effect:'<?php echo $effect; ?>', //Specify sets like: 'fold,fade,sliceDown'
- slices:<?php echo $slices; ?>,
- animSpeed:<?php echo $speed; ?>, //Slide transition speed
- pauseTime:<?php echo $timeout; ?>,
- directionNav:false, //Next & Prev
- startSlide:0 //Set starting Slide (0 index)
- });
- });
- </script>
- <!--[if IE]>
- <script type="text/JavaScript">
- $(document).ready(function() {
- $('.box, .boxcolor').cornerz({
- radius: 5
- })
- })
- </script>
- <![endif]-->
- <script type="text/javascript">
- // Add a script element as a child of the body
- function downloadJSAtOnload() {
- var element = document.createElement("script");
- element.src = "deferredfunctions.js";
- document.body.appendChild(element);
- }
- // Check for browser support of event handling capability
- if (window.addEventListener)
- window.addEventListener("load", downloadJSAtOnload, false);
- else if (window.attachEvent)
- window.attachEvent("onload", downloadJSAtOnload);
- else window.onload = downloadJSAtOnload;
- </script>
- </head>
- <body>
- <div id="wrapper-top">
- <div id="container-top">
- <div id="top">
- <?php
- $logotype = get_option('templatesquare_logo_type');
- $logoimage = get_option('templatesquare_logo_image');
- $sitename = get_option('templatesquare_site_name');
- $tagline = get_option('templatesquare_tagline');
- if($logoimage == ""){ $logoimage = get_bloginfo('template_url') . "/images/logo.png"; }
- ?>
- <?php if($logotype == 'textlogo'){ ?>
- <?php
- $arr1 = explode(" ",get_bloginfo('name'));
- $logotop = "";
- for($i=0;$i<count($arr1);$i++){
- $logotop .= ($i==0)? $arr1[$i] : " <span class='styled1'>".$arr1[$i]."</span>";
- }
- ?>
- <?php
- $arr2 = explode(" ",$sitename);
- $logotop2 = "";
- for($i=0;$i<count($arr2);$i++){
- $logotop2 .= ($i==0)? $arr2[$i] : " <span class='styled1'>".$arr2[$i]."</span>";
- }
- ?>
- <div id="logo">
- <?php if($sitename==""){?>
- <h1><a href="<?php echo get_option('home'); ?>/" title="<?php _e('Click for Home','templatesquare'); ?>"><?php echo $logotop; ?></a></h1>
- <span class="desc"><?php bloginfo('description'); ?></span>
- <?php }else{ ?>
- <h1><a href="<?php echo get_option('home'); ?>/" title="<?php _e('Click for Home','templatesquare'); ?>"><?php echo $logotop2; ?></a></h1>
- <span class="desc"><?php echo $tagline; ?></span>
- <?php }?>
- </div><!-- end #logo -->
- <?php } else { ?>
- <a href="<?php echo home_url( '/' ); ?>" title="<?php echo esc_attr( get_bloginfo( 'name', 'display' ) ); ?>" rel="home"><img src="<?php echo $logoimage;?>" alt="" /></a>
- <?php }?>
- </div><!-- end #top -->
- <div id="navtop">
- <?php wp_nav_menu( array(
- 'container' => 'ul',
- 'menu_class' => '',
- 'menu_id' => 'topnav',
- 'sort_column' => 'menu_order',
- 'fallback_cb' => 'nav_page_fallback',
- 'theme_location' => 'mainmenu'
- ));
- ?>
- </div><!-- end #navtop -->
Advertisement
Add Comment
Please, Sign In to add comment