Changeset 6812


Ignore:
Timestamp:
2004-02-17T09:56:18+13:00 (20 years ago)
Author:
mdewsnip
Message:

Additions for the GsdlCollageApplet: a classifier that displays a collage of the images in a collection. By Katrina Edgar (kde2).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/gsdl/perllib/plugins/HTMLPlug.pm

    r6651 r6812  
    386386    $link =~ s/\n/ /g;
    387387    my ($href, $hash_part, $rl) = $self->format_link ($link, $base_dir, $file);
    388     return $front . $self->add_file ($href, $rl, $hash_part, $base_dir, $doc_obj, $section) . $back;
     388
     389    my $img_file =  $self->add_file ($href, $rl, $hash_part, $base_dir, $doc_obj, $section);
     390    my $anchor_name = $img_file;
     391    $anchor_name =~ s/^.*\///;
     392    $anchor_name = "<a name=\"$anchor_name\">";
     393
     394    return $anchor_name . $front . $img_file . $back;
    389395}
    390396
Note: See TracChangeset for help on using the changeset viewer.