Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Favicon setting (fixes #204)
  • Loading branch information
Rudloff committed Mar 20, 2017
1 parent b8f3b6e commit 708d375
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 1 deletion.
1 change: 1 addition & 0 deletions web/app/app.php
Expand Up @@ -35,6 +35,7 @@
$twig->addGlobal('environment', $app['environment']);
$twig->addGlobal('title', $app['site.title']);
$twig->addGlobal('logo', $app['site.logo']);
$twig->addGlobal('favicon', $app['site.favicon']);
$twig->addGlobal('footer', $app['site.footer']);

// Assets
Expand Down
3 changes: 3 additions & 0 deletions web/config/default.settings.php
Expand Up @@ -12,6 +12,9 @@
// Site logo (should be placed in public/img). Optional
$app['site.logo'] = 'agendav_100transp.png';

// Site favicon (should be placed in public/img). Optional
$app['site.favicon'] = 'favicon.ico';

// Site footer. Optional
$app['site.footer'] = 'AgenDAV ' . \AgenDAV\Version::V;

Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion web/templates/layout.html
Expand Up @@ -2,7 +2,7 @@
<html>
<head>
<title>{{ title }}</title>
<link rel="shortcut icon" type="image/x-icon" href="{{ asset('favicon.ico') }}" />
<link rel="shortcut icon" href="{{ asset(favicon, 'img') }}" />
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
{% if stylesheets is defined %}
{% for stylesheet in stylesheets %}
Expand Down

0 comments on commit 708d375

Please sign in to comment.