A Qcodo based CMS/ecommerce framework
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

72 lines
2.4 KiB

12 years ago
  1. <?php
  2. /* $Id: PageView.tpl.php 197 2008-09-19 22:11:27Z erikwinn $ */
  3. if($_CONTROL->HasHeader)
  4. {
  5. print '<div id="PageHeader">' . "\n";
  6. if($_CONTROL->HeaderContentBlocks)
  7. {
  8. foreach( $_CONTROL->aryHeaderContentBlocks as $childBlockView )
  9. if($childBlockView instanceof ContentBlockView)
  10. $childBlockView->Render();
  11. }
  12. print '</div><!-- end PageHeader -->' . "\n";
  13. }
  14. if($_CONTROL->HasLeftColumn)
  15. {
  16. print '<div id="LeftPanel">' . "\n";
  17. if($_CONTROL->LeftPanelContentBlocks)
  18. {
  19. foreach( $_CONTROL->aryLeftPanelContentBlocks as $childBlockView )
  20. if($childBlockView instanceof ContentBlockView)
  21. $childBlockView->Render();
  22. }
  23. print '</div><!-- end LeftPanel -->' . "\n";
  24. }
  25. // We assume at least the center panel exists ..
  26. print '<div id="CenterPanel">' . "\n";
  27. if($_CONTROL->CenterPanelContentBlocks)
  28. {
  29. foreach( $_CONTROL->aryCenterPanelContentBlocks as $childBlockView )
  30. if($childBlockView instanceof ContentBlockView)
  31. $childBlockView->Render();
  32. }
  33. print '</div><!-- end CenterPanel -->' . "\n";
  34. if($_CONTROL->HasRightColumn)
  35. {
  36. print '<div id="RightPanel">' . "\n";
  37. if($_CONTROL->RightPanelContentBlocks)
  38. {
  39. foreach( $_CONTROL->aryRightPanelContentBlocks as $childBlockView )
  40. if($childBlockView instanceof ContentBlockView)
  41. $childBlockView->Render();
  42. }
  43. print '</div><!-- end RightPanel -->' . "\n";
  44. }
  45. if($_CONTROL->HasFooter)
  46. {
  47. print '<div id="PageFooter">' . "\n";
  48. if($_CONTROL->aryFooterContentBlocks)
  49. {
  50. foreach( $_CONTROL->aryFooterContentBlocks as $childBlockView )
  51. if($childBlockView instanceof ContentBlockView )
  52. $childBlockView->Render();
  53. }
  54. print '</div><!-- end PageFooter --> ' . "\n";
  55. }
  56. // Now for all the free radicals .. these are only constrained by the index.tpl.php PageContainer div
  57. if($_CONTROL->ExtraContentBlocks)
  58. {
  59. foreach( $_CONTROL->aryExtraContentBlocks as $childBlockView )
  60. if($childBlockView instanceof ContentBlockView )
  61. $childBlockView->Render();
  62. }
  63. ?>