'; $output .= 'function showHide(entryID, entryLink, htmlObj, type) {'; $output .= 'if (type == "comments") {'; $output .= 'extTextDivID = (\'comText\' + (entryID));'; $output .= 'extLinkDivID = (\'comLink\' + (entryID));'; $output .= '} else {'; $output .= 'extTextDivID = (\'extText\' + (entryID));'; $output .= 'extLinkDivID = (\'extLink\' + (entryID));'; $output .= '}'; $output .= 'if( document.getElementById ) {'; $output .= 'if( document.getElementById(extTextDivID).style.display ) {'; $output .= 'if( entryLink != 0 ) {'; $output .= 'document.getElementById(extTextDivID).style.display = "block";'; $output .= 'document.getElementById(extLinkDivID).style.display = "none";'; $output .= 'htmlObj.blur();'; $output .= '} else {'; $output .= 'document.getElementById(extTextDivID).style.display = "none";'; $output .= 'document.getElementById(extLinkDivID).style.display = "block";'; $output .= '}'; $output .= '} else {'; $output .= 'location.href = entryLink;'; $output .= 'return true;'; $output .= '}'; $output .= '} else {'; $output .= 'location.href = entryLink;'; $output .= 'return true;'; $output .= '}'; $output .= '}'; $output .= ''; echo $output; } function the_contentshowhide($more_link_text = '(more...)', $stripteaser = 0, $more_file = '') { $content = get_the_contentshowhide($more_link_text, $stripteaser, $more_file); $content = str_replace(']]>', ']]>', $content); return $content; } function get_the_contentshowhide($more_link_text = '(more...)', $stripteaser = 0, $more_file = '') { global $id, $post, $more, $single, $withcomments, $page, $pages, $multipage, $numpages; global $preview, $cookiehash; global $pagenow; if(preg_match('|post.php|i', $_SERVER['SCRIPT_NAME'])) { return $post->post_content; } $output = ''; 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 = get_the_password_form(); return $output; } } if ($more_file != '') { $file = $more_file; } else { $file = $pagenow; //$_SERVER['PHP_SELF']; } $content = $pages[$page-1]; $content = explode('', $content); if ((preg_match('//', $post->post_content) && ((!$multipage) || ($page==1)))) $stripteaser = 1; $teaser = $content[0]; if (($more) && ($stripteaser)) $teaser = ''; $output .= $teaser; if (count($content)>1) { $allcontent = ""; for ($counter = 1; $counter < count($content); $counter++) { $allcontent .= $content[$counter]; } if ($more) { $output .= ''.$allcontent; } else { $output .= "

Read more... or Read more right here... »

"; } } 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); } return $output; } ?>