Loading Plugin.php +6 −0 Original line number Diff line number Diff line Loading @@ -10,5 +10,11 @@ class Plugin extends Base $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->setTemplateOverride('header', 'mitteltheme:layout/header'); $this->template->setTemplateOverride('header/title', 'MittelTheme:layout/title', array( 'project' => isset($project) ? $project : null, 'task' => isset($task) ? $task : null, 'description' => isset($description) ? $description : null, 'title' => $title, )); } } Template/img/logo.svg 0 → 100644 +21 −0 Original line number Diff line number Diff line <?xml version="1.0" encoding="utf-8"?> <!-- Generator: Adobe Illustrator 21.0.0, SVG Export Plug-In . SVG Version: 6.00 Build 0) --> <svg version="1.1" id="svg2" inkscape:version="0.91 r13725" sodipodi:docname="mittelab_pin.svg" xmlns:cc="http://creativecommons.org/ns#" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd" xmlns:svg="http://www.w3.org/2000/svg" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" viewBox="0 0 59.5 59.5" style="enable-background:new 0 0 59.5 59.5;" xml:space="preserve"> <style type="text/css"> .st0{fill:#7FC0C2;} </style> <sodipodi:namedview bordercolor="#666666" borderopacity="1.0" fit-margin-bottom="1" fit-margin-left="1" fit-margin-right="1" fit-margin-top="1" id="base" inkscape:bbox-nodes="true" inkscape:bbox-paths="true" inkscape:current-layer="g3398" inkscape:cx="103.24415" inkscape:cy="-17.78673" inkscape:document-units="px" inkscape:object-nodes="true" inkscape:object-paths="true" inkscape:pageopacity="0.0" inkscape:pageshadow="2" inkscape:snap-bbox="true" inkscape:snap-bbox-edge-midpoints="true" inkscape:snap-bbox-midpoints="true" inkscape:snap-center="true" inkscape:snap-intersection-paths="true" inkscape:snap-midpoints="true" inkscape:snap-nodes="true" inkscape:snap-object-midpoints="true" inkscape:snap-smooth-nodes="true" inkscape:snap-to-guides="true" inkscape:window-height="851" inkscape:window-maximized="1" inkscape:window-width="1440" inkscape:window-x="0" inkscape:window-y="1" inkscape:zoom="1" pagecolor="#ffffff" showgrid="false" showguides="false"> </sodipodi:namedview> <g id="Logo"> <path class="st0" d="M29.8,21.6c-2.9,0-5.3,2.4-5.3,5.3c0,2.9,2.4,5.3,5.3,5.3c2.9,0,5.2-2.4,5.2-5.3C35,24,32.7,21.6,29.8,21.6z" /> <path class="st0" d="M29.7,4.2c-6.1,0-12,2.6-16.2,7C9.4,15.4,7.2,21.1,7.2,27c0,6.3,2.6,11.9,6.7,16c4.1,4.1,15.9,13.7,15.9,13.7 S41.9,47,45.9,42.8c4-4.2,6.6-9.8,6.5-16.1C52.4,14.2,42.2,4.2,29.7,4.2z M42.9,28.5l-3,1.1c-0.2,1-0.6,1.9-1.1,2.7l1.4,2.8 L38,37.3l-2.8-1.4c-0.8,0.5-1.7,0.9-2.7,1.1l-1.1,3h-3.2l-1.1-3c-1-0.2-1.9-0.6-2.7-1.1l-2.8,1.4l-2.2-2.2l1.4-2.8 c-0.5-0.8-0.9-1.7-1.1-2.7l-3-1.1v-3.2l3-1.1c0.2-1,0.6-1.9,1.1-2.7l-1.4-2.8l2.2-2.2l2.8,1.4c0.8-0.5,1.7-0.9,2.7-1.1l1.1-3h3.2 l1.1,3c1,0.2,1.9,0.6,2.7,1.1l2.8-1.4l2.2,2.2l-1.4,2.8c0.5,0.8,0.9,1.7,1.1,2.7l3,1.1V28.5z"/> </g> </svg> Template/layout/header.phpdeleted 100644 → 0 +0 −5 Original line number Diff line number Diff line <header> <nav> <?= $this->helper->text->e($title) ?> </nav> </header> No newline at end of file Template/layout/title.php 0 → 100644 +15 −0 Original line number Diff line number Diff line <h1> <?= $this->url->link('<img src="/plugins/MittelTheme/Template/img/logo.svg" width="25"/>', 'DashboardController', 'show', array(), false, '', t('Dashboard')) ?> <span class="title"> <?php if (! empty($project) && ! empty($task)): ?> <?= $this->url->link($this->text->e($project['name']), 'BoardViewController', 'show', array('project_id' => $project['id'])) ?> <?php else: ?> <?= $this->text->e($title) ?> <?php endif ?> </span> <?php if (! empty($description)): ?> <small class="tooltip" title="<?= $this->text->markdownAttribute($description) ?>"> <i class="fa fa-info-circle"></i> </small> <?php endif ?> </h1> No newline at end of file Loading
Plugin.php +6 −0 Original line number Diff line number Diff line Loading @@ -10,5 +10,11 @@ class Plugin extends Base $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->setTemplateOverride('header', 'mitteltheme:layout/header'); $this->template->setTemplateOverride('header/title', 'MittelTheme:layout/title', array( 'project' => isset($project) ? $project : null, 'task' => isset($task) ? $task : null, 'description' => isset($description) ? $description : null, 'title' => $title, )); } }
Template/img/logo.svg 0 → 100644 +21 −0 Original line number Diff line number Diff line <?xml version="1.0" encoding="utf-8"?> <!-- Generator: Adobe Illustrator 21.0.0, SVG Export Plug-In . SVG Version: 6.00 Build 0) --> <svg version="1.1" id="svg2" inkscape:version="0.91 r13725" sodipodi:docname="mittelab_pin.svg" xmlns:cc="http://creativecommons.org/ns#" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd" xmlns:svg="http://www.w3.org/2000/svg" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" viewBox="0 0 59.5 59.5" style="enable-background:new 0 0 59.5 59.5;" xml:space="preserve"> <style type="text/css"> .st0{fill:#7FC0C2;} </style> <sodipodi:namedview bordercolor="#666666" borderopacity="1.0" fit-margin-bottom="1" fit-margin-left="1" fit-margin-right="1" fit-margin-top="1" id="base" inkscape:bbox-nodes="true" inkscape:bbox-paths="true" inkscape:current-layer="g3398" inkscape:cx="103.24415" inkscape:cy="-17.78673" inkscape:document-units="px" inkscape:object-nodes="true" inkscape:object-paths="true" inkscape:pageopacity="0.0" inkscape:pageshadow="2" inkscape:snap-bbox="true" inkscape:snap-bbox-edge-midpoints="true" inkscape:snap-bbox-midpoints="true" inkscape:snap-center="true" inkscape:snap-intersection-paths="true" inkscape:snap-midpoints="true" inkscape:snap-nodes="true" inkscape:snap-object-midpoints="true" inkscape:snap-smooth-nodes="true" inkscape:snap-to-guides="true" inkscape:window-height="851" inkscape:window-maximized="1" inkscape:window-width="1440" inkscape:window-x="0" inkscape:window-y="1" inkscape:zoom="1" pagecolor="#ffffff" showgrid="false" showguides="false"> </sodipodi:namedview> <g id="Logo"> <path class="st0" d="M29.8,21.6c-2.9,0-5.3,2.4-5.3,5.3c0,2.9,2.4,5.3,5.3,5.3c2.9,0,5.2-2.4,5.2-5.3C35,24,32.7,21.6,29.8,21.6z" /> <path class="st0" d="M29.7,4.2c-6.1,0-12,2.6-16.2,7C9.4,15.4,7.2,21.1,7.2,27c0,6.3,2.6,11.9,6.7,16c4.1,4.1,15.9,13.7,15.9,13.7 S41.9,47,45.9,42.8c4-4.2,6.6-9.8,6.5-16.1C52.4,14.2,42.2,4.2,29.7,4.2z M42.9,28.5l-3,1.1c-0.2,1-0.6,1.9-1.1,2.7l1.4,2.8 L38,37.3l-2.8-1.4c-0.8,0.5-1.7,0.9-2.7,1.1l-1.1,3h-3.2l-1.1-3c-1-0.2-1.9-0.6-2.7-1.1l-2.8,1.4l-2.2-2.2l1.4-2.8 c-0.5-0.8-0.9-1.7-1.1-2.7l-3-1.1v-3.2l3-1.1c0.2-1,0.6-1.9,1.1-2.7l-1.4-2.8l2.2-2.2l2.8,1.4c0.8-0.5,1.7-0.9,2.7-1.1l1.1-3h3.2 l1.1,3c1,0.2,1.9,0.6,2.7,1.1l2.8-1.4l2.2,2.2l-1.4,2.8c0.5,0.8,0.9,1.7,1.1,2.7l3,1.1V28.5z"/> </g> </svg>
Template/layout/header.phpdeleted 100644 → 0 +0 −5 Original line number Diff line number Diff line <header> <nav> <?= $this->helper->text->e($title) ?> </nav> </header> No newline at end of file
Template/layout/title.php 0 → 100644 +15 −0 Original line number Diff line number Diff line <h1> <?= $this->url->link('<img src="/plugins/MittelTheme/Template/img/logo.svg" width="25"/>', 'DashboardController', 'show', array(), false, '', t('Dashboard')) ?> <span class="title"> <?php if (! empty($project) && ! empty($task)): ?> <?= $this->url->link($this->text->e($project['name']), 'BoardViewController', 'show', array('project_id' => $project['id'])) ?> <?php else: ?> <?= $this->text->e($title) ?> <?php endif ?> </span> <?php if (! empty($description)): ?> <small class="tooltip" title="<?= $this->text->markdownAttribute($description) ?>"> <i class="fa fa-info-circle"></i> </small> <?php endif ?> </h1> No newline at end of file