header footer pain

Permalink
what's wrong here?
<?php  defined('C5_EXECUTE') or die("Access Denied."); ?>
<!doctype html>
<html>
<head>
<?php $this->inc('elements/header.php'); ?>
   <div class= "wrapper">
<title>Untitled Document</title>
 <link href="<?=$view->getThemePath()?>/css/martare.css" rel="stylesheet" type="text/css">
</head>
<body>
<div class="container">
  <header></header>
  <article class="content">
     <div>
    <?php

<?php 
defined('C5_EXECUTE') or die("Access Denied.");
$this->inc('elements/header.php'); ?>
<div id="content">
    <?php
    $a = new Area('Main');
    $a->display($c);
    ?>
    <div style="clear: both;"> </div>
</div>
  <?php $this->inc('elements/footer.php'); ?>



<?=Loader::element('header_required');?>
      <footer>    <div>
      <?php 
      $a = new GlobalArea('footer');
      $a->display();
   ?>
        </div></footer>
  <!-- end .content --></article>
  <!-- end .container --></div>
  <?=Loader::element('footer_required');?>
</body>
</html>


i'm getting reinisalisation errors

Thanks for seeting me straight

Niels

NLS61
 
Tom0 replied on at Permalink Reply
Loader::element('header_required'); needs to be inside your <head></head> tags.
ConcreteOwl replied on at Permalink Reply
ConcreteOwl
Try these
<?php  defined('C5_EXECUTE') or die("Access Denied."); ?>
<!doctype html>
<html>
<head>
<?php Loader::element('header_required'); ?>
<title>Untitled Document</title>
<link rel="stylesheet" type="text/css" media="all" href="<?php  echo $this->getStyleSheet('css/martare.css');?>">
</head>
<body>
<div class="container">
<article class="content">
<div>
    <?php 
         $a = new GlobalArea('Site Logo');
         $a->display();

<?php defined('C5_EXECUTE') or die("Access Denied.");?>
<?php $this->inc('elements/header.php'); ?>
<div id="content">
    <?php
         $a = new Area('Main');
         $a->display($c);
    ?>
    <div style="clear: both;"> </div>
</div>
<?php $this->inc('elements/footer.php'); ?>

<?php defined('C5_EXECUTE') or die("Access Denied.");?>
<footer>
<div>
  <?php 
      $a = new GlobalArea('footer');
      $a->display();
   ?>
</div>
</footer>
  <!-- end .content --></article>
  <!-- end .container --></div>
<?php Loader::element('footer_required');?>
</body>
</html>
NLS61 replied on at Permalink Reply
NLS61
Thanks for your input,
I've copy pasted your code.
The result was "invalid argument supplied for foreach()"
Exacly what I'm getting all the time.
My own code for the header was in the head tag i only stupiditly dind't copy that here.
I've deleted the template overridden the php files
Then reinstated the templates en trough design assigned the tempalte anew.

Thanks anyhow.

Niels
NLS61 replied on at Permalink Reply
NLS61
I've at long least reinstalled concrete5
I did this under a different domain in a new database.
First I got the same errors I see a lot of in the forums
But at long least without doing anything different I got it installed.
In this install 5.7.0.3 I tried .4 but haven’t had any luck installing that again, I've encountered some troubles like image sizes settings in blocks that have no effect but My header footer pain so to speak went away.
Coping anything to the clipboard wil work, but there is no way I can find to paste that later.
This al worked before 5.7.x.x.

I've got the feeling that the 5.7.x.x series in not completely stable but promising.
I keep with it as I'm not an experienced user.