function if_mp3($content) { //parse content only if attached file is a real mp3 global $postings; global $currentid; if ($postings[$currentid]['audio_type'] == 1) { return trim(fullparse(stripcontainer($content))); } else { return ""; } }
function loop_tags($content) { //returns a loop-routine for all existing tags global $currenttag; global $alltags; $att = getattributes($content); $content = stripcontainer($content); $tags = gettaglist(); $return = ''; foreach ($tags as $tag) { $currenttag = $tag; $alltags[$currenttag] = $tag; $return .= fullparse($content); } return trim($return); }