1
0

oembed.php 822 B

123456789101112131415161718192021222324
  1. <?php
  2. /**
  3. * Copyright (c) UNA, Inc - https://una.io
  4. * MIT License - https://opensource.org/licenses/MIT
  5. *
  6. * @defgroup UnaCore UNA Core
  7. * @{
  8. */
  9. require_once('./inc/header.inc.php');
  10. require_once(BX_DIRECTORY_PATH_INC . "design.inc.php");
  11. if (getParam('sys_embed_default') != 'sys_oembed')
  12. exit;
  13. $aLinks = bx_get('l');
  14. bx_import('BxDolEmbed');
  15. if(($oEmbed = BxDolEmbed::getObjectInstance('sys_oembed')) !== false) {
  16. if(bx_get('html'))
  17. echo '<meta name="viewport" content="width=device-width; initial-scale=1.0; maximum-scale=1.0; user-scalable=0;"" /><style>body, html {margin:0px} A{text-decoration:none; color:#222}</style><div style=" margin:0px auto; justify-content: center;" id="ifr">' . $oEmbed->getLinkHTML($aLinks) . '</div>';
  18. else
  19. echoJson($oEmbed->parseLinks($aLinks));
  20. }