Skip to content

Commit e1946ad

Browse files
authored
Merge pull request BOINC#6295 from BOINC/dpa_web24
web: fix 'powered by BOINC' behavior in footer
2 parents e0aa88e + e5ed90e commit e1946ad

File tree

1 file changed

+15
-9
lines changed

1 file changed

+15
-9
lines changed

html/project.sample/project.inc

Lines changed: 15 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -126,16 +126,22 @@ function project_banner($title, $prefix, $is_main) {
126126
//$fixed_navbar = true;
127127

128128
function project_footer($show_return, $show_date, $prefix) {
129-
// If you include any links, prepend URL with $prefix
130-
//
131-
echo '<br>
132-
<a class="brand boinc-logo" href="https://boinc.berkeley.edu/"><img class="img-responsive center-block" src="'.secure_url_base().'img/pb_boinc.gif" alt="Powered by BOINC"></a>
133-
<div class="form-group"></div>
134-
<p class="text-center"> &copy;'.gmdate("Y ").COPYRIGHT_HOLDER.'</p>
135-
';
129+
echo sprintf(
130+
'<center><a href="%s"><img src=%s/%s alt="%s"></a></center>',
131+
'https://boinc.berkeley.edu',
132+
secure_url_base(),
133+
'img/pb_boinc.gif',
134+
'Powered by BOINC'
135+
);
136+
echo sprintf('<p><center>&copy; %s %s</center>',
137+
gmdate("Y "),
138+
COPYRIGHT_HOLDER
139+
);
136140
if ($show_date) {
137-
$t = time_str(time());
138-
echo "<center><small>".tra("Generated")." $t</small><center>\n";
141+
echo sprintf('<center><small>%s %s</small><center>',
142+
tra('Generated'),
143+
time_str(time())
144+
);
139145
}
140146
}
141147

0 commit comments

Comments
 (0)