function phase_post($post, $id, $wiki_page = true) { global $wgOut, $wgOut, $wgParser; if ($post == '') { return $post; } // for sigs... $post = convert_pre($post); $post = remove_forum_tag_from_post($post); $post = awcf_hide_code2($post); if ($this->convert_wTitle == '1') { $post = wiki_links($post, $this->wiki_titles); } if ($this->displaysmiles == '1' and $this->viewing_mem_info['displaysmiles'] == '1') { $post = awcf_emotions($post, $this->emotions); } $post = br_convert($post); if ($wiki_page) { if (GetWikiPageOK($post)) { $post = GetWikiPage($post, $id); } } $post = awcf_unhide_code($post); $post = awc_wikipase($post, $wgOut); # awc_pdie($post); $post = Convert($post); // $post = Convert($post); # $f = array('</a>', '<a href', '">', "<a href=",); # $r = array('</a>', '<a href', '">', "<a target='blank' href=", '',); # $post = str_replace($f, $r, $post ) ; #$post = str_replace("<a href=", "<a target='blank' href=", $post ) ; # $post = str_replace('rel="nofollow"', "", $post ) ; if (isset($sw[1])) { foreach ($sw as $test) { $post = HighLightSearchWord($post, $test); } } else { #$post = HighLightSearchWord($post,$extras['word']); } // needs to be in the loop to check against each post for other extensions triggered if (isset($wgParser->mOutput->mHeadItems)) { foreach ($wgParser->mOutput->mHeadItems as $k_ID => $mHeadItems) { $wgOut->addHeadItem($k_ID, $mHeadItems); } } return $post; }
<div class="sidebarBlock"> <h2><?php echo $sidebar_revision->getName(); ?> </h2> <div class="blockContent"> <?php echo do_textile(wiki_links($sidebar_revision->getContent())); ?> <?php if (!$sidebar_page->isNew() && $sidebar_page->canEdit(logged_user())) { ?> <p><a href="<?php echo $sidebar_page->getEditUrl(); ?> "><?php echo lang('edit'); ?> </a></p><?php } ?> </div> </div> <?php if (isset($sidebar_links) && count($sidebar_links)) { ?> <div class="sidebarBlock"> <ul> <?php foreach ($sidebar_links as $spage) { ?>