} echo str_replace(array('<br/>', '</p><p'), array('</p> <p>', '</p> <p'), $body); # NN4 font size bug context_link($row); $sidebarhtml = ''; if (isset($row['votes']) && (!strstr($row['gid'], 'q'))) { $sidebarhtml .= generate_votes ( $row['votes'], $row['major'], $row['epobject_id'], $row['gid'] ); } # Do the logic for this in the function; plus why shouldn't # you be able to comment on speeches with unknown speakers? # if (($hansardmajors[$data['info']['major']]['type'] == 'debate') && isset($row['speaker']) && count($row['speaker']) > 0) { $sidebarhtml .= generate_commentteaser(&$row, $data['info']['major'], $action_links); # } if (isset($row['mentions'])) { $sidebarhtml .= get_question_mentions_html($row['mentions']); } $PAGE->stripe_end(array( array ( 'type' => 'html', 'content' => $video_content ), array ( 'type' => 'html', 'content' => $sidebarhtml ),
#$body = preg_replace('#(<p[^>]*class=".*?)("[^>]*)pwmotiontext="moved"#', '$1 moved$2', $body); $body = str_replace('pwmotiontext="moved"', 'class="moved"', $body); $body = str_replace('<a href="h', '<a rel="nofollow" href="h', $body); # As even sites in Hansard lapse and become spam-sites echo str_replace('</p><p', '</p> <p', $body); # NN4 font size bug context_link($row); $sidebarhtml = ''; $extrahtml = ''; if (isset($row['votes']) && !strstr($row['gid'], 'q')) { $sidebarhtml .= generate_votes($row['votes'], $row['major'], $row['epobject_id'], $row['gid']); } # Do the logic for this in the function; plus why shouldn't # you be able to comment on speeches with unknown speakers? # if (($hansardmajors[$data['info']['major']]['type'] == 'debate') && isset($row['speaker']) && count($row['speaker']) > 0) { $sidebarhtml .= generate_commentteaser(&$row, $data['info']['major']); # } $PAGE->stripe_end(array(array('type' => 'html', 'content' => $sidebarhtml), array('type' => 'extrahtml', 'content' => $extrahtml))); } // End htype 12. // TRACKBACK AUTO DISCOVERY /* if (isset($row['trackback']) && count($row['trackback']) > 0) { $PAGE->trackback_rss($row['trackback']); } */ ob_flush(); //flush the output buffer } // End cycling through rows. if (!$titles_displayed) { $PAGE->stripe_start('head-2');