Last active
September 23, 2015 03:35
-
-
Save ibndawood/b3c56034a88c37e8aab8 to your computer and use it in GitHub Desktop.
Overriding bethlehem navigation links
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
<?php | |
function bethlehem_navigation_links() { | |
$header = bethlehem_get_header(); | |
?> | |
<div class="top-nav-links"> | |
<?php if( $header == 'header-7' ) : ?> | |
<ul> | |
<li class="events-link"> | |
<a href="<?php echo esc_url( tribe_get_events_link() ); ?>"><i class="fa fa-calendar"></i><?php echo __( 'Calendar', 'bethlehem' ); ?></a> | |
</li> | |
<li class="sermons-link"> | |
<a href="<?php echo esc_attr( get_post_type_archive_link( 'sermons' ) ); ?>"><i class="fa fa-youtube-play"></i><?php echo __( 'Media', 'bethlehem' ); ?></a> | |
</li> | |
<li class="donations-link"> | |
<a href="<?php echo esc_attr( get_post_type_archive_link( 'give_forms' ) ); ?>"><i class="fa fa-heart-o"></i><?php echo __( 'Give Online', 'bethlehem' ); ?></a> | |
</li> | |
</ul> | |
<?php endif; ?> | |
<?php if( $header == 'header-3' || $header == 'header-5' || $header == 'header-4' || $header == 'header-6' ) : ?> | |
<div class="donations-link"> | |
<a class="btn donate-btn" href="<?php echo esc_attr( get_post_type_archive_link( 'give_forms' ) ); ?>"><?php echo __( 'Donate Now', 'bethlehem' ); ?></a> | |
</div> | |
<?php endif; ?> | |
</div> | |
<?php | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment