The about information is now part of panel-one. It is displayed unless you specifically add other content to panel-one
git-svn-id: https://rosehill.googlecode.com/svn/branches/php@38 100bd78a-fc82-11de-b5bc-ffd2847a4b57
This commit is contained in:
parent
7dc3078e19
commit
e34163a6f0
|
@ -1,26 +0,0 @@
|
||||||
<?php
|
|
||||||
/**
|
|
||||||
* @copyright Copyright (C) 2008-2009 City of Bloomington, Indiana. All rights reserved.
|
|
||||||
* @license http://www.gnu.org/copyleft/gpl.html GNU/GPL, see LICENSE.txt
|
|
||||||
*/
|
|
||||||
?>
|
|
||||||
<div id="aboutCemeteries">
|
|
||||||
<h2>About the Cemeteries</h2>
|
|
||||||
<ul>
|
|
||||||
<li><a href="http://bloomington.in.gov/documents/viewDocument.php?document_id=1745">Rose Hill Cemetery</a></li>
|
|
||||||
<li><a href="http://bloomington.in.gov/documents/viewDocument.php?document_id=1747">White Oak Cemetery</a></li>
|
|
||||||
<li><a href="http://bloomington.in.gov/documents/viewDocument.php?document_id=1745">Notable Persons</a></li>
|
|
||||||
<li><a href="http://bloomington.in.gov/documents/viewDocument.php?document_id=1745">Rose Hill Historic Walking Tour</a></li>
|
|
||||||
</ul>
|
|
||||||
<h2>Website Support</h2>
|
|
||||||
<ul>
|
|
||||||
<li><a href="http://bloomington.in.gov/documents/viewDocument.php?document_id=4578">Help</a></li>
|
|
||||||
<li><a href="https://bloomington.in.gov/documents/viewDocument.php?document_id=4577">Cemetery Data Download and Service</a></li>
|
|
||||||
<li><a href="http://bloomington.in.gov">City of Bloomington</a></li>
|
|
||||||
</ul>
|
|
||||||
|
|
||||||
</div>
|
|
||||||
<div id="cemeteryImages">
|
|
||||||
<div><img alt="Rose Hill Cemetery" src="<?php echo BASE_URL."/images/rosehill.png"; ?>" /></div>
|
|
||||||
<div><img alt="White Oak Cemetery" src="<?php echo BASE_URL."/images/whiteoakweb.jpg"; ?>" /></div>
|
|
||||||
</div>
|
|
|
@ -1,13 +1,12 @@
|
||||||
<?php
|
<?php
|
||||||
/**
|
/**
|
||||||
* @copyright 2009 City of Bloomington, Indiana
|
* @copyright 2009-2010 City of Bloomington, Indiana
|
||||||
* @license http://www.gnu.org/copyleft/gpl.html GNU/GPL, see LICENSE.txt
|
* @license http://www.gnu.org/copyleft/gpl.html GNU/GPL, see LICENSE.txt
|
||||||
* @author Cliff Ingham <inghamn@bloomington.in.gov>
|
* @author Cliff Ingham <inghamn@bloomington.in.gov>
|
||||||
*/
|
*/
|
||||||
|
|
||||||
$cemeteryList = new CemeteryList();
|
$cemeteryList = new CemeteryList();
|
||||||
$cemeteryList->find();
|
$cemeteryList->find();
|
||||||
|
|
||||||
$template = new Template();
|
$template = isset($_GET['format']) ? new Template('default',$_GET['format']) : new Template();
|
||||||
$template->blocks[] = new Block('cemeteries/cemeteryList.inc',array('cemeteryList'=>$cemeteryList));
|
$template->blocks[] = new Block('cemeteries/cemeteryList.inc',array('cemeteryList'=>$cemeteryList));
|
||||||
echo $template->render();
|
echo $template->render();
|
|
@ -19,12 +19,8 @@ catch (Exception $e) {
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
$template = isset($_GET['format'])
|
||||||
if (isset($_GET['format'])) {
|
? new Template('default',$_GET['format'])
|
||||||
$template = new Template('default',$_GET['format']);
|
: $template = new Template();
|
||||||
}
|
|
||||||
else {
|
|
||||||
$template = new Template();
|
|
||||||
}
|
|
||||||
$template->blocks[] = new Block('cemeteries/cemeteryInfo.inc',array('cemetery'=>$cemetery));
|
$template->blocks[] = new Block('cemeteries/cemeteryInfo.inc',array('cemetery'=>$cemetery));
|
||||||
echo $template->render();
|
echo $template->render();
|
||||||
|
|
|
@ -32,7 +32,6 @@ if ($template->outputFormat=='html') {
|
||||||
$template->blocks[] = new Block('interments/addIntermentForm.inc',
|
$template->blocks[] = new Block('interments/addIntermentForm.inc',
|
||||||
array('return_url'=>$return_url));
|
array('return_url'=>$return_url));
|
||||||
}
|
}
|
||||||
$template->blocks['panel-one'][] = new Block('about.inc');
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -1,5 +1,50 @@
|
||||||
<div id="panel-one">
|
<div id="panel-one">
|
||||||
<?php
|
<?php
|
||||||
echo $this->includeBlocks('panel-one');
|
if (array_key_exists('panel-one',$this->blocks) && count($this->blocks['panel-one'])) {
|
||||||
|
echo $this->includeBlocks('panel-one');
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
?>
|
||||||
|
<div id="aboutCemeteries">
|
||||||
|
<h2>About the Cemeteries</h2>
|
||||||
|
<ul>
|
||||||
|
<li><a href="http://bloomington.in.gov/documents/viewDocument.php?document_id=1745">
|
||||||
|
Rose Hill Cemetery
|
||||||
|
</a>
|
||||||
|
</li>
|
||||||
|
<li><a href="http://bloomington.in.gov/documents/viewDocument.php?document_id=1747">
|
||||||
|
White Oak Cemetery
|
||||||
|
</a>
|
||||||
|
</li>
|
||||||
|
<li><a href="http://bloomington.in.gov/documents/viewDocument.php?document_id=1745">
|
||||||
|
Notable Persons
|
||||||
|
</a>
|
||||||
|
</li>
|
||||||
|
<li><a href="http://bloomington.in.gov/documents/viewDocument.php?document_id=1745">
|
||||||
|
Rose Hill Historic Walking Tour
|
||||||
|
</a>
|
||||||
|
</li>
|
||||||
|
</ul>
|
||||||
|
<h2>Website Support</h2>
|
||||||
|
<ul>
|
||||||
|
<li><a href="http://bloomington.in.gov/documents/viewDocument.php?document_id=4578">
|
||||||
|
Help
|
||||||
|
</a>
|
||||||
|
</li>
|
||||||
|
<li><a href="http://bloomington.in.gov/documents/viewDocument.php?document_id=4577">
|
||||||
|
Cemetery Data Download and Service
|
||||||
|
</a>
|
||||||
|
</li>
|
||||||
|
<li><a href="<?php echo BASE_URL; ?>/services">Web Services</a></li>
|
||||||
|
<li><a href="http://bloomington.in.gov">City of Bloomington</a></li>
|
||||||
|
</ul>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
<div id="cemeteryImages">
|
||||||
|
<div><img alt="Rose Hill Cemetery" src="<?php echo BASE_URL."/images/rosehill.png"; ?>" /></div>
|
||||||
|
<div><img alt="White Oak Cemetery" src="<?php echo BASE_URL."/images/whiteoakweb.jpg"; ?>" /></div>
|
||||||
|
</div>
|
||||||
|
<?php
|
||||||
|
}
|
||||||
?>
|
?>
|
||||||
</div>
|
</div>
|
Loading…
Reference in New Issue