I have just switched over from my locally designed wordpress to the real thing and encountered this error:
Parse error: syntax error, unexpected $end in /home/timothyd/public_html/wp-content/themes/timewith/functions.php on line 48
Here is my functions.php in my child theme.
<?php
function childtheme_create_stylesheet() {
$templatedir = get_bloginfo('template_directory');
$stylesheetdir = get_bloginfo('stylesheet_directory');
?>
<link rel="stylesheet" type="text/css" href="<?php echo $templatedir ?>/library/styles/reset.css" />
<link rel="stylesheet" type="text/css" href="<?php echo $templatedir ?>/library/styles/typography.css" />
<link rel="stylesheet" type="text/css" href="<?php echo $templatedir ?>/library/styles/images.css" />
<link rel="stylesheet" type="text/css" href="<?php echo $templatedir ?>/library/layouts/2c-l-fixed.css" />
<link rel="stylesheet" type="text/css" href="<?php echo $templatedir ?>/library/styles/18px.css" />
<link rel="stylesheet" type="text/css" href="<?php echo $stylesheetdir ?>/style.css" />
<?php
function remove_access() {
remove_action( 'thematic_header', 'thematic_access', 9 );
}
add_action( 'init', 'remove_access' );
?>
<?php
function childtheme_override_postheader_postmeta() {
$postmeta = '<div class="entry-meta">';
$postmeta .= thematic_postmeta_entrydate();
$postmeta .= thematic_postmeta_editlink();
$postmeta .= "</div><!-- .entry-meta -->\n";
return apply_filters('thematic_postheader_postmeta',$postmeta);
}
?>
<?php
$entrydate = '<span class="meta-prep meta-prep-entry-date">' . __('Published: ', 'thematic') . '</span>';
function childtheme_override_postmeta_entrydate() {
$entrydate = '<span class="meta-prep meta-prep-entry-date">' . __('', 'thematic') . '</span>';
$entrydate .= '<span class="entry-date"><abbr class="published" title="';
$entrydate .= get_the_time(thematic_time_title()) . '">';
$entrydate .= get_the_time(thematic_time_display());
$entrydate .= '</abbr></span>';
return apply_filters('thematic_post_meta_entrydate', $entrydate);
}
?>
<?php
// CHANGE THE WAY CATEGORIES AND THE EDIT LINK ARE DISPLAYED (HIDE THEM)
function childtheme_postfooter_postcategory($postcategory) {
$postcategory = '';
}
add_action('thematic_postfooter_postcategory','childtheme_postfooter_postcategory');
?>
Line 48, as mentioned in the parse error, is the last one.