/** * Answer the title of a block * * @param object BlockSiteComponent $block * @return string * @access public * @since 5/18/07 */ function getBlockTitle($block) { ob_start(); print "\n<div class='ui2_reorder'>"; // Look at the order cascading down from the flow organizer. if ($block->sortMethod() == 'custom') { $this->_controlsVisitor->printReorderLink($block); $this->_controlsVisitor->printReorderForm($block); } // Add controls bar and border $authZ = Services::getService("AuthZ"); $idManager = Services::getService("Id"); if ($authZ->isUserAuthorized($idManager->getId("edu.middlebury.authorization.modify"), $block->getQualifierId())) { print "\n\t"; if ($block->sortMethod() == 'custom') { print " | "; } print "<a href='" . $this->getHistoryUrl($block->getId()) . "'>"; print _("history"); print "</a>"; } print "\n</div>"; print parent::getBlockTitle($block); return ob_get_clean(); }
/** * Answer the title of a block * * @param object BlockSiteComponent $block * @return string * @access public * @since 5/18/07 */ function getBlockTitle($block) { if ($block->getId() == $this->_node->getId()) { return $block->getDisplayName() . " » " . _("Detail"); } else { return parent::getBlockTitle($block); } }