пришлось дописать немного кода
в самом снипете дописываем:
'firstRowTpl' => isset($firstRowTpl) ? $firstRowTpl: '',
'lastRowTpl' => isset($lastRowTpl) ? $lastRowTpl: '',
получаем:
$wf->_templates = array(
'outerTpl' => isset($outerTpl) ? $outerTpl : '',
'rowTpl' => isset($rowTpl) ? $rowTpl : '',
'parentRowTpl' => isset($parentRowTpl) ? $parentRowTpl : '',
'parentRowHereTpl' => isset($parentRowHereTpl) ? $parentRowHereTpl : '',
'hereTpl' => isset($hereTpl) ? $hereTpl : '',
'innerTpl' => isset($innerTpl) ? $innerTpl : '',
'innerRowTpl' => isset($innerRowTpl) ? $innerRowTpl : '',
'innerHereTpl' => isset($innerHereTpl) ? $innerHereTpl : '',
'activeParentRowTpl' => isset($activeParentRowTpl) ? $activeParentRowTpl : '',
'categoryFoldersTpl' => isset($categoryFoldersTpl) ? $categoryFoldersTpl : '',
'startItemTpl' => isset($startItemTpl) ? $startItemTpl : '',
'firstRowTpl' => isset($firstRowTpl) ? $firstRowTpl: '',
'lastRowTpl' => isset($lastRowTpl) ? $lastRowTpl: '',
);
в файле wayfinder.inc.php в раене 165 строки добавляем
} elseif ($resource['first'] == 1 && $this->_templates['firstRowTpl']) {
$usedTemplate = 'firstRowTpl';
} elseif ($resource['last'] == 1 && $this->_templates['lastRowTpl']) {
$usedTemplate = 'lastRowTpl';
} else {
$usedTemplate = 'rowTpl';
}
Теперь можно для первого и последнего элемента меню задавать свои шаблоны.