• Resolved linderoni

    (@linderoni)


    I viewed the custom_functions.php file (thesis theme) on a site. Without making any changes, I went to leave that area of WP and received the following error message: Parse error: syntax error, unexpected T_CONSTANT_ENCAPSED_STRING, expecting ‘)’ on Line 90. I copy/pasted the php code to Textpad and there is no line 90. I tried removing code and I still receive the error message. Any idea on what is causing it? The code is pasted below.

    <?php
    
    // Using hooks is absolutely the smartest, most bulletproof way to implement things like plugins,
    // custom design elements, and ads. You can add your hook calls below, and they should take the
    // following form:
    // add_action('thesis_hook_name', 'function_name');
    // The function you name above will run at the location of the specified hook. The example
    // hook below demonstrates how you can insert Thesis' default recent posts widget above
    // the content in Sidebar 1:
    // add_action('thesis_hook_before_sidebar_1', 'thesis_widget_recent_posts');
    
    // Delete this line, including the dashes to the left, and add your hooks in its place.
    
    /**
     * function custom_bookmark_links() - outputs an HTML list of bookmarking links
     * NOTE: This only works when called from inside the WordPress loop!
     * SECOND NOTE: This is really just a sample function to show you how to use custom functions!
     *
     * @since 1.0
     * @global object $post
    */
    
    add_theme_support( 'post-thumbnails' );
    set_post_thumbnail_size( 610, 9999, true );
    add_image_size( 'teaser', 150, 150, true );
    /*---------------------------------*/
    /* WIDGETIZED FOOTER - 3 COLUMNS   */
    /* Mike Nichols - October 17, 2009 */
    /*---------------------------------*/
    
    /*-----------------------------------------*/
    /* register sidebars for widgetized footer */
    if (function_exists('register_sidebar')) {
    	$sidebars = array(1, 2, 3);
    	foreach($sidebars as $number) {
    		register_sidebar(array(
    			'name' => 'Footer ' . $number,
    			'id' => 'footer-' . $number,
    			'before_widget' => '',
    			'after_widget' => '',
    			'before_title' => '<h3>',
    			'after_title' => '</h3>'
    		));
    	}
    }
    
    /*-----------------------*/
    /* set up footer widgets */
    function widgetized_footer() {
    ?>
    	<div id="footer_setup">
    
    		<div class="footer_items">
      	  		<?php if ( !function_exists('dynamic_sidebar') || !dynamic_sidebar('Footer 1') ) : ?>
        		<?php endif; ?>
    		</div>
    
    		<div class="footer_items">
        		<?php if ( !function_exists('dynamic_sidebar') || !dynamic_sidebar('Footer 2') ) : ?>
        		<?php endif; ?>
    		</div>
    
    		<div class="footer_items">
        		<?php if ( !function_exists('dynamic_sidebar') || !dynamic_sidebar('Footer 3') ) : ?>
        		<?php endif; ?>
    		</div>
    
    	</div>
    <?php
    }
    add_action('thesis_hook_footer','widgetized_footer');
    
    function CatNav_wp_menu() {
    if (is_page('16')){
    wp_nav_menu( array('menu' => '217' ));
    }
    }
    add_action('thesis_hook_feature_box','CatNav_wp_menu');
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘T_CONSTANT_ENCAPSED_STRING error’ is closed to new replies.