Jump to content

Adding javascript and CSS in administration panel


t0m3kk

Recommended Posts

  • 2 weeks later...
  • 7 months later...

in my modules, in the displayform function, i use this code to add css or js

 

 

$this->_html .= '

 

<link rel="stylesheet" href="../modules/flashbanner/css/colorpicker.css" type="text/css" />

<link rel="stylesheet" type="text/css" media="screen, projection" href="../modules/flashbanner/css/slider.css" />

<link rel="stylesheet" type="text/css" media="screen, projection" href="../modules/flashbanner/css/demo.css" />

<link rel="stylesheet" type="text/css" media="screen, projection" href="../modules/flashbanner/css/jslider.css" />

<link rel="stylesheet" type="text/css" media="screen, projection" href="../modules/flashbanner/css/jslider.blue.css" /> ';

if (_PS_VERSION_ < "1.5.0.0") {

$this->_html .= '

<script type="text/javascript" src="../modules/flashbanner/js/jquery.min.js"></script> ';

}

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...