Advertisement
Guest User

Untitled

a guest
Sep 28th, 2011
54
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.47 KB | None | 0 0
  1. <?php
  2. /**
  3. * Template Name: Contact Two Column
  4. * Description: A two column page
  5. *
  6. * @package WordPress
  7. * @subpackage sagerrecruiting
  8. */
  9. get_header();
  10.  
  11. $page = get_page($post->ID);
  12.  
  13. $custom_fields = get_post_custom();
  14. $email = $custom_fields['email'][0];
  15. $phone = $custom_fields['phone'][0];
  16. $linkedin = $custom_fields['LinkedIn'][0];
  17.  
  18. ?>
  19. <div id="dvContactWrapper">
  20. <div id="dvContactLeft">
  21. <div class="contacttitle">Contact Information</div>
  22. <table class="contactinformation">
  23. <?php if ($phone != ""){ ?>
  24. <tr>
  25. <td class="tdtitle">phone</td>
  26. <td><?php echo $phone ?></td>
  27. </tr>
  28. <?php
  29. }if ($email != ""){
  30. ?>
  31. <tr>
  32. <td class="tdtitle">email</td>
  33. <td><?php echo $email; ?></td>
  34. </tr>
  35. <?php
  36. }if ($linkedin != "") {
  37. ?>
  38. <tr>
  39. <td></td>
  40. <td class="contactlinkedin"><a href="<?php echo $linkedin; ?>"><img src="<?php bloginfo( 'template_directory' );?>/images/icon_linkedin.gif" alt="" />Connect on LinkedIn</a></td>
  41. </tr>
  42. <?php } ?>
  43. </table>
  44. </div>
  45.  
  46. <div id="dvContactRight">
  47. <div class="contacttitle">Send a Message</div>
  48. <?php if ( have_posts() ) : while ( have_posts() ) : the_post(); endwhile; endif;?>
  49. </div>
  50. <br style="clear:both;" />
  51. </div>
  52. <?php get_footer(); ?>
  53.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement