| 1 | <?php |
|---|
| 2 | $var=$_GET['var']; |
|---|
| 3 | if ($var==2) |
|---|
| 4 | { |
|---|
| 5 | require_once ('vcard.php'); |
|---|
| 6 | } |
|---|
| 7 | ?> |
|---|
| 8 | <?php |
|---|
| 9 | get_header(); |
|---|
| 10 | |
|---|
| 11 | ?> |
|---|
| 12 | |
|---|
| 13 | <?php |
|---|
| 14 | |
|---|
| 15 | echo"<div id=\"site_alt\">"; |
|---|
| 16 | echo "<div id=\"contenta\">"; |
|---|
| 17 | echo"<div id=\"contenta2\">"; |
|---|
| 18 | ?> |
|---|
| 19 | <?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?> |
|---|
| 20 | |
|---|
| 21 | <div class="vitals"> |
|---|
| 22 | <a href="<?php the_permalink(); ?>" alt=" |
|---|
| 23 | <?php echo get_post_meta($post->ID, "Company", true); ?>"> |
|---|
| 24 | <img class="contact-picture" src=" |
|---|
| 25 | <?php $wpcm_image_path = get_post_meta($post->ID, "Image", true); |
|---|
| 26 | if ($wpcm_image_path == '') { |
|---|
| 27 | echo bloginfo('template_directory') . '/images/contact-default.png'; } else { |
|---|
| 28 | echo get_post_meta($post->ID, "Image", true); } ?>" alt=" |
|---|
| 29 | <?php echo get_post_meta($post->ID, "Company", true); ?>" style="width:75px;" /></a> |
|---|
| 30 | <p> |
|---|
| 31 | <span class="organization"><?php echo get_post_meta($post->ID, "Company", true); ?></span> |
|---|
| 32 | <span class="name"><a href="http://www.linkedin.com/ns?search=&name=<?php echo get_post_meta($post->ID, "Firstname", true); ?> <?php echo get_post_meta($post->ID, "Surname", true); ?>" target="_blank"><?php echo get_post_meta($post->ID, "Firstname", true); ?> <?php echo get_post_meta($post->ID, "Surname", true); ?></a> | <em><?php echo get_post_meta($post->ID, "Title1", true); ?></em></span> |
|---|
| 33 | <span class="email"><a href="mailto:<?php echo get_post_meta($post->ID, "Email1", true); ?>"><?php echo get_post_meta($post->ID, "Email1", true); ?></a></span> |
|---|
| 34 | <span class="website"><a href="<?php echo get_post_meta($post->ID, "Website1", true); ?>"><?php echo get_post_meta($post->ID, "Website1", true); ?></a></span> |
|---|
| 35 | </p> |
|---|
| 36 | <span class="clearer"></span> |
|---|
| 37 | </div> |
|---|
| 38 | |
|---|
| 39 | <?php |
|---|
| 40 | // Assign the phone numbers to variables and check to see if they exist. |
|---|
| 41 | $wpcm_number_skype = get_post_meta($post->ID, "Skype1", true); |
|---|
| 42 | $wpcm_number_twitter = get_post_meta($post->ID, "Twitter1", true); |
|---|
| 43 | $wpcm_number_office = get_post_meta($post->ID, "Office1", true); |
|---|
| 44 | $wpcm_number_mobile = get_post_meta($post->ID, "Mobile1", true); |
|---|
| 45 | $wpcm_number_fax = get_post_meta($post->ID, "Fax1", true); |
|---|
| 46 | ?> |
|---|
| 47 | |
|---|
| 48 | <div class="phone"> |
|---|
| 49 | <h3 class="site-subtitle">Phone<br />Numbers</h3> |
|---|
| 50 | <ul class="phone-numbers"> |
|---|
| 51 | <?php if ( $wpcm_number_mobile != '' ) { echo '<li><span class="number">' . $wpcm_number_mobile . '</span> (Main)</li>'; } ?> |
|---|
| 52 | <?php if ( $wpcm_number_office != '' ) { echo '<li><span class="number">' . $wpcm_number_office . '</span> (Office)</li>'; } ?> |
|---|
| 53 | <?php if ( $wpcm_number_home != '' ) { echo '<li><span class="number">' . $wpcm_number_home . '</span> (Mobile)</li>'; } ?> |
|---|
| 54 | <?php if ( $wpcm_number_fax != '' ) { echo '<li><span class="number">' . $wpcm_number_fax . '</span> (Fax)</li>'; } ?> |
|---|
| 55 | </ul> |
|---|
| 56 | </div> |
|---|
| 57 | |
|---|
| 58 | <div class="contactlist"> |
|---|
| 59 | <h3 class="site-subtitle">Alternate<br />Contact</h3> |
|---|
| 60 | <ul class="contactlist-numbers"> |
|---|
| 61 | <?php if ( $wpcm_number_skype != '' ) { echo '<li>Skype: <span class="number"><a href="skype:' . $wpcm_number_skype . '?call">' . $wpcm_number_skype . '</a></span></li>'; } ?> |
|---|
| 62 | <?php if ( $wpcm_number_twitter != '' ) { echo '<li>Twitter: <span class="number"><a href="http://twitter.com/' . $wpcm_number_twitter . ' ">' . $wpcm_number_twitter . '</a></span></li>'; } ?> |
|---|
| 63 | </ul> |
|---|
| 64 | </div> |
|---|
| 65 | |
|---|
| 66 | <div class="additional-info"> |
|---|
| 67 | |
|---|
| 68 | <div class="address"> |
|---|
| 69 | <h3 class="site-subtitle">Address<br /> |
|---|
| 70 | <!-- Map --> |
|---|
| 71 | <a href="http://maps.google.com/maps?f=q&hl=en&q= |
|---|
| 72 | <?php echo get_post_meta($post->ID, "City1", true); ?>, |
|---|
| 73 | <?php echo get_post_meta($post->ID, "Country1", true); ?>"> |
|---|
| 74 | Map</a></h3> |
|---|
| 75 | |
|---|
| 76 | <ul class="contactlist-numbers"> |
|---|
| 77 | <li><?php echo get_post_meta($post->ID, "Address1", true); ?></li> |
|---|
| 78 | <li><?php $addresstwo = get_post_meta($post->ID, "Address2", true); if ( $addresstwo != '' ) { echo $addresstwo . '<br/>'; } else {} ?></li> |
|---|
| 79 | <li><?php echo get_post_meta($post->ID, "City1", true); ?> <?php echo get_post_meta($post->ID, "State1", true); ?> <?php echo get_post_meta($post->ID, "Zip1", true); ?>, <?php echo get_post_meta($post->ID, "Country1", true); ?></li> |
|---|
| 80 | </ul> |
|---|
| 81 | </div> |
|---|
| 82 | |
|---|
| 83 | <!-- |
|---|
| 84 | Use the <div> <h3 class="site-subtitle"> </h3> <p> </p> </div> format |
|---|
| 85 | for best results in adding additional fields. |
|---|
| 86 | --> |
|---|
| 87 | |
|---|
| 88 | </div> |
|---|
| 89 | |
|---|
| 90 | <div class="extra"> |
|---|
| 91 | |
|---|
| 92 | <div class="notes"> |
|---|
| 93 | <!-- The "related-contacts" div floats to the upper right of the additional notes section.--> |
|---|
| 94 | <h3 class="site-subtitle">Company Profile</h3> |
|---|
| 95 | <div style="text-align:justify;"><?php the_content(); ?></div> |
|---|
| 96 | <div class="extra"></div><br /> |
|---|
| 97 | |
|---|
| 98 | <div class="subcontent"> |
|---|
| 99 | <span>Staff</span> |
|---|
| 100 | <p><?php echo get_post_meta($post->ID, "Staff1", true); ?></p> |
|---|
| 101 | |
|---|
| 102 | <span>Countries of Operation</span> |
|---|
| 103 | <p><?php echo get_post_meta($post->ID, "Operations1", true); ?></p> |
|---|
| 104 | |
|---|
| 105 | <span>Country of Origin</span> |
|---|
| 106 | <p><?php echo get_post_meta($post->ID, "Origin1", true); ?></p> |
|---|
| 107 | <?php |
|---|
| 108 | function curPageURL() { |
|---|
| 109 | $pageURL = 'http'; |
|---|
| 110 | if ($_SERVER["HTTPS"] == "on") {$pageURL .= "s";} |
|---|
| 111 | $pageURL .= "://"; |
|---|
| 112 | if ($_SERVER["SERVER_PORT"] != "80") { |
|---|
| 113 | $pageURL .= $_SERVER["SERVER_NAME"].":".$_SERVER["SERVER_PORT"].$_SERVER["REQUEST_URI"]; |
|---|
| 114 | } else { |
|---|
| 115 | $pageURL .= $_SERVER["SERVER_NAME"].$_SERVER["REQUEST_URI"]; |
|---|
| 116 | } |
|---|
| 117 | return $pageURL; |
|---|
| 118 | } |
|---|
| 119 | ?> |
|---|
| 120 | |
|---|
| 121 | |
|---|
| 122 | <?php |
|---|
| 123 | |
|---|
| 124 | $url= curPageURL(); |
|---|
| 125 | |
|---|
| 126 | |
|---|
| 127 | echo "<p>"; |
|---|
| 128 | $var=2; |
|---|
| 129 | $page=$_GET['url']; |
|---|
| 130 | |
|---|
| 131 | |
|---|
| 132 | echo" <a href='$url/?var=$var ' >" ; |
|---|
| 133 | echo "<img src='http://appfrica.net/afridex/img/hcard.gif'></a>"; |
|---|
| 134 | echo "</p>"; |
|---|
| 135 | |
|---|
| 136 | |
|---|
| 137 | ?> |
|---|
| 138 | </div> |
|---|
| 139 | |
|---|
| 140 | <div class="subcontent_side"> |
|---|
| 141 | <span>Industry Sector</span> |
|---|
| 142 | <p><?php echo get_post_meta($post->ID, "Sector", true); ?></p> |
|---|
| 143 | |
|---|
| 144 | <span>Partners</span> |
|---|
| 145 | <p><?php echo get_post_meta($post->ID, "Partners1", true); ?></p> |
|---|
| 146 | |
|---|
| 147 | <span>Subsidiaries</span> |
|---|
| 148 | <p><?php echo get_post_meta($post->ID, "Subsidy1", true); ?></p> |
|---|
| 149 | |
|---|
| 150 | <span>Parent Organization</span> |
|---|
| 151 | <p><?php echo get_post_meta($post->ID, "Parent1", true); ?></p> |
|---|
| 152 | </div> |
|---|
| 153 | </div> |
|---|
| 154 | |
|---|
| 155 | <div class="contact-tags"><?php the_tags('<span>TAGS: </span>',', ',''); ?></div> |
|---|
| 156 | |
|---|
| 157 | </div> |
|---|
| 158 | |
|---|
| 159 | <span class="clearer"></span> |
|---|
| 160 | |
|---|
| 161 | <?php endwhile; else: ?> |
|---|
| 162 | |
|---|
| 163 | <p> |
|---|
| 164 | <?php _e('Sorry, nothing matched your criteria.'); ?> |
|---|
| 165 | </p> |
|---|
| 166 | <?php endif; ?> |
|---|
| 167 | |
|---|
| 168 | </div></div> |
|---|
| 169 | <?php include('singleleft_bar.php') ?> |
|---|
| 170 | <?php include('singleright_bar.php') ?> |
|---|
| 171 | </div> |
|---|
| 172 | |
|---|
| 173 | |
|---|
| 174 | |
|---|
| 175 | |
|---|
| 176 | |
|---|