/shortcodes.css' type='text/css' media='screen' /> /lib/jquery.fancybox/jquery.fancybox.css' type='text/css' media='screen' /> '', 'scale' => '', 'float' => '', 'orient' => '' ), $atts ) ); $newcontent = "
"; if( $title != "" ) $newcontent .= "

$title

\n"; foreach( explode("\n", $content) as $line ) { // strip all HTML tags (such as
,

and other stuff inserted by wp_autop() $line = preg_replace("/\s*<[^>]*>\s*/", "", $line); $matches = preg_split("/\s*\|\s*/", $line); if( sizeof($matches) < 1 || preg_match("/^\s*$/", $matches[0]) ) continue; $newcontent .= "

$matches[1]
"; if( $orient == 'portrait' ) $newcontent .= "
"; } $newcontent .= "
\n"; $galleryctr++; return($newcontent); } ?> '' ), $atts ) ); $content = preg_replace("/\/", " ", $content); $newcontent = "
\n"; foreach( explode("$$$", $content) as $qa ) { if( ! (list($q, $a) = preg_split("/\@\@\@/", $qa, 2)) ) continue; $newcontent .= "
$q
$a
"; } $newcontent .= "
\n"; return($newcontent); } ?>