Revision c323bdb8
Added by Andreas Kohlbecker almost 11 years ago
7.x/modules/cdm_dataportal/theme/cdm_dataportal.descriptions.theme | ||
---|---|---|
1217 | 1217 |
} |
1218 | 1218 |
|
1219 | 1219 |
$mapUri = url(get_edit_map_service_full_uri() . '/' . $map_service_script_name . '? '. $query_string); |
1220 |
$out .= '<img class="distribution_map" src="' . $mapUri . '" alt="Distribution Map" />';
|
|
1220 |
$out .= '<img class="distribution_map" src="' . urlencode($mapUri) . '" alt="Distribution Map" />';
|
|
1221 | 1221 |
} |
1222 | 1222 |
return $out; |
1223 | 1223 |
} |
7.x/modules/cdm_dataportal/theme/cdm_dataportal.media.theme | ||
---|---|---|
604 | 604 |
} |
605 | 605 |
|
606 | 606 |
// Turn attributes array into string. |
607 |
if(!is_array($attributes)){ |
|
608 |
$attributes = array(); |
|
609 |
} |
|
610 |
if(!isset($attributes['alt'])){ |
|
611 |
$attributes['alt'] = check_plain($mediaRepresentationPart->uri); |
|
612 |
} |
|
607 | 613 |
$attrStr = ' '; |
608 | 614 |
// $attributes['title'] = 'h:'.$h.', w:'.$w.',ratio:'.$ratio; |
609 | 615 |
if (is_array($attributes)) { |
... | ... | |
619 | 625 |
// Do not add margins if no pass partout is shown. |
620 | 626 |
$margins = ''; |
621 | 627 |
} |
622 |
$out .= '<img src="' . $mediaRepresentationPart->uri . '" alt="' . check_plain($mediaRepresentationPart->uri) .'" width="' . $displayWidth . '" height="' . $displayHeight . '" style="' . $margins . '"' . $attrStr . ' />';
|
|
628 |
$out .= '<img src="' . $mediaRepresentationPart->uri . '" width="' . $displayWidth . '" height="' . $displayHeight . '" style="' . $margins . '"' . $attrStr . ' />'; |
|
623 | 629 |
|
624 | 630 |
if ($addPassePartout) { |
625 | 631 |
$out .= '</div>'; |
Also available in: Unified diff
further reducing html errors encoding map url