Skip to content

Instantly share code, notes, and snippets.

@daliborgogic
Created December 15, 2014 20:30
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save daliborgogic/edbdeb1cd1204586fe5c to your computer and use it in GitHub Desktop.
Save daliborgogic/edbdeb1cd1204586fe5c to your computer and use it in GitHub Desktop.
lol
<!-- 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