Skip to content

Instantly share code, notes, and snippets.

@jeremyboggs
Created June 11, 2012 23:16
Show Gist options
  • Save jeremyboggs/2913348 to your computer and use it in GitHub Desktop.
Save jeremyboggs/2913348 to your computer and use it in GitHub Desktop.
<?php
if($itemTypeName = Zend_Controller_Front::getInstance()->getRequest()->getParam('type')) {
$itemTypeName = get_db()->getTable('ItemType')->findByName($itemTypeName)->name;
$title = 'Browse '. $itemTypeName . 's';
} else {
$title = 'Browse Items';
}
head(array('title'=>$title,'bodyid'=>'items','bodyclass' => 'browse'));
?>
<h1><?php echo $title; ?> (<?php echo total_results(); ?> total)</h1>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment