'
'.esc_html((get_theme_mod('admela_preposttrnstxt')) ? get_theme_mod('admela_preposttrnstxt'): 'Prev Post').'
'. '

%title

', 'next_text' => '
'.esc_html((get_theme_mod('admela_nxtposttrnstxt')) ? get_theme_mod('admela_nxtposttrnstxt'): 'Next Post').'
'. '

%title

', ) ); ?>
ID; $admela_relatedpost_type = get_theme_mod('admela_single_post_relatedpost_type_setting'); $admela_relatedpost_order = get_theme_mod('admela_single_post_relatedpost_order_setting'); if($admela_relatedpost_order == 'latest'): $admela_relatedpostorder = 'date'; elseif($admela_relatedpost_order == 'random'): $admela_relatedpostorder = 'rand'; else: $admela_relatedpostorder = 'date'; endif; $admela_relatedpostcount = '4'; if($admela_relatedpost_type == 'tag'){ $admela_relatedpost_tags = wp_get_post_tags($post->ID); if ($admela_relatedpost_tags) { $admela_tag_ids = array(); foreach($admela_relatedpost_tags as $admela_relatedpost_individual_tag) $admela_tag_ids[] = $admela_relatedpost_individual_tag->term_id; $admela_relatedpost_args=array( 'tag__in' => $admela_tag_ids, 'orderby'=> $admela_relatedpostorder, 'post__not_in' => array($post->ID), 'posts_per_page'=> $admela_relatedpostcount, // Number of related posts that will be displayed. 'ignore_sticky_posts'=>1, ); $admela_relatedpost_tagquery = new wp_query( $admela_relatedpost_args ); if( $admela_relatedpost_tagquery->have_posts() ) { echo ''; } } wp_reset_postdata(); } if($admela_relatedpost_type == 'category') // related posts display by category { $admela_relatedpost_categories = get_the_category($post->ID); if ($admela_relatedpost_categories) { $admela_relatedpost_category_ids = array(); foreach($admela_relatedpost_categories as $admela_individual_category) $admela_admela_relatedpost_category_ids[] = $admela_individual_category->term_id; $admela_relatedpost_category_args = array( 'category__in' => $admela_relatedpost_category_ids, 'orderby'=> $admela_relatedpostorder, 'post__not_in' => array($post->ID), 'posts_per_page'=> $admela_relatedpostcount, // Number of related posts that will be displayed. 'ignore_sticky_posts'=>1, ); $admela_relatedpost_category_query = new wp_query( $admela_relatedpost_category_args ); if( $admela_relatedpost_category_query->have_posts() ) { echo ''; } } wp_reset_postdata(); } } } endif; /*-----------------------------------------------------------------------------------*/ # Admela Pagination /*-----------------------------------------------------------------------------------*/ if ( ! function_exists( 'admela_paging_nav' ) ) : /** * * @global WP_Query $wp_query WordPress Query object. * @global WP_Rewrite $wp_rewrite WordPress Rewrite object. */ function admela_paging_nav() { global $wp_query, $wp_rewrite; // Don't print empty markup if there's only one page. if ( $wp_query->max_num_pages < 2 ) { return; } $admela_paged = get_query_var( 'paged' ) ? intval( get_query_var( 'paged' ) ) : 1; $admela_pagenum_link = html_entity_decode( get_pagenum_link() ); $admela_query_args = array(); $admela_url_parts = explode( '?', $admela_pagenum_link ); if ( isset( $admela_url_parts[1] ) ) { wp_parse_str( $admela_url_parts[1], $admela_query_args ); } $admela_pagenum_link = remove_query_arg( array_keys( $admela_query_args ), $admela_pagenum_link ); $admela_pagenum_link = trailingslashit( $admela_pagenum_link ) . '%_%'; $admela_format = $wp_rewrite->using_index_permalinks() && ! strpos( $admela_pagenum_link, 'index.php' ) ? 'index.php/' : ''; $admela_format .= $wp_rewrite->using_permalinks() ? user_trailingslashit( $wp_rewrite->pagination_base . '/%#%', 'paged' ) : '?paged=%#%'; // Set up paginated links. $admela_pagenav_links = paginate_links( array( 'base' => $admela_pagenum_link, 'format' => $admela_format, 'total' => $wp_query->max_num_pages, 'current' => $admela_paged, 'mid_size' => 1, 'add_args' => array_map( 'urlencode', $admela_query_args ), 'prev_text' => esc_html__( '← Previous', 'admela' ), 'next_text' => esc_html__( 'Next →', 'admela' ), ) ); if ( $admela_pagenav_links ) : ?>
/
'fff', 'header-text' => false, 'width' => 1600, 'height' => 400, 'wp-head-callback' => 'admela_header_style', ) ) ); } endif; add_action( 'after_setup_theme', 'admela_custom_header_setup' ); if ( ! function_exists( 'admela_header_style' ) ) : /** * Styles the header image and text displayed on the blog * * @see admela_custom_header_setup(). */ function admela_header_style() { ?> '; endif; break; case 'chat': if ($admela_getpostfmt == 'chat'): echo ''; endif; break; case 'audio': if ($admela_getpostfmt == 'audio'): echo ''; endif; break; case 'gallery': if ($admela_getpostfmt == 'gallery'): echo ''; endif; break; case 'video': if ($admela_getpostfmt == 'video'): echo ''; endif; break; case 'image': if ($admela_getpostfmt == 'image'): echo ''; endif; break; case 'link': if ($admela_getpostfmt == 'link'): echo ''; endif; break; case 'quote': if ($admela_getpostfmt == 'quote'): echo ''; endif; break; case 'status': if ($admela_getpostfmt == 'status'): echo ''; endif; break; default: echo ''; } } endif; // admela_postformat. /* admela user profile extra fields * @since admela 1.0 */ /*-----------------------------------------------------------------------------------*/ # User Profile Author Contact Info /*-----------------------------------------------------------------------------------*/ if( ! function_exists( 'admela_custom_contact_profilefields' ) ): function admela_custom_contact_profilefields( $admela_contactmethods ) { $admela_contactmethods['google_profile'] = 'Google Profile URL'; $admela_contactmethods['facebook_id'] = 'Facebook ID'; $admela_contactmethods['twitter_id'] = 'Twitter UserName'; $admela_contactmethods['linkedin_id'] = 'LinkedIn URL'; $admela_contactmethods['youtube_id'] = 'YouTube URL'; $admela_contactmethods['pintrest_id'] = 'Pinterest URL'; $admela_contactmethods['instagram_id'] = 'Instagram URL'; return $admela_contactmethods; } endif; add_filter('user_contactmethods','admela_custom_contact_profilefields',10,1);