20 $head_params = $event->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']),
elgg_get_icon_sizes(string $entity_type=null, string $entity_subtype=null, $type= 'icon')
Returns a configuration array of icon sizes.
if(!$user||!$user->canDelete()) $name
getDefaultIcons()
Returns default icons.
if(!$item instanceof ElggEntity) $link
elgg_extract($key, $array, $default=null, bool $strict=true)
Checks for $array[$key] and returns its value if it exists, else returns $default.
$config
Advanced site settings, debugging section.
elgg_get_site_entity()
Get the current site entity.
__invoke(\Elgg\Event $event)
Add favicon link tags to HTML head.
getSiteIcons()
Returns icons for the site entity.
elgg_get_simplecache_url(string $view)
Get the URL for the cached view.
Add favicon links to page head.
Models an event passed to event handlers.