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> |
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
$('body').on('added_to_cart', function(){ | |
$('.product-item').unblock(); // Unblock the product item | |
$('.cart-item').unblock(); | |
$('.compare-list').unblock(); | |
$('html,body').animate({ | |
scrollTop: $('.top-cart-holder').offset().top - 20 | |
}, 1000, function(){ | |
$('.top-cart-holder .dropdown-toggle').dropdown('toggle'); |
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 media_center_department_nav_menu(){ | |
$department_nav_menu = ''; | |
$department_nav_menu .= '<ul class="dropdown-menu">'; | |
$department_nav_menu .= wp_list_categories( | |
array( | |
'title_li' => '', | |
'hide_empty' => 1 , | |
'taxonomy' => 'product_cat', |
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
add_filter( 'woocommerce_currencies', 'add_my_currency' ); | |
function add_my_currency( $currencies ) { | |
$currencies['ANZ'] = __( 'Azerbaijani manat', 'woocommerce' ); | |
return $currencies; | |
} | |
add_filter('woocommerce_currency_symbol', 'add_my_currency_symbol', 10, 2); | |
function add_my_currency_symbol( $currency_symbol, $currency ) { |
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 | |
add_filter( 'sportexx_blog_post_readmore_text', 'sx_child_change_readmore_text' ); | |
function sx_child_change_readmore_text( $readmore ) { | |
return __( 'Your custom text for Read More', 'sportexx-child' ); | |
} |
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 sportexx_navbar_right_search() { | |
?> | |
<form role="search" class="form-search clearfix" action="<?php echo esc_url( home_url( '/' ) ); ?>"> | |
<div class="input-group input-search-group"> | |
<label class="sr-only" for="search-field"><?php _e( 'Type your Search', 'sportexx' ); ?></label> | |
<input id="search-field" value="<?php echo get_search_query(); ?>" name="s" type="text" class="input-search form-control" placeholder="<?php echo __( 'Your text ?', 'sportexx' ); ?>"> | |
<span class="input-group-btn"> | |
<button class="btn btn-search" type="submit"><i class="fa fa-search search-icon"></i><span class="sr-only"><?php echo __( 'Search', 'sportexx' ); ?></span></button> |
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 sportexx_footer_social_icons() { | |
$social_icons_args = apply_filters( 'sportexx_footer_social_icons_args', array( | |
array( | |
'id' => 'facebook', | |
'title' => __( 'Facebook', 'sportexx' ), | |
'icon' => 'fa fa-facebook', | |
'link' => '#' |
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 | |
add_action( 'wp_head', 'add_my_google_analytics_code', PHP_INT_MAX ); | |
function add_my_google_analytics_code() { | |
?> | |
<script> | |
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){ | |
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o), | |
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m) | |
})(window,document,'script','//www.google-analytics.com/analytics.js','ga'); |
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
remove_action( 'init', array( 'Ministries', 'init_ministries' ) ); | |
remove_action( 'init', array( 'Sermons', 'init_sermons' ) ); | |
remove_action( 'init', array( 'Stories', 'init_stories' ) ); |
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
function bethlehem_navigation_links() { | |
return; | |
} |