Website Development

Miscellaneous Forums/General Discussion/Website Development

The forum is locked. These are the original blitzbasic.com forums, kept so they can still be read. No new topics, replies or edits can be made here. To join in, head over to the Blitz3D+ forums.

Using a natural template method, you can also define your own settings, like as follows:
<?php
include "../settings.inc.php";

$TEMPLATE = array();
$TEMPLATE['head'] = "Some head HTML";
$TEMPLATE['content'] = "Some content";
$TEMPLATE['title'] = "Title example";

$SETTINGS = array();
$SETTINGS['show_contactInfo'] = true;
$SETTINGS['title_bigger'] = true;

include "../template.inc.php";
?>


... template:
<html>
  <head>
    <?=$TEMPLATE['head'];?>
  </head>
  <body>
    <?php
      if($SETTINGS['title_bigger'] == true)print"<h1>".$TEMPLATE['title']."</h1>";
        else print $TEMPLATE['title'];

      print $TEMPLATE['content'];

      if($SETTINGS['show_contact'] == true)print $TEMPLATE['show_contact'];
    ?>
  </body>
</head>


Your templates can then also include whatever standard headers and footers they need to also.