<?php



if ( ! defined('ABSPATH')) exit;  // if direct access 

class class_job_bm_shortcodes_my_applications{
	
    public function __construct(){
		
		add_shortcode( 'job_bm_my_applications', array( $this, 'job_bm_my_applications_display' ) );

   		}

	public function job_bm_my_applications_display($atts, $content = null ) {
		
		$atts = shortcode_atts(
			array(
				//'themes' => 'flat',
				'display_edit' => 'yes',
				'display_delete' => 'yes',
				), $atts);

		$display_edit = $atts['display_edit'];
		$display_delete = $atts['display_delete'];		
		

		ob_start();
		
		include( job_bm_plugin_dir . 'templates/my-applications/my-applications.php');

        wp_localize_script('scripts-my-applications', 'job_bm_ajax', array( 'job_bm_ajaxurl' => admin_url( 'admin-ajax.php')));

        wp_enqueue_script('scripts-my-applications');
        wp_enqueue_style('job-bm-my-applications');


        return ob_get_clean();
		
		}
	
			
	}
	
new class_job_bm_shortcodes_my_applications();