xoops forums

neo75

Just popping in
Posted on: 12/11 17:48
neo75
neo75 (Show more)
Just popping in
Posts: 13
Since: 2010/4/28
#1

Where is the header links ?

Hello, I would like to know where are the links generated by the smarty <{$ xoops_module_header}>
When I display the source code in my browser I have links :
<script src="https://www.mysite.com/include/xoops.js" type="text/javascript"></script> <link rel="stylesheet" href="https://www.mysite.com/language/french/style.css" type="text/css" />

which appears they are defined in which files.

Please, help me for several days that I am looking for in all files !
Thanks.

geekwright

Quite a regular
Posted on: 12/12 14:08
geekwright
geekwright (Show more)
Quite a regular
Posts: 295
Since: 2010/10/15
#2

Re: Where is the header links ?

Some modules assign $xoops_module_header directly, but in general calls like these
$GLOBALS['xoTheme']->addScript(...);
$GLOBALS['xoTheme']->addStylesheet(...);
$GLOBALS['xoTheme']->addMeta(...);

are the preferred way to interact with it.

neo75

Just popping in
Posted on: 12/13 20:10
neo75
neo75 (Show more)
Just popping in
Posts: 13
Since: 2010/4/28
#3

Re: Where is the header links ?

Thank you but it is not the answer I expected but one with a little more precision.

In principle it is in which files that it is declared where : index.php xoops_versions.php ...

In all the modules there are several directory and full of file then in which it is to declare normally there must well be a rule one does not put that in a file of the theme or css