• livewild

    (@livewild)


    Parse error: syntax error, unexpected ‘}’ in /home/simpl181/public_html/wp-content/themes/evolve/functions.php on line 12

    I think i did something very bad. my dashboard isnt even showing up.
    i cant login to wp-admin

    any help???

    https://www.simplythewildside.com

Viewing 8 replies - 1 through 8 (of 8 total)
  • koendb

    (@koendb)

    Well, you’ve got an unexpected ‘}’ in your code.
    You should log-in to your host and navigate to /public_html/wp-content/themes/evolve/ and open the function.php file.

    It should have as many ‘{‘ signs as ‘}’.
    Since your error occured in line 12 already you could post those first lines here if you can’t fix it yourself.

    In general you should always backup your files before editing them. In that case you could just upload your backup functions.php file.

    Thread Starter livewild

    (@livewild)

    im in my /home/simpl181/public_html/wp-content/themes/evolve/library/functions/functions.php
    this is line 1-30. i cant find the issue

    <?php
    /**
     * Functions - general template functions that are used throughout EvoLve
     *
     * @package evolve
     * @subpackage Functions
     */
    
    function evolve_media() {
      $template_url = get_template_directory_uri();
      $options = get_option('evolve');
      $evolve_css_data = '';
    
      $evl_pos_button = evl_get_option('evl_pos_button','disable');
      $evl_css_content = evl_get_option('evl_css_content','');
    
      $evl_header_slider = evl_get_option('evl_header_slider', 'disable');
      $evl_bootstrap = evl_get_option('evl_bootstrap', '1');
    
    	if( is_admin() ) return;
    	wp_enqueue_script( 'hoverIntent' );
      wp_enqueue_script( 'jquery' );
      if ($evl_header_slider == "" || $evl_header_slider == "disable") { } else { wp_enqueue_script( 'carousel', EVLJS . '/carousel.js' ); }
      wp_enqueue_script( 'tipsy', EVLJS . '/tipsy.js' );
      wp_enqueue_script( 'fields', EVLJS . '/fields.js' );
      if ($evl_pos_button == "disable" || $evl_pos_button == "") {} else { wp_enqueue_script( 'jquery_scroll', EVLJS . '/jquery.scroll.pack.js' ); }
    	wp_enqueue_script( 'supersubs', EVLJS . '/supersubs.js' );
    	wp_enqueue_script( 'superfish', EVLJS . '/superfish.js' );
      wp_enqueue_script( 'buttons', EVLJS . '/buttons.js' );
    Thread Starter livewild

    (@livewild)

    here is the whole function.php file

    <?php
    /**
     * Functions - general template functions that are used throughout EvoLve
     *
     * @package evolve
     * @subpackage Functions
     */
    
    function evolve_media() {
      $template_url = get_template_directory_uri();
      $options = get_option('evolve');
      $evolve_css_data = '';
    
      $evl_pos_button = evl_get_option('evl_pos_button','disable');
      $evl_css_content = evl_get_option('evl_css_content','');
    
      $evl_header_slider = evl_get_option('evl_header_slider', 'disable');
      $evl_bootstrap = evl_get_option('evl_bootstrap', '1');
    
    	if( is_admin() ) return;
    	wp_enqueue_script( 'hoverIntent' );
      wp_enqueue_script( 'jquery' );
      if ($evl_header_slider == "" || $evl_header_slider == "disable") { } else { wp_enqueue_script( 'carousel', EVLJS . '/carousel.js' ); }
      wp_enqueue_script( 'tipsy', EVLJS . '/tipsy.js' );
      wp_enqueue_script( 'fields', EVLJS . '/fields.js' );
      if ($evl_pos_button == "disable" || $evl_pos_button == "") {} else { wp_enqueue_script( 'jquery_scroll', EVLJS . '/jquery.scroll.pack.js' ); }
    	wp_enqueue_script( 'supersubs', EVLJS . '/supersubs.js' );
    	wp_enqueue_script( 'superfish', EVLJS . '/superfish.js' );
      wp_enqueue_script( 'buttons', EVLJS . '/buttons.js' );
    
    		$blog_title = evl_get_option('evl_title_font');
    		$blog_tagline = evl_get_option('evl_tagline_font');
    		$post_title = evl_get_option('evl_post_font');
    		$content_font = evl_get_option('evl_content_font');
        $heading_font = evl_get_option('evl_heading_font');			
    
    		$selected_fonts[0] = $blog_title['face'];
    		$selected_fonts[1] = $blog_tagline['face'];
    		$selected_fonts[2] = $post_title['face'];
    		$selected_fonts[3] = $content_font['face'];
        $selected_fonts[4] = $heading_font['face'];
    
    		$font_face_all = '';
    		$j = 0;
    		$font_storage[] = '';
    		for ( $i=0; $i<5; $i++ ) {
    		if (in_array($selected_fonts[$i], $font_storage )) {}
     	else {
    			$font_storage[] = $selected_fonts[$i];
    		$font_face = explode(',',$selected_fonts[$i]);
    		$font_face = str_replace(" ", "+", $font_face[0]);
    			if($font_face != 'Arial' && $font_face != 'Georgia' && $font_face != 'Impact' && $font_face != 'Lucida+Sans+Unicode' && $font_face != 'Myriad+Pro*' && $font_face != 'Palatino+Linotype' && $font_face != 'Tahoma' && $font_face != 'Times+New+Roman' && $font_face != 'Trebuchet+MS' && $font_face != 'Verdana'){
    				if($j>0){$ext = '|';} else {$ext = '';}
    				$j++;
    		$font_face = $ext.$font_face.':r,b,i';
    		$font_face_all = $font_face_all.$font_face;
    			}
    		}
    		}
    			if($font_face_all){
    		wp_enqueue_style('googlefont', "https://fonts.googleapis.com/css?family=".$font_face_all);
    		}
    
      // Bootstrap Elements
    
      if ($evl_bootstrap == "1" ) {
      wp_enqueue_script( 'bootstrap', EVLJS . '/bootstrap/js/bootstrap.js' );
      wp_enqueue_style( 'bootstrapcss', EVLJS . '/bootstrap/css/bootstrap.css' );
      wp_enqueue_style( 'bootstrapcssresponsive', EVLJS . '/bootstrap/css/bootstrap-responsive.css' );
      }    
    
      // Stylesheets
    
      wp_register_style('maincss', $template_url . '/style.css', false);
      wp_enqueue_style('maincss');
    
      // Custom Stylesheets
    
      require_once( get_template_directory() . '/custom-css.php' ); 
    
      // Custom CSS
    
      $evolve_css_data .= $evl_css_content;
    
      wp_add_inline_style( 'maincss', $evolve_css_data );
    
    }
    
    /**
     * remove_generator_link() Removes generator link
     *
     * @since 0.1
     * @credits https://www.plaintxt.org
     * @needsdoc
     */
    function remove_generator_link() { return ''; }
    
    /**
     * evolve_menu - adds css class to the <ul> tag in wp_page_menu.
     *
     * @since 0.3
     * @filter evolve_menu_ulclass
     * @needsdoc
     */
    function evolve_menu_ulclass( $ulclass ) {
    	$classes = apply_filters( 'evolve_menu_ulclass', (string) 'nav-menu' ); // Available filter: evolve_menu_ulclass
    	return preg_replace( '/<ul>/', '<ul class="'. $classes .'">', $ulclass, 1 );
    }
    
    /**
     * evolve_nice_terms clever terms
     *
     * @since 0.2.3
     * @needsdoc
     */
    function evolve_nice_terms( $term = '', $normal_separator = ', ', $penultimate_separator = ' and ', $end = '' ) {
    	if ( !$term ) return;
    	switch ( $term ):
    		case 'cats':
    			$terms = evolve_get_terms( 'cats', $normal_separator );
    			break;
    		case 'tags':
    			$terms = evolve_get_terms( 'tags', $normal_separator );
    
    			break;
    	endswitch;
    	if ( empty($term) ) return;
    	$things = explode( $normal_separator, $terms );
    
    	$thelist = '';
    	$i = 1;
    	$n = count( $things );
    
    	foreach ( $things as $thing ) {
    
    		$data = trim( $thing, ' ' );
    
    		$links = preg_match( '/>(.*?)</', $thing, $link );
    		$hrefs = preg_match( '/href="(.*?)"/', $thing, $href );
    		$titles = preg_match( '/title="(.*?)"/', $thing, $title );
    		$rels = preg_match( '/rel="(.*?)"/', $thing, $rel );
    
    		if (1 < $i and $i != $n) {
    			$thelist .= $normal_separator;
    		}
    
    		if (1 < $i and $i == $n) {
    			$thelist .= $penultimate_separator;
    		}
    		$thelist .= '<a rel="'. $rel[1] .'" href="'. $href[1] .'"';
    		if ( !$term = 'tags' )
    			$thelist .= ' title="'. $title[1] .'"';
    		$thelist .= '>'. $link[1] .'</a>';
    		$i++;
    	}
    	$thelist .= $end;
    	return apply_filters( 'evolve_nice_terms', (string) $thelist );
    }
    
    /**
     * evolve_get_terms() Returns other terms except the current one (redundant)
     *
     * @since 0.2.3
     * @usedby evolve_entry_footer()
     */
    function evolve_get_terms( $term = NULL, $glue = ', ' ) {
    	if ( !$term ) return;
    
    	$separator = "\n";
    	switch ( $term ):
    		case 'cats':
    			$current = single_cat_title( '', false );
    			$terms = get_the_category_list( $separator );
    			break;
    		case 'tags':
    			$current = single_tag_title( '', '',  false );
    			$terms = get_the_tag_list( '', "$separator", '' );
    			break;
    	endswitch;
    	if ( empty($terms) ) return;
    
    	$thing = explode( $separator, $terms );
    	foreach ( $thing as $i => $str ) {
    		if ( strstr( $str, ">$current<" ) ) {
    			unset( $thing[$i] );
    			break;
    		}
    	}
    	if ( empty( $thing ) )
    		return false;
    
    	return trim( join( $glue, $thing ) );
    }
    
    /**
     * evolve_get Gets template files
     *
     * @since 0.2.3
     * @needsdoc
     * @action evolve_get
     * @todo test this on child themes
     */
    function evolve_get( $file = NULL ) {
    	do_action( 'evolve_get' ); // Available action: evolve_get
    	$error = "Sorry, but <code>{$file}</code> does <em>not</em> seem to exist. Please make sure this file exist in <strong>" . get_stylesheet_directory() . "</strong>\n";
    	$error = apply_filters( 'evolve_get_error', (string) $error ); // Available filter: evolve_get_error
    	if ( isset( $file ) && file_exists( get_stylesheet_directory() . "/{$file}.php" ) )
    		locate_template( get_stylesheet_directory() . "/{$file}.php" );
    	else
            echo $error;
    }
    
    /**
     * evlinclude_all() A function to include all files from a directory path
     *
     * @since 0.2.3
     * @credits k2
     */
    function evlinclude_all( $path, $ignore = false ) {
    
    	/* Open the directory */
    	$dir = @dir( $path ) or die( 'Could not open required directory ' . $path );
    
    	/* Get all the files from the directory */
    	while ( ( $file = $dir->read() ) !== false ) {
    		/* Check the file is a file, and is a PHP file */
    		if ( is_file( $path . $file ) and ( !$ignore or !in_array( $file, $ignore ) ) and preg_match( '/\.php$/i', $file ) ) {
    			require_once( $path . $file );
    		}
    	}
    	$dir->close(); // Close the directory, we're done.
    }
    
    /**
     * Gets the profile URI for the document being displayed.
     * @link https://microformats.org/wiki/profile-uris Profile URIs
     *
     * @since 0.2.4
     * @param integer $echo 0|1
     * @return string profile uris seperatd by spaces
     **/
    function evlget_profile_uri( $echo = 1 ) {
    	// hAtom profile
    	$profile[] = 'https://purl.org/uF/hAtom/0.1/';
    
    	// hCard, hCalendar, rel-tag, rel-license, rel-nofollow, VoteLinks, XFN, XOXO profile
    	$profile[] = 'https://purl.org/uF/2008/03/';
    
    	$profile = join( ' ', apply_filters( 'profile_uri',  $profile ) ); // Available filter: profile_uri
    
    	if ( $echo ) echo $profile;
    	else return $profile;
    }
    
    function evolve_copy() {
    
      $options = get_option('evolve');
    
      if (!empty($options['evl_affiliate_id'])) { $ad_affiliate_id = '?ap_id='.$options['evl_affiliate_id']; } else { $ad_affiliate_id = ''; } 
    
    	$credits = '<p id="copyright"><span class="credits fl-r"><a href="https://theme4press.com/evolve/'.$ad_affiliate_id.'">EvoLve</a> theme by Theme4Press&nbsp;&nbsp;&bull;&nbsp;&nbsp;Powered by <a href="https://www.ads-software.com">WordPress</a></span> <a href="'. home_url() .'">'. get_bloginfo( 'name' ) .'</a><br /><small>'. get_bloginfo( 'description' ) .'</small></p>';
    	echo apply_filters( 'evolve_copy', (string) $credits );
    }
    
    ?>
    Andrew Nevins

    (@anevins)

    WCLDN 2018 Contributor | Volunteer support

    btw there are no syntax errors in your entire functions.php file

    Andrew Nevins

    (@anevins)

    WCLDN 2018 Contributor | Volunteer support

    But make sure you’re looking at the right file.

    Your error message says this file:
    home/simpl181/public_html/wp-content/themes/evolve/functions.php

    But you showed us this file:
    /home/simpl181/public_html/wp-content/themes/evolve/library/functions/functions.php

    Thread Starter livewild

    (@livewild)

    /home/simpl181/public_html/wp-content/themes/evolve/functions.php

    is as follows

    <?php
    /**
     * Functions - general template functions that are used throughout EvoLve
     *
     * @package evolve
     * @subpackage Functions
     */
    
    function evolve_media() {
      $template_url = get_template_directory_uri();
      $options = get_option('evolve');
      $evolve_css_data = '';
    
      $evl_pos_button = evl_get_option('evl_pos_button','disable');
      $evl_css_content = evl_get_option('evl_css_content','');
    
      $evl_header_slider = evl_get_option('evl_header_slider', 'disable');
      $evl_bootstrap = evl_get_option('evl_bootstrap', '1');
    
    	if( is_admin() ) return;
    	wp_enqueue_script( 'hoverIntent' );
      wp_enqueue_script( 'jquery' );
      if ($evl_header_slider == "" || $evl_header_slider == "disable") { } else { wp_enqueue_script( 'carousel', EVLJS . '/carousel.js' ); }
      wp_enqueue_script( 'tipsy', EVLJS . '/tipsy.js' );
      wp_enqueue_script( 'fields', EVLJS . '/fields.js' );
      if ($evl_pos_button == "disable" || $evl_pos_button == "") {} else { wp_enqueue_script( 'jquery_scroll', EVLJS . '/jquery.scroll.pack.js' ); }
    	wp_enqueue_script( 'supersubs', EVLJS . '/supersubs.js' );
    	wp_enqueue_script( 'superfish', EVLJS . '/superfish.js' );
      wp_enqueue_script( 'buttons', EVLJS . '/buttons.js' );
    
    		$blog_title = evl_get_option('evl_title_font');
    		$blog_tagline = evl_get_option('evl_tagline_font');
    		$post_title = evl_get_option('evl_post_font');
    		$content_font = evl_get_option('evl_content_font');
        $heading_font = evl_get_option('evl_heading_font');			
    
    		$selected_fonts[0] = $blog_title['face'];
    		$selected_fonts[1] = $blog_tagline['face'];
    		$selected_fonts[2] = $post_title['face'];
    		$selected_fonts[3] = $content_font['face'];
        $selected_fonts[4] = $heading_font['face'];
    
    		$font_face_all = '';
    		$j = 0;
    		$font_storage[] = '';
    		for ( $i=0; $i<5; $i++ ) {
    		if (in_array($selected_fonts[$i], $font_storage )) {}
     	else {
    			$font_storage[] = $selected_fonts[$i];
    		$font_face = explode(',',$selected_fonts[$i]);
    		$font_face = str_replace(" ", "+", $font_face[0]);
    			if($font_face != 'Arial' && $font_face != 'Georgia' && $font_face != 'Impact' && $font_face != 'Lucida+Sans+Unicode' && $font_face != 'Myriad+Pro*' && $font_face != 'Palatino+Linotype' && $font_face != 'Tahoma' && $font_face != 'Times+New+Roman' && $font_face != 'Trebuchet+MS' && $font_face != 'Verdana'){
    				if($j>0){$ext = '|';} else {$ext = '';}
    				$j++;
    		$font_face = $ext.$font_face.':r,b,i';
    		$font_face_all = $font_face_all.$font_face;
    			}
    		}
    		}
    			if($font_face_all){
    		wp_enqueue_style('googlefont', "https://fonts.googleapis.com/css?family=".$font_face_all);
    		}
    
      // Bootstrap Elements
    
      if ($evl_bootstrap == "1" ) {
      wp_enqueue_script( 'bootstrap', EVLJS . '/bootstrap/js/bootstrap.js' );
      wp_enqueue_style( 'bootstrapcss', EVLJS . '/bootstrap/css/bootstrap.css' );
      wp_enqueue_style( 'bootstrapcssresponsive', EVLJS . '/bootstrap/css/bootstrap-responsive.css' );
      }    
    
      // Stylesheets
    
      wp_register_style('maincss', $template_url . '/style.css', false);
      wp_enqueue_style('maincss');
    
      // Custom Stylesheets
    
      require_once( get_template_directory() . '/custom-css.php' ); 
    
      // Custom CSS
    
      $evolve_css_data .= $evl_css_content;
    
      wp_add_inline_style( 'maincss', $evolve_css_data );
    
    }
    
    /**
     * remove_generator_link() Removes generator link
     *
     * @since 0.1
     * @credits https://www.plaintxt.org
     * @needsdoc
     */
    function remove_generator_link() { return ''; }
    
    /**
     * evolve_menu - adds css class to the <ul> tag in wp_page_menu.
     *
     * @since 0.3
     * @filter evolve_menu_ulclass
     * @needsdoc
     */
    function evolve_menu_ulclass( $ulclass ) {
    	$classes = apply_filters( 'evolve_menu_ulclass', (string) 'nav-menu' ); // Available filter: evolve_menu_ulclass
    	return preg_replace( '/<ul>/', '<ul class="'. $classes .'">', $ulclass, 1 );
    }
    
    /**
     * evolve_nice_terms clever terms
     *
     * @since 0.2.3
     * @needsdoc
     */
    function evolve_nice_terms( $term = '', $normal_separator = ', ', $penultimate_separator = ' and ', $end = '' ) {
    	if ( !$term ) return;
    	switch ( $term ):
    		case 'cats':
    			$terms = evolve_get_terms( 'cats', $normal_separator );
    			break;
    		case 'tags':
    			$terms = evolve_get_terms( 'tags', $normal_separator );
    
    			break;
    	endswitch;
    	if ( empty($term) ) return;
    	$things = explode( $normal_separator, $terms );
    
    	$thelist = '';
    	$i = 1;
    	$n = count( $things );
    
    	foreach ( $things as $thing ) {
    
    		$data = trim( $thing, ' ' );
    
    		$links = preg_match( '/>(.*?)</', $thing, $link );
    		$hrefs = preg_match( '/href="(.*?)"/', $thing, $href );
    		$titles = preg_match( '/title="(.*?)"/', $thing, $title );
    		$rels = preg_match( '/rel="(.*?)"/', $thing, $rel );
    
    		if (1 < $i and $i != $n) {
    			$thelist .= $normal_separator;
    		}
    
    		if (1 < $i and $i == $n) {
    			$thelist .= $penultimate_separator;
    		}
    		$thelist .= '<a rel="'. $rel[1] .'" href="'. $href[1] .'"';
    		if ( !$term = 'tags' )
    			$thelist .= ' title="'. $title[1] .'"';
    		$thelist .= '>'. $link[1] .'</a>';
    		$i++;
    	}
    	$thelist .= $end;
    	return apply_filters( 'evolve_nice_terms', (string) $thelist );
    }
    
    /**
     * evolve_get_terms() Returns other terms except the current one (redundant)
     *
     * @since 0.2.3
     * @usedby evolve_entry_footer()
     */
    function evolve_get_terms( $term = NULL, $glue = ', ' ) {
    	if ( !$term ) return;
    
    	$separator = "\n";
    	switch ( $term ):
    		case 'cats':
    			$current = single_cat_title( '', false );
    			$terms = get_the_category_list( $separator );
    			break;
    		case 'tags':
    			$current = single_tag_title( '', '',  false );
    			$terms = get_the_tag_list( '', "$separator", '' );
    			break;
    	endswitch;
    	if ( empty($terms) ) return;
    
    	$thing = explode( $separator, $terms );
    	foreach ( $thing as $i => $str ) {
    		if ( strstr( $str, ">$current<" ) ) {
    			unset( $thing[$i] );
    			break;
    		}
    	}
    	if ( empty( $thing ) )
    		return false;
    
    	return trim( join( $glue, $thing ) );
    }
    
    /**
     * evolve_get Gets template files
     *
     * @since 0.2.3
     * @needsdoc
     * @action evolve_get
     * @todo test this on child themes
     */
    function evolve_get( $file = NULL ) {
    	do_action( 'evolve_get' ); // Available action: evolve_get
    	$error = "Sorry, but <code>{$file}</code> does <em>not</em> seem to exist. Please make sure this file exist in <strong>" . get_stylesheet_directory() . "</strong>\n";
    	$error = apply_filters( 'evolve_get_error', (string) $error ); // Available filter: evolve_get_error
    	if ( isset( $file ) && file_exists( get_stylesheet_directory() . "/{$file}.php" ) )
    		locate_template( get_stylesheet_directory() . "/{$file}.php" );
    	else
            echo $error;
    }
    
    /**
     * evlinclude_all() A function to include all files from a directory path
     *
     * @since 0.2.3
     * @credits k2
     */
    function evlinclude_all( $path, $ignore = false ) {
    
    	/* Open the directory */
    	$dir = @dir( $path ) or die( 'Could not open required directory ' . $path );
    
    	/* Get all the files from the directory */
    	while ( ( $file = $dir->read() ) !== false ) {
    		/* Check the file is a file, and is a PHP file */
    		if ( is_file( $path . $file ) and ( !$ignore or !in_array( $file, $ignore ) ) and preg_match( '/\.php$/i', $file ) ) {
    			require_once( $path . $file );
    		}
    	}
    	$dir->close(); // Close the directory, we're done.
    }
    
    /**
     * Gets the profile URI for the document being displayed.
     * @link https://microformats.org/wiki/profile-uris Profile URIs
     *
     * @since 0.2.4
     * @param integer $echo 0|1
     * @return string profile uris seperatd by spaces
     **/
    function evlget_profile_uri( $echo = 1 ) {
    	// hAtom profile
    	$profile[] = 'https://purl.org/uF/hAtom/0.1/';
    
    	// hCard, hCalendar, rel-tag, rel-license, rel-nofollow, VoteLinks, XFN, XOXO profile
    	$profile[] = 'https://purl.org/uF/2008/03/';
    
    	$profile = join( ' ', apply_filters( 'profile_uri',  $profile ) ); // Available filter: profile_uri
    
    	if ( $echo ) echo $profile;
    	else return $profile;
    }
    
    function evolve_copy() {
    
      $options = get_option('evolve');
    
      if (!empty($options['evl_affiliate_id'])) { $ad_affiliate_id = '?ap_id='.$options['evl_affiliate_id']; } else { $ad_affiliate_id = ''; } 
    
    	$credits = '<p id="copyright"><span class="credits fl-r"><a href="https://theme4press.com/evolve/'.$ad_affiliate_id.'">EvoLve</a> theme by Theme4Press?????Powered by <a href="https://www.ads-software.com">WordPress</a></span> <a href="'. home_url() .'">'. get_bloginfo( 'name' ) .'</a><br /><small>'. get_bloginfo( 'description' ) .'</small></p>';
    	echo apply_filters( 'evolve_copy', (string) $credits );
    }
    
    ?>

    i am not seeing the error yet my page is still telling me. now its saying

    Fatal error: Call to undefined function evl_get_option() in /home/simpl181/public_html/wp-content/themes/evolve/header.php on line 34

    ?i’m not sure whats going on but i’m quite worried.

    Thread Starter livewild

    (@livewild)

    /home/simpl181/public_html/wp-content/themes/evolve/header.php

    <?php
    /**
     * Template: Header.php
     *
     * @package EvoLve
     * @subpackage Template
     */
    ?>
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    
    <!--BEGIN html-->
    <html xmlns="https://www.w3.org/1999/xhtml" <?php language_attributes(); ?>>
    
    <!--BEGIN head-->
    <head profile="<?php evlget_profile_uri(); ?>">
    
    	<title><?php wp_title('-', true); ?></title>
    
    	<!-- Meta Tags -->
    	<meta http-equiv="Content-Type" content="<?php bloginfo( 'html_type' ); ?>; charset=<?php bloginfo('charset'); ?>" />
      <meta name="viewport" content="width=device-width; initial-scale=1.0">
    
    	<?php wp_head(); ?>
    
    <!--END head-->
    </head>
    
    <!--BEGIN body-->
    <body <?php body_class(); ?>>
    
    <?php $evl_custom_background = evl_get_option('evl_custom_background','1'); if ($evl_custom_background == "1") { ?>
    <div id="wrapper">
    <?php } ?>
    
    <div id="top"></div>
    
    	<!--BEGIN .header-->
    		<div class="header">
    
    	<!--BEGIN .container-->
    	<div class="container container-header custom-header">
    
          <!--BEGIN #righttopcolumn-->
      <div id="righttopcolumn"> 
    
     <!-- AD Space 1 -->
    
        <?php $options = get_option('evolve'); 
    
         if (!empty($options['evl_space_1'])) {
     $ad_space_1 = $options['evl_space_1'];
     echo '<div class="ad-1">'.esc_attr($ad_space_1).'</div>';
     } 
    
    ?>                        
    
      <?php $evl_pos_logo = evl_get_option('evl_pos_logo','left'); if ($evl_pos_logo == "disable") { ?>
    
      <?php } else { ?>
    
        <?php $options = get_option('evolve');
        if (!empty($options['evl_header_logo'])) {
            echo "<a href=".home_url()."><img id='logo-image' src=".$options['evl_header_logo']." /></a>";
        }
          ?>  
    
         <?php } ?> 
    
          <?php 
    
         $tagline = '<div id="tagline">'.get_bloginfo( 'description' ).'</div>';
    
         $evl_tagline_pos = evl_get_option('evl_tagline_pos','next');
    
         if (($evl_tagline_pos !== "disable") && ($evl_tagline_pos == "above")) { 
    
         echo $tagline;
    
         } ?>
    
         <?php $evl_blog_title = evl_get_option('evl_blog_title','0'); if ($evl_blog_title == "0") { ?>
    
         <div id="logo"><span></span><a href="<?php echo home_url(); ?>"><?php bloginfo( 'name' ) ?></a></div>
    
         <?php } else { ?>			
    
          <?php } if (($evl_tagline_pos !== "disable") && (($evl_tagline_pos == "") || ($evl_tagline_pos == "next") || ($evl_tagline_pos == "under")))
          {
    			echo $tagline;
    
          } ?>
    
    	<!--END .container-->
    		</div>
    
        		<!--END .header-->
    		</div>
    
      <div class="menu-container">
    
       <?php $evl_menu_background = evl_get_option('evl_disable_menu_back','1'); if ($evl_menu_background != "1") { ?>
    
    	<div class="menu-back", padding: 20px 0 10px 30px;>
    
                          <?php } ?>
    
      <!--BEGIN .container-menu-->
      <div class="container nacked-menu container-menu">
    
         <?php $evl_main_menu = evl_get_option('evl_main_menu','0'); if ($evl_main_menu == "1") { ?>
        <br /><br />
    
       <?php } else { ?>
    
       <div class="menu-header">
    
        <?php if ( has_nav_menu( 'primary-menu' ) ) { ?>
    
     <?php wp_nav_menu( array( 'menu_class' => 'nav-menu', 'theme_location' => 'primary-menu' ) ); ?> 
    
          <?php } else { ?>
    
    	        <?php wp_page_menu( 'show_home=1' ); ?>
    
              <?php } ?> 
    
              </div> 
    
           <?php } ?>
    
           </div>
    
            <?php if ($evl_menu_background == "1") { ?>
    
    	<div class="menu-back">
    
                          <?php } ?>
    
            <!--BEGIN header-content.php -->
    
             <?php $evl_home_header_content = evl_get_option('evl_home_header_content', 'search_social');
      if ($evl_home_header_content == "disable") { ?>
    
      <?php } else { ?>
    
      <?php get_template_part('header-content', 'header'); ?>
    
           <?php } ?>
    
            <!--END header-content.php -->
    
            <?php $evl_header_widgets_placement = evl_get_option('evl_header_widgets_placement', 'home');           
    
     if ((is_home() && $evl_header_widgets_placement == "home") || (is_single() && $evl_header_widgets_placement == "single") 
    
     || (is_page() && $evl_header_widgets_placement == "page") || ($evl_header_widgets_placement == "all")) { ?>
    
              <?php $evl_widgets_header = evl_get_option('evl_widgets_header','one');
    
    // if Header widgets exist
    
      if (($evl_widgets_header == "") || ($evl_widgets_header == "disable"))
    { } else { ?>
    
      <div class="container widgets-back">  
    
            <!--BEGIN .widgets-holder-->
        <div class="widgets-holder widgets-back-inside">
    
        <div class="header-1">
        	<?php	if ( !dynamic_sidebar( 'header-1' )) : ?>
    
         <!--BEGIN #widget-carousel-->
         <?php evlwidget_before_widget(); ?>
          <div id='myCarousel' class='carousel slide'>
    <div class='carousel-inner'>
    <div class='item active'>
    
    <img src='<?php echo get_template_directory_uri(); ?>/library/media/images/slider/slider_img_01.jpg' alt='' />
    <div class='carousel-caption'>
    <h4>Built-in Bootstrap Elements let you do amazing things with your website</h4>
    </div>
    </div>
    
    <div class='item'>
    
    <img src='<?php echo get_template_directory_uri(); ?>/library/media/images/slider/slider_img_02.jpg' alt='' />
    <div class='carousel-caption'>
    <h4>Easy to use control panel with a lot of options</h4>
    </div>
    </div>
    
    <div class='item'>
    
    <img src='<?php echo get_template_directory_uri(); ?>/library/media/images/slider/slider_img_03.jpg' alt='' />
    <div class='carousel-caption'>
    <h4>Fully responsive theme for any device</h4>
    </div>
    </div> 
    
    <div class='item'>
    
    <img src='<?php echo get_template_directory_uri(); ?>/library/media/images/slider/slider_img_04.jpg' alt='' />
    <div class='carousel-caption'>
    <h4>Unlimited color schemes</h4>
    </div>
    </div>
    
    </div>
    
    <a class='left carousel-control' href='#myCarousel' data-slide='prev'><img src='<?php echo get_template_directory_uri(); ?>/library/media/images/left-ar.png' /></a>
    <a class='right carousel-control' href='#myCarousel' data-slide='next'><img src='<?php echo get_template_directory_uri(); ?>/library/media/images/right-ar.png' /></a>
    
    </div>
    
    <div id="carousel-nav">
    <a href="#myCarousel" data-to="1" class="active">1</a>
    <a href="#myCarousel" data-to="2">2</a>
    <a href="#myCarousel" data-to="3">3</a>
    <a href="#myCarousel" data-to="4">4</a>
    </div>
    
      <?php evlwidget_after_widget(); ?>
                   <!--END #widget-carousel-->
    
          <?php endif; ?>
          </div>
    
         <div class="header-2">
          <?php	if ( !dynamic_sidebar( 'header-2' ) ) : ?>
          <?php endif; ?>
          </div>
    
        <div class="header-3">
    	    <?php	if ( !dynamic_sidebar( 'header-3' ) ) : ?>
          <?php endif; ?>
          </div>      
    
        <div class="header-4">
        	<?php	if ( !dynamic_sidebar( 'header-4' ) ) : ?>
          <?php endif; ?>
          </div>
    
        </div> 
    
        <!--END .widgets-holder--> 
    
       </div>
    
         <?php } ?>
    
         <?php } else {} ?>
    
         <!-- AD Space 2 -->
    
        <?php $options = get_option('evolve');
    
         if (!empty($options['evl_space_2'])) {
     $ad_space_2 = $options['evl_space_2'];
    echo '<div class="ad-2">'.esc_attr($ad_space_2).'</div>';
    
     }
    ?> 
    
          </div> 
    
                 	<!--BEGIN .content-->
    	<div class="content <?php semantic_body(); ?>">  
    
           	<!--BEGIN .container-->
    	<div class="container container-center">
    
    		<!--BEGIN #content-->
    		<div id="content">
    koendb

    (@koendb)

    I think your best option is to reinstall your theme. I guess all your settings will be lost, so take a few printscreens of them beforehand.

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘Parse error: syntax error, unexpected '}' in /home/simpl181/public_html/wp-conte’ is closed to new replies.