How to include header on all pages?

Permalink
Hi :-)

I'm wondering how I can include one file, or have an editable area that is the same for all pages?
I kind of made it happen, but then I couldn't add logo(unless I hardcoded it, like in the codeblock below.
<div class="nav-wrap">
    <nav>
        <div id="logo">My Logo</div><br>
        <img id="burger-ikon" src="<?=$view->getThemePath()?>/images/burger-ikon.png">
        <br>
            <div id="line"></div>
            <?php
                $nav = BlockType::getByHandle('content');
                $nav = BlockType::getByHandle('autonav');
                $nav->controller->orderBy = 'display_asc';
                $nav->controller->displayPages = 'top';
                $nav->controller->displaySubPages = 'all';
                $nav->controller->displaySubPageLevels = 'custom';
                $nav->controller->displaySubPageLevelsNum = 2;
                $nav->render('templates/themetest');


I want an area which comes with all pages with option to add content. But if there already have, lets say, added a auto-nav block, it comes along automatically.

Any ideas? Thanks in advance :-D

 
ConcreteOwl replied on at Permalink Best Answer Reply
ConcreteOwl
<div id="logo">
<?php 
$a = new GlobalArea('Site Logo');
$a->display();
?>
</div><br>

Look here for explanation..
http://www.concrete5.org/documentation/recorded-trainings/theme-dev...
gjermundnor replied on at Permalink Reply
Thanks a lot!