Example #1
0
 /**
  * Setting the links for motd, mail etc.
  *
  * @param array $a_links        the array of all needed links
  */
 public static function set_links($a_links = array())
 {
     if ($a_links === array()) {
         $a_links = Config::get_default_html('section_more');
     }
     foreach ($a_links as $key => $value) {
         $key_value = __($key);
         if (is_null($value)) {
             $key_value = null;
         }
         //todo do translation later
         Template::get_instance()->set_output($key, $key_value);
         if (is_null($key_value)) {
             Template::get_instance()->set_output($key . '-link', $value);
         } else {
             Template::get_instance()->set_output($key . '-link', $value . '?' . LOGD_Core::create_random_uri_string());
         }
     }
 }