/** * After toHtml * * @param string $html * @return mixed|string */ protected function _afterToHtml($html) { $html = parent::_afterToHtml($html); // Set a specific <tbody> id to be able to target children <tr> $html = str_replace("<tbody>", "<tbody id='slide_grid_tbody'>", $html); // Sortable JS template $html .= $this->getLayout()->createBlock('core/template')->setTemplate('antoinek/slider/js.phtml')->toHtml(); return $html; }
/** * Processing block html after rendering. * Add button to delete orphan points if customer has such points * * @param string $html * @return string */ protected function _afterToHtml($html) { $html = parent::_afterToHtml($html); if ($this->_customerHasOrphanPoints) { $deleteOrhanPointsButton = $this->getLayout()->createBlock('adminhtml/widget_button')->setData(array('label' => Mage::helper('enterprise_reward')->__('Delete Orphan Points'), 'onclick' => 'setLocation(\'' . $this->getDeleteOrphanPointsUrl() . '\')', 'class' => 'scalable delete')); $html .= $deleteOrhanPointsButton->toHtml(); } return $html; }
protected function _afterToHtml($html) { return $this->_prependHtml() . parent::_afterToHtml($html) . $this->_appendHtml(); }
protected function _afterToHtml($html) { return parent::_afterToHtml($html); }
protected function _afterToHtml($html) { $html = parent::_afterToHtml($html); return $html; }
protected function _afterToHtml($html) { $html = "<script>varienGrid.prototype.rowMouseOver = function(event){var element = Event.findElement(event, 'tr');Element.addClassName(element, 'on-mouse');element.style.cursor = 'default';}</script>" . $html; return parent::_afterToHtml($html); }