/buddypress-components/jm-resume-componet/class-jm-resume-bp-resume.php

  1. <?php 
  2. /** 
  3. * Don't load this file directly! 
  4. */ 
  5. if ( ! defined( 'ABSPATH' ) ) 
  6. exit; 
  7.  
  8. /** 
  9. * Description of JM_Resume_Bp_Resume 
  10. * 
  11. * @author kishore 
  12. */ 
  13. if ( ! class_exists( 'JM_Resume_Bp_Resume' ) ) { 
  14.  
  15. class JM_Resume_Bp_Resume { 
  16.  
  17. function __construct() { 
  18. global $bp; 
  19.  
  20. // Define constants 
  21. $this->define_constants(); 
  22.  
  23. // Include required files 
  24. $this->includes(); 
  25.  
  26. function includes() { 
  27. // Includes 
  28. include( BUDDYPRESS_JM_RESUME .'bp-jm-resume/class-jm-resume-bp-resume-loader.php' ); 
  29. include( BUDDYPRESS_JM_RESUME .'bp-jm-resume/bp-jm-resume-screens.php' ); 
  30. include( BUDDYPRESS_JM_RESUME .'bp-jm-resume/bp-jm-resume-functions.php' ); 
  31. include( BUDDYPRESS_JM_RESUME .'class-jm-resumes-links.php' ); 
  32.  
  33.  
  34. function define_constants() { 
  35. if ( ! defined( 'BUDDYPRESS_JM_RESUME_PATH' ) ) { 
  36. define( 'BUDDYPRESS_JM_RESUME_PATH', plugin_dir_path( __FILE__ ) ); 
  37.  
  38.  
  39.  
  40. $GLOBALS['jm_resume_bp_resume'] = new JM_Resume_Bp_Resume(); 
.