Posts: 3,621
Name: Thierry
Location: I'm the uber Spaminator !
|
I cannot see by the eye why, but something is confusing the PHP engine.
I just reformatted a bit your code by replacing the "end php code" / "begin php code" to have everything in 1 lock, and no more problems.
PHP Code:
<?php // include page-specific scripts first // just echo content if nothing specific
// about if(is_page('2')) { echo <<<html <div class="section no-margin"> <div id="tweet"> <div id="stats"> <p>Name: <span class="highlight">Matt Pealing</span><br /> Born: <span class="highlight">31/03/1986</span><br /> Location: <span class="highlight">Ellesmere Port, North West UK</span><br /> Occupation: <span class="highlight">Freelance Designer / Developer</span></p> </div> <div> <p> html; twitter_messages('pealo86'); echo <<<html </p> <p><a href="http://www.twitter.com/pealo86"><img src="http://twitter-badges.s3.amazonaws.com/follow_me-b.png" alt="Follow pealo86 on Twitter"/></a> </p> </div> </div> </div> html; the_content(); } // cool stuff elseif(is_page('16')) { $src=bloginfo('template_url'); echo "<img src='$src/image/content-cool-stuff.gif' />"; the_content(); } // contact elseif (is_page('18')) { the_content(); include (TEMPLATEPATH . '/include/contact/result.php'); include (TEMPLATEPATH . '/include/contact/process.php'); include (TEMPLATEPATH . '/include/contact/frm-contact.php'); } else { the_content(); }
?>
__________________
Only a biker knows why a dog sticks his head out the window.
|