SobiaD
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: Parse error: syntax error, unexpected T_STRINGHi everyone !!!! I m new to wordpress and wanted some changes in the website.As to change the code for searchbox I go into header.php and made some changes and just hit update button…but the page does’nt appear and it show error on it
Parse error: syntax error, unexpected T_STRING in /home/austinba/public_html/wp-content/themes/directorypress/header.php on line 155
I am confused where did the error coming .I am giving you the code :`
?><!DOCTYPE html PUBLIC “-//W3C//DTD XHTML 1.0 Transitional//EN” “http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd”>
<html xmlns=”http://www.w3.org/1999/xhtml” <?php language_attributes(); ?>>
<!–[if lte IE 8 ]> <html lang=”en” class=”ie ie8″> <![endif]–>
<!–[if IE 9 ]> <html lang=”en” class=”ie”> <![endif]–>
<head profile=”http://gmpg.org/xfn/11″>
<meta http-equiv=”Content-Type” content=”<?php bloginfo(‘html_type’); ?>; charset=<?php bloginfo(‘charset’); ?>” /><title><?php wp_title(‘«’, true, ‘right’); ?> <?php bloginfo(‘name’); ?></title>
<?php wp_head(); ?>
<!–[if lt IE 9]>
<script src=”http://ie7-js.googlecode.com/svn/version/2.1(beta4)/IE9.js”></script>
<script src=”http://html5shiv.googlecode.com/svn/trunk/html5.js”></script>
<![endif]–>
</head><body <?php ppt_body_class(); ?>>
<?php premiumpress_top(); /* HOOK */ ?>
<div class=”wrapper <?php $PPTDesign->CSS(“ppt_layout_width”); ?>”>
<?php premiumpress_header_before(); /* HOOK */ ?>
<div id=”header” class=”full”>
<?php function _bit_header_inside(){ /* HEADER WITH LOGO + BANNER */
global $wpdb,$PPT;
return ‘<div class=”w_960″>
<div class=”f_half left” id=”logo”>
<a href=”‘.$GLOBALS[‘bloginfo_url’].’/” title=”‘.get_bloginfo(‘name’).'”>
<img src=”‘.$PPT->Logo(true).'” alt=”‘.get_bloginfo(‘name’).'” />
</a>
</div>
</div> <!– end header w_960 –>’;
} ?>
<?php echo premiumpress_header_inside(_bit_header_inside()); /* HOOK / FILTER */ ?>
<div class=”clearfix”></div>
</div> <!– end header –>
<?php premiumpress_header_after(); /* HOOK */ ?>
<?php premiumpress_menu_before(); /* HOOK */ ?>
<?php function _bit_menu_inside(){ /* MENU BAR */
global $wpdb,$PPT; $string=”;
$string .= ‘<div class=”menu” id=”menubar”> <div class=”w_960″>’;
if(has_nav_menu(‘PPT-CUSTOM-MENU-PAGES’)){ $string .= wp_nav_menu( $GLOBALS[‘blog_custom_menu’] ); }else{
$string .= ‘<ul>
<li class=”first”><a href=”‘.$GLOBALS[‘bloginfo_url’].’/” title=”‘.get_bloginfo(‘name’).'”>’.$PPT->_e(array(‘head’,’1′)).'</a></li>
‘.premiumpress_pagelist().’
</ul>’;}
$string .= ‘</div><!– end menubar w_960 –> </div><!– end menubar –>’;
return $string;
}
?><?php echo premiumpress_menu_inside(_bit_menu_inside()); /* HOOK / FILTER */ ?>
<?php echo premiumpress_menu_after(); /* HOOK */ ?>
<?php if(isset($GLOBALS[‘ppt_layout_styles’][‘submenubar’]) && isset($GLOBALS[‘ppt_layout_styles’][‘submenubar’][‘hide’]) && $GLOBALS[‘ppt_layout_styles’][‘submenubar’][‘hide’] == 1){ ?>
<?php }else{ ?>
<?php premiumpress_submenu_before(); /* HOOK */ ?>
<div id=”submenubar”>
<?php function _bit_submenu_inside(){ /*SUB MENU BAR */
global $wpdb,$PPT, $userdata; get_currentuserinfo(); $string=”;
$string .= ‘<div class=”w_960″>’;
if(isset($GLOBALS[‘ppt_layout_styles’][‘submenubar’]) && isset($GLOBALS[‘ppt_layout_styles’][‘submenubar’][‘search’]) && $GLOBALS[‘ppt_layout_styles’][‘submenubar’][‘search’] == 1){
$string .= ‘<div id=”hpages”><ul>’.premiumpress_pagelist().'</ul></div>’;
}else{
$string .= “<form method=’get’ action=<‘”.$GLOBALS[‘bloginfo_url’].”/ <name=’searchBox’ id=’searchBox’>
<input type=’text’ value=”.$PPT->_e(array(‘head’,’2′)).” name=’s’ id=’s’ onfocus=”this.value=”;”‘/>;if(isset($GLOBALS[‘ppt_layout_styles’][‘submenubar’]) && isset($GLOBALS[‘ppt_layout_styles’][‘submenubar’][‘hidecat’]) && $GLOBALS[‘ppt_layout_styles’][‘submenubar’][‘hidecat’] == 1){ }else{
// BUILD CATEGORY DROP DOWN LIST
$catdata = premiumpress_categorylist(0,’toponly’);
if(strlen($catdata) > 1){
$string .= ‘<select id=”catsearch” name=”cat”><option value=””> </option>’.$catdata.'</select>’;
}
}$string .= ‘<div class=”searchBtn left” onclick=”document.searchBox.submit();”> </div>’;
if(get_option(“display_advanced_search”) ==1){
$string .= ‘<a href=”javascript:jQuery(‘;
$string .= “‘#AdvancedSearchBox’).show();”;
$string .= ‘javascript:void(0);”‘;
$string .=”><small>”.$PPT->_e(array(‘head’,’3′)).”</small></a>”;
}
$string .= ‘</form>’;}
$string .= ”;
$string .= ‘</div> <!– end w_960 –>’;
return $string;
} ?>
<?php echo premiumpress_submenu_inside(_bit_submenu_inside()); /* HOOK / FILTER */ ?>
</div><!– end submenubar –>
<div class=”flashbanner”><img title=”JAM Music” src=”http://www.austinbandsearch.com/wp-content/themes/directorypress/template_directorypress/images/flashbanner.jpg” alt=”JAM Music” width=”960″ height=”238″/></div><?php premiumpress_submenu_after(); /* HOOK */ ?>
<?php } ?>
`
I dont know where is the error plz help me