-
-
Notifications
You must be signed in to change notification settings - Fork 57
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[RFC] (Re)add a grey favicon for the backend #963
Conversation
@@ -9,6 +9,9 @@ | |||
<meta name="viewport" content="width=device-width,initial-scale=1.0,shrink-to-fit=no"> | |||
<meta name="referrer" content="origin"> | |||
|
|||
<?php $this->block('favicon'); ?> | |||
<link rel="icon" type="image/png" href="<?= TL_ASSETS_URL ?>bundles/contaocore/favicon.ico"> | |||
<?php $this->endblock(); ?> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This block should be indented by two spaces.
We have discussed this in Mumble yesterday and agreed that the back end should show the favicon that is in the document root. |
Ah, sorry. I didn't know that. |
@agoat you could create a PR to introduce template blocks into the back end templates instead. e.g. …
<head>
<meta charset="<?= $this->charset ?>">
<title><?= $this->title ?> - Contao Open Source CMS</title>
<base href="<?= $this->base ?>">
<?php $this->block('meta'); ?>
<meta name="generator" content="Contao Open Source CMS">
<meta name="viewport" content="width=device-width,initial-scale=1.0,shrink-to-fit=no">
<meta name="referrer" content="origin">
<?php $this->endblock(); ?>
<?php $this->block('stylesheets'); ?>
<link rel="stylesheet" href="<?= TL_ASSETS_URL ?>system/themes/<?= $this->theme ?>/fonts.css">
<link rel="stylesheet" href="<?= TL_ASSETS_URL ?>assets/colorpicker/css/mooRainbow.min.css">
<link rel="stylesheet" href="<?= TL_ASSETS_URL ?>assets/chosen/css/chosen.min.css">
<link rel="stylesheet" href="<?= TL_ASSETS_URL ?>assets/simplemodal/css/simplemodal.min.css">
<link rel="stylesheet" href="<?= TL_ASSETS_URL ?>assets/datepicker/css/datepicker.min.css">
<link rel="stylesheet" href="<?= TL_ASSETS_URL ?>system/themes/<?= $this->theme ?>/basic.css">
<link rel="stylesheet" href="<?= TL_ASSETS_URL ?>system/themes/<?= $this->theme ?>/main.css">
<?= $this->stylesheets ?>
<?php $this->endblock(); ?>
<?php $this->block('javascripts'); ?>
<script><?= $this->getLocaleString() ?></script>
<script src="<?= TL_ASSETS_URL ?>assets/mootools/js/mootools.min.js"></script>
<script src="<?= TL_ASSETS_URL ?>assets/colorpicker/js/mooRainbow.min.js"></script>
<script src="<?= TL_ASSETS_URL ?>assets/chosen/js/chosen.min.js"></script>
<script src="<?= TL_ASSETS_URL ?>assets/simplemodal/js/simplemodal.min.js"></script>
<script src="<?= TL_ASSETS_URL ?>assets/datepicker/js/datepicker.min.js"></script>
<script src="<?= TL_ASSETS_URL ?>bundles/contaocore/mootao.min.js"></script>
<script src="<?= TL_ASSETS_URL ?>bundles/contaocore/core.min.js"></script>
<script src="<?= TL_ASSETS_URL ?>system/themes/<?= $this->theme ?>/hover.js"></script>
<script><?= $this->getDateString() ?></script>
<?= $this->javascripts ?>
<?php $this->endblock(); ?>
</head>
… This way you could create your own <?php $this->extend('be_main'); ?>
<?php $this->block('stylesheets'); ?>
<link rel="icon" type="image/png" href="<?= TL_ASSETS_URL ?>path/to/your/backend/favicon.ico">
<?php $this->parent(); ?>
<?php $this->endblock(); ?> for example, if you still want to have a custom backend favicon. |
I think I will go with the document root solution for now and copy my grey icon there. |
I liked the backend icon. I want to (re)add this as it was removed in ad7b624.
Some people get confused to the same orange icon for the contao, community and backend pages (#958). So I made the icon grey to differ from the other pages.