| 1 | <?php get_header(); ?> |
|---|
| 2 | |
|---|
| 3 | <div id="site"> |
|---|
| 4 | |
|---|
| 5 | <div id="content"> |
|---|
| 6 | <div id="content2"> |
|---|
| 7 | |
|---|
| 8 | <?php if (is_tag()) { ?> |
|---|
| 9 | <h2>Contacts Tagged with <span class="archived-feature"><?php single_tag_title(); ?></span></h2> |
|---|
| 10 | <?php /* If this is a category archive */ } elseif (is_category()) { ?> |
|---|
| 11 | <h2>Contacts in the <span class="archived-feature"><?php single_cat_title(''); ?></span> category.</h2> |
|---|
| 12 | <?php /* If this is a yearly archive */ } elseif (is_day()) { ?> |
|---|
| 13 | <h2>Contacts added on <span class="archived-feature"><?php the_time('l, F jS, Y'); ?></span></h2> |
|---|
| 14 | <?php /* If this is a monthly archive */ } elseif (is_month()) { ?> |
|---|
| 15 | <h2>Contacts added in <span class="archived-feature"><?php the_time('F, Y'); ?></span></h2> |
|---|
| 16 | <?php /* If this is a yearly archive */ } elseif (is_year()) { ?> |
|---|
| 17 | <h2>Contacts added in <span class="archived-feature"><?php the_time('Y'); ?></span></h2> |
|---|
| 18 | <?php /* If these are search results */ } elseif (is_search()) { ?> |
|---|
| 19 | <h2>Contacts that match '<span class="archived-feature"><?php the_search_query(); ?></span>'</h2> |
|---|
| 20 | <?php /* Anything else that may get through the above filters */ } else {?> |
|---|
| 21 | <h2>Contacts</h2> |
|---|
| 22 | <?php } ?> |
|---|
| 23 | |
|---|
| 24 | <?php $alt = ""; ?> |
|---|
| 25 | <?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?> |
|---|
| 26 | <?php if ($alt == "") { $alt = " alt"; } else { $alt = ""; } ?> |
|---|
| 27 | |
|---|
| 28 | <div class="contact<?php echo $alt; ?>"> |
|---|
| 29 | <span class="m-name"><a href="<?php the_permalink(); ?>"><?php echo get_post_meta($post->ID, "Company", true); ?></a></span> |
|---|
| 30 | <span class="m-email"><?php $has_email = get_post_meta($post->ID, "Email1", true); if ( $has_email == '' ) { echo ' '; } else { ?><a href="mailto:<?php echo get_post_meta($post->ID, "Email1", true); ?>"><?php echo get_post_meta($post->ID, "Email1", true); } ?></a></span> |
|---|
| 31 | <span class="m-mobile"><span><?php echo get_post_meta($post->ID, "Mobile1", true); ?></span> (M)</span> |
|---|
| 32 | </div> |
|---|
| 33 | |
|---|
| 34 | <?php endwhile; else: ?> |
|---|
| 35 | <p><?php _e('Sorry, no posts matched your criteria.'); ?></p> |
|---|
| 36 | |
|---|
| 37 | <?php endif; ?> |
|---|
| 38 | |
|---|
| 39 | </div></div> |
|---|
| 40 | |
|---|
| 41 | <?php get_sidebar(); ?> |
|---|
| 42 | <?php get_footer(); ?> |
|---|