3 class mw_observer_sourceml extends mw_observer{
5 function before_action(){
7 $out_config = $env->get_out_config();
8 $out_config["groupe_view_albums"] = array(
11 "text" => "Lister les albums sur la page d'un groupe"
13 $out_config["colonne_logo_groupe"] = array(
16 "text" => "Afficher le logo du groupe courant dans la colonne"
18 $out_config["albums_menu"] = array(
21 "text" => "Afficher les albums du groupe courant dans la colonne"
23 $out_config["nom_groupe"] = array(
26 "text" => "Afficher le nom du groupe courant dans la colonne"
28 $env->set_out_config($out_config);
31 function after_action(){
33 if($env->etat("mod") == "users"){
34 $env->add_js_file($env->path("web").$env->path("mw_path")."libs/tiny_mce/tiny_mce.js");
35 $env->add_js_file($env->path("web").$env->path("mw_path")."libs/tiny_mce/plugins/tinybrowser/tb_tinymce.js.php");
37 if($env->etat("mod") == "sources"){
38 $env->add_js_file($env->out_url("js/jquery-1.8.3.min.js"));
39 $env->add_js_file($env->out_url("js/jquery.colorbox-min.js"));
40 $env->add_js_file($env->out_url("js/jquery-ui-1.8.12.custom.min.js"));
41 $env->add_css_file($env->out_url("css/colorbox.css"));
42 $env->add_css_file($env->out_url("css/ui-lightness/jquery-ui-1.8.12.custom.css"));