$param['linkplayerslist'] = $params->get('linkplayerslist', 1);
$param['linkroundseach'] = $params->get('linkroundseach', 0);
$param['showunpublishedrounds'] = $params->get('showunpublishedrounds', 0);
$param['linkmatchescomplete'] = $params->get('linkmatchescomplete', 0);
$param['linktable'] = $params->get('linktable', 0);
$param['linkrankingscore'] = $params->get('linkrankingscore', 0);
$param['textrankingscore'] = $params->get('textrankingscore', '');
$param['linkinvitation'] = $params->get('linkinvitation', 0);
$param['contentid'] = $params->get('contentid', '');
$param['textbottom'] = $params->get('textbottom', '');
// URL-Parameter
$runde = JRequest::getVar('runde');
$arrayTurniere = array();
// CategoryID vorgegeben?
if ($param['categoryid'] != '' and $param['categoryid'] > 0) {
    list($parentArray, $parentKeys, $parentChilds) = modCLM_TurMultipleHelper::getTree();
    // für jede Kategorie Unterkategorien ermitteln
    $arrayAllCatid = array();
    if (isset($parentChilds[$param['categoryid']])) {
        $arrayAllCatid = $parentChilds[$param['categoryid']];
        $arrayAllCatid[] = $param['categoryid'];
    } else {
        $arrayAllCatid[] = $param['categoryid'];
    }
    $addWhere = '( ( catidAlltime = ' . implode(' OR catidAlltime = ', $arrayAllCatid) . ' )
						OR 
						( catidEdition = ' . implode(' OR catidEdition = ', $arrayAllCatid) . ' ) )';
    // zugewiesene Turniere
    $query = 'SELECT id' . ' FROM #__clm_turniere' . ' WHERE ' . $addWhere . ' ORDER BY ordering';
    $db->setQuery($query);
    $arrayTurniere = $db->loadResultArray();
                }
                echo '</ul>';
            } else {
                foreach ($listArray as $link) {
                    echo modCLM_TurMultipleHelper::getIndent($param['menuindent']);
                    echo $link;
                    echo '<br />';
                }
            }
            // Bemerkungen
            if ($params->get('shownotes', 0) == 1) {
                echo nl2br(JFilterOutput::cleantext($value->bemerkungen)) . '<br />';
            }
        } else {
            // nicht veröffentlicht
            echo modCLM_TurMultipleHelper::getIndent($param['menuindent']);
            echo JText::_('UNPUBLISHED');
            echo '<br />';
        }
    }
    echo '<br />';
}
if ($params->get('menulist', 0)) {
    echo '</ul>';
}
// ContentID gesetzt, Artikel gefunden
if ($param['contentid'] > 0 and isset($contentTitle)) {
    $contenttext = $params->get('contenttext', '');
    if ($contenttext != '') {
        $textToUse = $contenttext;
    } else {
                }
                echo '</ul>';
            } else {
                foreach ($listArray as $link) {
                    echo modCLM_TurMultipleHelper::getIndent();
                    echo $link;
                    echo '<br />';
                }
            }
            // Bemerkungen
            if ($params->get('shownotes', 0) == 1) {
                echo nl2br(JFilterOutput::cleantext($value->bemerkungen)) . '<br />';
            }
        } else {
            // nicht veröffentlicht
            echo modCLM_TurMultipleHelper::getIndent();
            echo JText::_('UNPUBLISHED');
            echo '<br />';
        }
    }
    echo '<br />';
}
if ($params->get('menulist', 0)) {
    echo '</ul>';
}
// ContentID gesetzt, Artikel gefunden
if ($this->params['contentid'] > 0 and isset($contentTitle)) {
    $contenttext = $params->get('contenttext', '');
    if ($contenttext != '') {
        $textToUse = $contenttext;
    } else {