Current File : /dom405686/wp-content/plugins/pws-core/admin/class-GD-cORe-admin.php
<?php
if ( ! defined( 'ABSPATH' ) ) {
exit;
}
/**
* The admin-specific functionality of the plugin.
*
* Defines the plugin name, version, and two examples hooks for how to
* enqueue the admin-specific stylesheet and JavaScript.
*
* @package GD_cORe
* @subpackage GD_cORe/admin
*/
class GD_cORe_Admin {
/**
* The ID of this plugin.
*
* @since 3.0.0
* @access private
* @var string $plugin_name The ID of this plugin.
*/
private $plugin_name;
/**
* The version of this plugin.
*
* @since 3.0.0
* @access private
* @var string $version The current version of this plugin.
*/
private $version;
/**
* Initialize the class and set its properties.
*
* @since 3.0.0
* @param string $plugin_name The name of this plugin.
* @param string $version The version of this plugin.
*/
public function __construct( $plugin_name, $version ) {
$this->plugin_name = $plugin_name;
$this->version = $version;
}
/**
* Register the stylesheets for the admin area.
*
* @since 3.0.0
*/
public function enqueue_styles($hook) {
/**
* This function is provided for demonstration purposes only.
*
* An instance of this class should be passed to the run() function
* defined in GD_cORe_Loader as all of the hooks are defined
* in that particular class.
*
* The GD_cORe_Loader will then create the relationship
* between the defined hooks and the functions defined in this
* class.
*/
if (strpos($hook, 'gd-core') !== false) {
wp_enqueue_style( $this->plugin_name, plugin_dir_url( __FILE__ ) . 'css/GD-cORe-admin.css', array(), $this->version, 'all' );
}
}
/**
* Register the JavaScript for the admin area.
*
* @since 3.0.0
*/
public function enqueue_scripts() {
/**
* This function is provided for demonstration purposes only.
*
* An instance of this class should be passed to the run() function
* defined in GD_cORe_Loader as all of the hooks are defined
* in that particular class.
*
* The GD_cORe_Loader will then create the relationship
* between the defined hooks and the functions defined in this
* class.
*/
wp_enqueue_script( $this->plugin_name, plugin_dir_url( __FILE__ ) . 'js/GD-cORe-admin.js', array( 'jquery' ), $this->version, false );
}
/**
* Add an options page under the Settings submenu
*
* @since 1.0.0
*/
public function add_admin_page() {
$this->plugin_screen_hook_suffix = add_menu_page(
__( 'GD cORe', 'gd-core' ),
__( 'GD cORe', 'gd-core' ),
'manage_options',
$this->plugin_name,
array( $this, 'display_admin_page' )
);
$this->plugin_screen_hook_suffix = add_submenu_page(
'gd-core',
'GD cORe Plugins',
'Plugins',
'manage_options',
'gd-core-plugins',
array( $this, 'display_admin_plugins_page' )
);
$this->plugin_screen_hook_suffix = add_submenu_page(
'gd-core',
'GD cORe Themes',
'Themes',
'manage_options',
'gd-core-themes',
array( $this, 'display_admin_themes_page' )
);
$this->plugin_screen_hook_suffix = add_submenu_page(
'gd-core',
'GD cORe Site Audits',
'Site Audits',
'manage_options',
'gd-core-audits',
array( $this, 'display_admin_audits_page' )
);
}
/**
* Render the Main options page for GD cORe
*
* @since 3.0.0
*/
public function display_admin_page() {
include_once 'partials/GD-cORe-admin-home.php';
}
/**
* Render the Main options page for GD cORe
*
* @since 3.0.0
*/
public function display_admin_plugins_page() {
include_once 'partials/GD-cORe-admin-plugins.php';
}
/**
* Render the Main options page for GD cORe
*
* @since 3.0.0
*/
public function display_admin_themes_page() {
include_once 'partials/GD-cORe-admin-themes.php';
}
/**
* Render the Main options page for GD cORe
*
* @since 3.0.0
*/
public function display_admin_audits_page() {
include_once 'partials/GD-cORe-admin-audits.php';
}
//inits cache clearing scripts for back end
public function core_cache_scripts() {
if ( !is_super_admin() || !is_admin_bar_showing() )
return;
wp_enqueue_script( 'core_cache_control_script', plugin_dir_url( __FILE__ ) . 'js/gdcoreAjax.js', array('jquery'), '1.0.0', true );
wp_localize_script( 'core_cache_control_script', 'core_cache_control', array(
'ajaxurl' => admin_url( 'admin-ajax.php' ),
'security' => wp_create_nonce( 'core_cache_string' )
));
}
//flushes cache
public function core_flush() {
$cache_actions = new GD_cORe\handlers\Cache();
$cache_actions->spendCache(true);
}
}
Distinguish Your Business From The Rest With The People That Make Up Your Team
We go Beyond a Resume to find high value, committed people
ready, willing, and able to add true value toward your organization's mission.
The right people make or break your business
We focus on resolving two types of challenges surrounding staffing and recruiting at Beyond a Resume: The first challenge comes when a business continues to grow, but does not have the full-time, internal, talent acquisition resources to hire the right people or talent necessary to keep up with their rate of progression as a company.
The second is a business that has a dedicated internal Human Resources Team, but requires outsourced assistance when the volume of people and talent needed exceeds short term internal capacity, OR the position(s) they seek to fill demand a specific skill set that is difficult to find, requiring added bandwidth.
In nearly any line of business, growth is a challenge in and of itself. Yet, the real problems arise in managing growth to ensure your progress remains profitable, sustainable, and repeatable. The biggest factor in this equation is usually found in your people. When you have the right people, success is unlimited. On the other hand, when you don’t have the right people in place or are having trouble finding enough of the right people, failure or stagnation is imminent.
The frustration that comes with the process of “hiring” can bring you to new levels of stress as the time cost involved eats away at your production elsewhere. If you have experienced this in the past, or are currently struggling with this issue, you’re certainly not alone. You may simply need the right partner to take the worst parts of this process off your plate so you can concentrate on your responsibilities, while we work diligently to reduce the noise and deliver only the ideal candidates worth your time and attention.
People can make or break your business and we go Beyond a Resume to find high value, committed people ready, willing, and able to add true value.