Closed (fixed)
Project:
Image formatter link to image style
Version:
8.x-1.x-dev
Component:
User interface
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
3 Jul 2013 at 15:02 UTC
Updated:
7 Dec 2015 at 15:34 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
facine commentedI'm thinking it would be good idea to add also rel attribute.
Try to do it in the coming days.
Thank you!
Comment #2
heylookalive commentedFind attached a patch against dev which allows you to set the class and rel for the A element/link, and also classes on the image within.
Comment #3
mfernea commentedIt seems like duplicate code, but I don't have a much better alternative.
Just one issue: when you add the image classes you reference $uri and it's not correct.
Besides that the code looks and behaves well.
Comment #4
heylookalive commented@mfernea oh yeah, patch corrects the $uri thing. The code is pretty basic but we're doing a basic thing I guess.
Comment #5
mfernea commentedDid you manually modify the patch? It had a missing blank line at the end. I had to add it to be able to apply the patch.
Maybe you can also remove trailing whitespace at lines 46, 70, 92, 96. ;)
Comment #6
mfernea commentedI'm posting a new patch with only whitespace differences from the patch at #4.
As I tested it and works ok, I'm setting the status to "Review & tested".
Comment #7
heylookalive commented@matt yep guilty. Thanks for updating the patch!
+1 RBTC
Comment #8
facine commentedCommited!
Thank you very much to all for the work done!
Comment #9
danny englanderI just wanted to say thanks for all the work on this, I finally had a chance to test this out and it works great!
Comment #10
facine commented