Changeset 11906 for trunk/cic-hcap


Ignore:
Timestamp:
2006-06-02T09:39:37+12:00 (18 years ago)
Author:
mdewsnip
Message:

Added support for the "no_image.jpg" place image.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/cic-hcap/perllib/plugins/CICPlug.pm

    r11891 r11906  
    594594
    595595        my $place_image_name = $place_images_match_hashref->{"FileName"};
    596         my $place_image_large_file_name = $place_image_name . "-large.jpg";
    597         $place_image_large_file_name =~ s/ /%20/g;
    598         my $place_image_large_file_link = "_httpcollection_/index/assoc/[assocfilepath]/$place_image_large_file_name";
    599         my $place_image_small_file_name = $place_image_name . "-small.jpg";
    600         $place_image_small_file_name =~ s/ /%20/g;
    601         my $place_image_small_file_link = "_httpcollection_/index/assoc/[assocfilepath]/$place_image_small_file_name";
    602         $place_images_html .= "<tr><td valign=\"top\"><a href=\"$place_image_large_file_link\"><img src=\"$place_image_small_file_link\"/></a></td><td valign=\"top\"><a href=\"$place_image_large_file_link\"><span class=\"cictext\">$place_image_name</span></a></td></tr>\n";
     596        if (defined($place_image_name)) {
     597        my $place_image_large_file_name = $place_image_name . "-large.jpg";
     598        $place_image_large_file_name =~ s/ /%20/g;
     599        my $place_image_large_file_link = "_httpcollection_/index/assoc/[assocfilepath]/$place_image_large_file_name";
     600        my $place_image_small_file_name = $place_image_name . "-small.jpg";
     601        $place_image_small_file_name =~ s/ /%20/g;
     602        my $place_image_small_file_link = "_httpcollection_/index/assoc/[assocfilepath]/$place_image_small_file_name";
     603        $place_images_html .= "<tr><td valign=\"top\"><a href=\"$place_image_large_file_link\"><img src=\"$place_image_small_file_link\"/></a></td><td valign=\"top\"><a href=\"$place_image_large_file_link\"><span class=\"cictext\">$place_image_name</span></a></td></tr>\n";
     604        }
     605        else {
     606        $place_images_html .= "<tr><td valign=\"top\"><img src=\"_httpcollection_/images/no_image.jpg\"/></td><td valign=\"top\"><span class=\"cictext\">&nbsp;</span></td></tr>\n";
     607        }
    603608    }
    604609
Note: See TracChangeset for help on using the changeset viewer.