Commit d7258fff authored by Aljaž Srebrnič's avatar Aljaž Srebrnič
Browse files

Better inclusion of CSS file

parent c14dc57e
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -7,7 +7,7 @@ class Plugin extends Base
{
{
    public function initialize()
    public function initialize()
    {
    {
        $this->template->hook->attach('template:layout:head', 'MittelTheme:layout/head');
        $this->hook->on('template:layout:css', array('template' => 'plugins/MittelTheme/Template/css/main.css'));
        # $this->template->hook->attach('template:layout:top', 'MittelTheme:layout/top');
        # $this->template->hook->attach('template:layout:top', 'MittelTheme:layout/top');
        # $this->template->setTemplateOverride('header', 'mitteltheme:layout/header');
        # $this->template->setTemplateOverride('header', 'mitteltheme:layout/header');
    }
    }

Template/layout/head.php

deleted100644 → 0
+0 −1
Original line number Original line Diff line number Diff line
<link rel="stylesheet" type="text/css" href="<?= $this->url->dir(); ?>plugins/MittelTheme/Template/css/main.css" media="all" />
 No newline at end of file