wordpress - Why does my code do this? line breaks in the middle of every opening tag -


midwestsalt.net > view source looks throughout whole site. makes no sense hard debug these line breaks in everywhere!i not sure why happens. says add more details, know wrong. see php fine here, source code renders crazy , cant debug it.

    <?php     /**      * header our theme.      *      * @package wordpress      * @subpackage midwestsalt       */     ?><!doctype html public "-//w3c//dtd xhtml 1.0 transitional//en"         "http://www.w3.org/tr/xhtml1/dtd/xhtml1-transitional.dtd">     <!--[if ie 6]>     <html id="ie6" <?php language_attributes(); ?>>     <![endif]-->     <!--[if ie 7]>     <html id="ie7" <?php language_attributes(); ?>>     <![endif]-->     <!--[if ie 8]>     <html id="ie8" <?php language_attributes(); ?>>     <![endif]-->     <!--[if !(ie 6) | !(ie 7) | !(ie 8)  ]><!-->     <html xmlns="http://www.w3.org/1999/xhtml">     <!--<![endif]-->     <head>     <?php /*?><meta charset="<?php bloginfo( 'charset' ); ?>" /><?php */?>     <meta http-equiv=content-type content=text/html; charset="utf-8"/>      <meta name="viewport" content="width=device-width" />      <title>     <?php   /*   * print <title> tag based on being viewed.  */ global $page, $paged;   wp_title( '|', true, 'right' ); // add blog name.   bloginfo( 'name' ); //     add blog description home/front page.        $site_description = get_bloginfo( 'description', 'display' );   if ( $site_description && ( is_home() || is_front_page() ) )        echo     " | $site_description";    // add page number if necessary:  if (     $paged >= 2 || $page >= 2 )        echo ' | ' . sprintf( __( 'page %s', 'twentyeleven' ), 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 rel="icon" href="<?php bloginfo('template_directory'); ?>/favicon.ico" type="image/ico" />     <link rel="shortcut icon" href="<?php     bloginfo('template_directory'); ?>/favicon.ico" />     <link rel="pingback" href="<?php bloginfo( 'pingback_url' ); ?>" />     <!--[if lt ie 9]>     <script src="<?php echo get_template_directory_uri(); ?>/js/html5.js" type="text/javascript"></script>     <![endif]-->     <?php     /* add javascript pages comment form      * support sites threaded comments (when in use).      */     if ( is_singular() && get_option( 'thread_comments' ) )         wp_enqueue_script( 'comment-reply' );      /* have wp_head() before closing </head>      * tag of theme, or break many plugins,      * use hook add elements <head> such      * styles, scripts, , meta tags.      */     wp_head(); ?>     <?php      global $post;      global $curr_cat;     global $wpdb;     global $product_categories;     global $maincatname;     $curr_cat = get_current_category();      $maincatname = get_viewmode();     if (!$maincatname)     $maincatname = 'homeowners';      $maincat = get_category_by_name($maincatname);     $where_maincat = ' , parent = '.$maincat->term_id;                      $product_categories = $wpdb->get_results("                         select *,                         (select meta_value     wp_wpsc_meta object_type = 'wpsc_category' , meta_key = 'image' , object_id = term_id) image                         wp_terms                          term_id in     (select term_id wp_term_taxonomy taxonomy = 'wpsc_product_category' $where_maincat)                         , term_id in (select object_id wp_wpsc_meta object_type = 'wpsc_category' , meta_key = 'active' , meta_value = '1')                         "); ?>      <link rel="stylesheet" type="text/css" href="<?php     bloginfo('template_directory'); ?>/css/prettyphoto.css"     media="screen" />     <script type="text/javascript" src="<?php     bloginfo('template_directory'); ?>/js/jquery.prettyphoto.js">    </script>      <script type="text/javascript" src="<?php bloginfo('template_directory'); ?>/js/fadeslideshow-minified.js">    </script>      <script type="text/javascript" src="<?php bloginfo('template_directory'); ?>/js/jquery.masonry.min.js"></script>     <script type="text/javascript" src="<?php bloginfo('template_directory'); ?>/js/allscripts.js"></script>     </head>      <body class="<?php if ($post->id == 2 || $post->id == 136 || $post->id == 139) echo 'landing'; elseif($curr_cat) echo 'product-listing'; elseif($post->post_type=='post') echo 'blog-view'; elseif(is_category()) echo 'blog-listing'; else echo 'catalog-product-view';?> <?php echo $maincatname; ?>">      <noscript>     <div class="noscript">         <div class="noscript-inner">             <p><strong>we detected javascript seem disabled.</strong></p>             <p>you must have javascript enabled in browser utilize functionality of website.</p>         </div>     </div>     </noscript>      <div class="main-wrapper">     <div class="main-header-wrapper">         <div class="header">             <a href="<?php echo esc_url( home_url( '/' ) ); ?>"     class="logo"><strong><?php bloginfo( 'name' ); ?> - <?php bloginfo(     'description' ); ?></strong></a>             <div class="header-right">                 <ul class="main-nav">                     <li id="nav-home"><a href="<?php echo     get_option('home');?>"><strong>home</strong></a></li>                     <li id="nav-about">                         <a href="<?php echo get_option('home');?>/about-us"><strong>about us</strong></a>                         <?php                              $items = get_block_items('show_in_header','yes');                              if ($items): ?>                             <ul     class="dropdown">                             <?php     foreach($items $item): ?>                             <li><a href="<?php echo get_permalink($item->id)?>"><?php echo $item->post_title?></a></li>                             <?php     endforeach; ?>                             </ul>                         <?php endif; ?>                     </li>                     <li id="nav-products">                         <a href="<?php product_page_link(); ?>"><strong>products</strong></a>                         <ul class="product-dropdown">                             <?php foreach($product_categories $item): ?>                             <?php if     ($item->slug == 'product-category') continue; ?>                             <li><a     href="<?php product_page_link(); ?><?php echo $item->slug;?>"><img     width="136" height="85" alt="" src="<?php echo ne_image_resize(get_option('home').'/wp-content/uploads/wpsc/category_images/'.$item->image,136,85,'category_images'); ?>" /><span><?php echo strtoupper($item->name)?></span></a></li>                             <?php endforeach; ?>                         </ul>                     </li>                     <li id="nav-contact"><a href="<?php echo get_option('home');?>/contact-us"><strong>contact us</strong></a></li>                 </ul>                 <a href="<?php echo get_option('home');?>" class="btn-chat"><strong>live chat - click here</strong></a>                 <?php language_selector_form(); ?>                 <div class="clear">&nbsp;</div>                 <ul class="user-nav">                     <li><a href="#">login</a></li>                     <li>|</li>                     <li><a href="#">my account</a></li>                 </ul>                 <p class="block-cart"><span>0</span> items in cart</p>                 <p class="contact-info"><?php _get('header_phone',2); ?> <span><?php _get('header_location',2); ?></span></p>                 <div class="clear">&nbsp;</div>                 <?php /*                 <p class="slogan">we heavy lifting you</p>                 */ ?>                 <a href="<?php echo get_option('home');?>/refer-a-friend" class="btn-refer"><strong>refer friends</strong></a>                 <?php if ($_link = _get('existing_customers_link',2,true)): ?>                 <?php if ($_image = _get_image('existing_customers_image',2,true)): ?>                 <a href="<?php echo $_link; ?>" class="btn-existing"><img src="<?php echo $_image; ?>" /><strong>existing customers</strong></a>                 <?php endif; ?>                 <?php endif; ?>             </div>         </div>         <!-- end: header -->     </div>     <!-- end: main-header-wrapper --> 

so ideas why?


Comments

Popular posts from this blog

blackberry 10 - how to add multiple markers on the google map just by url? -

php - guestbook returning database data to flash -

delphi - Dynamic file type icon -