68 lines
2.1 KiB
PHP
Executable File
68 lines
2.1 KiB
PHP
Executable File
<?php
|
|
###################################################################################################### set up this who are we? page
|
|
global $_PATH_PREFIX,$_TRAINERS,$_MENU,$_WORDS; // globals we will need
|
|
|
|
?>
|
|
|
|
<div class='page_subtitle'><?php echo $_MENU['whoarewe']; ?></div>
|
|
<div class='page_content'>
|
|
|
|
<?php
|
|
$page = $_DOC_ROOT."/data/pages/{$_LANG}_whoarewe.txt"; // the language specific file containing this page's text
|
|
|
|
if(file_exists($page)) {
|
|
print file_get_contents($page);
|
|
}
|
|
?>
|
|
|
|
</div>
|
|
<div class='page_subtitle' id='Our History'><?php echo $_WORDS['ourhistory']; ?></div>
|
|
<div class='page_content'>
|
|
|
|
<?php
|
|
$page = $_DOC_ROOT."/data/pages/{$_LANG}_history.txt"; // the language specific file containing this page's text
|
|
|
|
if(file_exists($page)) {
|
|
print file_get_contents($page);
|
|
}
|
|
|
|
###################################################################################################### prints the who are we page in any language
|
|
$bios_path = $_DOC_ROOT.'/data/trainer_bios/'; // the directory with the trainer bios in it
|
|
$bios = scandir($bios_path); // get all the files in that directory
|
|
$bios = filesys_remove_unwanted_children($bios,$bios_path,'FOLDERS'); // remove current, parent directories and any files
|
|
|
|
$staff_bios = array('francismontocchio.xml','mikewalt.xml',
|
|
'kerstinschuetze.xml','annasteinhardt.xml');
|
|
foreach($staff_bios as $person) {
|
|
array_splice($bios,array_search($person,$bios),1);
|
|
}
|
|
|
|
?>
|
|
|
|
</div>
|
|
<div class='page_subtitle' id='Staff'><?php echo $_TRAINERS['whoarewe_heading_staff']; ?></div>
|
|
<div class='page_content'>
|
|
|
|
<?php
|
|
foreach($staff_bios as $bio) { // step through each bio
|
|
html_print_bio($bios_path,$bio,'staff');
|
|
}
|
|
|
|
?>
|
|
|
|
</div>
|
|
<br /> <br />
|
|
<div class='page_subtitle' id='Trainers'><?php echo $_TRAINERS['whoarewe_heading_trainers']; ?></div>
|
|
<div class='page_content'>
|
|
|
|
<?php
|
|
|
|
|
|
array_splice($bios,array_search('andiefisher.xml',$bios),1);
|
|
array_push($bios,'andiefisher.xml'); // put andie fischer last
|
|
foreach($bios as $bio) { // step through each bio
|
|
html_print_bio($bios_path,$bio,'trainer');
|
|
}
|
|
|
|
?>
|
|
</div>
|