<?php get_header();  if (have_posts()): ?>
<div id="maincontent">

<div id="SearchResults">
	<h1>Search results for <strong>'<?php the_search_query(); ?>'</strong></h1>
	<p>You have searched <a href="<?php echo bloginfo('url'); ?>/"><?php echo bloginfo('name'); ?></a> for <strong>'<?php the_search_query(); ?>'</strong>.<br />
    There are <?php /* Search Count */ $allsearch = &new WP_Query("s=$s&showposts=-1"); $key = wp_specialchars($s, 1); $count = $allsearch->post_count; _e(''); _e('<strong>'); echo $count . ' '; _e('</strong> contact(s) listed below.'); wp_reset_query(); ?></p>
</div>

<?php // Only Show Contact Data Table if Front End Editor Plugin is enabled.
$plugins = get_option('active_plugins');
$required_plugin = 'front-end-editor/front-end-editor.php';
$debug_queries_on = FALSE;
if ( in_array( $required_plugin , $plugins ) ) { ?>
	<?php do_action('precontactdt'); ?>
	<div id="contacttable">
		<?php require("media/require/contacttable.php"); ?>
		<div style="margin:25px 0"><?php get_search_form(); ?></div>
	</div>
	<?php do_action('postcontactdt'); ?>
<?php }
else { _e('<div class="error">Warning! The required plugin <a href="http://wordpress.org/extend/plugins/front-end-editor/">Front End Editor</a> is not active.<br />Please activate this plugin before using Driftwood.</div>'); }
?>

	<?php else: ?>
	<p class="SearchResults-none">Your search for <strong>'<?php the_search_query(); ?>'</strong> has turned up <strong>0</strong> results.<br />You can try the <a href="<?php echo bloginfo('url'); ?> /">Contact Index</a> or perhaps adjust your spelling.</p>
    <div class="marginB30"></div>
	<?php endif; ?>

</div>  <!-- div clss=maincontent -->
<?php  get_footer(); ?>