FIxed up some styles for the help links

This commit is contained in:
moodler 2005-03-07 05:00:58 +00:00
parent c9b8eb3435
commit 41b47dd43a

View File

@ -113,36 +113,33 @@
if (!empty($USER->id)) { if (!empty($USER->id)) {
echo '<td align="right">'; echo '<td align="right" class="subscription">';
$SESSION->fromdiscussion = "$FULLME"; $SESSION->fromdiscussion = "$FULLME";
if (forum_is_forcesubscribed($forum->id)) { if (forum_is_forcesubscribed($forum->id)) {
$streveryoneissubscribed = get_string("everyoneissubscribed", "forum"); $streveryoneissubscribed = get_string('everyoneissubscribed', 'forum');
$strallowchoice = get_string("allowchoice", "forum"); $strallowchoice = get_string('allowchoice', 'forum');
helpbutton("subscription", $streveryoneissubscribed, "forum"); helpbutton("subscription", $streveryoneissubscribed, "forum").'&nbsp;';
echo "<font size=\"1\">"; echo '<span class="helplink">';
if (isteacher($course->id)) { if (isteacher($course->id)) {
echo "<a title=\"$strallowchoice\" href=\"subscribe.php?id=$forum->id&amp;force=no\">$streveryoneissubscribed</a>"; echo "<a title=\"$strallowchoice\" href=\"subscribe.php?id=$forum->id&amp;force=no\">$streveryoneissubscribed</a>";
} else { } else {
echo $streveryoneissubscribed; echo $streveryoneissubscribed;
} }
echo "</font>"; echo '</span>';
} else { } else {
$streveryonecanchoose = get_string("everyonecanchoose", "forum"); $streveryonecanchoose = get_string("everyonecanchoose", "forum");
$strforcesubscribe = get_string("forcesubscribe", "forum"); $strforcesubscribe = get_string("forcesubscribe", "forum");
$strshowsubscribers = get_string("showsubscribers", "forum"); $strshowsubscribers = get_string("showsubscribers", "forum");
helpbutton("subscription", $streveryonecanchoose, "forum"); helpbutton("subscription", $streveryonecanchoose, "forum").'&nbsp;';
echo "<font size=\"1\">";
if (isteacher($course->id)) { if (isteacher($course->id)) {
echo "<a title=\"$strforcesubscribe\" href=\"subscribe.php?id=$forum->id&amp;force=yes\">$streveryonecanchoose</a>"; echo "<span class=\"helplink\"><a title=\"$strforcesubscribe\" href=\"subscribe.php?id=$forum->id&amp;force=yes\">$streveryonecanchoose</a></span>";
echo "</font><br /><font size=\"1\">"; echo "<br />";
echo "<a href=\"subscribers.php?id=$forum->id\">$strshowsubscribers</a>"; echo "<span class=\"helplink\"><a href=\"subscribers.php?id=$forum->id\">$strshowsubscribers</a></span>";
} else { } else {
echo $streveryonecanchoose; echo '<span class="helplink">'.$streveryonecanchoose.'</span>';
} }
echo "</font>";
if (forum_is_subscribed($USER->id, $forum->id)) { if (forum_is_subscribed($USER->id, $forum->id)) {
$subtexttitle = get_string("subscribestop", "forum"); $subtexttitle = get_string("subscribestop", "forum");
@ -152,7 +149,7 @@
$subtext = get_string("subscribe", "forum"); $subtext = get_string("subscribe", "forum");
} }
echo "<br />"; echo "<br />";
echo "<font size=\"1\"><a title=\"$subtexttitle\" href=\"subscribe.php?id=$forum->id\">$subtext</a></font>"; echo "<span class=\"helplink\"><a title=\"$subtexttitle\" href=\"subscribe.php?id=$forum->id\">$subtext</a></span>";
} }
echo '</td>'; echo '</td>';
@ -241,4 +238,4 @@
print_footer($course); print_footer($course);
?> ?>