Page 1 of 2 12 LastLast
Results 1 to 10 of 14

Thread: Parse error: syntax error, unexpected T_STRING, expecting '

  1. #1
    Thread Starter
    Junior Member gemini11's Avatar
    Join Date
    Jun 2011
    Location
    Toronto/Ontario/Canada
    Posts
    44
    Thanks
    3
    Thanked 0 Times in 0 Posts

    Parse error: syntax error, unexpected T_STRING, expecting '

    Help Me. I killed my site.

    I tried to modify my
    ClassiPress/classipress-312: theme-header.php

    I updated the file, and got this error:

    Parse error: syntax error, unexpected T_STRING, expecting ',' or ';' in /home/gemini11/toronto-list.com/wp-content/themes/classipress-312/includes/theme-header.php on line 158

    I reverted back to a saved copy of my original.. Same result.. What have I done?

    Here is a copy of my original below.. Maybe I messed something up in the copy and pasting?


    <?php

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

    global $wpdb;

    // adds CP version number in the header for troubleshooting
    function cp_version($app_version) {
    global $app_version, $app_db_version;
    echo '<meta name="version" content="ClassiPress '.$app_version.'" />' . "\n";
    echo '<meta name="db-version" content="'.$app_db_version.'" />' . "\n";
    }
    add_action('wp_head', 'cp_version');


    // adds support for cufon font replacement
    function cp_cufon_styles() { //TODO: move into theme-enqueue

    if ( get_option('cp_cufon_enable') != 'yes' ) return;
    ?>
    <!--[if gte IE 9]> <script type="text/javascript"> Cufon.set('engine', 'canvas'); </script> <![endif]-->
    <!-- cufon fonts -->
    <script src="<?php echo get_bloginfo('template_directory') ?>/includes/fonts/Vegur_400-Vegur_700.font.js" type="text/javascript"></script>
    <script src="<?php echo get_bloginfo('template_directory') ?>/includes/fonts/Liberation_Serif_400.font.js" type="text/javascript"></script>
    <!-- end cufon fonts -->

    <!-- cufon font replacements -->
    <script type="text/javascript">
    // <![CDATA[
    <?php echo stripslashes(get_option('cp_cufon_code')). "\n"; ?>
    // ]]>
    </script>
    <!-- end cufon font replacements -->

    <?php
    }
    add_action('wp_head', 'cp_cufon_styles');



    // select the searched category from the drop-down list
    function cp_select_search_cat() {

    if ( !isset($_GET['s']) ) return; // only add action if it's on the search results

    global $wp_query;
    $catid = $wp_query->query_vars['cat'];

    if ( !empty($catid) ) {
    ?>
    <script type="text/javascript">
    // <![CDATA[
    jQuery(document).ready(function(){
    jQuery("select#cat option[value='<?php echo $catid ?>']").attr("selected","selected");
    });
    // ]]>
    </script>
    <?php
    }

    }
    add_action('wp_head', 'cp_select_search_cat');


    // add the main header
    function cp_header() {
    ?>

    <!-- HEADER -->
    <div class="header">

    <div class="header_top">

    <div class="header_top_res">

    <p>
    <?php echo cp_login_head(); ?>

    <a href="<?php if (get_option('cp_feedburner_url')) echo get_option('cp_feedburner_url'); else echo get_bloginfo_rss('rss2_url').'?post_type='.APP_POS T_TYPE; ?>" target="_blank"><img src="<?php bloginfo('template_url'); ?>/images/icon_rss.gif" width="16" height="16" alt="rss" class="srvicon" /></a>

    <?php if ( get_option('cp_twitter_username') ) : ?>
    &nbsp;|&nbsp;
    <a href="http://twitter.com/<?php echo get_option('cp_twitter_username'); ?>" target="_blank"><img src="<?php bloginfo('template_url'); ?>/images/icon_twitter.gif" width="16" height="16" alt="tw" class="srvicon" /></a>
    <?php endif; ?>
    </p>

    </div><!-- /header_top_res -->

    </div><!-- /header_top -->


    <div class="header_main">

    <div class="header_main_bg">

    <div class="header_main_res">

    <div id="logo">

    <?php if ( get_option('cp_use_logo') != 'no' ) { ?>

    <?php if ( get_option('cp_logo') ) { ?>
    <a href="<?php bloginfo('url'); ?>"><img src="<?php echo get_option('cp_logo'); ?>" alt="<?php bloginfo('name'); ?>" class="header-logo" /></a>
    <?php } else { ?>
    <a href="/"><div class="cp_logo"></div></a>
    <?php } ?>

    <?php } else { ?>

    <h1><a href="<?php echo get_option('home'); ?>/"><?php bloginfo('name'); ?></a></h1>
    <div class="description"><?php bloginfo('description'); ?></div>

    <?php } ?>

    </div><!-- /logo -->

    <?php if ( get_option('cp_adcode_468x60_enable') == 'yes' ) { ?>

    <div class="adblock">

    <?php appthemes_header_ad_468x60();?>

    </div><!-- /adblock -->

    <?php } ?>

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

    </div><!-- /header_main_res -->

    </div><!-- /header_main_bg -->

    </div><!-- /header_main -->


    <div class="header_menu">

    <div class="header_menu_res">

    <a href="<?php echo CP_ADD_NEW_URL ?>" class="obtn btn_orange"><?php _e('Post an Ad', 'appthemes') ?></a>

    <ul id="nav">

    <li class="<?php if (is_home()) echo 'page_item current_page_item'; ?>"><a href="<?php echo get_option('home')?>"><?php _e('Home','appthemes'); ?></a></li>
    <li class="mega"><a href="#"><?php _e('Categories','appthemes'); ?></a>
    <div class="adv_categories" id="adv_categories">

    <?php echo cp_cat_menu_drop_down( get_option('cp_cat_menu_cols'), get_option('cp_cat_menu_sub_num') ); ?>

    </div><!-- /adv_categories -->
    </li>

    </ul>

    <?php wp_nav_menu( array('theme_location' => 'primary', 'fallback_cb' => 'appthemes_default_menu', 'container' => false) ); ?>

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


    </div><!-- /header_menu_res -->

    </div><!-- /header_menu -->

    </div><!-- /header -->

    <?php
    }
    // hook into the correct action
    add_action('appthemes_header', 'cp_header');


    // remove the WordPress version meta tag
    if (get_option('cp_remove_wp_generator') == 'yes')
    remove_action('wp_head', 'wp_generator');

    // remove the new 3.1 admin header toolbar visible on the website if logged in
    if (get_option('cp_remove_admin_bar') == 'yes')
    add_filter('show_admin_bar', '__return_false');

    ?>

  2. #2
    barukar's Avatar
    Join Date
    Sep 2010
    Location
    Brasil, São Paulo, SP
    Posts
    6,779
    Thanks
    185
    Thanked 740 Times in 622 Posts
    You must be an AppThemes customer and logged in to view this response. Join today!
    Please help our moderating team work more efficiently by not sending us support questions via PM. You can read more about how AppThemes support works here. Thank you.

    -------------------------------------------------------------------------------------------
    Projects: ClassiNoiva - Classimóveis - vocênoenem - i50 - Clube DETRAN

  3. #3
    Thread Starter
    Junior Member gemini11's Avatar
    Join Date
    Jun 2011
    Location
    Toronto/Ontario/Canada
    Posts
    44
    Thanks
    3
    Thanked 0 Times in 0 Posts
    You must be an AppThemes customer and logged in to view this response. Join today!

  4. #4
    barukar's Avatar
    Join Date
    Sep 2010
    Location
    Brasil, São Paulo, SP
    Posts
    6,779
    Thanks
    185
    Thanked 740 Times in 622 Posts
    You must be an AppThemes customer and logged in to view this response. Join today!
    Please help our moderating team work more efficiently by not sending us support questions via PM. You can read more about how AppThemes support works here. Thank you.

    -------------------------------------------------------------------------------------------
    Projects: ClassiNoiva - Classimóveis - vocênoenem - i50 - Clube DETRAN

  5. #5
    Thread Starter
    Junior Member gemini11's Avatar
    Join Date
    Jun 2011
    Location
    Toronto/Ontario/Canada
    Posts
    44
    Thanks
    3
    Thanked 0 Times in 0 Posts
    You must be an AppThemes customer and logged in to view this response. Join today!

  6. #6
    barukar's Avatar
    Join Date
    Sep 2010
    Location
    Brasil, São Paulo, SP
    Posts
    6,779
    Thanks
    185
    Thanked 740 Times in 622 Posts
    You must be an AppThemes customer and logged in to view this response. Join today!
    Please help our moderating team work more efficiently by not sending us support questions via PM. You can read more about how AppThemes support works here. Thank you.

    -------------------------------------------------------------------------------------------
    Projects: ClassiNoiva - Classimóveis - vocênoenem - i50 - Clube DETRAN

  7. #7
    Thread Starter
    Junior Member gemini11's Avatar
    Join Date
    Jun 2011
    Location
    Toronto/Ontario/Canada
    Posts
    44
    Thanks
    3
    Thanked 0 Times in 0 Posts
    You must be an AppThemes customer and logged in to view this response. Join today!

  8. #8
    barukar's Avatar
    Join Date
    Sep 2010
    Location
    Brasil, São Paulo, SP
    Posts
    6,779
    Thanks
    185
    Thanked 740 Times in 622 Posts
    You must be an AppThemes customer and logged in to view this response. Join today!
    Please help our moderating team work more efficiently by not sending us support questions via PM. You can read more about how AppThemes support works here. Thank you.

    -------------------------------------------------------------------------------------------
    Projects: ClassiNoiva - Classimóveis - vocênoenem - i50 - Clube DETRAN

  9. #9
    Thread Starter
    Junior Member gemini11's Avatar
    Join Date
    Jun 2011
    Location
    Toronto/Ontario/Canada
    Posts
    44
    Thanks
    3
    Thanked 0 Times in 0 Posts
    You must be an AppThemes customer and logged in to view this response. Join today!

  10. #10
    barukar's Avatar
    Join Date
    Sep 2010
    Location
    Brasil, São Paulo, SP
    Posts
    6,779
    Thanks
    185
    Thanked 740 Times in 622 Posts
    You must be an AppThemes customer and logged in to view this response. Join today!
    Please help our moderating team work more efficiently by not sending us support questions via PM. You can read more about how AppThemes support works here. Thank you.

    -------------------------------------------------------------------------------------------
    Projects: ClassiNoiva - Classimóveis - vocênoenem - i50 - Clube DETRAN

Page 1 of 2 12 LastLast

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. Parse error: syntax error
    By swimer619 in forum Report JobRoller Bugs
    Replies: 6
    Last Post: May 19th, 2011, 12:48 PM
  3. Parse error: syntax error, unexpected
    By ms_sumair in forum Report ClassiPress Bugs
    Replies: 13
    Last Post: May 7th, 2011, 12:18 PM
  4. Need help Parse error syntax error, unexpected
    By wanaifieds in forum Help Using ClassiPress
    Replies: 4
    Last Post: April 9th, 2011, 02:45 PM