Closed (fixed)
Project:
SimpleAds
Version:
7.x-1.8
Component:
User interface
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
10 May 2012 at 09:38 UTC
Updated:
19 Feb 2014 at 03:53 UTC
Jump to comment: Most recent
Comments
Comment #0.0
chefnelone commentedmore info
Comment #1
minnur commentedCopy "simpleads_img_element.tpl.php" template file to your theme folder and try to make changes there. Also see simpleads.api.php file, there is a hook "hook_simpleads_alter" that allows to alter the data which you can use in you theme or preprocess function for the template.
Comment #2
chefnelone commentedThanks minnur.
I create a simpleads_img_element.tpl.php template file with the following code and it works brilliantly fine with the Adaptative image module.
Any chance you include a way to setup the image style in next versions?
Comment #3
minnur commented@chefnelone Thanks. I will add this to wish list and implement this feature as soon as possible.
Thanks.
Comment #4
volker23 commentedI had the same issue and tried your workaround. But now images doesn't show up at all... i guess it's about the dpm(), i have no devel installed.
Is there any other way to add a class to the image. (I'm not a coder, but can work with a snippet...)
Thanks in advance...
Comment #6
xalexas commentedYou have to write name of your style. This is overridden code for simpleads_img_element.tpl.php :
Copy that file to your theme's "templates" folder.
Comment #6.0
xalexas commentedmore
Comment #7
Tran commentedCan anyone spell this out a little more clearly for me?