theme_image und externes Imagefile
Eingetragen von Apfel007 (143)
am 24.11.2009 - 15:38 Uhr in
am 24.11.2009 - 15:38 Uhr in
Hallo zusammen,
ich möchte einen Link mit einem extern gelagertem Bild erstellen.
Wer kann mir einen Tip geben, warum dies nicht funktioniert? Was muß ich anders machen? Es wir nur der Link dargestellt und nicht das Bild.
$thumb_path = 'http://www.domain.com/image.gif';
$thumb = theme('image', $thumb_path, $image_alt=' ', $image_title=' ',$attributes = NULL , $getsize = FALSE);
$output = l($thumb, 'http://google.de', array('attributes' => array('html' => TRUE)));
print $output;
- Anmelden oder Registrieren um Kommentare zu schreiben
Versuch es mal
am 25.11.2009 - 15:33 Uhr
Versuch es mal so:
<?php
$thumb_path = 'http://www.drupalcenter.de/files/logo.gif';
$thumb = theme('image', $thumb_path, $image_alt=' ', $image_title=' ',$attributes = NULL , $getsize = FALSE);
$output = l($thumb, 'http://google.de', array('html' => TRUE));
print $output;
?>
-----------
Luca Curella
Kooperative Netze - Berlin