Jump to content

Parse error: syntax error, unexpected '<'


codisweepstakes2

Recommended Posts

I'm using a free Wordpress theme called Arthemia Free & I am having trouble with this error:

Parse error: syntax error, unexpected '<' in /homepages/31/d145901191/htdocs/www/liquidsilver/gsar/wp-content/themes/arthemia/functions.php on line 40

 

functions.php:

<?php if ( function_exists('register_sidebar') )

{

register_sidebar(array('name' => 'Sidebar Top','before_widget' => '','after_widget' => '','before_title' => '<h3>','after_title' => '</h3>'));

register_sidebar(array('name' => 'Sidebar Left','before_widget' => '','after_widget' => '','before_title' => '<h3>','after_title' => '</h3>'));

register_sidebar(array('name' => 'Sidebar Right','before_widget' => '','after_widget' => '','before_title' => '<h3>','after_title' => '</h3>'));

register_sidebar(array('name' => 'Sidebar Bottom','before_widget' => '','after_widget' => '','before_title' => '<h3>','after_title' => '</h3>'));

register_sidebar(array('name' => 'Footer Left','before_widget' => '','after_widget' => '','before_title' => '<h3>','after_title' => '</h3>'));

register_sidebar(array('name' => 'Footer Center','before_widget' => '','after_widget' => '','before_title' => '<h3>','after_title' => '</h3>'));

register_sidebar(array('name' => 'Footer Right','before_widget' => '','after_widget' => '','before_title' => '<h3>','after_title' => '</h3>'));

}

 

 

 

 

remove_filter('get_the_excerpt', 'wp_trim_excerpt');

add_filter('get_the_excerpt', 'custom_trim_excerpt');

 

remove_filter('get_the_excerpt', 'wp_trim_excerpt');

add_filter('get_the_excerpt', 'custom_trim_excerpt');

 

function custom_trim_excerpt($text) { // Fakes an excerpt if needed

global $post;

if ( '' == $text ) {

$text = get_the_content('');

 

$text = strip_shortcodes( $text );

 

$text = apply_filters('the_content', $text);

$text = str_replace(']]>', ']]>', $text);

$text = strip_tags($text);

$excerpt_length = apply_filters('excerpt_length', 90);

$words = explode(' ', $text, $excerpt_length + 1);

if (count($words) > $excerpt_length) {

array_pop($words);

array_push($words, '...');

$text = implode(' ', $words);

}

}

return $text;

}

 

 

?>

 

___________

Any help would be greatly appreciated.

My website is currently down b/c of this.

Link to comment
https://forums.phpfreaks.com/topic/189700-parse-error-syntax-error-unexpected/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.