i want to make some modifications to one of the functions in the Twenty Ten functions.php file. so i added a functions.php file (see code below) to my child folder. but now my site doesnt work.
I get an error message that says "“Parse error: syntax error, unexpected T_ENDIF in /home/content/p/o/o/html/green/wordpress/wp-content/themes/twentytenchild/functions.php on line 48”. Any idea what’s wrong???
<?php
/** Tell WordPress to run child_theme_setup()
when the 'after_setup_theme' hook is run.
*/
add_action( 'after_setup_theme', 'child_theme_setup' );
/** This function will hold our new calls and over-rides */
if ( !function_exists( 'child_theme_setup' ) ):
function child_theme_setup() {
/*
I want the Posted On date to show, but not the author.
*/
function twentyten_posted_on() {
printf( __( '<span class="%1$s">Posted on</span> %2$s', 'twentyten' ),
'meta-prep meta-prep-author',
sprintf( '<a href="%1$s" title="%2$s" rel="bookmark"><span class="entry-date">%3$s</span></a>',
get_permalink(),
esc_attr( get_the_time() ),
get_the_date()
),
sprintf( '<span class="author vcard"><a class="url fn n" href="%1$s" title="%2$s">%3$s</a></span>',
get_author_posts_url( get_the_author_meta( 'ID' ) ),
sprintf( esc_attr__( 'View all posts by %s', 'twentyten' ), get_the_author() ),
get_the_author()
)
);
}
endif; ?>