Hi everyone,

New to PHP and making slight changes to the text on the index.php page today I had this error come up when updating the file. I have looked at previous posts about missing ";" but I can't see where one needs to go. It came up with the following error message:

Parse error: syntax error, unexpected T_STRING in /homepages/14/d357759173/htdocs/wp-content/themes/display/index.php on line 63

If anyone can help it would be greatly appreciated!!!

<?php get_header(); ?>

    <div id="featured">
        <div id="featured_image"><?php 
        ######################################################################
        # Get Images for the Basic Image Slider
        ######################################################################

        // these are the images for the jQuery slideshow, rendered with the help of the class 
        // framework/theme_plugins/kriesi_menu_manager/kriesi_slider_display

        if(is_object($k_option['custom']['slider'])) $k_option['custom']['slider']->display('Mainpage Slider'); ?>

        </div><!--end featured_image-->
    </div><!--end featured-->


        <?php 
        ######################################################################
        # Infotext with fallback message 
        ######################################################################
        ?>
        <div id="infotext">
        <h2><?php echo $k_option['mainpage']['welcome']; ?></h2>
        </div><!--end infotext-->


        <div id="main">

        <?php 

        ######################################################################
        # 3 Boxes are created here, with the class "kclass_display_box" (located in framework/classes/)
        # content that is passed here is the html output if the
        # "output by html(default)" is choosen in the backend
        #
        # if you want to edit the html directly you can do this here. you can 
        # enter your images directly as well if the size is already ok
        # or you might want to uncomment and change the paths of the placeholder 
        # images i used here
        #
        ######################################################################

        // the kriesi_build_image function used here checks if the image should be resized. 
        // it returns the resized image if the size is larger than the parameters provided
        // the function is located in framework/helper_functions

        $placeholder_image1 = get_bloginfo('template_url').'/files/medium1.jpg'; 
        $placeholder_image2 = get_bloginfo('template_url').'/files/medium2.jpg';
        $placeholder_image3 = get_bloginfo('template_url').'/files/medium3.jpg';

        $placeholder_image1 = kriesi_build_image(array('url'=>$placeholder_image1,'height'=>'124','width'=>'280'));
        $placeholder_image2 = kriesi_build_image(array('url'=>$placeholder_image2,'height'=>'124','width'=>'280'));
        $placeholder_image3 = kriesi_build_image(array('url'=>$placeholder_image3,'height'=>'124','width'=>'280'));


        $placeholder[1] = $placeholder_image1.'<p align="justify">Federations, leagues, clubs, events, associations, ...<br/></p><p align="justify">Do you wish to <b>increase your fame on the [COLOR="red"]Internet</b>, <b>promote your events</b> or <b>develop your merchandising</b> ?</p>[/COLOR][CODE][/CODE]
        <a href="http://www.feelinsport.com/sports-institutions-and-organizations"><b>Discover our solutions</b></a>';

        $placeholder[2] = $placeholder_image2.'<p align="justify">Athletes, semi-professionnals, sports personnalities, ...<br/></p><p align="justify">Do you wish to <b>protect your online reputation</b>, <b>develop your fame on the Internet</b> or <b>find new sponsors</b> ?</p>        
        <a href="http://www.feelinsport.com/athletes-and-sports-personalities"><b>Discover our solutions</b></a>';

        $placeholder[3] = $placeholder_image3.'<p align="justify">Sports agents, sponsors, communication and sports marketing agencies, ...<br/></p><p align="justify">Do you wish to <b>increase your customer\'s fame</b>, <b> to protect their e-reputation</b> and <b> to profit from the web's marketing</b> ?</p>
        <a href="http://www.feelinsport.com/sponsors-and-services-providers"><b>Discover our solutions</b> </a>';

        //call class
        $boxes = new kclass_display_box('mainpage','mainpage_column','Mainpage Column', $placeholder);
        $boxes-> prev_image(array('height'=>'124','width'=>'280'));
        $boxes-> display();
        ?>


        </div><!--end main-->

<?php get_footer(); ?>
Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.