Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php if(have_posts()) : while(have_posts()) : the_post(); ?>
- <?php
- if ($post->post_parent != 0) {
- $parent = $post->post_parent;
- echo ('<h4 style="display:none;"><a href="'. $parent_link .'">' . $parent_title . '</a></h4>'); ?>
- <h2><a href="<?php the_permalink(); ?>" title="<?php the_title(); ?>"></a></h2>
- <? } else { ?>
- <?php
- $header_image = get_post_meta($post->ID, 'header_image', true);
- $header_text = get_post_meta($post->ID, 'header_text', true);
- if ($header_image && $header_text) { ?>
- <div style="background-image:url(<? echo $header_image ?>);" id="banner">
- <? echo $header_text ?>
- </div>
- <?php } else { ?>
- <h2><?php the_title(); ?></h2>
- <?php } ?>
- <? } ?>
- <div class="separator"></div>
- <?php the_content(); ?>
- <?php endwhile ?>
- <?php else : ?>
- <h2 class="center">Not Found</h2>
- <p class="center">Sorry, but you are looking for something that isn't here.</p>
- <?php include (TEMPLATEPATH . '/searchform.php'); ?>
- <?php endif; ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement