Closed (fixed)
Project:
Mime Mail
Version:
6.x-1.0
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
11 Sep 2011 at 16:03 UTC
Updated:
26 Dec 2011 at 19:30 UTC
Jump to comment: Most recent file
Comments
Comment #1
ibes commentedHi,
how should this be possible?
Define a directory and mimemail search for an "mail.css" or define a specific file like "sites/all/themes/mytheme/css/mymail.css"?
Actually mimemail checks the default theme for a mail.css in the theme root directory
file mimemail.admin.inc - line 11:
and if this file is existing, take it as the style for the mail:
file mimemail.theme.inc - line 49
So if there is another textfield in the admin page which defines an alternative location, that could be checked before ore after the module checks for the mail.css
If there is a file in that specific location, it will be chosen for the $mailstyle
What should be more important? "mail.css" in the default theme or a file in the specific place?
I would vote for the second one - because the admin has to manually define this.
And should one define a file or a directory? (if directory, the .css file has to have a exact name like "mail.css")
And I guess it would be great to validate, if the specific place is a directory/file.
Comment #2
ibes commentedComment #3
gnindl commentedThe attached patch searches all files called mail.css recursively in the theme folder. So I can just put the mail.css in the css subfolder.
Comment #4
sgabe commentedThanks gnindl, committed to both branches!