27 lines
656 B
Plaintext
Executable File
27 lines
656 B
Plaintext
Executable File
<?php
|
|
/*
|
|
Plugin Name: Krista Time Clock
|
|
Description: Modularized time tracking system. Localized to Chicago Time.
|
|
Version: 0.6.0
|
|
Author: Krista Computers
|
|
*/
|
|
|
|
if ( ! defined( 'ABSPATH' ) ) exit;
|
|
|
|
// 1. Constants
|
|
define( 'KTC_VERSION', '0.6.0' );
|
|
define( 'KTC_PATH', plugin_dir_path( __FILE__ ) );
|
|
define( 'KTC_TIMEZONE', 'America/Chicago' );
|
|
|
|
// 2. Resource Loading
|
|
require_once KTC_PATH . 'includes/class-logic.php';
|
|
require_once KTC_PATH . 'includes/class-admin.php';
|
|
|
|
// 3. Initialization
|
|
register_activation_hook( __FILE__, array( 'KTC_Logic', 'install' ) );
|
|
|
|
add_action( 'plugins_loaded', function() {
|
|
KTC_Logic::init();
|
|
KTC_Admin::init();
|
|
});
|