Esempio n. 1
0
 /**
  * @param mixed $data
  * @return
  */
 function showChatBox($tpl = null)
 {
     $document = TuiyoAPI::get('document', null);
     $user = TuiyoAPI::get('user', null);
     $plugModel = TuiyoLoader::model("applications", true);
     //$this->setLayout("chatroom");
     //echo "show chat box"; die;
     //parent::display($tpl);
     $document->addJS(TUIYO_OEMBED);
     $document->addJS(TUIYO_STREAM);
     $plugins = $plugModel->getAllSystemPlugins("services", false);
     $tmplPath = TUIYO_VIEWS . DS . "profile" . DS . "tmpl";
     $tmplVars = array("styleDir" => TUIYO_STYLEDIR, "user" => $user, "sharewith" => array("p00" => "@everyone"), "plugins" => $plugins, "canPost" => !$user->joomla->get('guest') ? 1 : 0);
     $activity = $document->parseTmpl("activity", $tmplPath, $tmplVars);
     $this->assignRef("activity", $activity);
     parent::display($tpl);
 }
Esempio n. 2
0
 /**
  * @param mixed $data
  * @return
  */
 function showYoutube($tpl = null)
 {
     parent::display($tpl);
 }
Esempio n. 3
0
 /**
  * @param mixed $data
  * @return
  */
 function showTwitter($tpl = null)
 {
     parent::display($tpl);
 }
Esempio n. 4
0
 public function __construct()
 {
     parent::__construct();
 }