<?php echo esc_attr(get_bloginfo( 'name' )); ?> <?php echo esc_attr(get_bloginfo( 'name' )); ?> > $nav_menu, 'container' => false, 'menu_id' => $menu_id, 'menu' => $menu, 'menu_class' => $class, 'walker' => new blogup_menu_widget_walker_nav_menu($mobile_mega_menu) )); } else { echo ''. esc_html__( 'You can edit your menu content on the Menus screen in the Appearance section.', 'blogup' ) .''; } } } /** * * Main Menu * @since 1.0.0 * @version 1.0.0 * */ if( !function_exists('blogup_main_menu_mobile')) { function blogup_main_menu_mobile($class = '', $menu_id = 'nav', $nav_menu = 'primary-menu') { if ( function_exists('wp_nav_menu') && has_nav_menu( $nav_menu ) ) { $menu = ''; if(is_singular()) { $menu = blogup_get_opt('header-primary-menu'); } wp_nav_menu(array( 'theme_location' => $nav_menu, 'container' => false, 'menu_id' => $menu_id, 'menu' => $menu, 'menu_class' => $class, )); } else { echo ''. esc_html__( 'You can edit your menu content on the Menus screen in the Appearance section.', 'blogup' ) .''; } } } /** * * Pagination * @since 1.0.0 * @version 1.0.0 * */ if ( ! function_exists( 'blogup_paging_nav' ) ) { function blogup_paging_nav( $max_num_pages = false, $args = array() ) { if (get_query_var('paged')) { $paged = get_query_var('paged'); } elseif (get_query_var('page')) { $paged = get_query_var('page'); } else { $paged = 1; } if ($max_num_pages === false) { global $wp_query; $max_num_pages = $wp_query->max_num_pages; } $defaults = array( 'nav' => 'load', 'posts_per_page' => get_option( 'posts_per_page' ), 'max_pages' => $max_num_pages, 'post_type' => 'post', ); $args = wp_parse_args( $args, $defaults ); if ( $max_num_pages < 2 ) { return; } if( $args['nav'] == 'load-more' || $args['nav'] == 'infinite-scroll' ) { $uniqid = uniqid(); $output = '
'; $output .= ''; $output .= '
'; unset( $args['query'] ); wp_localize_script( 'blogup-global', 'blogup_load_more_' . $uniqid, $args ); echo $output; } else { $big = 999999999; // need an unlikely integer $links = paginate_links( array( 'base' => str_replace( $big, '%#%', esc_url( get_pagenum_link( $big ) ) ), 'format' => '?paged=%#%', 'current' => $paged, 'total' => $max_num_pages, 'prev_next' => true, 'prev_text' => esc_html__('...', 'blogup'), 'prev_text' => esc_html__('...', 'blogup'), 'end_size' => 1, 'mid_size' => 2, 'type' => 'list', ) ); if (!empty($links)): ?>
found_posts; $prefix = ''; if( $total_results == 1 ){ $prefix = esc_html__('1 search result for', 'blogup'); } else if( $total_results > 1 ) { $prefix = $total_results . ' ' . esc_html__('search results for', 'blogup'); } else { $prefix = esc_html__('Search results for', 'blogup'); } $title = $prefix . ': ' . get_search_query(); //$title = get_search_query(); // Category and other Taxonomies elseif ( is_category() ) : $title = single_cat_title('', false); elseif ( is_tag() ) : $title = single_tag_title('', false); elseif ( is_author() ) : $title = wp_kses_post(sprintf( __( 'Author: %s', 'blogup' ), '' . get_the_author() . '' )); elseif ( is_day() ) : $title = wp_kses_post(sprintf( __( 'Day: %s', 'blogup' ), '' . get_the_date() . '' )); elseif ( is_month() ) : $title = wp_kses_post(sprintf( __( 'Month: %s', 'blogup' ), '' . get_the_date( _x( 'F Y', 'monthly archives date format', 'blogup' ) ) . '' )); elseif ( is_year() ) : $title = wp_kses_post(sprintf( __( 'Year: %s', 'blogup' ), '' . get_the_date( _x( 'Y', 'yearly archives date format', 'blogup' ) ) . '' )); elseif( is_tax() ) : $term = get_term_by( 'slug', get_query_var( 'term' ), get_query_var( 'taxonomy' ) ); $title = $term->name; elseif ( is_tax( 'post_format', 'post-format-aside' ) ) : $title = esc_html__( 'Asides', 'blogup' ); elseif ( is_tax( 'post_format', 'post-format-gallery' ) ) : $title = esc_html__( 'Galleries', 'blogup'); elseif ( is_tax( 'post_format', 'post-format-image' ) ) : $title = esc_html__( 'Images', 'blogup'); elseif ( is_tax( 'post_format', 'post-format-video' ) ) : $title = esc_html__( 'Videos', 'blogup' ); elseif ( is_tax( 'post_format', 'post-format-quote' ) ) : $title = esc_html__( 'Quotes', 'blogup' ); elseif ( is_tax( 'post_format', 'post-format-link' ) ) : $title = esc_html__( 'Links', 'blogup' ); elseif ( is_tax( 'post_format', 'post-format-status' ) ) : $title = esc_html__( 'Statuses', 'blogup' ); elseif ( is_tax( 'post_format', 'post-format-audio' ) ) : $title = esc_html__( 'Audios', 'blogup' ); elseif ( is_tax( 'post_format', 'post-format-chat' ) ) : $title = esc_html__( 'Chats', 'blogup' ); elseif( is_404() ) : $title = esc_html__( '404', 'blogup' ); else : $title = esc_html__( 'Archives', 'blogup' ); endif; return $title; } } /** * * Social Share * @since 1.0.0 * @version 1.0.0 * */ if(!function_exists('blogup_social_share')) { function blogup_social_share($style) { if(class_exists('ReduxFramework') && !blogup_get_opt('post-enable-post-share')) { return; } global $post; $pinterest_image = wp_get_attachment_image_src( get_post_thumbnail_id( $post->ID ), 'blogup-big-alt' ); switch ($style) { case 'style1': default: ?>
comment_type ) : case 'pingback' : case 'trackback' : ?>
  • id="li-comment-">
  • 1) { $class[] = 'chaild'; } ?>
  • id="comment-">
    comment_approved == '0' ) : ?>
    $depth, 'max_depth' => 2 ) ) ); if (!empty($reply)): ?>
  • ID); if(!empty($tags) && is_array($tags)): $simlar_tag = $tags[0]->term_id; ?> array($simlar_tag), 'post__not_in' => array($post->ID), 'posts_per_page' => 4, 'meta_query' => array(array('key' => '_thumbnail_id', 'compare' => 'EXISTS')), 'ignore_sticky_posts' => 1, ); $re_query = new WP_Query($args); if($re_query->have_posts()): switch ($style) { case 'style1': default: ?>

    have_posts()) : $re_query->the_post(); ?>
    >

    have_posts()) : $re_query->the_post(); ?>
    >
    post_author); if(!empty($curauth->description)): ?>

    'fa-facebook', 'link' => blogup_get_opt('social-facebook'), ), array( 'icon_name' =>'fa-twitter', 'link' => blogup_get_opt('social-twitter'), ), array( 'icon_name' =>'fa-google-plus', 'link' => blogup_get_opt('social-gplus'), ), ); foreach($social_links as $link): echo sprintf($pattern, '
  • '); endforeach; } } /** * Blog Featured Image * @param type $type * @return array */ if(!function_exists('blogup_blog_featured_image')) { function blogup_blog_featured_image($image_size = 'full', $class_name = '') { ?> $class_name)); ?>

    chat_bubble visibility
    post_parent ) : get_adjacent_post( false, '', true ); $next = get_adjacent_post( false, '', false ); if(empty($previous) && empty($next)) { return; } ?>

    >
    1, 'orderby' => 'date', ); query_posts($args); if(have_posts()): while( have_posts() ) : the_post(); ?>
    -1, 'meta_key' => 'post-enable-breaking-news', 'meta_value' => 1 ); $the_query = new WP_Query($args); if($the_query->have_posts()): ?>
    have_posts()) : $the_query -> the_post(); ?>
    0) ? number_format(($total_rating / $count), 1):$total_rating; return ($is_total) ? $total_rating:$progress_bar_rating; } } /** * Review * @param type $type * @return array */ if(!function_exists('blogup_review_post_format')) { function blogup_review_post_format() { $summary_text = blogup_get_post_opt('post-review-summary'); $progress_bar_rating = blogup_calc_rating(false); $count = count($progress_bar_rating); if($count > 0): ?>
    $rating_number): ?>