Parse error: syntax error, unexpected $end in
-
Hi all,
I have this problem in my wordpress, I hope all sifu can help me :
Parse error: syntax error, unexpected $end in /home/abc/domains/blog.e-abc.com/public_html/index.php on line 258
My code in index.php as follows :
<?php /* Template Name: Home Page Option 1 */ ?> <?php get_header(); ?> <div id="page" class="clearfix"> <div id="contentleft"> <?php if ( $paged < 2 ) { // Do stuff specific to first page?> <?php include (TEMPLATEPATH . '/features.php'); ?> <div id="content"> <div class="home-post-list-2"> <?php include (TEMPLATEPATH . '/banner468.php'); ?> <h3 class="home-post-list">Other Recent Articles</h3> <?php if (have_posts()) : while (have_posts()) : the_post(); if( $post->ID == $do_not_duplicate[$post->ID] ) continue; ?> <?php $post_class = ('home-post-1' == $post_class) ? 'alt-home-post-1' : 'home-post-1'; ?> <div class="<?php echo $post_class; ?>" id="post-<?php the_ID(); ?>"> <div class="entry clearfix"> <?php if (get_post_meta($post->ID, post_thumbnail)) { ?> <a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title(); ?>"><img src="<?php echo get_post_meta($post->ID, post_thumbnail, true); ?>" class="post-thum" alt="post thumbnail" /></a> <?php } else { ?> <a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title(); ?>"><img src="<?php bloginfo('stylesheet_directory'); ?>/images/def-thumb.gif" class="post-thum" alt="post thumbnail" /></a> <?php } ?> <h2 class="home-list"><a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title(); ?>"><?php the_title(); ?></a></h2> <?php the_excerpt(); ?> <?php the_time('jMY') ?> | <?php the_author_posts_link(); ?> | <?php comments_popup_link('0 comments', '1 comment', '% comments'); ?> | <a class="more-link" href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title(); ?>">Continued</a> </div> </div> <?php endwhile; endif; ?> <?php include (TEMPLATEPATH . '/bot-nav.php'); ?> </div> <?php } else { // Do stuff specific to non-first page ?> <div id="content"> <div class="home-post-list-2"> <h3 class="home-post-list">Other Recent Articles</h3> <?php if (have_posts()) : while (have_posts()) : the_post(); if( $post->ID == $do_not_duplicate[$post->ID] ) continue; ?> <?php $post_class = ('home-post-1' == $post_class) ? 'alt-home-post-1' : 'home-post-1'; ?> <div class="<?php echo $post_class; ?>" id="post-<?php the_ID(); ?>"> <div class="entry clearfix"> <?php if (get_post_meta($post->ID, post_thumbnail)) { ?> <a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title(); ?>"><img src="<?php echo get_post_meta($post->ID, post_thumbnail, true); ?>" class="post-thum" alt="post thumbnail" /></a> <?php } else { ?> <a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title(); ?>"><img src="<?php bloginfo('stylesheet_directory'); ?>/images/def-thumb.gif" class="post-thum" alt="post thumbnail" /></a> <?php } ?> <h2 class="home-list"><a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title(); ?>"><?php the_title(); ?></a></h2> <?php the_excerpt(); ?> <?php the_time('jMY') ?> | <?php the_author_posts_link(); ?> | <?php comments_popup_link('0 comments', '1 comment', '% comments'); ?> | <a class="more-link" href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title(); ?>">Continued</a> </div> </div> <?php endwhile; endif; ?> <?php include (TEMPLATEPATH . '/bot-nav.php'); ?> </div> <?php } ?> <?php include (TEMPLATEPATH . '/midcontent.php'); ?> <?php get_sidebar(); ?> <?php get_footer(); ?>
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
The topic ‘Parse error: syntax error, unexpected $end in’ is closed to new replies.