protected function getCellText($data, $isAlternate) { $volumeControl = $this->configuration->isVolumeControl(); $width = $volumeControl ? "240" : "220"; $playerFile = $volumeControl ? "dewplayer-vol.swf" : "dewplayer.swf"; $playerPath = PluginHelper::getPluginBaseUrl() . "dewplayer/" . $playerFile; $bgColor = $isAlternate ? $this->configuration->getAltRowColor() : $this->configuration->getPrimaryRowColor(); $playerCode = $this->configuration->getPlayerCode(); $playerCode = str_replace("%1", $width, $playerCode); $playerCode = str_replace("%2", $bgColor, $playerCode); $playerCode = str_replace("%3", $data->getUrlPath(), $playerCode); $playerCode = str_replace("%4", $playerPath, $playerCode); return $playerCode . "<br/>"; }
protected function getCellText($data, $isAlternate) { $html = "<span>"; $html .= "<a href=\"" . $data->getUrlPath() . "\" title=\"Download Audio File\" target=\"_blank\" class=\"jce_file_custom\">"; $html .= "<img src=\"" . PluginHelper::getPluginBaseUrl(); if ($isAlternate) { $html .= $this->configuration->getAltDownloadImage(); } else { $html .= $this->configuration->getDownloadImage(); } $html .= "\" alt=\"download\" />"; $html .= "</a>"; $html .= "</span>"; return $html; }