modxcms/evolution — pull request #314 by tonatos3 (2014-07-25 05:26:48+00:00)
Title: Register Client-side library (as jquery, jquery-ui, bootstrap and other)

Single point of registration library
Include example of jquery library
The relationship between libraries registration

Use:

$modx->regClientLib("bootstrap3");

or

$modx->regClientLib("jcarousellite,nivo-slider,jquery-ui,swfobject");

relationship. In bootstrap3/register.php

...
$modx->regClientLib('jquery');
...

Can new option `lib` in snippets (example in EvoGallery)

//Подключаем библиотеки
if (!empty($lib)){
$modx->regClientLib($lib);
}