' . wp_kses_post( $theme_excerptcont ). '"' . get_the_title() . '"'; } add_filter( 'the_content_more_link', 'bravada_continue_reading_link' ); /** * Replaces "[...]" (appended to automatically generated excerpts) with an ellipsis and bravada_continue_reading_link(). */ function bravada_auto_excerpt_more( $more ) { if ( is_admin() ) { return $more; } if ( cryout_get_option( 'theme_excerptdots' ) ) { return wp_kses_post( cryout_get_option( 'theme_excerptdots' ) ); } else { return ''; } } add_filter( 'excerpt_more', 'bravada_auto_excerpt_more' ); /** * Adds a "Continue Reading" link to post excerpts created using the tag. */ function bravada_more_link( $more_link, $more_link_text ) { $theme_excerptcont = cryout_get_option( 'theme_excerptcont' ); $new_link_text = $theme_excerptcont; if ( preg_match( "/custom=(.*)/", $more_link_text, $m ) ) { $new_link_text = $m[1]; } $more_link = str_replace( $more_link_text, $new_link_text, $more_link ); $more_link = str_replace( 'more-link', 'continue-reading-link', $more_link ); return $more_link; } add_filter( 'the_content_more_link', 'bravada_more_link', 10, 2 ); /** * Remove inline styles printed when the gallery shortcode is used. * Galleries are styled by the theme in style.css. */ function bravada_remove_gallery_css( $css ) { return preg_replace( "##s", '', $css ); } add_filter( 'gallery_style', 'bravada_remove_gallery_css' ); /** * Posted in category */ if ( ! function_exists( 'bravada_posted_category' ) ) : function bravada_posted_category() { if ( 'post' !== get_post_type() ) return; $theme_meta_category = cryout_get_option( 'theme_meta_blog_category' ); if ( is_single() ) { $theme_meta_category = cryout_get_option( 'theme_meta_single_category' ); } if ( $theme_meta_category && get_the_category_list() ) { echo '' . '' . ' ' . get_the_category_list( ' ' ) . ''; } } // bravada_posted_category() endif; /** * Posted by author */ if ( ! function_exists( 'bravada_posted_author' )) : function bravada_posted_author() { if ( 'post' !== get_post_type() ) return; $theme_meta_blog_author = cryout_get_option( 'theme_meta_blog_author' ); if ( $theme_meta_blog_author ) { echo sprintf( ' ', esc_url( get_author_posts_url( get_the_author_meta( 'ID' ) ) ), sprintf( esc_attr__( 'View all posts by %s', 'bravada' ), get_the_author() ), get_the_author() ); } } // bravada_posted_author endif; /** * Posted by author for single posts */ if ( ! function_exists( 'bravada_posted_author_single' )) : function bravada_posted_author_single() { $theme_meta_single_author = cryout_get_option( 'theme_meta_single_author' ); global $post; $author_id = $post->post_author; if ( $theme_meta_single_author ) { echo sprintf( '
' . '' . '' . '
', esc_url( get_author_posts_url( get_the_author_meta( 'ID', $author_id ) ) ), sprintf( esc_attr__( 'View all posts by %s', 'bravada' ), wp_kses( get_the_author_meta( 'display_name', $author_id) , array() ) ), wp_kses( get_the_author_meta( 'display_name', $author_id), array() ) ); } } // bravada_posted_author_single endif; /** * Posted date/time, tags */ if ( ! function_exists( 'bravada_posted_date' ) ) : function bravada_posted_date() { if ( 'post' !== get_post_type() ) return; $theme_meta_date = cryout_get_option( 'theme_meta_blog_date' ); $theme_meta_time = cryout_get_option( 'theme_meta_blog_time' ); if ( is_single() ) { $theme_meta_date = cryout_get_option( 'theme_meta_single_date' ); $theme_meta_time = cryout_get_option( 'theme_meta_single_time' ); } // Post date/time if ( $theme_meta_date || $theme_meta_time ) { $date = ''; $time = ''; if ( $theme_meta_date ) { $date = esc_html( get_the_date() ); } if ( $theme_meta_time ) { $time = esc_attr( get_the_time() ); } ?> "> #', ' #' ); if ( $theme_meta_tag && $tag_list ) { ?> >   "' . get_the_title() . '"' ), ' ', '' ); }; // bravada_posted_edit() endif; /** * Post format meta */ if ( ! function_exists( 'bravada_meta_format' ) ) : function bravada_meta_format() { if ( 'post' !== get_post_type() ) return; $format = get_post_format(); if ( current_theme_supports( 'post-formats', $format ) ) { printf( ' %2$s', esc_url( get_post_format_link( $format ) ), esc_attr( $format ), esc_attr( get_post_format_string( $format ) ) ); } } //bravada_meta_format() endif; /** * Post format meta */ if ( ! function_exists( 'bravada_meta_sticky' ) ) : function bravada_meta_sticky() { if ( is_sticky() ) echo '' . __('Featured', 'bravada') . ''; } //bravada_meta_sticky() endif; /** * Header animated arrow */ if ( ! function_exists( 'bravada_meta_arrow' ) ) : function bravada_meta_arrow() { ?> max_num_pages > 1 ) : ?> ID ), 'bravada-featured' ); $fimage_id = get_post_thumbnail_id( $post->ID ); } elseif ( $options['theme_fpost'] && $options['theme_fauto'] && empty($featured_image) ) { // get the first image from post $featured_image = cryout_post_first_image( $post->ID, 'bravada-featured' ); $fimage_id = $featured_image['id']; } else { // featured image not enabled or not obtainable $featured_image[0] = apply_filters('bravada_preview_img_src', ''); $featured_image[1] = apply_filters('bravada_preview_img_w', ''); $featured_image[2] = apply_filters('bravada_preview_img_h', ''); $fimage_id = FALSE; }; if ( ! empty( $featured_image[0] ) ) { $featured_width = bravada_featured_width(); ?>
>
tabindex="-1"> <?php the_title_attribute();?> src="">