20 $head_params = $hook->getValue();
42 'apple-touch-icon' => [
43 'rel' =>
'apple-touch-icon',
44 'type' =>
'image/png',
54 'type' =>
'image/png',
60 'type' =>
'image/png',
66 'type' =>
'image/png',
72 'type' =>
'image/png',
87 unset($sizes[
'master']);
91 if (isset($sizes[
'icon-128'])) {
93 'rel' =>
'apple-touch-icon',
94 'type' =>
'image/jpeg',
95 'href' =>
$site->getIconURL([
'size' =>
'icon-128',
'type' =>
'favicon']),
99 if (isset($sizes[
'icon-32'])) {
102 'href' =>
$site->getIconURL([
'size' =>
'icon-32',
'type' =>
'favicon']),
106 foreach ($sizes as
$name => $size_config) {
113 'type' =>
'image/jpeg',
114 'sizes' =>
"{$size_config['w']}x{$size_config['h']}",
115 'href' =>
$site->getIconURL([
'size' =>
$name,
'type' =>
'favicon']),
if(!$user||!$user->canDelete()) $name
elgg_get_icon_sizes($entity_type=null, $entity_subtype=null, $type= 'icon')
Returns a configuration array of icon sizes.
elgg_get_simplecache_url($view, $subview= '')
Get the URL for the cached view.
getDefaultIcons()
Returns default icons.
if(!$item instanceof ElggEntity) $link
$config
Advanced site settings, debugging section.
Models an event passed to hook handlers.
__invoke(\Elgg\Hook $hook)
Add favicon link tags to HTML head.
elgg_get_site_entity()
Get the current site entity.
elgg_extract($key, $array, $default=null, $strict=true)
Checks for $array[$key] and returns its value if it exists, else returns $default.
getSiteIcons()
Returns icons for the site entity.
Add favicon links to page head.