index.php 891 B

1234567891011121314151617181920212223242526272829303132
  1. <?php
  2. $altCfg=$ubillingConfig->getAlter();
  3. $customAppIcons = array();
  4. $appName = $system->getPageTitle();
  5. $shortName = $appName;
  6. if (isset($altCfg['WA_NAME'])) {
  7. if (!empty($altCfg['WA_NAME'])) {
  8. $appName = $altCfg['WA_NAME'];
  9. $shortName = $altCfg['WA_NAME'];
  10. }
  11. }
  12. if (isset($altCfg['WA_ICON_192']) and isset($altCfg['WA_ICON_512'])) {
  13. if (!empty($altCfg['WA_ICON_192']) and !empty($altCfg['WA_ICON_512'])) {
  14. $customAppIcons = array(
  15. 0 => array('src' => $altCfg['WA_ICON_192'], 'sizes' => '192x192', 'type' => 'image/png'),
  16. 1 => array('src' => $altCfg['WA_ICON_512'], 'sizes' => '512x512', 'type' => 'image/png')
  17. );
  18. }
  19. }
  20. $manifestor = new Manifestator();
  21. if ($customAppIcons) {
  22. $manifestor->setIcons($customAppIcons);
  23. }
  24. $manifestor->setName($appName);
  25. $manifestor->setShortName($appName);
  26. $manifestor->render();