Une nouvelle class sera prochainement disponible
PHP Formatted Code
Here are some highlights of the class:
When the class
needed will load
Admin can specify to use
Google's CDN files for jQuery
- Class will fall back and use Google'
s CDN files if
missing from Geeklog
away with inline scripting (
ie scripts in template files) as
or footer (
footer and jQuery always loads in the footer)
Possible future feature includes Caching/
Compressing of regularly
hence the unused constant
in some of the classes functions)
is set near the beginning of lib-
php as $_SCRIPTS.
the template variable plg_headercode in COM_SiteHeader to put information in
and CSS files)
needs to be set
in the class
before COM_SiteHeader is run (
at least for
the CSS files and
call COM_SiteFooter (
this shouldn't be a problem since this is one of the
last functions you should be calling anyways on a page).
So how do you use the new class?
would do something like so:
$js = '
geeklogEditorBasePath = "' . $_CONF['site_url'] .
Or if you wanted to tell Geeklog to include a jQuery library
Or to use a widget of the jquery ui plugin
If you tell the script to use a widget there is no need to tell the Scripts
class to load jQuery as it will automatically add it in.
To add a CSS file you would do something like this
theme', $theme_path . '/
them. These variables are geeklogSiteUrl, geeklogLayoutUrl, geeklogAdminUrl