Google_Maps_Builder_Core_Asset_Paths

Utility class for assets paths.

Defined (1)

The class is defined in the following location(s).

/vendor/wordimpress/maps-builder-core/includes/class-gmc-asset-paths.php  
  1. class Google_Maps_Builder_Core_Asset_Paths { 
  2.  
  3. /** 
  4. * Instance 
  5. * @since 2.1.0 
  6. * @var Google_Maps_Builder_Core_Asset_Paths 
  7. */ 
  8. private static $instance; 
  9.  
  10.  
  11. private function __construct() { 
  12. //you shall not pass! 
  13.  
  14. /** 
  15. * Get class instance 
  16. * @since 2.1.0 
  17. * @return Google_Maps_Builder_Core_Asset_Paths 
  18. */ 
  19. public static function get_instance() { 
  20. if( ! self::$instance ) { 
  21. self::$instance = new self; 
  22.  
  23. return self::$instance; 
  24.  
  25.  
  26. /** 
  27. * Get front-end JS Dir 
  28. * @since 2.1.0 
  29. * @return string 
  30. */ 
  31. public function front_end_js_dir() { 
  32. return GMB_CORE_URL . 'assets/js/frontend/'; 
  33.  
  34. /** 
  35. * Get front-end JS URL 
  36. * @since 2.1.0 
  37. * @return string 
  38. */ 
  39. public function front_end_js_url() { 
  40. return GMB_CORE_URL . 'assets/js/plugins/'; 
  41.  
  42. /** 
  43. * Get admin JS Dir 
  44. * @since 2.1.0 
  45. * @return string 
  46. */ 
  47. public function admin_js_dir() { 
  48. return GMB_CORE_URL . 'assets/js/admin/'; 
  49.  
  50. /** 
  51. * Get admin JS URL 
  52. * @since 2.1.0 
  53. * @return string 
  54. */ 
  55. public function admin_js_url() { 
  56. return GMB_CORE_URL . 'assets/js/plugins/'; 
  57.  
  58. /** 
  59. * Get suffix 
  60. * @since 2.1.0 
  61. * @return string 
  62. */ 
  63. public function suffix() { 
  64. $suffix = defined( 'SCRIPT_DEBUG' ) && SCRIPT_DEBUG ? '' : '.min'; 
  65. return $suffix; 
  66.