|
@@ 72-74 (lines=3) @@
|
| 69 |
|
public function setFavicons () { |
| 70 |
|
$favicon_dir = insert_if_exists($this->defaults['icon_dir']); |
| 71 |
|
$colors = $this->defaults['colors']; |
| 72 |
|
return insert_if_exists (['60x60', '72x72', '114x114', '120x120', '152x152', '180x180'], function ($insert) use ($favicon_dir) { |
| 73 |
|
return '<link rel="apple-touch-icon" sizes="' . $insert . '" href="' . asset($favicon_dir . '/apple-touch-icon-' . $insert . '.png').'">'; |
| 74 |
|
}, function ($insert) use ($favicon_dir) { |
| 75 |
|
return File::exists(public_path($favicon_dir.'/apple-touch-icon-'.$insert.'.png')); |
| 76 |
|
}) . |
| 77 |
|
insert_if_exists (['16x16', '32x32', '96x96', '194x194'], function ($insert) use ($favicon_dir) { |
|
@@ 77-79 (lines=3) @@
|
| 74 |
|
}, function ($insert) use ($favicon_dir) { |
| 75 |
|
return File::exists(public_path($favicon_dir.'/apple-touch-icon-'.$insert.'.png')); |
| 76 |
|
}) . |
| 77 |
|
insert_if_exists (['16x16', '32x32', '96x96', '194x194'], function ($insert) use ($favicon_dir) { |
| 78 |
|
return '<link rel="icon" type="image/png" href="' . asset($favicon_dir . '/favicon-' . $insert . '.png').'" sizes="'.$insert.'">'; |
| 79 |
|
}, function ($insert) use ($favicon_dir) { |
| 80 |
|
return File::exists(public_path($favicon_dir.'/favicon-'.$insert.'.png')); |
| 81 |
|
}) . |
| 82 |
|
insert_if_exists (['192x192'], function ($insert) use ($favicon_dir) { |
|
@@ 82-84 (lines=3) @@
|
| 79 |
|
}, function ($insert) use ($favicon_dir) { |
| 80 |
|
return File::exists(public_path($favicon_dir.'/favicon-'.$insert.'.png')); |
| 81 |
|
}) . |
| 82 |
|
insert_if_exists (['192x192'], function ($insert) use ($favicon_dir) { |
| 83 |
|
return '<link rel="icon" type="image/png" href="' . asset($favicon_dir . '/android-chrome-' . $insert . '.png').'" sizes="'.$insert.'">'; |
| 84 |
|
}, function ($insert) use ($favicon_dir) { |
| 85 |
|
return File::exists(public_path($favicon_dir.'/android-chrome-'.$insert.'.png')); |
| 86 |
|
}) . |
| 87 |
|
insert_if_exists ($favicon_dir.'/manifest.json', function ($insert) { |