Ejemplo n.º 1
0
})(window,document,'script','dataLayer','GTM-PPMZHS');</script>
<!-- End Google Tag Manager -->

<header id="header">
	   <div id="head-top">
	    	<div class="row">
	    		<div class="twelve columns">
	    			<nav id="state-nav">	    				
				    	<ul id="states">
				    		<li class="uppercase">I want to incorporate in:</li>
				    	<?php 
// Set the variables we need
$is_Florida = incnow_is_state('FL');
$is_Nevada = incnow_is_state('NV');
$state_name = get_the_title(incnow_get_state_id());
$state_code = get_field('state_abbreviation', incnow_get_state_id());
echo '<li><a ' . (!$is_Florida && !$is_Nevada && strlen($state_code) != 2 ? 'class="active" ' : '') . 'href="/">Delaware</a></li>';
echo '<li><a ' . ($is_Florida ? 'class="active" ' : '') . 'href="/florida/">Florida</a></li>';
echo '<li><a ' . ($is_Nevada ? 'class="active" ' : '') . 'href="/nevada/">Nevada</a></li>';
?>
				    		
				    	</ul>

			   		</nav>
			    	
			    </div>
	    	</div>
	    </div>


	    <div class="row">
Ejemplo n.º 2
0
<?php

/**
 * The template used for displaying did you know content
 */
$state_name = get_the_title(incnow_get_state_id());
// Safe to use, as long as we're consistent.
?>

	<div class="did-you-know blue row" style="margin-bottom: 30px;">
		<div class="seven columns">
			<h5>Did You Know?</h5>
			<?php 
/*
 * First, check for custom content added to this particular page. If none, grab the default.
 */
if (get_field('dyk_content')) {
    echo '<p>' . the_field('dyk_content') . '</p>';
} else {
    ?>
			
				<p>
					<?php 
    echo incnow_get_page_option('state_dyk_content');
    ?>
					<a href="/why-incorporate-in-delaware/">Learn More</a>
				</p> 
				
			<?php 
}
?>