۲۶
شهریور ۹۴
public function hookHeader($params) {
$rand = mt_rand(1, 1000);
$namefile = "dycss" . $rand . ".css";
$myfile = fopen("modules/lmslideshow/css/" . $namefile, "w");
$txt = "
h1 {
color: maroon;
margin-left: 40px;
}
";
fwrite($myfile, $txt);
fclose($myfile);
$this -> context -> controller -> addCSS(($this -> _path) . 'css/' . $namefile, 'all');
$this -> context -> controller -> addCSS(($this -> _path) . 'css/boom.css', 'all');
$this -> context -> controller -> addJS(($this -> _path) . 'js/boom.js');
}
۹۴/۰۶/۲۶