Problem with endif statement (I think

Hi,

I have a problem with my website www.filmogmedie.dk

Notice the three top columns (those with orange hover) - they need to link which they do properly. But somehow, the link from the last column (the one to the right) gets linked to AGAIN in the element below (the one where it says “Hvad er Film- og Medievidenskab?” in large black Georgia). Looking at my html code, it says: [code]

[/code]

It is all of the strange <a href=“bror” <="" a=""> which needs to be removed somehow, but I dont know how to do it.

The php code for the index is included below, but I think is has something to do with the section called “Home Page 3 Columns”:

[php]<?php
$stage_option = ($super_options[SN."_stage_option"]!="") ? $super_options[SN."_stage_option"] : “Slider”;
$sidebar = ($super_options[SN."_home_layout"]!="") ? $super_options[SN."_home_layout"] : “full-width”;

$post_type = ($super_options[SN."_home_scroll_post"]!="") ? $super_options[SN."_home_scroll_post"] : “post”;

get_header();
?>

<?php if($super_options[SN."_home_top_columns_enable"]=="true") : ?>
 <?php for($i=1;$i<4;$i++) : ?>
<div class="one_third <?php if($i==3) echo 'one_third_last'; ?>"><a href="<?php echo $super_options[SN."_home_column{$i}_button_link"]; ?>"</a>
<?php if($super_options[SN."_home_column{$i}_image"]!="")echo "stage-image"; ?>

<?php echo $helper->customFormat($super_options[SN."_home_column{$i}_title"]); ?>

<?php echo $helper->customFormat($super_options[SN."_home_column{$i}_text"]); ?>

<?php endfor; ?>
    <?php 
	
	switch($stage_option)
	{
		case "Slider" : 
		 
		 $sliders = unserialize(get_option(SN."_sliders"));
         $slider = $sliders[$super_options[SN."_home_slider"]]; 
		
		 $home_slider = new Orion(
		       $slider["title"],"homeslider",
			   $slider["width"],$slider["height"],
			   $slider["type"],'',$slider['controls'],
			   $slider['autoplay'],$slider['slides'],
			   ( ((int)$slider["interval"] ) * 1000 )
			   ,$slider["desc"]
			   );
         echo '<div class="homepage-slider preload">'.$home_slider->getSlider()."</div>";
		 break;
		 
		 case "Static Image" :  
		 $image = $helper->getMUFix($super_options[SN."_home_static_image"]);
		 echo '<div class="homepage-static-image">'.$helper->imageDisplay($image,350,980,true,$super_options[SN."_home_static_image"],1,false,'','',false)."</div>";
		 break;
		 
		 case "Title" :  
		 $title = stripslashes($super_options[SN."_home_title"]);
		 echo '<h1 class="custom-font">'.$title."</h1>";
		 break;
		 
		 case "Half Text half Staged Image" : 
		 $image = $helper->getMUFix($super_options[SN."_home_staged_image"]);
		 ?>
		<h2  class="custom-font"></h2>
        <div class="description">
        <h2  class="custom-font"><?php echo stripslashes($super_options[SN."_home_staged_title"]) ?></h2>
        <?php echo $helper->customFormat($super_options[SN."_home_staged_text"]) ?>
        </div>
        
        <div class="imageholder">
			<object width="550" height="309"><param name="allowfullscreen" value="true" /><param name="allowscriptaccess" value="always" /><param name="movie" value="http://vimeo.com/moogaloop.swf?clip_id=31741983&amp;server=vimeo.com&amp;show_title=0&amp;show_byline=0&amp;show_portrait=0&amp;color=f25c05&amp;fullscreen=1&amp;autoplay=0&amp;loop=0" /><embed src="http://vimeo.com/moogaloop.swf?clip_id=31741983&amp;server=vimeo.com&amp;show_title=0&amp;show_byline=0&amp;show_portrait=0&amp;color=f25c05&amp;fullscreen=1&amp;autoplay=0&amp;loop=0" type="application/x-shockwave-flash" allowfullscreen="true" allowscriptaccess="always" width="550" height="309"></embed></object>
        </div>
		 
		 
		 <?php break;
		 
	}
	
	?>
    
    
    
</div> <!--  End of Parent Slider Container -->
<?php endif; ?> <?php if($super_options[SN."_home_rp_enable"]=="true") : ?>
 <?php 
 $post_type = $super_options[SN."_home_rp_post"];
  wp_reset_query();
 $popPosts = new WP_Query();
 $popPosts->query('post_type='.$post_type.'&posts_per_page=3'); 
 $i =0;
 while ($popPosts->have_posts()) : $popPosts->the_post();  $more = 0; ?>
 <div class="one_fourth<?php if($i==2) echo "_last"; ?>">
 <?php if (  (function_exists('has_post_thumbnail')) && (has_post_thumbnail())  ) : /* if post has post thumbnail */ ?>
  <div class="image">
  <?php 
        $id = get_post_thumbnail_id();
        $ar = wp_get_attachment_image_src( $id , array(9999,9999) );
        echo $helper->imageDisplay( $helper->getMUFix($ar[0])  ,  104 , 218 , true , $ar[0]  ); 
  ?>
  </div><!--image-->
  <?php endif; ?>

  <div class="description">
	<h3 class="custom-font"><a href="<?php the_permalink(); ?>"><?php $helper->shortenContent(60,strip_shortcodes( get_the_title() )); ?></a></h3>
    <span class="extra-info custom-font"> <?php echo get_the_date('M,d,Y'); ?> </span>
     <a href="<?php the_permalink(); ?>" class="more"> More </a>
  </div><!--details-->
  
 </div>
 <?php $i++; endwhile; ?>
   
</div>
<?php endif; ?> <?php if($super_options[SN."_blurb_enable"]=="true") : if($super_options[SN."_blurb_button_link"]=="Disable") $cl = 'full-width'; else $cl = 'hasButton'; $blink = ''; switch($super_options[SN."_blurb_button_link"]) { case "Custom link" : $blink = $super_options[SN."_blurb_custom_link"]; break; default : $blink = $super_options[SN."_blurb_link"]; break; } ?>

<?php echo $helper->customFormat($super_options[SN."_blurb_text"]); ?>

<?php if($super_options[SN."_blurb_button_link"]!="Disable") : ?>

<?php echo $super_options[SN."_blurb_button_label"]; ?>

<?php endif; ?>
<?php endif; ?>
<div class="<?php if($sidebar!="full-width") echo "two-third-width"; else echo "full-width";  ?> home-editor-content" id="main-content">
	 <?php echo get_option("hades_home_text"); ?>
     
    <div class="home-widgets preload clearfix">
       
       <div class="home-sidebar  clearfix"><?php dynamic_sidebar ('Home Bottom Widget Area 1');  ?></div>
       <div class="home-sidebar no-margin-right clearfix"><?php dynamic_sidebar ('Home Bottom Widget Area 2');  ?></div>
   
    </div>
<?php wp_reset_query(); if($sidebar!="full-width") : ?>
<div class="sidebar" id="sidebar"><!-- start of one-third column -->

    <?php   
    $dsidebar = $super_options[SN."_home_sidebar"];
    
   if ( trim($dsidebar)!=""  ) 
    dynamic_sidebar ($dsidebar); 
   else  
    dynamic_sidebar ("Blog Sidebar"); 

?>

<?php endif; ?>
<?php get_footer(); ?>[/php]
Sponsor our Newsletter | Privacy Policy | Terms of Service