ID ) ? rand() : $post->ID ); $output = '
'; $output .= '
'; $output .= '

' . esc_html__( 'This content is password protected. To view it please enter your password below.', 'analytica' ) . '

'; $output .= ''; $output .= '
'; $output .= ''; $output .= ''; $output .= '
'; $output .= '
'; return $output; } add_filter( 'the_excerpt', 'analytica_excerpt_class' ); add_filter( 'get_the_excerpt', 'analytica_excerpt_class' ); /** * Make sure that all excerpts have class="excerpt". * * @since 1.0.0 * * return string with new class added */ function analytica_excerpt_class( $excerpt ) { return str_replace( ' element to post pagination links. * * @since 1.0.0 * * @return string */ function analytica_post_pagination_link( $link ) { return '
  • '. $link .'
  • '; } add_filter( 'the_category', 'analytica_add_nofollow_cat' ); /** * Fix for catgeogry rel tag (Produces invalid html5 code). * * @since 1.0.0 */ function analytica_add_nofollow_cat( $text ) { $text = str_replace( 'rel="category tag"', '', $text ); return apply_filters( __FUNCTION__, $text ); }