<?PHP
/**
* template_block - shows the block on the page
*
* @author Edward Ritter <hide@address.com>
* @module template_block
* @package phpWebSite
* @version $Id: template_block.php,v 1.1.1.1 2002/09/03 18:59:26 esritter Exp $
*/
/**
* This file generates content for display in block if the
* module uses a block for display. Any content that needs
* to be displayed in the block can be assigned to the
* $box_content variable.
*/
$txt = "Here's your sample module. This block is positioned at the";
/* Here's an example of the module block executing different code
according to where the block is positioned. */
switch ($position) {
case '0':
case 'left':
$box_content = "$txt left";
break;
case '1':
case 'topcenter':
$box_content = "$txt top center";
break;
case '2':
case 'middlecenter':
$box_content = "$txt middle center";
break;
case '3':
case 'bottomcenter':
$box_content = "$txt bottom center";
break;
case '4':
case 'right':
$box_content = "$txt right";
break;
default:
break;
}
$box_content .= "<p>To change what gets displayed here, edit the "
.$modname."_block.php file in your module's directory. To set where
the module's block is displayed, edit the \$block_display_position
variable in the index.php.</p>";
?>