1
urbanspacema
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 ...


2
Burning
Re: two question about theme in xoops 2.4
  • 2009/10/4 17:25

  • Burning

  • Theme Designer

  • Posts: 1163

  • Since: 2006/8/22


hi'

Look athttp://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.

3
urbanspacema
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}>

Login

Who's Online

196 user(s) are online (118 user(s) are browsing Support Forums)


Members: 0


Guests: 196


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Mar 31
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits