>



'); if ($paragraphCount > $theParagraphs) { // If there are more paragraphs than we want excerpted $theLength = strposN($content, "

", $theParagraphs); $theExcerpt = substr($content,0,$theLength); while (str_word_count($theExcerpt) < get_theme_mod( 'excerpt_words', 60 )) { $theExcerpt = substr($content,0,(strposN($content, "

", ++$theParagraphs)) + 4); if ($theParagraphs >= $paragraphCount) { $showMore = false; break; } } } else { // too few paragraphs to excerpt, show all content $showMore = false; $theExcerpt = $content; } // Close off any tags that were left hanging in the excerpt $theExcerpt = force_balance_tags($theExcerpt); echo $theExcerpt; if ($showMore) { echo "
"; $get_read_more_text = get_theme_mod( 'readmore_text', __( 'Read More', 'throwback' ) ); echo $get_read_more_text . "" .$thePostTitle. ""; echo "
"; } ?>