block; } function inap_content($link_open = 'Continue Reading', $link_hide='Hide Post', $stripteaser = 0){ // Much of the following code is directly copied from template-functions-post.php global $id, $post, $more, $single, $withcomments, $page, $pages, $multipage, $numpages; global $preview; global $pagenow; $output = ''; if ( !empty($post->post_password) ) { // if there's a password if ( stripslashes($_COOKIE['wp-postpass_'.COOKIEHASH]) != $post->post_password ) { // and it doesn't match the cookie $output = get_the_password_form(); } } if ( $more_file != '' ) $file = $more_file; else $file = $pagenow; //$_SERVER['PHP_SELF']; $content = $pages[$page-1]; $content = explode('', $content, 2); if ( (preg_match('//', $post->post_content) && ((!$multipage) || ($page==1))) ) $stripteaser = 1; $teaser = $content[0]; if ( ($more) && ($stripteaser) ) $teaser = ''; $output .= $teaser; if ( count($content) > 1 ) { if ( $more ) $output .= $content[1]; } if ( $preview ) // preview fix for javascript bug with foreign languages $output = preg_replace('/\%u([0-9A-F]{4,4})/e', "'&#'.base_convert('\\1',16,10).';'", $output); $output = apply_filters('the_content', $output); $output = str_replace(']]>', ']]>', $output); echo '
'.$output.'
'; if ( count($content) > 1 || $show_more == 1) { echo '
'; echo ''; echo ''; echo ''.$link_open.''; echo ''; } } function inap_excerpt($link_open = 'Continue Reading', $link_hide='Hide Post') { global $id, $post; $output = ''; $output = $post->post_excerpt; if ( !empty($post->post_password) ) { // if there's a password if ( $_COOKIE['wp-postpass_'.COOKIEHASH] != $post->post_password ) { // and it doesn't match the cookie $output = __('There is no excerpt because this is a protected post.'); } } $output = apply_filters('get_the_excerpt', $output); $output = apply_filters('the_excerpt', $output); if(strpos($output, '

') === FALSE){ $output = str_replace('

','',$output); } echo '

'.$output.'
'; echo '
'; echo ''; echo ''; echo ''.$link_open.''; echo ''; } function inap_comments(){ global $id, $post; echo '
'; } function inap_addcomments(){ global $id; echo '
'; } function inap_addcomments_link($addcomment_open= 'Add Comment', $addcomment_hide='Hide Comment Form'){ global $id; echo ' '; echo ''; echo ''.$addcomment_open.''; echo ' '; } function inap_comments_link($comment_open= 'Show Posts Comments', $comment_hide='Hide Post Comments'){ global $id,$post; if ($post->comment_count > 0){ echo ' '; echo ''; echo ''.$comment_open.''; echo ' '; }else{ echo ''; Echo 'No Comments Yet'; echo ' '; echo ' '; echo ' '; } } ?>