Public Member Functions | |
render (Varien_Object $row) |
Definition at line 33 of file Link.php.
render | ( | Varien_Object $ | row | ) |
Prepare link to display in grid
Varien_Object | $row |
Reimplemented from Mage_Adminhtml_Block_Widget_Grid_Column_Renderer_Abstract.
Definition at line 42 of file Link.php.
00043 { 00044 $fileName = preg_replace('/^\//', '', $row->getSitemapPath() . $row->getSitemapFilename()); 00045 $url = $this->htmlEscape(Mage::getBaseUrl('web') . $fileName); 00046 00047 if (file_exists(BP . DS . $fileName)) { 00048 return sprintf('<a href="%1$s">%1$s</a>', $url); 00049 } 00050 return $url; 00051 }