uncommenartist Posted July 30, 2011 Share Posted July 30, 2011 wordress with dreamweaver <div id="header" class="container"> <div class="margin clearfix"> <div id="logo"> <a href="<?php echo home_url( '/' ); ?>" title="<?php echo esc_attr( get_bloginfo( 'name', 'display' ) ); ?>" rel="home"> <?php $sitelogo = prima_get_option( 'newsitelogo' ); if (!$sitelogo) { $oldsitelogo = prima_get_option( 'sitelogo' ); if ( $oldsitelogo && $oldsitelogo['url'] !== '' ) $sitelogo = $oldsitelogo['url']; } if ($sitelogo) echo '<img src="'.$sitelogo.'" alt="'.get_bloginfo( 'name' ).'" />'; else echo get_bloginfo( 'name' ); ?> </a> </div> <div id="topnav" role="navigation"> <?php if ( has_nav_menu( 'primary' ) ) : ?> <?php wp_nav_menu( array( 'menu_class' => 'superfish', 'theme_location' => 'primary' ) ); ?> <? else : ?> <ul class="superfish"> <li><a href="<?php echo get_option('home'); ?>/"><?php _e('Home',PRIMA_DOMAIN); ?></a></li> <?php $exclude = ( (get_option('show_on_front') == 'page') && get_option('page_on_front') ) ? '&exclude='.get_option('page_on_front') : ''; wp_list_pages('title_li=&sort_column=menu_order'.$exclude); ?> </ul> <? endif; ?> </div> </div> </div> Quote Link to comment https://forums.phpfreaks.com/topic/243253-parse-error-syntax-error-unexpected-end-in-c-php-folder-line-30/ Share on other sites More sharing options...
Pikachu2000 Posted July 30, 2011 Share Posted July 30, 2011 That code does not generate that error for me. Quote Link to comment https://forums.phpfreaks.com/topic/243253-parse-error-syntax-error-unexpected-end-in-c-php-folder-line-30/#findComment-1249330 Share on other sites More sharing options...
creata.physics Posted July 30, 2011 Share Posted July 30, 2011 That error does normally mean there is an unclosed "{" bracket. Quote Link to comment https://forums.phpfreaks.com/topic/243253-parse-error-syntax-error-unexpected-end-in-c-php-folder-line-30/#findComment-1249336 Share on other sites More sharing options...
chintansshah Posted July 30, 2011 Share Posted July 30, 2011 this error comes if you write } } twice or you missed to close it. Quote Link to comment https://forums.phpfreaks.com/topic/243253-parse-error-syntax-error-unexpected-end-in-c-php-folder-line-30/#findComment-1249340 Share on other sites More sharing options...
chintansshah Posted July 30, 2011 Share Posted July 30, 2011 can you post error generated script here. Quote Link to comment https://forums.phpfreaks.com/topic/243253-parse-error-syntax-error-unexpected-end-in-c-php-folder-line-30/#findComment-1249343 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.