[+] Classes : added new class Media => It contains all the method related to media like CSS, JS
[+] Classes : added new method Media::addJquery(), Media::addJqueryUI(), Media::addJqueryPlugin() [~] Deprecated : All method related to CCC has been moved in class Media git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@8926 b9a71923-0436-4b27-9f14-aed3839534dd
This commit is contained in:
@@ -158,4 +158,6 @@ if (!defined('_PS_CACHE_ENABLED_'))
|
||||
|
||||
define('_PS_SMARTY_NO_COMPILE_', 0);
|
||||
define('_PS_SMARTY_CHECK_COMPILE_', 1);
|
||||
define('_PS_SMARTY_FORCE_COMPILE_', 2);
|
||||
define('_PS_SMARTY_FORCE_COMPILE_', 2);
|
||||
|
||||
define('_PS_JQUERY_VERSION_', '1.4.4');
|
||||
@@ -163,13 +163,13 @@ function smarty_modifier_truncate($string, $length = 80, $etc = '...', $break_wo
|
||||
|
||||
function smartyMinifyHTML($tpl_output, &$smarty)
|
||||
{
|
||||
$tpl_output = Tools::minifyHTML($tpl_output);
|
||||
$tpl_output = Media::minifyHTML($tpl_output);
|
||||
return $tpl_output;
|
||||
}
|
||||
|
||||
function smartyPackJSinHTML($tpl_output, &$smarty)
|
||||
{
|
||||
$tpl_output = Tools::packJSinHTML($tpl_output);
|
||||
$tpl_output = Media::packJSinHTML($tpl_output);
|
||||
return $tpl_output;
|
||||
}
|
||||
|
||||
|
||||
@@ -132,13 +132,13 @@ function smarty_modifier_truncate($string, $length = 80, $etc = '...', $break_wo
|
||||
|
||||
function smartyMinifyHTML($tpl_output, &$smarty)
|
||||
{
|
||||
$tpl_output = Tools::minifyHTML($tpl_output);
|
||||
$tpl_output = Media::minifyHTML($tpl_output);
|
||||
return $tpl_output;
|
||||
}
|
||||
|
||||
function smartyPackJSinHTML($tpl_output, &$smarty)
|
||||
{
|
||||
$tpl_output = Tools::packJSinHTML($tpl_output);
|
||||
$tpl_output = Media::packJSinHTML($tpl_output);
|
||||
return $tpl_output;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user