Example #1
0
 /**
  * Prepare link to display in grid
  *
  * @param Varien_Object $row
  * @return string
  */
 public function render(Varien_Object $row)
 {
     /* @var $row CueBlocks_SitemapEnhancedPlus_Model_SitemapEnhancedPlus */
     $html = '';
     $fileUrl = $row->getLinkForRobots();
     $fileName = $fileUrl['filename'];
     $url = $fileUrl['url'];
     //        if ($pathmap)
     //            $filePath = $helper->fixRelative(BP . DS . $pathmap);
     if (file_exists($row->getPath() . $fileName)) {
         $html .= sprintf('<div><a target="_blank" href="%1$s">%1$s</a></div>', $url);
     } else {
         $html .= sprintf('<div>%1$s</div>', $url);
     }
     return $html;
 }