', esc_attr( $evolvethemes_key ) ); get_sidebar( 'main-sidebar' ); echo ''; } } add_action( 'schism_content_end', 'schism_main_sidebar', 20 ); /** * Add extra classes to body. * * @param array $class The body classes. * @return array */ function schism_is_active_sidebar_class( $class ) { $evolvethemes_key = evolvethemes_theme_key(); if ( is_active_sidebar( 'main-sidebar' ) && is_singular( 'post' ) ) { $class[] = esc_attr( $evolvethemes_key ) . '-sidebar_active'; } return $class; } add_filter( 'body_class', 'schism_is_active_sidebar_class' ); /** * Filter the entry title class. * * @param array $classes The entry title classes. * @return array */ function schism_entry_title_classes( $classes ) { $classes = array( 'schism-entry__title' ); return $classes; } add_filter( 'evolvethemes_entry_title_classes', 'schism_entry_title_classes' ); /** * Display the comments count for the current entry. * * @since 1.0.0 */ function schism_comments_count() { global $post; $comments_number = get_comments_number( $post->ID ); if ( $comments_number > 0 ) { $comment = get_comments_number_text(); $comment_markup = '
'; $comment_markup .= ' '; $comment_markup .= sprintf( '%s
', esc_attr( get_permalink( $post->ID ) ), esc_html( $comment ) ); echo wp_kses_post( $comment_markup ); } } /** * Display an icon for each post format. * * @return void */ function schism_format_icon() { } add_action( 'schism_entry_header_start', 'schism_comments_count' ); /** * Display the content of the entry meta column. * * @return void */ function schism_entry_meta() { $evolvethemes_key = evolvethemes_theme_key(); printf( '