Created
December 1, 2015 07:28
-
-
Save farookibrahim/1f646e067e0012b94de9 to your computer and use it in GitHub Desktop.
Change Header Nav Links and Text
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
| if ( ! function_exists( 'bethlehem_navigation_links' ) ) { | |
| function bethlehem_navigation_links() { | |
| $header = bethlehem_get_header(); | |
| ?> | |
| <div class="top-nav-links"> | |
| <?php if( apply_filters( 'bethlehem_header_navbar_links', true ) && $header == 'header-7' ) : ?> | |
| <ul> | |
| <?php if( apply_filters( 'bethlehem_navbar_events_link', true ) ) : ?> | |
| <li class="events-link"> | |
| <a href="<?php echo esc_url( tribe_get_events_link() ); ?>"><i class="fa fa-calendar"></i><?php echo apply_filters( 'bethlehem_navbar_sermon_link_text', __( 'Calendar', 'bethlehem' ) ); ?></a> | |
| </li> | |
| <?php endif; ?> | |
| <?php if( apply_filters( 'bethlehem_navbar_sermons_link', true ) ) : ?> | |
| <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 apply_filters( 'bethlehem_navbar_sermon_link_text', __( 'Media', 'bethlehem' ) ); ?></a> | |
| </li> | |
| <?php endif; ?> | |
| <?php if( apply_filters( 'bethlehem_navbar_donation_link', true ) ) : ?> | |
| <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 apply_filters( 'bethlehem_navbar_donation_link_text', __( 'Give Online', 'bethlehem' ) ); ?></a> | |
| </li> | |
| <?php endif; ?> | |
| </ul> | |
| <?php endif; ?> | |
| <?php if( apply_filters( 'bethlehem_navbar_donation_link', true ) && ( $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 apply_filters( 'bethlehem_navbar_donation_link_text', __( '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