From: sam_marshall Date: Tue, 13 May 2008 12:36:16 +0000 (+0000) Subject: MDL-14618 HTML class so that link arrows can be themed X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=388794fd4fba5d1593291a1af91b583fd87c3041;p=moodle.git MDL-14618 HTML class so that link arrows can be themed --- diff --git a/lib/weblib.php b/lib/weblib.php index 47a58d12de..38f54b1171 100644 --- a/lib/weblib.php +++ b/lib/weblib.php @@ -3438,17 +3438,17 @@ function link_arrow_right($text, $url='', $accesshide=false, $addclass='') { $arrow = ''.$THEME->rarrow.''; $htmltext = ''; if ($text) { - $htmltext = $text.' '; + $htmltext = ''.$text.' '; if ($accesshide) { $htmltext = get_accesshide($htmltext); } } if ($url) { - $class = ''; + $class = 'arrow_link'; if ($addclass) { - $class =" class=\"$addclass\""; + $class .= ' '.$addclass; } - return ''.$htmltext.$arrow.''; + return ''.$htmltext.$arrow.''; } return $htmltext.$arrow; } @@ -3472,17 +3472,17 @@ function link_arrow_left($text, $url='', $accesshide=false, $addclass='') { $arrow = ''.$THEME->larrow.''; $htmltext = ''; if ($text) { - $htmltext = ' '.$text; + $htmltext = ' '.$text.''; if ($accesshide) { $htmltext = get_accesshide($htmltext); } } if ($url) { - $class = ''; + $class = 'arrow_link'; if ($addclass) { - $class =" class=\"$addclass\""; + $class .= ' '.$addclass; } - return ''.$arrow.$htmltext.''; + return ''.$arrow.$htmltext.''; } return $arrow.$htmltext; }