1
0

BxFaceBookConnectStudioPage.php 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. <?php defined('BX_DOL') or die('hack attempt');
  2. /**
  3. * Copyright (c) UNA, Inc - https://una.io
  4. * MIT License - https://opensource.org/licenses/MIT
  5. *
  6. * @defgroup FacebookConnect Facebook Connect
  7. * @ingroup UnaModules
  8. *
  9. * @{
  10. */
  11. class BxFaceBookConnectStudioPage extends BxTemplStudioModule
  12. {
  13. function __construct($sModule, $mixedPageName, $sPage = "")
  14. {
  15. parent::__construct($sModule, $mixedPageName, $sPage);
  16. $this->aMenuItems = array(
  17. 'settings' => array('name' => 'settings', 'icon' => 'cogs', 'title' => '_adm_lmi_cpt_settings'),
  18. 'help' => array('name' => 'help', 'icon' => 'question', 'title' => '_sys_connect_information'),
  19. );
  20. }
  21. function getSettings ()
  22. {
  23. $s = parent::getSettings ();
  24. $oModule = BxDolModule::getInstance('bx_facebook');
  25. return $oModule->serviceLastError(false) . $s;
  26. }
  27. function getHelp ()
  28. {
  29. $oModule = BxDolModule::getInstance('bx_facebook');
  30. return _t('_bx_facebook_information_block', BX_DOL_URL_ROOT . $oModule -> _oConfig -> getBaseUri() . 'login_callback');
  31. }
  32. }
  33. /** @} */