public attr / function, constructeurs __construct
[mtweb] / mw / app / out / default / template.php
1 <?php
2
3   class mw_template_default extends mw_template{
4
5     public function get_template_infos(){
6       return array(
7         "name" => "Default"
8       );
9     }
10
11     public function get_out_config(){
12       $out_config = parent::get_out_config();
13       $out_config["navig_menu_top"] = array(
14         "type" => "checkbox",
15         "default" => 0,
16         "text" => "Afficher le menu de navigation sous l'ent&ecirc;te"
17       );
18       $out_config["colonne"] = array(
19         "type" => "checkbox",
20         "default" => 0,
21         "text" => "Afficher la colonne"
22       );
23       $out_config["mtweb_footer_link"] = array(
24         "type" => "checkbox",
25         "default" => 0,
26         "text" => "Afficher le lien mtweb dans le footer"
27       );
28       return $out_config;
29     }
30
31     public function init(){
32       $this->add_js_file($this->out_url("js/jquery-1.8.3.min.js"));
33       if($this->is_running("users/identification")){
34         $this->add_js_file($this->out_url("js/md5.js"));
35         $this->add_js_file($this->out_url("js/login.js"));
36       }
37     }
38
39   }