'primary', 'container' => false, 'menu_class' => 'menu', 'menu_id' => 'menu', 'fallback_cb' => 'featuredlite_wp_page_menu')); } function featuredlite_wp_page_menu() { echo ''; } // pagemenu add_action( 'after_setup_theme', 'featured_register_secondary_menu' ); function featured_register_secondary_menu() { register_nav_menu( 'page', __( 'Main Menu', 'featuredlite' ) ); } function featuredlite_secnd_menu(){ wp_nav_menu( array('theme_location' => 'page', 'container' => false, 'menu_class' => 'menu', 'menu_id' => 'menu', 'fallback_cb' => 'featuredlite_wp_secnd_menu')); } function featuredlite_wp_secnd_menu() { echo ''; } /** * Display navigation to next/previous post when applicable. * * @since ThemeHunk 1.0 */ if ( ! function_exists( 'featuredlite_post_nav' ) ) : function featuredlite_post_nav() { // Don't print empty markup if there's nowhere to navigate. ?> '.$excerpt.'

Read More'; return '

'.$excerpt.'

'; } // related post function featuredlite_get_related_sigle_post() { global $post; $args = array( 'category__in' => wp_get_post_categories($post->ID), 'post__not_in' => array($post->ID), 'post_status' => array('publish'), 'meta_key' => '_thumbnail_id', 'posts_per_page' => 3, ); $my_query = new WP_Query($args); if ($my_query->have_posts()) {?> have_posts()) : $my_query->the_post(); ?> 2, 'prev_text' => __( '', 'featuredlite' ), 'next_text' => __( '', 'featuredlite' ), ) ); } /* * Mobile device detection */ if( !function_exists('featuredlite_mobile_user_agent_switch') ){ function featuredlite_mobile_user_agent_switch(){ $device = ''; if( stristr($_SERVER['HTTP_USER_AGENT'],'ipad') ) { $device = "ipad"; } else if( stristr($_SERVER['HTTP_USER_AGENT'],'iphone') || strstr($_SERVER['HTTP_USER_AGENT'],'iphone') ) { $device = "iphone"; } else if( stristr($_SERVER['HTTP_USER_AGENT'],'blackberry') ) { $device = "blackberry"; } else if( stristr($_SERVER['HTTP_USER_AGENT'],'android') ) { $device = "android"; } if( $device ) { return $device; }else{ return false; } } }