]*?>)([^<]*))|((([^<]*))/si'; preg_match_all($pat,$full_body,$tag_matches); /* loop through and highlight $q value in data and recombine with tags */ $full_body_hl = ''; for ($i=0; $i< count($tag_matches[0]); $i++) { /* ignore all text within these tags */ if ( (preg_match('/\$3\$4\$5",' '.$tag_matches[3][$i].' '); $full_body_hl .= substr($holder,1,(strlen($holder)-2)); } } /* return tagged text */ return $full_body_hl; } function fof_render_item($item) { $items = true; $feed_link = $item['feed_link']; $feed_title = $item['feed_title']; $feed_image = $item['feed_image']; $feed_description = $item['feed_description']; $item_link = $item['item_link']; $item_id = $item['item_id']; $item_title = $item['item_title']; $item_author = $item['item_author']; $item_content = $item['item_content']; $prefs = fof_prefs(); $offset = $prefs['tzoffset']; if (!empty($prefs['dst'])) $offset += date('I'); $item_published = gmdate("Y-n-d g:ia", $item['item_published'] + $offset*60*60); $item_cached = gmdate("Y-n-d g:ia", $item['item_cached'] + $offset*60*60); $item_updated = gmdate("Y-n-d g:ia", $item['item_updated'] + $offset*60*60); if(!$item_title) $item_title = "[no title]"; if(!empty($_GET['search'])) { $item_content = do_highlight("$item_content", $_GET['search'], "highlight"); $item_title = do_highlight("$item_title", $_GET['search'], "highlight"); } $tags = $item['tags']; $star = in_array("star", $tags) ? true : false; $star_image = $star ? "image/star-on.gif" : "image/star-off.gif"; $unread = in_array("unread", $tags) ? true : false; ?>

>  " onclick="return toggle_favorite('')" />

[x] add tag
-

on
$widget "; ?>