*

Recent

Author Topic: Adding blocks instead of script.  (Read 4425 times)

Frank

  • Sr. Member
  • ****
  • Posts: 257
  • Force: +4/-0
Adding blocks instead of script.
« on: September 28, 2011, 04:24:32 PM »
Could I suggest that template.php imports blocks for the various scripts rather than have it all included in one big lump.

And then do something like this:

Code: [Select]
<?php
include "templates/$template/blocks/user-menu.php";
if ( $_GET['action'] == 'search' ) {/*Do Nothing*/} else {
include "templates/$template/blocks/search.php"; };
include 
"submenu1.php";
include 
"templates/$template/blocks/top-five.php";
?>

Not only is it cleaner - Things can be removed, moved around or added without having to have too much knowledge of html mark up. :)

kurt

  • Developer
  • Hero Member
  • ******
  • Posts: 634
  • Force: +16/-1
Re: Adding blocks instead of script.
« Reply #1 on: September 28, 2011, 06:36:26 PM »
We started down that road at one point, but figured this way was easier. We may yet make it an option though.

Frank

  • Sr. Member
  • ****
  • Posts: 257
  • Force: +4/-0
Re: Adding blocks instead of script.
« Reply #2 on: September 28, 2011, 06:57:37 PM »
Ok,

I just thought a CMS style (as I've done to mine) would be a lot easier, particularly in the future. ;)