'.$link.'
'; return $link; } add_filter('the_content_more_link', 'aberration_lite_move_more_link'); endif; /** * Gives the flexibility to change the excerpt length from the Theme Customizer to the users choice. * Thanks to http://bavotasan.com/2009/limiting-the-number-of-words-in-your-excerpt-or-content-in-wordpress/ * * To use a custom excerpt length in a template, use * */ function aberration_lite_excerpt($limit) { $excerpt = explode(' ', get_the_excerpt(), $limit); if (count($excerpt)>=$limit) { array_pop($excerpt); $excerpt = implode(" ",$excerpt).'...'; } else { $excerpt = implode(" ",$excerpt); } $excerpt = preg_replace('`\[[^\]]*\]`','',$excerpt); return $excerpt; } /** * Fixes the empty paragraph tags that WordPress editor. * adds when using shortcodes that contain multiple lines of content. * */ function aberration_lite_fix_shortcodes($content){ $array = array ( '[' => '[', ']
' => ']', ']elements. */ 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']) ) ); ?>