public function renderBreadcrumbTrailItem(Menu $item, $variables = [])
{
$itemContent = "";
$htmlTemplate = "<!-- Failed to identify breadcrumb trail HTML template -->";
$variables = $this->getVariables($item, $variables);
$bActive = $variables['URL'] == $variables['CURRENT_URL'] ? true : false;
$bHasURL = !empty($variables['URL']) ? true : false;
if ($bActive && $bHasURL) {
$htmlTemplate = $this->TRAIL_ITEM_ACTIVE_WITH_URL;
} elseif ($bActive && !$bHasURL) {
$htmlTemplate = $this->TRAIL_ITEM_ACTIVE_NO_URL;
} elseif (!$bActive && $bHasURL) {
$htmlTemplate = $this->TRAIL_ITEM_INACTIVE_WITH_URL;
} elseif (!$bActive && !$bHasURL) {
$htmlTemplate = $this->TRAIL_ITEM_INACTIVE_NO_URL;
}
$itemContent = $this->replaceVars($htmlTemplate, $variables);
return $itemContent;
}