Esempio n. 1
0
 function display($tpl = null)
 {
     Bt_SocialconnectLegacyHelper::getCSS();
     $this->legacy = Bt_SocialconnectLegacyHelper::isLegacy();
     Bt_SocialconnectAdminHelper::addSubmenu('cpanel');
     $this->addToolBar();
     /*---------------*/
     $buttons = $this->getButtons();
     $channel = $this->getSocials();
     $extension = $this->getExtension();
     $widget = $this->getWidget();
     $user = $this->getUser();
     $number_click = $this->getClick();
     $content = $this->getContent();
     //Assign
     $this->assign('buttons', $buttons);
     $this->assign('channel', $channel);
     $this->assign('extension', $extension);
     $this->assign('widget', $widget);
     $this->assign('user', $user);
     $this->assign('number_click', $number_click);
     $this->assign('content', $content);
     parent::display($tpl);
     $this->setDocument();
 }
Esempio n. 2
0
 public function display($tpl = null)
 {
     $this->numb = $this->get('Numberuser');
     $this->model = $this->getModel('Statistics');
     // Check for errors.
     if (count($errors = $this->get('Errors'))) {
         JError::raiseError(500, implode("\n", $errors));
         return false;
     }
     Bt_SocialconnectAdminHelper::addSubmenu('statistics');
     $this->addToolbar();
     $this->document->addScript('https://www.google.com/jsapi');
     parent::display($tpl);
     $this->setDocument();
 }
Esempio n. 3
0
 public function display($tpl = null)
 {
     $this->items = $this->get('Items');
     $this->pagination = $this->get('Pagination');
     $this->state = $this->get('State');
     $this->legacy = Bt_SocialconnectLegacyHelper::isLegacy();
     // Check for errors.
     if (count($errors = $this->get('Errors'))) {
         JError::raiseError(500, implode("\n", $errors));
         return false;
     }
     Bt_SocialconnectAdminHelper::addSubmenu('userfields');
     $this->addToolbar();
     parent::display($tpl);
     $this->setDocument();
 }
Esempio n. 4
0
 public function display($tpl = null)
 {
     $this->items = $this->get('Items');
     $this->pagination = $this->get('Pagination');
     $this->state = $this->get('State');
     $this->folder = $this->get('ItemFolder');
     $this->legacy = Bt_SocialconnectLegacyHelper::isLegacy();
     $document = JFactory::getDocument();
     $document->addStyleSheet(JURI::base() . "/components/com_bt_socialconnect/models/fields/assets/css/obsocialsubmit.css");
     // Check for errors.
     if (count($errors = $this->get('Errors'))) {
         JError::raiseError(500, implode("\n", $errors));
         return false;
     }
     Bt_SocialconnectAdminHelper::addSubmenu('channels');
     $this->addToolbar();
     parent::display($tpl);
     $this->setDocument();
 }
Esempio n. 5
0
 public function display($tpl = null)
 {
     $this->items = $this->get('Items');
     $this->folder = $this->get('ItemFolder');
     $this->pagination = $this->get('Pagination');
     $this->state = $this->get('State');
     $this->legacy = Bt_SocialconnectLegacyHelper::isLegacy();
     $this->wgtype = $this->getWidgettype();
     $this->publishOption = $this->publishedOptions();
     $document = JFactory::getDocument();
     $document->addStyleSheet(JPATH_COMPONENT_ADMINISTRATOR . "/models/fields/assets/css/obsocialsubmit.css");
     // Check for errors.
     if (count($errors = $this->get('Errors'))) {
         JError::raiseError(500, implode("\n", $errors));
         return false;
     }
     if (JFactory::getApplication()->isAdmin()) {
         Bt_SocialconnectAdminHelper::addSubmenu('widgets');
         $this->addToolbar();
     }
     parent::display($tpl);
     $this->setDocument();
 }