I have a site where the pages have the following structure:
<?php
include('header.php');
?>
Content goes here
<?php
include('footer.php');
?>
In the header I have a div that contains anything that is wider than the page itself. This div is above the main content:
<? if ($slider == true){ ?>
<div id="slider">
Content wider than page goes here
</div>
If I set $slider to true on any page, the above div will show. Now, I want to be able to edit the content of this div from any page. How do I do this? Simply adding a variable like $slider_content and then including it in the header did not work.
header.phptwice?