Skip to content

Commit f62c941

Browse files
committed
first commit
0 parents  commit f62c941

File tree

549 files changed

+145329
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

549 files changed

+145329
-0
lines changed

cbxcareertoolkit.php

Lines changed: 75 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,75 @@
1+
<?php
2+
3+
4+
/**
5+
*
6+
* @link https://codeboxr.com
7+
* @since 1.0.0
8+
* @package CBXcareertoolkit
9+
*
10+
* @wordpress-plugin
11+
* Plugin Name: CBX career Toolkit
12+
* Plugin URI: https://codeboxr.com/product/cbxjob-proaddon-for-wordpress/
13+
* Description: Making Test Case For Development!
14+
* Version: 1.0.0
15+
* Author: Codeboxr
16+
* Author URI: https://codeboxr.com
17+
* License: GPL-2.0+
18+
* License URI: http://www.gnu.org/licenses/gpl-2.0.txt
19+
* Text Domain: cbxdevtoolkit
20+
* Domain Path: /languages
21+
*/
22+
23+
// If this file is called directly, abort.
24+
if (!defined('WPINC')) {
25+
die;
26+
}
27+
28+
defined('CBXCAREER_TOOLKIT_PLUGIN_NAME') or define('CBXCAREER_TOOLKIT_PLUGIN_NAME', 'cbxdevtoolkit');
29+
defined('CBXCAREER_TOOLKIT_PLUGIN_VERSION') or define('CBXCAREER_TOOLKIT_PLUGIN_VERSION', '1.0.0');
30+
defined('CBXCAREER_TOOLKIT_BASE_NAME') or define('CBXCAREER_TOOLKIT_BASE_NAME', plugin_basename(__FILE__));
31+
defined('CBXCAREER_TOOLKIT_ROOT_PATH') or define('CBXCAREER_TOOLKIT_ROOT_PATH', plugin_dir_path(__FILE__));
32+
defined('CBXCAREER_TOOLKIT_ROOT_URL') or define('CBXCAREER_TOOLKIT_ROOT_URL', plugin_dir_url(__FILE__));
33+
34+
defined('CBX_DEBUG') or define('CBX_DEBUG', false);
35+
defined('CBXCAREER_TOOLKIT_DEV_MODE') or define('CBXCAREER_TOOLKIT_DEV_MODE', CBX_DEBUG);
36+
37+
38+
require_once CBXCAREER_TOOLKIT_ROOT_PATH . "lib/autoload.php";
39+
40+
41+
/**
42+
* The code that runs during plugin activation.
43+
* This action is documented in includes/class-cbxcareer_toolkit-activator.php
44+
*/
45+
function activate_cbx_career_toolkit()
46+
{
47+
// if ( ! cbxcareer_toolkit_compatible_wp_version() ) {
48+
// deactivate_plugins( plugin_basename( __FILE__ ) );
49+
// wp_die( __( 'CBX Dev toolkit plugin requires WordPress 3.5 or higher!', 'cbxdevtoolkit' ) );
50+
// }
51+
//
52+
// if ( ! cbxcareer_toolkit_compatible_php_version() ) {
53+
// deactivate_plugins( plugin_basename( __FILE__ ) );
54+
// wp_die( __( 'CBX Dev toolkit plugin requires PHP 7.4 or higher!', 'cbxdevtoolkit' ) );
55+
// }
56+
57+
\Cbx\Careertoolkit\CBXCareertoolkit::activate();
58+
}
59+
60+
/**
61+
* Begins execution of the plugin.
62+
*
63+
* Since everything within the plugin is registered via hooks,
64+
* then kicking off the plugin from this point in the file does
65+
* not affect the page life cycle.
66+
*
67+
* @since 1.0.0
68+
*/
69+
function run_cbxcareer_toolkit()
70+
{ // phpcs:ignore WordPress.NamingConventions.ValidFunctionName
71+
return \Cbx\Careertoolkit\CBXCareertoolkit::instance();
72+
}
73+
74+
75+
add_action("plugin_loaded", "run_cbxcareer_toolkit");

composer.json

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
{
2+
"name": "cbx/career-toolkit",
3+
"description": "cbx career toolkit for development test plugin",
4+
"type": "library",
5+
"license": "MIT",
6+
"config": {
7+
"vendor-dir": "lib"
8+
},
9+
"require": {
10+
"fakerphp/faker": "^1.23"
11+
},
12+
"autoload": {
13+
"psr-4": {
14+
"Cbx\\Careertoolkit\\": "includes/"
15+
},
16+
"files": []
17+
}
18+
}

composer.lock

Lines changed: 207 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

includes/CBXCareertoolkit.php

Lines changed: 74 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,74 @@
1+
<?php
2+
3+
namespace Cbx\Careertoolkit;
4+
5+
class CBXCareertoolkit
6+
{
7+
8+
/**
9+
* The single instance of the class.
10+
*
11+
* @var self
12+
* @since 1.0.0
13+
*/
14+
private static $instance = null;
15+
16+
/**
17+
* The unique identifier of this plugin.
18+
*
19+
* @since 1.0.0
20+
* @access protected
21+
* @var string $plugin_name The string used to uniquely identify this plugin.
22+
*/
23+
protected $plugin_name;
24+
25+
/**
26+
* The current version of the plugin.
27+
*
28+
* @since 1.0.0
29+
* @access protected
30+
* @var string $version The current version of the plugin.
31+
*/
32+
protected $version;
33+
34+
/**
35+
* @var Hooks
36+
* @since 1.0.0
37+
* @access protected
38+
*/
39+
protected $hooks;
40+
41+
public function __construct()
42+
{
43+
$this->plugin_name = CBXCAREER_TOOLKIT_PLUGIN_NAME;
44+
$this->version = CBXCAREER_TOOLKIT_PLUGIN_VERSION;
45+
$this->hooks = new Hooks();
46+
}
47+
48+
/**
49+
* Main cbx devtool Instance.
50+
*
51+
* Ensures only one instance of cbx devtool is loaded or can be loaded.
52+
*
53+
* @return self Main instance.
54+
* @since 1.0.0
55+
* @static
56+
*/
57+
public static function instance()
58+
{
59+
if (is_null(self::$instance)) {
60+
self::$instance = new self();
61+
}
62+
63+
return self::$instance;
64+
}
65+
66+
public static function activate()
67+
{
68+
}//end method activate
69+
70+
public static function deactivate()
71+
{
72+
}//end method activate
73+
74+
}

0 commit comments

Comments
 (0)