  |
1 | 1 | | <?php |
| |
2 | 2 | | /* |
  |
3 | | - | $Id: template.php 325 2005-12-05 03:28:21Z hpdl $ |
| |
| 3 | + | $Id: template.php 331 2005-12-06 03:28:58Z hpdl $ |
|
4 | 4 | | |
| |
5 | 5 | | osCommerce, Open Source E-Commerce Solutions |
| |
6 | 6 | | http://www.oscommerce.com |
| |
|
|
 |
… |
|
215 | 215 | | static $osC_Boxes; |
| |
216 | 216 | | |
| |
217 | 217 | | if (isset($osC_Boxes) === false) { |
  |
218 | | - | $osC_Boxes = new osC_Boxes(); |
| |
| 218 | + | $osC_Boxes = new osC_Boxes('boxes'); |
|
219 | 219 | | } |
| |
220 | 220 | | |
| |
221 | 221 | | return $osC_Boxes->getGroup($group); |
| |
222 | 222 | | } |
| |
223 | 223 | | |
| |
224 | 224 | | /** |
  |
| 225 | + | * Return the modules assigned to the page content |
| |
| 226 | + | * |
| |
| 227 | + | * @param string $group The group name of modules to include that the template has provided |
| |
| 228 | + | * @return array |
| |
| 229 | + | */ |
| |
| 230 | + | |
| |
| 231 | + | function getPageModulesContent($group) { |
| |
| 232 | + | static $osC_Boxes; |
| |
| 233 | + | |
| |
| 234 | + | if (isset($osC_Boxes) === false) { |
| |
| 235 | + | $osC_Boxes = new osC_Boxes('content'); |
| |
| 236 | + | } |
| |
| 237 | + | |
| |
| 238 | + | return $osC_Boxes->getGroup($group); |
| |
| 239 | + | } |
| |
| 240 | + | |
| |
| 241 | + | /** |
  |
225 | 242 | | * Returns the image of the page |
| |
226 | 243 | | * |
| |
227 | 244 | | * @access public |