예제 #1
0
function cw_phone_umber($atts, $content = null)
{
    global $post;
    ob_start();
    echo cw_options_get_option('cwo_phone');
    $temp = ob_get_contents();
    ob_end_clean();
    return $temp;
}
예제 #2
0
?>
 <?php 
bloginfo('name');
?>
, All Rights Reserved.</p>
			</div>
		</div>
	</footer>

	<!-- WP_FOOTER() -->
	<?php 
wp_footer();
?>
	<?php 
// must activate CW Options Page plugin for the line below to work
$ga_code = cw_options_get_option('_cwo_ga');
if (!empty($ga_code)) {
    ?>
	<script type="text/javascript">
		(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
		(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
		m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
		})(window,document,'script','//www.google-analytics.com/analytics.js','ga');

		ga('create', '<?php 
    echo $ga_code;
    ?>
', 'auto');
		ga('send', 'pageview');
	</script>
	<?php 
예제 #3
0
?>
/css/ie.css">
	<![endif]-->
</head>

<body <?php 
body_class();
?>
>
	<header role="banner">
		<div class="nav-container contain-to-grid">
			<nav class="top-bar" data-topbar role="navigation">
				<ul class="title-area">
					<li class="name">
						<?php 
$logo_url = cw_options_get_option('_cwo_logo');
?>
						<h1 class="logo">
							<a href="/" title="<?php 
bloginfo('name');
?>
">
								<?php 
if (!empty($logo_url)) {
    ?>
									<img src="<?php 
    echo $logo_url;
    ?>
" alt="<?php 
    bloginfo('name');
    ?>
예제 #4
0
			<?php 
//get the contact info
$cwo_name = cw_options_get_option('_cwo_name');
$cwo_title = cw_options_get_option('_cwo_title');
$cwo_address1 = cw_options_get_option('_cwo_address1');
$cwo_address2 = cw_options_get_option('_cwo_address2');
$cwo_city = cw_options_get_option('_cwo_city');
$cwo_state = cw_options_get_option('_cwo_state');
$cwo_zip = cw_options_get_option('_cwo_zip');
$cwo_phone = cw_options_get_option('_cwo_phone');
$cwo_phone2 = cw_options_get_option('_cwo_phone2');
$cwo_fax = cw_options_get_option('_cwo_fax');
$cwo_email = cw_options_get_option('_cwo_email');
$cwo_facebook = cw_options_get_option('_cwo_facebook');
$cwo_twitter = cw_options_get_option('_cwo_twitter');
if (!empty($cwo_name)) {
    echo '<h3 class="large-12 columns">' . $cwo_name . '</h3>';
}
if (!empty($cwo_title)) {
    echo '<h4 class="large-12 columns">' . $cwo_title . '</h4>';
}
if (!empty($cwo_address1) || !empty($cwo_address2) || !empty($cwo_city) || !empty($cwo_state) || !empty($cwo_zip) || !empty($cwo_phone) || !empty($cwo_phone2) || !empty($cwo_fax) || !empty($cwo_email) || !empty($cwo_facebook) || !empty($cwo_twitter)) {
    echo '<p>';
}
if (!empty($cwo_address1)) {
    echo $cwo_address1;
}
if (!empty($cwo_address2)) {
    echo '<br>' . $cwo_address2;
}