*/ class Mage_Adminhtml_Block_Notification_Grid_Renderer_Actions extends Mage_Adminhtml_Block_Widget_Grid_Column_Renderer_Abstract { /** * Renders grid column * * @param Varien_Object $row * @return string */ public function render(Varien_Object $row) { $readDetailsHtml = ($row->getUrl()) ? '' . Mage::helper('adminnotification')->__('Read Details') .' | ' : ''; $markAsReadHtml = (!$row->getIsRead()) ? '' . Mage::helper('adminnotification')->__('Mark as Read') .' | ' : ''; return sprintf('%s%s%s', $readDetailsHtml, $markAsReadHtml, $this->getUrl('*/*/remove/', array( '_current'=>true, 'id' => $row->getId(), Mage_Core_Controller_Front_Action::PARAM_NAME_URL_ENCODED => $this->helper('core/url')->getEncodedUrl()) ), Mage::helper('adminnotification')->__('Are you sure?'), Mage::helper('adminnotification')->__('Remove') ); } }