Skip to content

Commit

Permalink
Merge branch 'hotfix/error-webmanifest' into develop
Browse files Browse the repository at this point in the history
  • Loading branch information
erleibiazzio committed May 22, 2024
2 parents 7512a9f + 11704a9 commit b04c40a
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 12 deletions.
11 changes: 0 additions & 11 deletions src/themes/BaseV2/Theme.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,17 +26,6 @@ function _init()
$this->enqueueStyle('app-v2', 'main', 'css/theme-BaseV2.css');
$this->assetManager->publishFolder('fonts');

// Manifest do five icon
$app->hook('GET(site.webmanifest)', function() use ($app) {
/** @var \MapasCulturais\Controller $this */
$this->json([
'icons' => [
[ 'src' => $app->view->asset('img/favicon-192x192.png', false), 'type' => 'image/png', 'sizes' => '192x192' ],
[ 'src' => $app->view->asset('img/favicon-512x512.png', false), 'type' => 'image/png', 'sizes' => '512x512' ],
],
]);
});

$app->hook('template(<<*>>.head):end', function () {
echo "<script>
document.addEventListener('DOMContentLoaded', (e) => {
Expand Down
1 change: 0 additions & 1 deletion src/themes/BaseV2/layouts/parts/header.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@
<link rel="profile" href="//gmpg.org/xfn/11" />
<link rel="icon" href="<?= $this->asset($app->config['favicon.svg'],false)?>" type="image/svg+xml">
<link rel="apple-touch-icon" href="<?= $this->asset($app->config['favicon.180'],false)?>">
<link rel="manifest" href="<?=$app->createUrl('site', 'webmanifest')?>">

<?php $this->printStyles('vendor-v2'); ?>
<?php $this->printStyles('app-v2'); ?>
Expand Down

0 comments on commit b04c40a

Please sign in to comment.