You are here

function theme_l10n_update_release in Localization update 6

Format tag and release date.

Parameters

object $release: Source file data.

Return value

string HTML output.

1 theme call to theme_l10n_update_release()
theme_l10n_update_project_status in ./l10n_update.admin.inc
Format project update status.

File

./l10n_update.admin.inc, line 330
Admin settings and update page.

Code

function theme_l10n_update_release($release) {
  $name = $release->filename;
  $date = $release->timestamp;
  if (!empty($release->fileurl)) {

    // Remote file, straight link
    $link = l($name, $release->fileurl);
  }
  elseif (!empty($release->filepath)) {

    // Local file, try something
    $link = l($name, $release->filepath, array(
      'absolute' => TRUE,
    ));
  }
  else {

    // No link
    $link = "<strong>{$name}</strong>";
  }
  return $link . '<br /><small><span class="version-date">' . format_date($date, 'short') . '</span></small>';
}