$content = apply_filters('the_content', $post->post_content); preg_match_all("/<pre class=\"brush:[^>]+>(.+?)<\\/pre>/s", $content, $matches, PREG_PATTERN_ORDER); for ($i = 0; $i < count($matches[1]); $i++) { $match = $matches[1][$i]; $matchPre = $matches[0][$i]; $lines = explode("\n", $match); $replacement = ""; foreach ($lines as $line) { $replacement .= $line . "<br/>"; } $replacement = str_replace("\t", " ", $replacement); $replacement = "<p>" . $replacement . "</p>"; $content = str_replace($matchPre, $replacement, $content); } $content .= "<br /><p><small><i>" . get_the_tag_list('Post Tags: ', ', ', '') . "</i></small>"; $content .= "<hr /><center><small>" . get_cc_copyright(); $content .= "<br />" . get_copyright() . "</small></center></p>"; $content = str_replace("&", "&", $content); $content = str_replace('>', '>', $content); $content = str_replace('<', '<', $content); $content = str_replace(' ', ' ', $content); echo $content; ?> </description> <?php } ?> <wfw:commentRss><?php echo esc_url(get_post_comments_feed_link(null, 'rss2')); ?> </wfw:commentRss>
function the_license_information() { if (is_single() || is_page()) { echo "<div id=\"license_information\">"; echo "<div id=\"cc_Img\">" . get_cc_copyright_img() . "</div>"; echo "<div id=\"copyrightText\">" . get_cc_copyright() . "</div>"; echo "</div>"; } }