  |
1 | 1 | | <?php |
| |
2 | 2 | | /* |
  |
3 | | - | $Id: template.php 356 2005-12-20 04:13:12Z hpdl $ |
| |
| 3 | + | $Id: template.php 593 2006-07-03 09:07:11Z hpdl $ |
|
4 | 4 | | |
| |
5 | 5 | | osCommerce, Open Source E-Commerce Solutions |
| |
6 | 6 | | http://www.oscommerce.com |
| |
|
|
 |
… |
|
122 | 122 | | var $_javascript_blocks = array(); |
| |
123 | 123 | | |
| |
124 | 124 | | /** |
  |
| 125 | + | * Defines if the requested page has a header |
| |
| 126 | + | * |
| |
| 127 | + | * @var boolean |
| |
| 128 | + | * @access private |
| |
| 129 | + | */ |
| |
| 130 | + | |
| |
| 131 | + | var $_has_header = true; |
| |
| 132 | + | |
| |
| 133 | + | /** |
| |
| 134 | + | * Defines if the requested page has a footer |
| |
| 135 | + | * |
| |
| 136 | + | * @var boolean |
| |
| 137 | + | * @access private |
| |
| 138 | + | */ |
| |
| 139 | + | |
| |
| 140 | + | var $_has_footer = true; |
| |
| 141 | + | |
| |
| 142 | + | /** |
| |
| 143 | + | * Defines if the requested page has box modules |
| |
| 144 | + | * |
| |
| 145 | + | * @var boolean |
| |
| 146 | + | * @access private |
| |
| 147 | + | */ |
| |
| 148 | + | |
| |
| 149 | + | var $_has_box_modules = true; |
| |
| 150 | + | |
| |
| 151 | + | /** |
| |
| 152 | + | * Defines if the requested page has content modules |
| |
| 153 | + | * |
| |
| 154 | + | * @var boolean |
| |
| 155 | + | * @access private |
| |
| 156 | + | */ |
| |
| 157 | + | |
| |
| 158 | + | var $_has_content_modules = true; |
| |
| 159 | + | |
| |
| 160 | + | /** |
| |
| 161 | + | * Defines if the requested page should display any debug messages |
| |
| 162 | + | * |
| |
| 163 | + | * @var boolean |
| |
| 164 | + | * @access private |
| |
| 165 | + | */ |
| |
| 166 | + | |
| |
| 167 | + | var $_show_debug_messages = true; |
| |
| 168 | + | |
| |
| 169 | + | /** |
|
125 | 170 | | * Setup the template class with the requested page module |
| |
126 | 171 | | * |
| |
127 | 172 | | * @param string $module The default page module to setup |
| |
|
|
 |
… |
|
365 | 410 | | } |
| |
366 | 411 | | |
| |
367 | 412 | | /** |
  |
| 413 | + | * Checks to see if the page has a footer defined |
| |
| 414 | + | * |
| |
| 415 | + | * @access public |
| |
| 416 | + | * @return boolean |
| |
| 417 | + | */ |
| |
| 418 | + | |
| |
| 419 | + | function hasPageFooter() { |
| |
| 420 | + | return $this->_has_footer; |
| |
| 421 | + | } |
| |
| 422 | + | |
| |
| 423 | + | /** |
| |
| 424 | + | * Checks to see if the page has a header defined |
| |
| 425 | + | * |
| |
| 426 | + | * @access public |
| |
| 427 | + | * @return boolean |
| |
| 428 | + | */ |
| |
| 429 | + | |
| |
| 430 | + | function hasPageHeader() { |
| |
| 431 | + | return $this->_has_header; |
| |
| 432 | + | } |
| |
| 433 | + | |
| |
| 434 | + | /** |
| |
| 435 | + | * Checks to see if the page has content modules defined |
| |
| 436 | + | * |
| |
| 437 | + | * @access public |
| |
| 438 | + | * @return boolean |
| |
| 439 | + | */ |
| |
| 440 | + | |
| |
| 441 | + | function hasPageContentModules() { |
| |
| 442 | + | return $this->_has_content_modules; |
| |
| 443 | + | } |
| |
| 444 | + | |
| |
| 445 | + | /** |
| |
| 446 | + | * Checks to see if the page has box modules defined |
| |
| 447 | + | * |
| |
| 448 | + | * @access public |
| |
| 449 | + | * @return boolean |
| |
| 450 | + | */ |
| |
| 451 | + | |
| |
| 452 | + | function hasPageBoxModules() { |
| |
| 453 | + | return $this->_has_box_modules; |
| |
| 454 | + | } |
| |
| 455 | + | |
| |
| 456 | + | /** |
| |
| 457 | + | * Checks to see if the page show display debug messages |
| |
| 458 | + | * |
| |
| 459 | + | * @access public |
| |
| 460 | + | * @return boolean |
| |
| 461 | + | */ |
| |
| 462 | + | |
| |
| 463 | + | function showDebugMessages() { |
| |
| 464 | + | return $this->_show_debug_messages; |
| |
| 465 | + | } |
| |
| 466 | + | |
| |
| 467 | + | /** |
  |
368 | 468 | | * Sets the template to use |
| |
369 | 469 | | * |
| |
370 | 470 | | * @access public |