Bez popisu

failsafes.php 1.4KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980
  1. <?php
  2. /*******************************************************************************
  3. * Copyright (c) 2020, Code Atlantic LLC.
  4. ******************************************************************************/
  5. if ( ! function_exists( 'popmake_get_option' ) ) {
  6. /**
  7. * @param string $key
  8. * @param bool $default
  9. *
  10. * @return bool
  11. */
  12. function popmake_get_option( $key = '', $default = false ) {
  13. return $default;
  14. }
  15. }
  16. if ( ! function_exists( 'popmake_is_admin_page' ) ) {
  17. /**
  18. * @return bool
  19. */
  20. function popmake_is_admin_page() {
  21. return false;
  22. }
  23. }
  24. if ( ! function_exists( 'pum_is_admin_page' ) ) {
  25. /**
  26. * @return bool
  27. */
  28. function pum_is_admin_page() {
  29. return false;
  30. }
  31. }
  32. if ( ! function_exists( 'popmake_is_admin_popup_page' ) ) {
  33. /**
  34. * @return bool
  35. */
  36. function popmake_is_admin_popup_page() {
  37. return false;
  38. }
  39. }
  40. if ( ! function_exists( 'pum_is_popup_editor' ) ) {
  41. /**
  42. * @return bool
  43. */
  44. function pum_is_popup_editor() {
  45. return false;
  46. }
  47. }
  48. if ( ! function_exists( 'pum_is_settings_page' ) ) {
  49. /**
  50. * @return bool
  51. */
  52. function pum_is_settings_page() {
  53. return false;
  54. }
  55. }
  56. if ( ! function_exists( 'popmake_get_template_part' ) ) {
  57. /**
  58. * @param $slug
  59. * @param null $name
  60. * @param bool $load
  61. *
  62. * @return string
  63. */
  64. function popmake_get_template_part( $slug, $name = null, $load = true ) {
  65. if ($load ) {
  66. return;
  67. }
  68. return __DIR__ . '/index.php';
  69. }
  70. }