Thorsten Panknin wrote:
> Hi,
>
> I'd like to modify the output of a plugin (dp highlighter) which uses
> <?php $theme->header(); ?> for outputting a <link rel="stylesheet" ...>
> tag. I'd like to modify the <link> tag itself. (I am converting a
> template from html 4 to xhtml strict)
>
> I looked through the plugin's PHP file and it uses
>
> Stack::add ('template_stylesheet', array ($this->get_url() .
> '/dp.SyntaxHighlighter/Styles/SyntaxHighlighter.css', 'screen'), 'style');
>
> Can anybody help me find out where to look?
>
This is done in system/classes/theme.php in the theme_header() function.
That function calls Stack::get() on the stack of stylesheets, passing a
function (Stack::styles()) as the second argument. Each item in the
stack is processed by the stack::styles() function.
It would take a crafty bit of work to work within the existing code to
allow xhtml output. The current core code could be modified
(particularly the Styack::styles() function) to output xhtml, but Habari
is html-based.
It should be considered in the future that all output should go through
the theme system somehow, so that it might be possible to use a template
for each of the output stack elements. But right now, the task you've
set upon is quite difficult without modifying core files, which is to be
avoided.
Owen
--~--~---------~--~----~------------~-------~--~----~
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/habari-users
-~----------~----~----~----~------~----~------~--~---