function formatRows($rows, &$matches) { $newrows = array(); foreach ($rows as $key => $row) { $newrows[$key]['type'] = 'ls'; $newrows[$key]['date'] = $row->mdate; $newrows[$key]['result'] = 'LIVE!'; $newrows[$key]['headingtitle'] = parent::jl_utf8_convert('LiveScore', 'iso-8859-1', 'utf-8'); $newrows[$key]['homename'] = parent::jl_utf8_convert($row->heim, 'iso-8859-1', 'utf-8'); $newrows[$key]['homepic'] = ''; $newrows[$key]['awaypic'] = ''; $newrows[$key]['awayname'] = parent::jl_utf8_convert($row->gast, 'iso-8859-1', 'utf-8'); $newrows[$key]['matchcode'] = $row->saison; $newrows[$key]['project_id'] = 'LIVE!'; $matches[] = $newrows[$key]; } return $newrows; }
function buildImage($team) { global $mainframe; $image = $this->xparams->get('team_logos', 'logo_small'); if ($image == '-') { return ''; } $logo = ''; if ($team->{$image} != '' && file_exists($mainframe->getCfg('absolute_path') . '/' . $team->{$image})) { $h = $this->xparams->get('logo_height', 20); $logo = '<img src="' . JUri::root(true) . '/' . $team->{$image} . '" alt="' . parent::jl_utf8_convert($team->short_name, 'iso-8859-1', 'utf-8') . '" title="' . parent::jl_utf8_convert($team->name, 'iso-8859-1', 'utf-8') . '"'; if ($h > 0) { $logo .= ' style="height:' . $h . 'px;"'; } $logo .= ' />'; } return $logo; }