dump version number
authorSteve Sutton <steve@gaslightmedia.com>
Tue, 12 Jan 2016 15:30:37 +0000 (10:30 -0500)
committerSteve Sutton <steve@gaslightmedia.com>
Tue, 12 Jan 2016 15:30:37 +0000 (10:30 -0500)
glm-employment.php [deleted file]
index.php [new file with mode: 0644]

diff --git a/glm-employment.php b/glm-employment.php
deleted file mode 100644 (file)
index 0994e39..0000000
+++ /dev/null
@@ -1,102 +0,0 @@
-<?php
-/**
- * Plugin Name: Staffords Employment
- * Description: Online Employment Application for Staffords
- * Version: 0.3.4
- * Author: Steve Sutton
- * Author URI: http://www.gaslightmedia.com
- * License: All right reserved
- */
-
-defined('ABSPATH') or die();
-/**
- * Defines for the plugin
- */
-define('STAFFORDS_EMP_PLUGIN_PATH_FILE', __FILE__);
-define('STAFFORDS_EMP_VERSION', '0.2.1');
-define('STAFFORDS_EMP_SETTING_NAME', 'staffordsjobs_settings');
-define('STAFFORDS_EMP_SETTINGS', 'staffordsjobs_settings');
-define('STAFFORDS_EMP_NEW_CAPABILITY', 'edit_staffords_jobs');
-define('STAFFORDS_EMP_BUILT_IN_CAPABILITY', 'edit_posts');
-define('STAFFORDS_EMP_VRS_OPTION_NAME', 'staffords_jobs_db_version');
-define('STAFFORDS_EMP_POST_TYPE', 'staffords_jobs');
-define('STAFFORDS_EMP_TAX_CATEGORIES', 'staffords_jobscategory');
-define('STAFFORDS_EMP_CATEGORY_SINGLE', 'Category');
-define('STAFFORDS_EMP_CATEGORY_PLURAL', 'Categories');
-define('STAFFORDS_EMP_TAX_DEPARTMENTS', 'staffords_jobsdepartment');
-define('STAFFORDS_EMP_DEPARTMENT_SINGLE', 'Property');
-define('STAFFORDS_EMP_DEPARTMENT_PLURAL', 'Properties');
-define('STAFFORDS_EMP_APPLICATION_TABLE', 'staffords_jobs_application');
-define('STAFFORDS_EMP_FORM_TABLE', 'staffords_jobs_app_form');
-$wp_upload_dir = wp_upload_dir();
-define('STAFFORDS_EMP_UPLOAD_DIR', $wp_upload_dir['basedir'] . '/glm-emp/');
-define('STAFFORDS_EMP_UPLOAD_URL', $wp_upload_dir['baseurl'] . '/glm-emp/');
-
-register_activation_hook(__FILE__, array('staffords_employment_admin', 'activate_plugin'));
-register_deactivation_hook(__FILE__, array('staffords_employment_admin', 'deactivate_plugin'));
-
-/**
- * Create the upload directory for the resume files if not already there
- */
-if (!is_dir(STAFFORDS_EMP_UPLOAD_DIR)) {
-    // create the upload directory
-    $oldUmask = umask(0);
-    mkdir(STAFFORDS_EMP_UPLOAD_DIR, 0770);
-    umask($oldUmask);
-}
-/**
- * Require the class files
- */
-require_once 'controllers/admin.php';
-require_once 'controllers/front.php';
-require_once 'models/job.php';
-require_once 'models/database.php';
-/**
- * The Database class
- */
-$glm_member_db = new staffords_employment_models_database($GLOBALS['wpdb']);
-
-/**
- * Setup class to call in the Controllers
- */
-class staffords_employment_setup
-{
-    public function __construct()
-    {
-        if (is_admin()) {
-            $adminController = new staffords_employment_admin(
-                plugin_dir_path(__FILE__),
-                $GLOBALS['wpdb']
-            );
-        } else {
-            $frontController = new staffords_employment_front(
-                plugin_dir_path(__FILE__),
-                $GLOBALS['wpdb']
-            );
-        }
-
-    }
-}
-
-$employmentApp = new staffords_employment_setup();
-
-/**
- * Load style sheet for displaying the view and print for the application forms
- */
-function glm_load_view_style()
-{
-    wp_enqueue_style('foundation', plugin_dir_url(__FILE__) . 'css/foundation.css');
-}
-function glm_load_edit_style()
-{
-    wp_enqueue_style('staffords_jobs', plugin_dir_url(__FILE__) . 'css/staffords_jobs.css');
-}
-if (isset($_REQUEST['action']) && $_REQUEST['action'] == 'view') {
-    add_action('admin_enqueue_scripts', 'glm_load_view_style');
-}
-if (   isset($_REQUEST['post_type'])
-    && $_REQUEST['post_type'] == STAFFORDS_EMP_POST_TYPE
-    && !isset($_REQUEST['page'])
-) {
-    add_action('admin_enqueue_scripts', 'glm_load_edit_style');
-}
diff --git a/index.php b/index.php
new file mode 100644 (file)
index 0000000..248bab9
--- /dev/null
+++ b/index.php
@@ -0,0 +1,102 @@
+<?php
+/**
+ * Plugin Name: Staffords Employment
+ * Description: Online Employment Application for Staffords
+ * Version: 0.3.5
+ * Author: Steve Sutton
+ * Author URI: http://www.gaslightmedia.com
+ * License: All right reserved
+ */
+
+defined('ABSPATH') or die();
+/**
+ * Defines for the plugin
+ */
+define('STAFFORDS_EMP_PLUGIN_PATH_FILE', __FILE__);
+define('STAFFORDS_EMP_VERSION', '0.2.1');
+define('STAFFORDS_EMP_SETTING_NAME', 'staffordsjobs_settings');
+define('STAFFORDS_EMP_SETTINGS', 'staffordsjobs_settings');
+define('STAFFORDS_EMP_NEW_CAPABILITY', 'edit_staffords_jobs');
+define('STAFFORDS_EMP_BUILT_IN_CAPABILITY', 'edit_posts');
+define('STAFFORDS_EMP_VRS_OPTION_NAME', 'staffords_jobs_db_version');
+define('STAFFORDS_EMP_POST_TYPE', 'staffords_jobs');
+define('STAFFORDS_EMP_TAX_CATEGORIES', 'staffords_jobscategory');
+define('STAFFORDS_EMP_CATEGORY_SINGLE', 'Category');
+define('STAFFORDS_EMP_CATEGORY_PLURAL', 'Categories');
+define('STAFFORDS_EMP_TAX_DEPARTMENTS', 'staffords_jobsdepartment');
+define('STAFFORDS_EMP_DEPARTMENT_SINGLE', 'Property');
+define('STAFFORDS_EMP_DEPARTMENT_PLURAL', 'Properties');
+define('STAFFORDS_EMP_APPLICATION_TABLE', 'staffords_jobs_application');
+define('STAFFORDS_EMP_FORM_TABLE', 'staffords_jobs_app_form');
+$wp_upload_dir = wp_upload_dir();
+define('STAFFORDS_EMP_UPLOAD_DIR', $wp_upload_dir['basedir'] . '/glm-emp/');
+define('STAFFORDS_EMP_UPLOAD_URL', $wp_upload_dir['baseurl'] . '/glm-emp/');
+
+register_activation_hook(__FILE__, array('staffords_employment_admin', 'activate_plugin'));
+register_deactivation_hook(__FILE__, array('staffords_employment_admin', 'deactivate_plugin'));
+
+/**
+ * Create the upload directory for the resume files if not already there
+ */
+if (!is_dir(STAFFORDS_EMP_UPLOAD_DIR)) {
+    // create the upload directory
+    $oldUmask = umask(0);
+    mkdir(STAFFORDS_EMP_UPLOAD_DIR, 0770);
+    umask($oldUmask);
+}
+/**
+ * Require the class files
+ */
+require_once 'controllers/admin.php';
+require_once 'controllers/front.php';
+require_once 'models/job.php';
+require_once 'models/database.php';
+/**
+ * The Database class
+ */
+$glm_member_db = new staffords_employment_models_database($GLOBALS['wpdb']);
+
+/**
+ * Setup class to call in the Controllers
+ */
+class staffords_employment_setup
+{
+    public function __construct()
+    {
+        if (is_admin()) {
+            $adminController = new staffords_employment_admin(
+                plugin_dir_path(__FILE__),
+                $GLOBALS['wpdb']
+            );
+        } else {
+            $frontController = new staffords_employment_front(
+                plugin_dir_path(__FILE__),
+                $GLOBALS['wpdb']
+            );
+        }
+
+    }
+}
+
+$employmentApp = new staffords_employment_setup();
+
+/**
+ * Load style sheet for displaying the view and print for the application forms
+ */
+function glm_load_view_style()
+{
+    wp_enqueue_style('foundation', plugin_dir_url(__FILE__) . 'css/foundation.css');
+}
+function glm_load_edit_style()
+{
+    wp_enqueue_style('staffords_jobs', plugin_dir_url(__FILE__) . 'css/staffords_jobs.css');
+}
+if (isset($_REQUEST['action']) && $_REQUEST['action'] == 'view') {
+    add_action('admin_enqueue_scripts', 'glm_load_view_style');
+}
+if (   isset($_REQUEST['post_type'])
+    && $_REQUEST['post_type'] == STAFFORDS_EMP_POST_TYPE
+    && !isset($_REQUEST['page'])
+) {
+    add_action('admin_enqueue_scripts', 'glm_load_edit_style');
+}