titre du site par defaut
[mw_sourceml] / app / observers / mw_observer_sourceml.php
index 23cbef8..fb7c3ee 100644 (file)
@@ -2,12 +2,12 @@
 
   class mw_observer_sourceml extends mw_observer{
 
-    function before_action(){
+    public function before_action(){
       $env = $this->env();
       $out_config = $env->get_out_config();
       $out_config["groupe_view_albums"] = array(
         "type" => "checkbox",
-        "default" => 0,
+        "default" => 1,
         "text" => "Lister les albums sur la page d'un groupe"
       );
       $out_config["colonne_logo_groupe"] = array(
       );
       $out_config["albums_menu"] = array(
         "type" => "checkbox",
-        "default" => 1,
+        "default" => 0,
         "text" => "Afficher les albums du groupe courant dans la colonne"
       );
       $out_config["nom_groupe"] = array(
         "type" => "checkbox",
-        "default" => 1,
+        "default" => 0,
         "text" => "Afficher le nom du groupe courant dans la colonne"
       );
       $env->set_out_config($out_config);
     }
 
-    function after_action(){
+    public function after_action(){
       $env = $this->env();
       if($env->etat("mod") == "users"){
         $env->add_js_file($env->path("web").$env->path("mw_path")."libs/tiny_mce/tiny_mce.js");
         $env->add_js_file($env->out_url("js/jquery-ui-1.8.12.custom.min.js"));
         $env->add_css_file($env->out_url("css/colorbox.css"));
         $env->add_css_file($env->out_url("css/ui-lightness/jquery-ui-1.8.12.custom.css"));
+        $env->add_js_file($env->out_url("js/jaudio-player.1.1.js"));
+        $env->add_css_file($env->out_url("css/jaudio-player.1.1.css"));
+
       }
     }
 
   }
-
-?>
\ No newline at end of file