[Home]WikiBugs/ExtraCondAtGetHeader

UseModWiki | WikiBugs | RecentChanges | Preferences

sub GetHeader {
  my ($id, $title, $oldId, $backlinks) = @_;
  my $header = "";
  my $logoImage = "";
  my $result = "";
  my $embed = &GetParam('embed', $EmbedWiki);
  my $altText = T('[Home]');

  $result = &GetHttpHeader('');
  if ($FreeLinks) {
    $title =~ s/_/ /g;   # Display as spaces
  }
  $result .= &GetHtmlHeader("$SiteName: $title", $id);
  return $result  if ($embed);

  $result .= '<div class=\"wikiheader\">';
  if ($oldId ne '') {
    $result .= $q->h3('(' . Ts('redirected from %s', 
                               &GetEditLink($oldId, &QuoteHtml($oldId)), 1) . ')');
  }
  - if ((!$embed) && ($LogoUrl ne "")) {
  + if ($LogoUrl ne "") {
    $logoImage = "img src=\"$LogoUrl\" alt=\"$altText\" border=0";
--JuanmaMP

UseModWiki | WikiBugs | RecentChanges | Preferences
Edit text of this page | View other revisions | Search MetaWiki
Last edited December 13, 2009 8:46 pm by JuanmaMP (diff)
Search: