Changeset 104 for dev/common/home.php

Show
Ignore:
Timestamp:
11/28/06 22:32:11 (16 years ago)
Author:
knifee
Message:

Changed the class.box.php to use smarty, and changed all pages that use the class to use the options. Menu Boxes can now be created as follows:
$menubox = new box("Menu");
$menubox->setIcon("menu-item.gif"); // only needed if adding a Menu (ie u want the little icon)
$menubox->addOption("caption","View"); // Add a Caption
$menubox->addOption("link","Name","URL"); // Add a Link
$menubox->addOption("points","Points Value"); // Add points to a Points Box
$menubox->addOption("img","/path to img"); // Add an Image

changed the AwardBox? Class to use smarty, that is called in the same way as before so no need to change anything.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • dev/common/home.php

    r92 r104  
    9393 
    9494$page->setContent($html); 
    95 $menubox = new MenuBox(); 
    96 $menubox->addCaption("Navigation"); 
    97 $menubox->addOption("Previous week", "?a=kills&w=" . $pweek . "&y=" . $pyear); 
     95$menubox = new box("Menu"); 
     96$menubox->setIcon("menu-item.gif"); 
     97$menubox->addOption("caption","Navigation"); 
     98$menubox->addOption("link","Previous week", "?a=kills&w=" . $pweek . "&y=" . $pyear); 
    9899$page->addContext($menubox->generate()); 
    99100