18 if (
$item->getLinkClass()) {
19 $vars[
'class'] = array_merge(
$vars[
'class'], explode(
' ',
$item->getLinkClass()));
22 if (
$item->getHref() ===
false ||
$item->getHref() === null) {
23 $vars[
'class'][] =
'elgg-non-link';
26 if (!isset(
$vars[
'rel']) && !isset(
$vars[
'is_trusted'])) {
27 $vars[
'is_trusted'] =
true;
30 if (
$item->getConfirmText()) {
34 if (isset(
$vars[
'badge']) && is_numeric(
$vars[
'badge'])) {
elgg_extract($key, $array, $default=null, bool $strict=true)
Checks for $array[$key] and returns its value if it exists, else returns $default.
elgg_view(string $view, array $vars=[], string $viewtype= '')
Return a parsed view.
static shortFormatOutput($n, $precision=0)
Use to convert large positive numbers in to short form like 1K, 1M, 1B or 1T Example: shortFormatOutp...
elgg_extract_class(array $array, array|string $existing=[], string $extract_key= 'class')
Extract class names from an array, optionally merging into a preexisting set.