<?php

// Add Scripts  -> I hate using this because it puts it on EVERY PAGE instead of just the one my calendar runs on!!!
function alpcal_add_scripts() {
//    wp_enqueue_style('alpcal-style', plugins_url(). '/alpinecalendar-bootstrap-cal/css/style.css');
//    wp_enqueue_style('alpcal-styleBS337', plugins_url(). '/alpinecalendar-bootstrap-cal/css/bootstrap.min.css');
//    wp_enqueue_style('alpcal-styleBCMS', plugins_url(). '/alpinecalendar-bootstrap-cal/css/bootstrap-multiselect.css');
//    wp_enqueue_script('alpcal-script',plugins_url().'/alpinecalendar-bootstrap-cal/js/main.js', array('jquery'));
//    wp_enqueue_script('alpcal-scriptBSJS337',plugins_url().'/alpinecalendar-bootstrap-cal/js/bootstrap.min.js', array('jquery'));
//    wp_enqueue_script('alpcal-scriptBCMS',plugins_url().'/alpinecalendar-bootstrap-cal/js/bootstrap-multiselect.js', array('jquery'));
//    wp_enqueue_script('alpcal-scriptJCOOKIE',plugins_url().'/alpinecalendar-bootstrap-cal/js/jquery.cookie.js', array('jquery'));
}
add_action('wp_enqueue_scripts','alpcal_add_scripts');


$php_version = phpversion();
if ( version_compare( $php_version, '5.3', '<' ) ) {
    # deactivate your plugin or abort installing your theme and tell the user why
	die("PHP 5.3 or higher required to run Alpine Calendar Plugin");
}
function do_add_my_alpcal_exceptions() {
   class alpcal_Exception extends Exception {}
   class alpcal_Init_Exception extends alpcal_Exception {}
}
add_action('plugins_loaded', 'do_add_my_alpcal_exceptions');

