Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- global $post;
- $pid = $post->ID; //get current post id
- $phoneNumber = get_post_meta($pid, 'header_phone_number', true);
- $cat_id = get_query_var('cat');
- if ($phoneNumber=='') {
- //echo $cat_id;
- $phoneNumber= get_option( "category_header_phone_".$cat_id);
- }
- if ($phoneNumber=='')
- $phoneNumber = '
- <div style="float: left; font-family: BebasNeueRegular,Verdana,Arial,sans-serif; margin-left: 0px; margin-right: 0px; margin-top: 0px;">
- <table width="525px" style="margin-top:-20px;"><tbody>
- <tr>
- <td style="text-align:center;font-size:35px;font-weight:bold; padding-top:0px; height:40px; color:#FF6302;">
- <a href="tel:(646)801-5625">(516) 263-7770‏ </a>
- </td>
- </tr>
- <tr>
- <td style="text-align:center;font-size:35px;font-weight:bold; padding-top:0px; height:40px; color:#FF6302;">
- <a href="tel:(646)801-5625">(646) 801-5625 </a>
- <p style="font-size:26px;font-weight:bold"> LOCKSMITH & ADVANCED SECURITY</p>
- </td>
- </tr>
- </tbody></table></div>
- ';
- else
- $phoneNumber = '
- <div style="float: left; font-family: BebasNeueRegular,Verdana,Arial,sans-serif; margin-left: 0px; margin-right: 0px; margin-top: 0px;">
- <table width="525px" style="margin-top:-20px;"><tbody>
- <tr>
- <td style="text-align:center;font-size:35px;font-weight:bold; padding-top:0px; height:40px; color:#FF6302;">
- <a href="tel:'.$phoneNumber.'">'.$phoneNumber.'</a> <br>
- <p style="font-size:26px;font-weight:bold"> LOCKSMITH & ADVANCED SECURITY</p>
- </td>
- </tr>
- </tbody></table></div>';
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement