Results 1 to 6 of 6

Thread: Parse error: syntax error, unexpected T_STRING. HELP Please!

  1. #1
    Thread Starter
    Rookie khengg's Avatar
    Join Date
    Feb 2012
    Posts
    6
    Thanks
    1
    Thanked 1 Time in 1 Post

    Parse error: syntax error, unexpected T_STRING. HELP Please!

    Tried to change the Powered by wordpress, but made a mistake. I have already tried to copy from includes folder as instructed from other threads, tried to disable plug ins but still problem still comes up (Parse error: syntax error, unexpected T_STRING in /home/khengo/public_html/cardetailinghq.com.au/wp-content/themes/classipress/includes/theme-footer.php on line 58)

    This is what Ive copied onto theme.footer.php. Can someone help please! Thanks!

    <?php

    /**
    * Add footer elements via the wp_footer hook
    *
    * Anything you add to this file will be dynamically
    * inserted in the footer of your theme
    *
    * @since 3.0.0
    * @uses cp_footer_actions
    *
    */


    /**
    * add the footer contents to the bottom of the page
    * @since 3.1
    */
    function cp_do_footer() {
    ?>

    <div class="footer">

    <div class="footer_menu">

    <div class="footer_menu_res">

    <ul>
    <li class="first"><a href="<?php echo get_option('home')?>"><?php _e('Home','appthemes'); ?></a></li>
    <?php wp_list_pages( 'sort_column=menu_order&depth=1&title_li=&exclude= '.get_option('cp_excluded_pages') ); ?>
    </ul>

    <div class="clr"></div>

    </div><!-- /footer_menu_res -->

    </div><!-- /footer_menu -->

    <div class="footer_main">

    <div class="footer_main_res">

    <div class="dotted">

    <?php if ( function_exists('dynamic_sidebar') && dynamic_sidebar('sidebar_footer') ) : else : ?> <!-- no dynamic sidebar so don't do anything --> <?php endif; ?>

    <div class="clr"></div>

    </div><!-- /dotted -->

    <p>&copy; <?php echo date_i18n('Y'); ?> <?php bloginfo('name'); ?>. <?php _e('All Rights Reserved.', 'appthemes'); ?></p>

    <?php if ( get_option('cp_twitter_username') ) : ?>
    <a href="http://twitter.com/<?php echo get_option('cp_twitter_username'); ?>" target="_blank"><img src="<?php bloginfo('template_url'); ?>/images/twitter_bot.gif" width="42" height="50" alt="Twitter" class="twit" /></a>
    <?php endif; ?>

    <div class="right">
    <p><a target="_blank" href="http://www.appthemes.com/themes/classipress/" title="Classified Ads Software"><?php _e('Classified Ads Software','appthemes'); ?></a> | <?php _e('Powered by','appthemes'); ?> <a target="_blank" href="http://wordpress.org/" title="WordPress">WordPress</a></p>
    </div>

    <div class="clr"></div>

    </div><!-- /footer_main_res -->

    </div><!-- /footer_main -->

    </div><!-- /footer -->

    <?php
    }
    add_action('appthemes_footer', 'cp_do_footer');


    // insert the google analytics tracking code in the footer
    function cp_google_analytics_code() {

    // echo "\n\n" . '<!-- start wp_footer -->' . "\n\n";

    if ( get_option('cp_google_analytics') <> '' )
    echo stripslashes( get_option('cp_google_analytics') );
    ?>
    <script type="text/javascript" >
    var ajaxurl = '<?php echo admin_url( 'admin-ajax.php' ); ?>';
    </script>
    <?php

    // echo "\n\n" . '<!-- end wp_footer -->' . "\n\n";

    }
    add_action('wp_footer', 'cp_google_analytics_code');


    // enable the gravatar hovercards in footer
    function cp_gravatar_hovercards() {
    global $app_abbr;

    if ( get_option($app_abbr.'_use_hovercards') == 'yes' )
    wp_enqueue_script( 'gprofiles', 'http://s.gravatar.com/js/gprofiles.js', array( 'jquery' ), '1.0', true );

    }

    add_action('wp_enqueue_scripts', 'cp_gravatar_hovercards');


    ?>

  2. #2
    dimitris's Avatar
    Join Date
    Oct 2011
    Location
    Earth
    Posts
    20,617
    Thanks
    222
    Thanked 1,873 Times in 1,770 Posts
    You must be an AppThemes customer and logged in to view this response. Join today!

  3. #3
    Thread Starter
    Rookie khengg's Avatar
    Join Date
    Feb 2012
    Posts
    6
    Thanks
    1
    Thanked 1 Time in 1 Post
    You must be an AppThemes customer and logged in to view this response. Join today!

  4. #4
    dimitris's Avatar
    Join Date
    Oct 2011
    Location
    Earth
    Posts
    20,617
    Thanks
    222
    Thanked 1,873 Times in 1,770 Posts
    You must be an AppThemes customer and logged in to view this response. Join today!

  5. #5
    Thread Starter
    Rookie khengg's Avatar
    Join Date
    Feb 2012
    Posts
    6
    Thanks
    1
    Thanked 1 Time in 1 Post
    You must be an AppThemes customer and logged in to view this response. Join today!

  6. #6
    dimitris's Avatar
    Join Date
    Oct 2011
    Location
    Earth
    Posts
    20,617
    Thanks
    222
    Thanked 1,873 Times in 1,770 Posts
    You must be an AppThemes customer and logged in to view this response. Join today!

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Replies: 2
    Last Post: December 22nd, 2013, 07:07 AM
  2. Major PROBLEM, Parse error: syntax error, unexpected '='
    By brianyank24 in forum Report ClassiPress Bugs
    Replies: 10
    Last Post: December 5th, 2011, 11:24 AM
  3. Replies: 1
    Last Post: October 10th, 2011, 09:08 AM
  4. Replies: 3
    Last Post: August 28th, 2011, 09:00 AM
  5. [SOLVED] Parse error: syntax error, unexpected T_STRING, expecting '
    By gemini11 in forum Help Using ClassiPress
    Replies: 13
    Last Post: July 21st, 2011, 01:07 PM