MinifyX в Fenom

27 September 2018, 20:49

Если вы используете MinifyX в сайте на MODX, где основу шаблонов берёт Fenom, то возникает вопрос, как же вывести всё это дело через шаблониратор Fenom. Всё довольно просто.

{'!MinifyX' | snippet : [
'minifyCss' => 1,
'minifyJs' => 1,
'cssSources' => '
assets/templates/default/files/css/bootstrap.css,
assets/templates/default/files/css/style.less,
assets/templates/default/files/js/bxslider/jquery.bxslider.css
',
'jsSources' => '
assets/templates/default/files/js/less.min.js,
assets/templates/default/files/js/jquery.js,
assets/templates/default/files/js/bootstrap/modal.js,
assets/templates/default/files/js/bootstrap/tab.js,
assets/templates/default/files/js/bootstrap/dropdown.js,
assets/templates/default/files/js/bootstrap/collapse.js,
assets/templates/default/files/js/jquery.validate.min.js,
assets/templates/default/files/js/jquery.maskedinput.min.js,
assets/templates/default/files/js/jquery.sticky.js,
assets/templates/default/files/js/jquery.ui.touch-punch.min.js,
assets/templates/default/files/js/main.js,
assets/templates/default/files/js/bxslider/jquery.bxslider.min.js,
assets/templates/default/files/js/ini/index.js,
assets/components/msminicartdynamic/js/web/msminicartdynamic.js
'
]}
{$_modx->getPlaceholder('MinifyX.css')}
{$_modx->getPlaceholder('MinifyX.javascript')}

MODX.ONE
0    1464    0
+1

Comments ()

    You need to login to create comments.