• I wasn’t able to register at the developer’s site, so I’m posting some code here that does some processing of simple tags, displaying them as lines with styles named for the tags (e.g., “cnl_title”), and optional prefix labels.

    This code was added to the top of the FormatAndDisplayLine() function. A closing bracket is needed for the condition to handle the other line processing if the match isn’t found for one of the simple tags.

    $simpleMatch = false;
    $simpleTags = array("Composer" => "Composer(s):", "Copyright" => "", "Title" => "");
    foreach($simpleTags as $simpleTag => $tagLabel) {
        $simpleTag = strtolower($simpleTag);
        $bSimple = "[$simpleTag]";
        $bSimpleEnd = "[/$simpleTag]";
        if (stristr($line,$bSimple)) {
            $line = str_ireplace($bSimple, '', $line);
            $line = str_ireplace($bSimpleEnd, '', $line);
            $returnText .= '<div class="cnl_'.$simpleTag.'"><span class="cnl_'.$tagLabel.'">'.$tagLabel.'</span>'.$line.'</div>';
            $simpleMatch = true;
        }
    }
    if (!$simpleMatch) {

    http://wordpress.org/extend/plugins/chords-and-lyrics/

  • The topic ‘Support for Other Tags Added’ is closed to new replies.