Parse error: syntax error, unexpected T_FUNCTION
<p>I keep getting this error when applying my WP theme, this is the php file which displays the error. I don't see anything wrong with the code. The host has php ver 5.2.17</p>

<p>Parse error: syntax error, unexpected T_FUNCTION in /public_html/wp-content/themes/hel/foxhound/wordpress-hooks.php on line 1</p>

<p>CODE:</p>

<pre><code>&lt;?php
/**
 * Foxhound Frameowrk Theme Settings Page
 * 
 * Defines the markup for the Theme settings
 * page for the Foxhound framework.
 * 
 * @package Foxhound
 */


/**
 * Add Theme Settings Page
 * 
 * @since Foxhound 1.0
 */
function foxhound_add_settings_page() {

    // Add admin page
    add_menu_page(
        __( 'Settings', 'foxhound' ),
        FOXHOUND_THEMENAME,
        'edit_theme_options',
        'theme_options',
        // Callback function to output settings page
        'foxhound_settings_page',
        // Settings page admin menu icon
        get_template_directory_uri() . '/images/menu_icon.gif'
    );



}


add_action( 'admin_menu', 'foxhound_add_settings_page' );


/**
 * Foxhound Theme Settings Page Markup
 * 
 * @uses    foxhound_get_current_tab()  defined in \foxhound\settings-page.php
 * @uses    foxhound_get_page_tab_markup()  defined in \foxhound\settings-page.php
 */
function foxhound_settings_page() { 
    // Determine the current page tab
    $currenttab = foxhound_get_current_tab();
    // Define the page section accordingly
    $settings_section = FOXHOUND_THEMESLUG . '_' . $currenttab . '_tab';
    ?&gt;

    &lt;div class="wrap"&gt;
        &lt;?php foxhound_get_page_tab_markup(); ?&gt;
        &lt;?php if ( isset( $_GET['settings-updated'] ) ) {
                echo '&lt;div class="updated"&gt;&lt;p&gt;';
                echo __( 'Theme settings updated successfully.', 'foxhound' );
                echo '&lt;/p&gt;&lt;/div&gt;';
        } ?&gt;
        &lt;form action="options.php" method="post" enctype="multipart/form-data"&gt;
        &lt;?php 
            // Implement settings field security, nonces, etc.
            settings_fields( FOXHOUND_THEMESLUG . '_theme_options' );
            // Output each settings section, and each
            // Settings field in each section
            do_settings_sections( $settings_section );
        ?&gt;
            &lt;?php submit_button( __( 'Save Settings', 'foxhound' ), 'primary', FOXHOUND_THEMESLUG . '_theme_options[submit-' . $currenttab . ']', false ); ?&gt;
            &lt;?php submit_button( __( 'Reset Defaults', 'foxhound' ), 'secondary', FOXHOUND_THEMESLUG . '_theme_options[reset-' . $currenttab . ']', false ); ?&gt;
        &lt;/form&gt;
    &lt;/div&gt;
&lt;?php 
}


/**
 * Get current settings page tab
 */
function foxhound_get_current_tab() {

    $page = 'theme_options';
    if ( isset( $_GET['tab'] ) &amp;&amp; array_key_exists( $_GET['tab'], foxhound_get_settings_page_tabs() ) ) {
        $current = $_GET['tab'];
    } else {
        global $foxhound_options;
        $foxhound_options = foxhound_get_options();
        $current = $foxhound_options['default_options_tab'];
    }   
    return $current;
}


/**
 * Define Foxhound Settings Page Tab Markup
 * 
 * @uses    foxhound_get_current_tab()          defined in \foxhound\settings-page.php
 * @uses    foxhound_get_settings_page_tabs()   defined in \theme-options.php
 */
function foxhound_get_page_tab_markup() {

    $page = 'theme_options';
    $current = foxhound_get_current_tab();
    $tabs = foxhound_get_settings_page_tabs();

    $links = array();

    foreach( $tabs as $tab ) {
        $tabname = $tab['name'];
        $tabtitle = $tab['title'];
        if ( $tabname == $current ) {
            $links[] = "&lt;a class='nav-tab nav-tab-active' href='?page=$page&amp;tab=$tabname'&gt;$tabtitle&lt;/a&gt;";
        } else {
            $links[] = "&lt;a class='nav-tab' href='?page=$page&amp;tab=$tabname'&gt;$tabtitle&lt;/a&gt;";
        }
    }

    echo '&lt;div id="icon-themes" class="icon32"&gt;&lt;br /&gt;&lt;/div&gt;';
    echo '&lt;h2 class="nav-tab-wrapper"&gt;';
    foreach ( $links as $link )
        echo $link;
    echo '&lt;/h2&gt;';

}


/**
 * Add theme options page styles
 *
 * @since Foxhound 1.0
 */
function foxhound_add_settings_page_css() {
    if ( isset( $_GET['page'] ) &amp;&amp; $_GET['page'] == 'theme_options' ) {
        wp_register_style( 'foxhound-settings-page-css', FOXHOUND_URL . 'settings-page.css' );
        wp_enqueue_style( 'foxhound-settings-page-css' );
    }
}
add_action( 'admin_enqueue_scripts', 'foxhound_add_settings_page_css' );

 ?&gt;
</code></pre>
