Changeset 111
- Timestamp:
- 05/28/2003 08:40:34 AM (22 years ago)
- Location:
- trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/b2-include/b2functions.php
r106 r111 114 114 $pee = str_replace('</blockquote></p>', '</p></blockquote>', $pee); 115 115 return $pee; 116 } 117 118 function popuplinks($text) { 119 // Comment text in popup windows should be filtered through this. 120 // Right now it's a moderately dumb function, ideally it would detect whether 121 // a target or rel attribute was already there and adjust its actions accordingly. 122 $text = preg_replace('/<a (.+?)>/i', "<a $1 target='_blank' rel='external'>", $text); 123 return $text; 116 124 } 117 125 -
trunk/b2commentspopup.php
r103 r111 1 1 <?php /* Don't remove this line, it calls the b2 function files ! */ 2 $blog=1; include ("blog.header.php"); while($row = mysql_fetch_object($result)) { start_b2(); 3 ?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" 4 "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> 2 $blog=1; 3 include('blog.header.php'); 4 add_filter('comment_text', 'popuplinks'); 5 while($row = mysql_fetch_object($result)) { start_b2(); 6 ?> 7 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> 5 8 <html xmlns="http://www.w3.org/1999/xhtml"> 6 9 <head> … … 12 15 body { margin: 3px; } 13 16 </style> 14 <link rel="stylesheet" type="text/css" media="print" href="<?php echo $siteurl; ?>/print.css" />15 17 16 18 </head> 17 <body> 19 <body id="commentspopup"> 20 18 21 <h1 id="header"><a href="" title="<?php echo $blogname ?>"><?php echo $blogname ?></a></h1> 19 22 20 <div id="contentcomments">21 23 <h2>Comments</h2> 22 24 <ol id="comments"> … … 95 97 ?> 96 98 97 </div>98 99 99 100
Note: See TracChangeset
for help on using the changeset viewer.