getLinkAttributes(); $image_attributes = $nav->getImage()->getAttributes(); $attributes['title'] = $image_attributes['title']; if ($accesskey_enabled) { if (!isset($GLOBALS['accesskey-count'])) { $GLOBALS['accesskey-count'] = 1; } if ($GLOBALS['accesskey-count'] < 10) { $attributes['title'] = "{$attributes['title']} [ALT] + {$GLOBALS['accesskey-count']}"; $attributes['accesskey'] = $GLOBALS['accesskey-count']++; } } // Add badge number to link attributes if ($nav->getBadgeNumber()) { $attributes['data-badge'] = (int)$nav->getBadgeNumber(); } // Convert link attributes array to proper attribute string $attr_str = arrayToHtmlAttributes($attributes); ?>