getCached($cache_key)) { return $cached; } $basedirs = ['img/icons', 'img/icons/mime']; $icons_extension = empty($params['_extension']) ? '.png' : '.' . $params['_extension']; $tag = 'img'; $notag = false; $default_class = 'icon'; $default_width = 16; $default_height = 16; $menu_text = false; $menu_icon = false; $confirm = ''; $html = ''; if (empty($params['_id'])) { if (isset($params['_defaultdir']) && $params['_defaultdir'] == 'img/icons/large') { $params['_id'] = 'green_question48x48'; } else { $params['_id'] = 'green_question'; } } if (! empty($params['_defaultdir'])) { array_unshift($basedirs, $params['_defaultdir']); if ($params['_defaultdir'] == 'img/icons/large') { $default_width = $default_height = ( strpos($params['_id'], '48x48') !== false ) ? 48 : 32; } } // ICONSET START, work-in-progress, more information: dev.tiki.org/icons. $iconset array is prepared by lib/setup/theme.php // N.B. In some contexts such as the console $iconset may not be set up if (! empty($params['name']) && empty($params['_tag']) && ! empty($iconset)) { $name = $params['name']; $html = $iconset->getHtml($name, $params); $menu_text = (isset($params['_menu_text']) && $params['_menu_text'] == 'y'); if (! empty($params['href']) || ! empty($params['title']) || $menu_text) { /* Generate a link for the icon if href or title (for tips) parameter is set. * This will produce a link element () around the icon. * If you want a button element (