'fa-twitter', 'Facebook' => 'fa-facebook', 'Instagram' => 'fa-instagram', 'Vine' => 'fa-vine', 'SnapChat' => 'fa-snapchat-ghost', 'LinkedIn' => 'fa-linkedin', 'Google' => 'fa-google', 'Google+' => 'fa-google-plus', 'YouTube' => 'fa-youtube', 'Twitch' => 'fa-twitch', 'Vimeo' => 'fa-vimeo', 'Pinterest' => 'fa-pinterest', 'Reddit' => 'fa-reddit-alien', 'Steam' => 'fa-steam', 'Flickr' => 'fa-flickr', 'Tumblr' => 'fa-tumblr', 'Spotify' => 'fa-spotify', 'Soundcloud' => 'fa-soundcloud', 'MixCloud' => 'fa-mixcloud', 'GitHub' => 'fa-github', 'BitBucket' => 'fa-bitbucket', 'Behance' => 'fa-behance', 'WhatsApp' => 'fa-whatsapp', 'LastFM' => 'fa-lastfm', 'DeviantArt' => 'fa-deviantart', 'BitCoin' => 'fa-btc', ); function bidnis_social_media(){ global $bidnis_social_media_icons; ?>
%s', 'bidnis' ), get_the_author() ); } elseif ( is_year() ) { $title = get_the_date( _x( 'Y', 'yearly archives date format', 'bidnis' ) ); } elseif ( is_month() ) { $title = get_the_date( _x( 'F Y', 'monthly archives date format', 'bidnis' ) ); } elseif ( is_day() ) { $title = get_the_date( _x( 'F j, Y', 'daily archives date format', 'bidnis' ) ); } elseif ( is_tax( 'post_format' ) ) { if ( is_tax( 'post_format', 'post-format-aside' ) ) { $title = _x( 'Asides', 'post format archive title', 'bidnis' ); } elseif ( is_tax( 'post_format', 'post-format-gallery' ) ) { $title = _x( 'Galleries', 'post format archive title', 'bidnis' ); } elseif ( is_tax( 'post_format', 'post-format-image' ) ) { $title = _x( 'Images', 'post format archive title', 'bidnis' ); } elseif ( is_tax( 'post_format', 'post-format-video' ) ) { $title = _x( 'Videos', 'post format archive title', 'bidnis' ); } elseif ( is_tax( 'post_format', 'post-format-quote' ) ) { $title = _x( 'Quotes', 'post format archive title', 'bidnis' ); } elseif ( is_tax( 'post_format', 'post-format-link' ) ) { $title = _x( 'Links', 'post format archive title', 'bidnis' ); } elseif ( is_tax( 'post_format', 'post-format-status' ) ) { $title = _x( 'Statuses', 'post format archive title', 'bidnis' ); } elseif ( is_tax( 'post_format', 'post-format-audio' ) ) { $title = _x( 'Audio', 'post format archive title', 'bidnis' ); } elseif ( is_tax( 'post_format', 'post-format-chat' ) ) { $title = _x( 'Chats', 'post format archive title', 'bidnis' ); } } elseif ( is_post_type_archive() ) { $title = post_type_archive_title( '', false ); } elseif ( is_tax() ) { $tax = get_taxonomy( get_queried_object()->taxonomy ); /* translators: 1: Taxonomy singular name, 2: Current taxonomy term */ $title = sprintf( __( '%1$s: %2$s', 'bidnis' ), $tax->labels->singular_name, single_term_title( '', false ) ); } else { $title = __( 'Archives', 'bidnis' ); } return $title; } add_filter('get_the_archive_title', 'bidnis_get_archive_title'); /** * Add classes to body depending on custom changes and content * * @since Bidnis 1.0 */ function bidnis_body_classes( $classes ) { // Adds a class of custom-background-image to sites with a custom background image. if ( get_background_image() ) { $classes[] = 'custom-background-image'; } // Adds a class of custom-header-image if a header image or content is set. if( get_theme_mod('header_image_text') || ( get_theme_mod('header_image_cta_text') && get_theme_mod('header_image_cta_url') ) ){ $classes[] = 'custom-header-image-content'; } // Adds a class of has-sidebar or no-sidebar depending on active sidebars. if ( is_active_sidebar( 'sidebar-left-widget-area' ) || is_active_sidebar( 'sidebar-right-widget-area' ) ) { $classes[] = 'has-sidebar'; }else{ $classes[] = 'no-sidebar'; } return $classes; } add_filter( 'body_class', 'bidnis_body_classes' ); /** * Add classes to posts depending on custom changes and content * * @since Bidnis 1.0 */ function bidnis_post_classes( $classes ) { // adds a class of archive-entry to looped layout posts with excerpts if( !get_theme_mod( 'display_content', false ) && !is_singular() ){ $classes[] = 'archive-entry'; } return $classes; } add_filter( 'post_class', 'bidnis_post_classes' ); /** * Custom "Read more" on excerpts * * @since Bidnis 1.0 */ function bidnis_excerpt_read_more($more) { global $post; if( !get_theme_mod('read_more', true) ){ return '... Read more'; }else{ return '...'; } } add_filter('excerpt_more', 'bidnis_excerpt_read_more'); /** * Breadcrumbs * * @since Bidnis 1.0 */ function bidnis_breadcrumbs(){ if( get_theme_mod('breadcrumbs', false) ): ?>
%2$s', esc_url( home_url() ), get_bloginfo('name') ); ?> ', ''); } ?> %2$s', get_permalink($crumb), get_the_title($crumb) ); } } } ?> ', ''); } ?>