Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- /**
- * Template Name: Contact Two Column
- * Description: A two column page
- *
- * @package WordPress
- * @subpackage sager
- */
- get_header();
- $page = get_page($post->ID);
- $custom_fields = get_post_custom();
- $email = $custom_fields['email'][0];
- $phone = $custom_fields['phone'][0];
- $linkedin = $custom_fields['LinkedIn'][0];
- ?>
- <div id="dvContactWrapper">
- <div id="dvContactLeft">
- <div class="contacttitle">Contact Information</div>
- <table class="contactinformation">
- <?php if ($phone != ""){ ?>
- <tr>
- <td class="tdtitle">phone</td>
- <td><?php echo $phone ?></td>
- </tr>
- <?php
- }if ($email != ""){
- ?>
- <tr>
- <td class="tdtitle">email</td>
- <td><?php echo $email; ?></td>
- </tr>
- <?php
- }if ($linkedin != "") {
- ?>
- <tr>
- <td></td>
- <td class="contactlinkedin"><a href="<?php echo $linkedin; ?>"><img src="<?php bloginfo( 'template_directory' );?>/images/icon_linkedin.gif" alt="" />Connect on LinkedIn</a></td>
- </tr>
- <?php } ?>
- </table>
- </div>
- <div id="dvContactRight">
- <div class="contacttitle">Send a Message</div>
- <?php the_content(); ?>
- </div>
- <br style="clear:both;" />
- </div>
- <?php get_footer(); ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement