Basically, I tried to keep the module consistent with the All-In-One Seyret modules. The problem with those modules is that the styles are loaded in the body, when they should be in the head, since they are not inline styles.
That "works" but it does not conform to xhtml standards.
If we move them to the head section, they will not work, because they contain php code which would be executed before the necessary variables are loaded.
The only solution I can think of, short of re-writing the modules, is:
1) Strip the stylesheet of all php code and replace the php variables with the actual values. (e.g., replace something like "padding:<?php echo $paddingvariable;?>" with the actual value of the variable, eg "padding:2px;").
2) Load the stylesheet in the head section.
If you are ready to do this, the files to modify are style.css and default.php in the "tmpl" directory of the module.
For default.php, replace the code:
| Code: |
if ($includestyle) {
echo "<style>";
require_once (dirname(__FILE__).DS.'style.css');
echo "</style>";
}
|
with the code:
| Code: |
if ($includestyle) {
$fdoc = &JFactory::getDocument();
$fcss = JURI::root().'modules/mod_fidsoftrelated4seyret/tmpl/style.css';
$fdoc ->addStyleSheet( $fcss, 'text/css', null, array() );
}
|
Then edit style.css to remove all php code.
I hope that works for you.