init.php 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. <?php
  2. /**
  3. * PHP Portal Engine v3.0.0
  4. * https://github.com/bztsrc/phppe3/
  5. *
  6. * Copyright LGPL 2016 bzt
  7. *
  8. * This program is free software; you can redistribute it and/or modify
  9. * it under the terms of the GNU Lesser General Public License as published
  10. * by the Free Software Foundation, either version 3 of the License, or
  11. * (at your option) any later version.
  12. *
  13. * This program is distributed in the hope that it will be useful,
  14. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  15. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  16. * GNU Lesser General Public License for more details.
  17. *
  18. * <http://www.gnu.org/licenses/>
  19. *
  20. * @file vendor/phppe/bootstrapcdn/init.php
  21. * @author bzt
  22. * @date 1 Jan 2016
  23. * @brief Bootstrap CDN integration in PHPPE
  24. */
  25. namespace PHPPE;
  26. if (!Core::isInst("bootstrap")) {
  27. //load style sheests
  28. View::css("https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap.min.css");
  29. View::css("https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap-theme.min.css");
  30. //load JavaScript
  31. View::jslib("https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/js/bootstrap.min.js","",1);
  32. //register ourself as bootstrap too
  33. Core::lib("bootstrap", "PHPPE\Extension");
  34. }