Hi,

I'm trying to turn an internal relativity link into an image based one.

The code I have doesn't seem to work:

        print l('<img src=".sites/all/themes/mytheme/images/gen/btn_write_a_review.gif" />', 'node/add/review/parent/$node->nid', array('class' => 'relativity_create_' . $type, 'html'=>TRUE));
      

Any suggestions to where I'm going wrong? Thank you.

Victoria

Comments

Heihachi88’s picture

I guess u've already solved your problem, but to help for others:

$img = '<img src="'.$directory.'/images/gen/btn_write_a_review.gif" />'; 
print l($img, 'node/add/review/parent/' . $node->nid, array('attributes' => array('class' => 'relativity_create_' . $type), 'html' => 'true'));