Created
December 15, 2014 20:30
-
-
Save daliborgogic/edbdeb1cd1204586fe5c to your computer and use it in GitHub Desktop.
lol
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!-- nav --> | |
<nav class="nav visualyHidden" role="navigation"> | |
<div class="w700 clear"> | |
<img class="showNav second" src="<?php echo get_template_directory_uri(); ?>/img/logo.svg" onerror="this.src='<?php echo get_template_directory_uri(); ?>/img/logo.png'; this.onerror=null;" width="40" height="40" alt=""> | |
</div> | |
<?php //html5blank_nav(); ?> | |
<ul> | |
<li><a href="<?php echo home_url(); ?>"><?php the_field('anchor_home'); ?></a></li> | |
<li><a href="#<?php echo str_replace(' ','-', strtolower(get_field('anchor_about'))); ?>"><?php the_field('anchor_about'); ?></a></li> | |
<li><a href="#<?php echo str_replace(' ','-', strtolower(get_field('anchor_outsourcing')));; ?>"><?php the_field('anchor_outsourcing'); ?></a></li> | |
<li><a href="#<?php echo str_replace(' ','-', strtolower(get_field('anchor_reference'))); ?>"><?php the_field('anchor_reference'); ?></a></li> | |
<li><a href="#<?php echo str_replace(' ','-', strtolower(get_field('anchor_team'))); ?>"><?php the_field('anchor_team'); ?></a></li> | |
<li><a href="#<?php echo str_replace(' ','-', strtolower(get_field('anchor_contact'))); ?>"><?php the_field('anchor_contact'); ?></a></li> | |
</ul> | |
<div class="smallFooter"> | |
<div class="social"> | |
<?php if( get_field('facebook', 'option') ): ?> | |
<a href="<?php the_field('facebook', 'option'); ?>"> | |
<img src="<?php echo get_template_directory_uri(); ?>/img/facebook.svg" onerror="this.src='<?php echo get_template_directory_uri(); ?>/img/facebook.png'; this.onerror=null;" width="20" height="20" alt="Facebook"> | |
</a> | |
<?php endif; ?> | |
<?php if( get_field('instagram', 'option') ): ?> | |
<a href="<?php the_field('instagram', 'option'); ?>"> | |
<img src="<?php echo get_template_directory_uri(); ?>/img/instagram.svg" onerror="this.src='<?php echo get_template_directory_uri(); ?>/img/instagram.png'; this.onerror=null;" width="20" height="20" alt="Facebook"> | |
</a> | |
<?php endif; ?> | |
<?php if( get_field('twitter', 'option') ): ?> | |
<a href="<?php the_field('twitter', 'option'); ?>"> | |
<img src="<?php echo get_template_directory_uri(); ?>/img/twitter.svg" onerror="this.src='<?php echo get_template_directory_uri(); ?>/img/twitter.png'; this.onerror=null;" width="20" height="20" alt="Twitter"> | |
</a> | |
<?php endif; ?> | |
</div><!-- /social --> | |
</div><!-- smallFooter --> | |
</nav> | |
<!-- /nav --> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment