Skip to content
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

Closed
wants to merge 1 commit into from

Conversation

agoat
Copy link
Contributor

@agoat agoat commented Jul 14, 2017

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.

@@ -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(); ?>
Copy link
Contributor

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.

@leofeyer
Copy link
Member

We have discussed this in Mumble yesterday and agreed that the back end should show the favicon that is in the document root.

@leofeyer leofeyer closed this Jul 14, 2017
@agoat
Copy link
Contributor Author

agoat commented Jul 14, 2017

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.

@fritzmg
Copy link
Contributor

fritzmg commented Jul 14, 2017

@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 be_main.html5 template and do something like

<?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.

@agoat
Copy link
Contributor Author

agoat commented Jul 14, 2017

@agoat you could create a PR to introduce template blocks into the back end templates instead. e.g.

I think I will go with the document root solution for now and copy my grey icon there.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants