Here is an example of the code for the more_information sidebox:
PHP Code:
// test if links should display
if (DEFINE_PAGE_2_STATUS <= 1) {
$more_information[] = '<a href="' . zen_href_link(FILENAME_PAGE_2) . '">' . BOX_INFORMATION_PAGE_2 . '</a>';
}
if (DEFINE_PAGE_3_STATUS <= 1) {
$more_information[] = '<a href="' . zen_href_link(FILENAME_PAGE_3) . '">' . BOX_INFORMATION_PAGE_3 . '</a>';
}
if (DEFINE_PAGE_4_STATUS <= 1) {
$more_information[] = '<a href="' . zen_href_link(FILENAME_PAGE_4) . '">' . BOX_INFORMATION_PAGE_4 . '</a>';
}
Those switches determin if you see the links in the sidebox ...
The pages themselves have the ability to turn off the display of the text you define ... example page 2 is run by the tpl_page_2_default.php and uses the code:
PHP Code:
<?php if (DEFINE_PAGE_2_STATUS >= 1 and DEFINE_PAGE_2_STATUS <= 2) { ?>
<div id="pageTwoMainContent" class="content">
<?php
/**
* load the html_define for the page_2 default
*/
require($define_page);
?>
</div>
<?php } ?>
That determins should the text of the define be displayed ... again based on the setting of the switch in the Configuration ... Define Pages Status ...
Bookmarks