Wordpress Themes - WP Forum at BFA

Wordpress Themes - WP Forum at BFA (http://forum.bytesforall.com/index.php)
-   Plugins & Atahualpa (http://forum.bytesforall.com/forumdisplay.php?f=16)
-   -   Need Help with Main Index Template Code (http://forum.bytesforall.com/showthread.php?t=13147)

jdv Mar 4, 2011 03:52 PM

Need Help with Main Index Template Code
 
I tried deleting a plug in "smooth slider" on my main index template and now my page will not load. Please help! :confused:

I got this error message:

syntax error, unexpected $end in /home7/danamand/public_html/ca/wp-content/themes/atahualpa/index.php on line 73

Here is the code that got messed up: (I tried deleting and then reinserting the smooth slider code and must have placed it back in the wrong place).:(


<?php # error_reporting(-1);
list($bfa_ata, $cols, $left_col, $left_col2, $right_col, $right_col2, $bfa_ata['h_blogtitle'], $bfa_ata['h_posttitle']) = bfa_get_options();
get_header();
extract($bfa_ata);


if (have_posts()) : $bfa_ata['postcount'] = 0; /* Postcount needed for option "XX first posts full posts, rest excerpts" */ ?>
</style>
<style>

if (have_posts()) : $bfa_ata['postcount'] = 0; /* Postcount needed for option "XX first posts full posts, rest excerpts" */ ?>
display:none !important;
}


<?php /* If there are any posts: */if ( function_exists( 'get_smooth_slider' ) ) { get_smooth_slider(); }
if (have_posts()) : $bfa_ata['postcount'] = 0; /* Postcount needed for option "XX first posts full posts, rest excerpts" */ ?>

<?php include 'bfa://content_above_loop'; ?>

<?php while (have_posts()) : the_post(); $bfa_ata['postcount']++; ?>

<?php include 'bfa://content_inside_loop'; ?>
<div class="program_metadata">


<h4><?php $post_type = $post->post_type; ?></h4>

<?php if($post_type == "program") : ?>

<?php $meta = get_post_custom($post_id); ?>


<?php
if ( $meta['address'][0] ) {$addr = $meta['address'][0] ;}
if ( $meta['parentorganization'][0] ) { $parent = $meta['parentorganization'][0];}

if ( $meta['type'][0] ) {$type = $meta['type'][0];}

if ( $meta['phone'][0] ) {$phone = $meta['phone'][0];}

if ( $meta['organizertitle'][0] && $meta['name'][0] ) {$organizer = $meta['organizertitle'][0] . ': ' . $meta['name'][0] ;}

if ( $meta['studentcount'][0] ) {$student = $meta['studentcount'][0] ;}
if ( $meta['url'][0] ) {$url = $meta['url'][0];}

if ( $meta['faddress'][0] ) {$faddress = $meta['faddress'][0] ;}

?>

<p><a href="<?php echo $url; ?>"><?php echo $parent; ?></a></p>
<p>Type: <?php echo $type; ?></p>
<p>Contact: <?php echo $organizer; ?></p>
<p>Phone: <?php echo $phone; ?></p>
<p><?php echo $faddress; ?></p>
<p>Number of students: <?php echo $student; ?></p>
</div>
<?php endif; /* END of: if this is a program */ ?>
<?php endwhile; ?>


<?php //include 'bfa://content_below_loop'; ?>
<?php /* END of: If there are any posts */
else : /* If there are no posts: */ ?>

<?php include 'bfa://content_not_found'; ?>

<?php endif; /* END of: If there are no posts */ ?>

<?php # center_content_bottom does not exist
# if ( $bfa_ata['center_content_bottom'] != '' ) include 'bfa://center_content_bottom'; ?>

<?php get_footer(); ?>


All times are GMT -6. The time now is 07:35 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.