diff --git a/functions.php b/functions.php index 37d1347..3fc8ca6 100644 --- a/functions.php +++ b/functions.php @@ -30,6 +30,7 @@ function huskypress_page_menu_args( $args ) { } add_filter( 'wp_page_menu_args', 'huskypress_page_menu_args' ); + if(!function_exists('is_parent_private')){ function is_parent_private($id){ $page = get_post($id); @@ -190,7 +191,6 @@ function hale_page_menu_args( $args ) { function hale_enqueue_scripts() { wp_enqueue_script('bootstrap-min', network_home_url().'wp-content/global/bootstrap-2.3.1/js/bootstrap.min.js', array('jquery')); - //wp_enqueue_script('uc-modernizr', get_bloginfo('template_url').'/js/uc-modernizr.js', array('jquery')); wp_enqueue_script('uc-hale-custom', get_bloginfo('template_url').'/js/custom.js', array('jquery')); $outboundtracking = get_option( 'outbound_tracking',''); @@ -439,6 +439,7 @@ function search_menu_item($items, $args){ if(!class_exists('Bootstrap_Nav_Walker')) { class Bootstrap_Nav_Walker extends Walker_Nav_Menu { /*This was taken from 320press WP-Bootstrap theme. No licensing restriction given, and it said it was free. */ + /* Skip private pages */ function skip( $item ) { @@ -453,6 +454,7 @@ function skip( $item ) { return false; } } + /* Start of the