[NSFW] Parse error: syntax error
-
Hello everyone!
I’ve setup a theme and get the following error: Parse error: syntax error, unexpected end of file in /code/wp-content/themes/xwp-directory/header.php on line 67When I check the header.php I can’t seem to find the problem. Hope you can help me.
<!DOCTYPE html> <html <?php language_attributes(); ?>> <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1"> <?php $options = get_option( 'threeus_options' ); $favicon = $options['favicon'] ? $options['favicon'] : get_template_directory_uri() . '/images/assets/favicon.png'; $header_code = $options['header_code']; ?> <link rel="shortcut icon" href="<?php echo $favicon; ?>" /> <?php wp_head(); ?> <?php echo stripslashes($header_code); ?> </head> <body <?php body_class(); ?> itemscope itemtype="https://schema.org/WebPage"> <div id="wrapper" class="hfeed site"> <header id="header" class="site-header header2" role="banner" itemscope itemtype="https://schema.org/WPHeader"> <div class="container"> <div class="mid-header clearfix"> <div class="site-brand"> <a href="<?php echo site_url(); ?>" class="logo"> <?php $options = get_option( 'threeus_options' ); $logo_small = $options['logo_small'] ? $options['logo_small'] : get_template_directory_uri() . '/images/assets/logo.png';?> <img src="<?php echo $logo_small; ?>" alt="logo"/> </a> </div><!-- .site-brand --> <div class="right-header"> <?php echo get_search_form(); ?> </div> </div><!-- .mid-header --> <nav class="main-menu clearfix" role="navigation" itemscope itemtype="https://schema.org/SiteNavigationElement"> <span class="mobile-menu"><i class="fa fa-bars"></i></span> <?php wp_nav_menu( array( 'theme_location' => 'main_menu', 'container' => false, 'menu_id' => 'menu-main', 'menu_class' => 'menu-main', 'fallback_cb' => '', ) ); ?> </nav><!-- .main-menu --> <br> <?php $options = get_option('threeus_options'); $aam = stripslashes($options['aam']); if ($aam) { $substr = substr( $aam, 0, 4 ); if ($substr == 'http') { ?> <img class="ads" src="<?php echo $aam; ?>"> <? } else { echo $aam; } } ?> </div><!-- .container --> </header><!-- .site-header --> <main id="main" class="site-main" role="main" itemscope itemprop="mainContentOfPage">
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘[NSFW] Parse error: syntax error’ is closed to new replies.