You are on page 1of 3

<!DOCTYPE html> <html <?php language_attributes(); ?>> <head> <meta charset="<?php bloginfo( 'charset' ); ?>" /> <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', 'tie' ), max( $paged, $page ) ); ?></title> <link rel="profile" href="http://gmpg.org/xfn/11" /> <link rel="stylesheet" type="text/css" media="all" href="<?php bloginfo( 'styles heet_url' ); ?>" /> <link rel="pingback" href="<?php bloginfo( 'pingback_url' ); ?>" /> <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scal e=1" /> <?php wp_head(); ?> <link href='http://fonts.googleapis.com/css?family=Droid+Sans:regular,bold' rel= 'stylesheet' type='text/css'/> <meta name="google-site-verification" content="gfsohjPI3-Cr7LVbv5l9q9Dli9QL_SLMi D3zfxtO4HQ" /> </head> <?php global $is_IE ?> <body id="top" <?php body_class(); ?>> <div class="background-cover"></div> <div class="wrapper"> <header> <div class="top-nav"> <?php if(tie_get_option( 'top_date' )): if( tie_get_option('todaydate_format') ) $date_f ormat = tie_get_option('todaydate_format'); else $date_format = 'l , j F Y'; ?> <span class="today-date"><?php echo date_i18n( $date_format , current_time( 'timestamp' ) ); ?></span><?php endif; ?> <?php wp_nav_menu( array( 'container_class' => ' top-menu', 'theme_location' => 'top-menu', 'fallback_cb' => 'tie_nav_fallback' ) ); ?> <?php echo tie_alternate_menu( array( 'menu_name ' => 'top-menu', 'id' => 'top-menu-mob' ) ) ?> <?php if(tie_get_option( 'top_right' ) == 'search'): ?> <div class="search-block"> <form method="get" id="searchfor m" action="<?php echo home_url(); ?>/"> <input class="search-but ton" type="submit" value="<?php if( !$is_IE ) _e( 'Search' , 'tie' ) ?>" /> <input type="text" id="s " name="s" value="<?php _e( 'Search...' , 'tie' ) ?>" onfocus="if (this.value == '<?php _e( 'Search...' , 'tie' ) ?>') {this.value = '';}" onblur="if (this.valu e == '') {this.value = '<?php _e( 'Search...' , 'tie' ) ?>';}" />

</form> </div><!-- .search-block /--> <?php elseif( tie_get_option('top_right') == 'social' ): tie_get_social( 'yes' , 16 , 'tooldown' ); ?> <?php endif; ?> </div><!-- .top-menu /--> <div class="header-content"> <?php if( tie_get_option( 'logo_margin' )) $logo_margin = ' style="margin-top:'. tie_get_option( 'logo_margin' ).'px"'; ?> <div class="logo"<?php echo $logo_margin ?>> <?php if( tie_get_option('logo_setting') == 'title' ): ?> <h1 id="site-title"><a href="<?php echo home_url () ?>/"><?php bloginfo('name'); ?></a></h1> <span><?php bloginfo( 'description' ); ?></span> <?php else : ?> <?php if( tie_get_option( 'logo' ) ) $logo = tie _get_option( 'logo' ); else $logo = get_template_direct ory_uri().'/images/logo.png'; ?> <h1> <a title="<?php bloginfo('name'); ?>" href="<?ph p echo home_url(); ?>/"> <img src="<?php echo $logo ; ?>" alt="<? php bloginfo('name'); ?>" /> </a> </h1> <?php endif; ?> </div><!-- .logo /--> <?php tie_banner('banner_top' , '<div class="ads-top">' , '</div>' ); ?> <div class="clear"></div> </div> <nav id="main-nav"> <?php wp_nav_menu( array( 'container_class' => ' main-menu', 'theme_location' => 'primary' ,'fallback_cb' => 'tie_nav_fallback' ) ); ?> <?php echo tie_alternate_menu( array( 'menu_name ' => 'primary', 'id' => 'main-menu-mob' ) ) ?> <?php if(tie_get_option( 'random_article' )): ?> <a href="<?php echo home_url(); ?>/?random" clas s="random-article ttip" title="<?php _e( 'Random Article' , 'tie' ) ?>"><?php _e ( 'Random Article' , 'tie' ) ?></a> <?php endif ?> </nav><!-- .main-nav /--> </header><!-- #header /-->

<?php tie_include( 'breaking-news' ); // Get Breaking News template ?> <?php $sidebar = ''; if( tie_get_option( 'sidebar_pos' ) == 'left' ) $sidebar = ' sidebar-left'; if( is_single() || is_page() ){

$get_meta = get_post_custom($post->ID); if( !empty($get_meta["tie_sidebar_pos"][0]) ){ $sidebar_pos = $get_meta["tie_sidebar_pos"][0]; if( $sidebar_pos == 'left' ) $sidebar = ' sidebar-left'; elseif( $sidebar_pos == 'full' ) $sidebar = ' full-width'; elseif( $sidebar_pos == 'right' ) $sidebar = ' sidebar-right'; } } ?> <div id="main-content" class="container<?php echo $sidebar ; ?>">

You might also like