Esempio n. 1
0
 /**
  * Method render
  * @access public
  * @param boolean $ajax_render [default value: false]
  * @return object generate html box with country flag
  * @since 1.0.33
  */
 public function render($ajax_render = false)
 {
     $lang_box = new Box(translate(BOX_LANGUAGE_TITLE), $this->shadow, $this->style_header, $this->style_content, "", "select_language_box");
     if ($this->icon_48_pixels != "") {
         $lang_box->setBigIcon($this->icon_48_pixels, $this->icon_48_pixels_text);
     } else {
         if ($this->icon_16_pixels != "") {
             $lang_box->setSmallIcon($this->icon_16_pixels, $this->icon_16_pixels_text);
         }
     }
     if ($this->width != "") {
         $lang_box->setWidth($this->width);
     }
     $lang_obj = new Object();
     if ($this->icon_48_pixels != "") {
         $lang_obj->add("<br/>");
     }
     for ($i = 0; $i < sizeof($this->languages); $i++) {
         $lang_obj->add(new Language($this->languages[$i]));
     }
     $lang_obj->add("<br/>");
     if ($this->icon_48_pixels != "") {
         $lang_obj->add("<br/>");
     }
     $lang_box->setContent($lang_obj);
     $this->object_change = false;
     return $lang_box->render();
 }