From 5e46aac4f9879bd74dbccaaf4720fccc2ef1c01d Mon Sep 17 00:00:00 2001 From: koenemann Date: Fri, 13 Jan 2017 09:07:45 +0100 Subject: [PATCH] remove index_post_style part 2 --- functions.php | 7 +------ inc/utilities.php | 36 ------------------------------------ 2 files changed, 1 insertion(+), 42 deletions(-) delete mode 100644 inc/utilities.php diff --git a/functions.php b/functions.php index 5a0007a..d972187 100644 --- a/functions.php +++ b/functions.php @@ -65,9 +65,4 @@ require get_template_directory() . '/inc/bootstrap-wp-navwalker.php'; /** * Load WooCommerce functions. */ -require get_template_directory() . '/inc/woocommerce.php'; - -/** - * Load a utilities library. - */ -require get_template_directory() . '/inc/utilities.php'; +require get_template_directory() . '/inc/woocommerce.php'; \ No newline at end of file diff --git a/inc/utilities.php b/inc/utilities.php deleted file mode 100644 index a1a66aa..0000000 --- a/inc/utilities.php +++ /dev/null @@ -1,36 +0,0 @@ -post_content ); - - if ( str_word_count( $content, 0 ) > $word_count ) { - $words = str_word_count( $content, 2 ); - $keys = array_keys( $words ); - $excerpt = substr( $content, 0, $keys[ $word_count ] ); - $link_class = ' class=\"btn btn-secondary understrap-read-more-link\"'; - $excerpt = '

' . $excerpt . '[...]

'; - $excerpt .= '

Read More

'; - } else { - return $content; - } - - return $excerpt; -} -