xoops forums

urbanspacema

Quite a regular
Posted on: 2009/10/4 17:13
urbanspacema
urbanspacema (Show more)
Quite a regular
Posts: 276
Since: 2004/9/19
#1

two question about theme in xoops 2.4

hello, i'm developing a theme for my site.
I want to use jquery in my theme. so far I have used this code

<script src="<{xoImgUrl /js/jquery-1.3.2.min.js}>" type="text/javascript"></script>


I wonder if with the introduction of jQuery in XOOPS 2.4 Are there any other way to call jQuery.

another thing I want to know about the use of language in the theme. I created the folder with languages files but the constants in my theme are not translated ...

Burning

Theme Designer
Posted on: 2009/10/4 17:25
Burning
Burning (Show more)
Theme Designer
Posts: 1163
Since: 2006/8/22
#2

Re: two question about theme in xoops 2.4

hi'

Look at http://sourceforge.net/projects/xfr/files/ (Themes)
There is a morphogenesis template, version 2.2

In theme.html you have to put some new code, then language defines (your-theme/language/your-language/) will be displayed.

To call js scripts, I believe that is the right way if all your theme need it. If only some modules templates need js script, you can use callings directly from overrided templates.

urbanspacema

Quite a regular
Posted on: 2009/10/4 18:53
urbanspacema
urbanspacema (Show more)
Quite a regular
Posts: 276
Since: 2004/9/19
#3

Re: two question about theme in xoops 2.4

tnx Burning, i have adding this code and now work.
<{php}>
global 
$xoops;
$url $xoops->path'themes/' $GLOBALS['xoopsConfig']['theme_set'] . '/language/' $GLOBALS['xoopsConfig']['language'] . '/theme.php' );
@include_once 
$url;
<{/
php}>