[+] 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:
vAugagneur
2011-09-30 13:01:10 +00:00
parent 1c206de2ba
commit 2fbc132933
289 changed files with 5588 additions and 3517 deletions
+10 -8
View File
@@ -879,15 +879,17 @@ class AdminControllerCore extends Controller
$this->addCSS(__PS_BASE_URI__.str_replace(_PS_ROOT_DIR_.DIRECTORY_SEPARATOR,'', _PS_ADMIN_DIR_).'/themes/default/admin.css', 'all');
if ($this->context->language->is_rtl)
$this->addCSS(_THEME_CSS_DIR_.'rtl.css');
$this->addJquery();
$this->addjQueryPlugin(array('cluetip', 'hoverIntent'));
$this->addJS(_PS_JS_DIR_.'jquery/jquery-1.4.4.min.js');
$this->addJS(_PS_JS_DIR_.'jquery/jquery.hoverIntent.minified.js');
$this->addJS(_PS_JS_DIR_.'jquery/jquery.cluetip.js');
$this->addJS(_PS_JS_DIR_.'admin.js');
$this->addJS(_PS_JS_DIR_.'toggle.js');
$this->addJS(_PS_JS_DIR_.'tools.js');
$this->addJS(_PS_JS_DIR_.'ajax.js');
$this->addJS(_PS_JS_DIR_.'notifications.js');
$this->addJS(array(
_PS_JS_DIR_.'admin.js',
_PS_JS_DIR_.'toggle.js',
_PS_JS_DIR_.'tools.js',
_PS_JS_DIR_.'ajax.js',
_PS_JS_DIR_.'notifications.js')
);
}
public static function translate($string, $class, $addslashes = FALSE, $htmlentities = TRUE)