The About Us contribution was intentionally designed to not provide switches for turning the page on/off, because the coding to set up all the conditional logic is too tough for most newbies to comprehend.
If you want to do it, you need to:
A. add the switches into the database, following the pattern:
Code:
insert into configuration (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, last_modified, date_added, use_function, set_function) values ('Define Conditions of Use', 'DEFINE_CONDITIONS_STATUS', '1', 'Enable the Defined Conditions of Use Link/Text?<br />0= Link ON, Define Text OFF<br />1= Link ON, Define Text ON<br />2= Link OFF, Define Text ON<br />3= Link OFF, Define Text OFF', 25, 75, now(), now(), NULL, 'zen_cfg_select_option(array(\'0\', \'1\', \'2\', \'3\'),');
B. add the conditions to your sidebox, following the pattern:
Code:
if (DEFINE_CONDITIONS_STATUS <= 1) {
$information[] = '<a href="' . zen_href_link(FILENAME_CONDITIONS) . '">' . BOX_INFORMATION_CONDITIONS . '</a>';
}
C. You probably don't need to support the switch settings for "2" and "3", but if you do, then you need to follow the pattern in your template file:
PHP Code:
<?php if (DEFINE_CONDITIONS_STATUS >= 1 and DEFINE_CONDITIONS_STATUS <= 2) { ?>
<div id="conditionsMainContent" class="content">
<?php
/**
* require the html_define for the conditions page
*/
require($define_page);
?>
</div>
<?php } ?>