'.$link.'
'; return $link; } add_filter('the_content_more_link', 'aberration_lite_move_more_link'); endif; /** * Filter the except length to the users option setting. * * @param int $length Excerpt length. * @return int (Maybe) modified excerpt length. */ function aberration_lite_custom_excerpt_length( $length ) { $excerptlength = esc_attr(get_theme_mod( 'excerpt_limit', '50' )); return $excerptlength; } add_filter( 'excerpt_length', 'aberration_lite_custom_excerpt_length', 999 ); /** * Filter the "read more" excerpt string link to the post. * * @param string $more "Read more" excerpt string. * @return string (Maybe) modified "read more" excerpt string. */ function aberration_lite_excerpt_more( $more ) { return sprintf( '…', get_permalink( get_the_ID() ), esc_html__( 'Continue', 'aberration-lite' ) ); } add_filter( 'excerpt_more', 'aberration_lite_excerpt_more' ); /** * Special thanks to Justin Tadlock for this. * http://justintadlock.com/archives/2012/08/27/post-formats-quote */ function aberration_lite_quote_content( $content ) { /* Check if we're displaying a 'quote' post. */ if ( has_post_format( 'quote' ) ) { /* Match anyelements. */ preg_match( '//', $content, $matches ); /* If no elements were found, wrap the entire content in one. */ if ( empty( $matches ) ) $content = "{$content}"; } return $content; } add_filter( 'the_content', 'aberration_lite_quote_content' ); /** * Custom comments style * @package Aberration Lite */ if (!function_exists('aberration_lite_comment')) { function aberration_lite_comment($comment, $args, $depth) { $GLOBALS['comment'] = $comment; ?>
$depth, 'max_depth' => $args['max_depth']) ) ); ?>