Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 05404c3

Browse files
committed
add link types for the remaining links in the navigation panels
1 parent 4f45011 commit 05404c3

1 file changed

Lines changed: 9 additions & 7 deletions

File tree

Doc/perl/l2hinit.perl

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -141,23 +141,25 @@ ($)
141141
. " height='32' alt='$text' width='32'>";
142142
}
143143

144-
sub use_my_icon($) {
145-
my $s = $_[0];
144+
sub use_my_icon($$) {
145+
my($s,$rel) = @_;
146146
if ($s =~ /\<tex2html_([a-z_]+)_visible_mark\>/) {
147147
my $r = get_my_icon($1);
148148
$s =~ s/\<tex2html_[a-z_]+_visible_mark\>/$r/;
149149
}
150+
$s =~ s/<[aA] /<a rel="$rel" /;
150151
return $s;
151152
}
152153

153154
sub make_nav_panel() {
154155
my $s;
155156
my $BLANK_ICON = get_my_icon('blank');
156-
$NEXT = $NEXT_TITLE ? use_my_icon("$NEXT") : $BLANK_ICON;
157-
$UP = $UP_TITLE ? use_my_icon("$UP") : $BLANK_ICON;
158-
$PREVIOUS = $PREVIOUS_TITLE ? use_my_icon("$PREVIOUS") : $BLANK_ICON;
159-
$CONTENTS = use_my_icon("$CONTENTS");
160-
$INDEX = $INDEX ? use_my_icon("$INDEX") : $BLANK_ICON;
157+
$NEXT = $NEXT_TITLE ? use_my_icon("$NEXT", 'next') : $BLANK_ICON;
158+
$UP = $UP_TITLE ? use_my_icon("$UP", 'parent') : $BLANK_ICON;
159+
$PREVIOUS = ($PREVIOUS_TITLE
160+
? use_my_icon("$PREVIOUS", 'prev') : $BLANK_ICON);
161+
$CONTENTS = use_my_icon("$CONTENTS", 'contents');
162+
$INDEX = $INDEX ? use_my_icon("$INDEX", 'index') : $BLANK_ICON;
161163
if (!$CUSTOM_BUTTONS) {
162164
$CUSTOM_BUTTONS = $BLANK_ICON;
163165
}

0 commit comments

Comments
 (0)