%PDF-
%PDF-
Mini Shell
Mini Shell
<?php
namespace WPaaS\Admin;
use WPaaS\Auto_Updates;
use \WPaaS\Cache_V2;
use \WPaaS\Plugin;
if ( ! defined( 'ABSPATH' ) ) {
exit;
}
final class Bar {
/**
* Admin bar object.
*
* @var WP_Admin_Bar
*/
private $admin_bar;
/**
* Class constructor.
*/
public function __construct() {
add_action( 'init', [ $this, 'init' ] );
/**
* Initialize NextGen filters.
*/
add_filter( 'nextgen_admin_links', [ $this, 'filter_site_link' ], 10, 1 );
}
/**
* Filter the admin links used for NextGen Logo-Menu.
*
* @param array $links associative array of name => 'link'.
*
* @return array
*/
public function filter_site_link( $links ) {
return array_merge(
$links,
array(
'overview' => esc_url( Plugin::account_url( 'overview' ) ),
'settings' => esc_url( Plugin::account_url( 'settings' ) ),
'changeDomain' => esc_url( Plugin::account_url( 'changedomain' ) ),
'flush' => current_user_can( Cache_V2::$cap ) ? Cache_V2::get_flush_url() : '',
)
);
}
/**
* Initialize the script.
*
* @action init
*/
public function init() {
/**
* Filter the user cap required to view the admin bar menu.
*
* @since 2.0.0
*
* @var string
*/
$cap = (string) apply_filters( 'wpaas_admin_bar_cap', 'activate_plugins' );
if ( ! current_user_can( $cap ) ) {
return;
}
add_action( 'admin_bar_menu', [ $this, 'admin_bar_menu' ], PHP_INT_MAX );
add_action( 'admin_enqueue_scripts', [ $this, 'enqueue_scripts' ] );
add_action( 'wp_enqueue_scripts', [ $this, 'enqueue_scripts' ] );
}
/**
* Admin bar menu.
*
* @action admin_bar_menu
*
* @param \WP_Admin_Bar $admin_bar
*/
public function admin_bar_menu( \WP_Admin_Bar $admin_bar ) {
$this->admin_bar = $admin_bar;
$menus = [
'gd' => 'gd_menu',
'mt' => 'mt_menu',
];
$menu = Plugin::use_brand_value( $menus, 'reseller_menu' );
if ( is_callable( [ $this, $menu ] ) ) {
$this->$menu();
}
}
/**
* Enqueue styles.
*
* @action admin_enqueue_scripts
* @action wp_enqueue_scripts
*/
public function enqueue_scripts() {
$rtl = ! is_rtl() ? '' : '-rtl';
$suffix = SCRIPT_DEBUG ? '' : '.min';
wp_enqueue_style( 'wpaas-admin-bar', Plugin::assets_url( "css/admin-bar{$rtl}{$suffix}.css" ), [], Plugin::version() );
if ( Plugin::is_gd() ) {
wp_enqueue_style( 'wpaas-admin-bar-specific', Plugin::assets_url( "css/admin-bar-specific{$rtl}{$suffix}.css" ), [], Plugin::version() );
}
$dismissed = get_option( 'wpaas_whats_new_dismissed', false );
if ( Plugin::is_gd() && ! $dismissed ) {
wp_enqueue_script( 'wpaas-admin-bar-js', Plugin::assets_url( 'js/admin-bar.js' ), array( 'jquery' ), Plugin::version() );
}
}
/**
* Return the subdomain to use for the help docs
*
* @return string Help documents subdomain
*/
private function get_help_docs_url() {
$language = get_option( 'WPLANG', 'www' );
$parts = explode( '_', $language );
$subdomain = ! empty( $parts[1] ) ? strtolower( $parts[1] ) : strtolower( $language );
// Overrides
switch ( $subdomain ) {
case '':
$subdomain = 'www'; // Default
break;
case 'uk':
$subdomain = 'ua'; // Ukrainian (Українська)
break;
case 'el':
$subdomain = 'gr'; // Greek (Ελληνικά)
break;
case 'gb':
$subdomain = 'uk'; // United Kingdom
break;
}
/**
* Filter the help documentation URL.
*
* @since 3.11.2
*
* @var string
*/
$url = (string) apply_filters( 'wpaas_help_docs_url', "https://{$subdomain}.godaddy.com/help/wordpress-1000047", $subdomain, $language );
return esc_url( $url );
}
/**
* GoDaddy admin menu.
*/
private function gd_menu() {
$this->top_level_menu_item( __( 'GoDaddy Quick Links', 'gd-system-plugin' ), 'gd' );
$this->hosting_overview_menu_item();
$this->hosting_settings_menu_item();
$this->help_and_support_menu_item();
$this->flush_cache_menu_item();
$this->enable_auto_updates_menu_item();
$this->pro_connection_key_menu_item();
global $submenu;
if ( ! empty( $submenu['godaddy'] ) ) {
foreach ( $submenu['godaddy'] as $item ) {
parse_str( $item[2], $var );
$this->admin_bar->add_menu(
[
'parent' => 'wpaas',
'id' => 'wpaas-' . sanitize_title( ! empty( $var['tab'] ) ? $var['tab'] : $item[2] ),
'href' => $item[2],
'title' => $item[0],
]
);
}
}
// The "Leave feedback" item is only a click target for the Feedback_Form
// widget, which is not loaded on MHP (no feedback-api-proxy backend). Without
// it the item is dead, so drop it too.
if ( ! Plugin::is_mhp() ) {
$this->feedback_menu_item();
}
$this->whats_new_menu_item();
}
/**
* Media Temple admin menu.
*/
private function mt_menu() {
$this->top_level_menu_item( __( 'Managed WordPress', 'gd-system-plugin' ), 'mt' );
$this->hosting_settings_menu_item();
$this->flush_cache_menu_item();
}
/**
* Reseller admin menu.
*/
private function reseller_menu() {
$this->top_level_menu_item( __( 'Managed WordPress', 'gd-system-plugin' ), 'reseller' );
$this->hosting_overview_menu_item();
$this->hosting_settings_menu_item();
$this->flush_cache_menu_item();
$this->pro_connection_key_menu_item();
}
/**
* Top-level menu item.
*
* @param string $label
* @param string $icon
*/
private function top_level_menu_item( $label, $brand ) {
switch ( $brand ) {
default:
case 'reseller':
case 'mt':
$icon = '<span class="ab-icon dashicons dashicons-admin-generic"></span><span class="ab-label">%s</span>';
break;
case 'gd':
$icon = '<span class="ab-icon svg gd-wpaas" style="background-image: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjciIGhlaWdodD0iMjQiIHZpZXdCb3g9IjAgMCAyNyAyNCIgZmlsbD0iI2E3YWFhZCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZD0iTTIzLjI4OTggMS4wOTU3OUMyMC40ODM5IC0wLjY1MDk2MSAxNi43ODk4IC0wLjIzODU1MSAxMy40OTUyIDEuODI5MjFDMTAuMjEwOSAtMC4yMzc0MDggNi41MTQ1OCAtMC42NTA5NjEgMy43MTIwMyAxLjA5NTc5Qy0wLjcyMTI0NSAzLjg2MTU3IC0xLjI2MDI0IDEwLjk4NTYgMi41MDkzIDE3LjAwNjJDNS4yODc4MiAyMS40NDY3IDkuNjMyOTggMjQuMDQ2OCAxMy41MDA5IDIzL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LjczIDguNDAzNzMgMTMuNDYzMyA4LjczNjk0IDEyLjI0MzRDOS41MDQyNyA5LjQyMTc1IDExLjA4OTYgNi44ODkyNyAxMy4yOTM4IDQuOTYzOTlDMTQuMjQ0NSA0LjEzMDYgMTUuMzI3MyAzLjQ2MDc3IDE2LjQ5OCAyLjk4MTkxQzE4LjU3MzkgMi4xNTgyMyAyMC41MzE5IDIuMjExOTIgMjIuMDExNiAzLjEzNDk5QzIzLjQ5MTMgNC4wNTgwNiAyNC4zOTc2IDUuNzkxMSAyNC41NjU4IDguMDE1MzhDMjQuNjUwOSA5LjI3NTE2IDI0LjUyNTYgMTAuNTQwMyAyNC4xOTUgMTEuNzU5MVoiIGZpbGw9IiNhN2FhYWQiLz4KPC9zdmc+Cg==) !important;"></span><span class="ab-label">%s</span>';
}
$managed_wordpress = [
'id' => 'wpaas',
'title' => sprintf(
$icon, // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped
esc_html( $label )
),
];
$this->admin_bar->add_menu( $managed_wordpress );
}
/**
* Flush Cache menu item.
*/
private function flush_cache_menu_item() {
if ( ! current_user_can( Cache_V2::$cap ) ) {
return;
}
$this->admin_bar->add_menu(
[
'parent' => 'wpaas',
'id' => 'wpaas-flush-cache',
'title' => __( 'Flush Cache', 'gd-system-plugin' ),
'href' => Cache_V2::get_flush_url(),
]
);
}
/**
* Hosting Overview menu item.
*/
private function hosting_overview_menu_item() {
$this->admin_bar->add_menu(
[
'parent' => 'wpaas',
'id' => 'wpaas-overview',
'href' => esc_url( Plugin::account_url( 'overview' ) ),
'title' => sprintf(
'%s <span class="dashicons dashicons-external"></span>',
Plugin::is_gd() ? __( 'Back to GoDaddy', 'gd-system-plugin' ) : __( 'Hosting Overview', 'gd-system-plugin' )
),
'meta' => [
'target' => '_blank',
],
]
);
}
/**
* Hosting Settings menu item.
*/
private function hosting_settings_menu_item() {
$this->admin_bar->add_menu(
[
'parent' => 'wpaas',
'id' => 'wpaas-settings',
'href' => esc_url( Plugin::account_url( 'settings' ) ),
'title' => sprintf(
'%s <span class="dashicons dashicons-external"></span>',
__( 'Manage Hosting', 'gd-system-plugin' )
),
'meta' => [
'target' => '_blank',
],
]
);
}
/**
* Connection Management API key modal menu item.
*/
private function pro_connection_key_menu_item() {
if ( ! is_admin() || filter_input( INPUT_GET, 'showWorker' ) || ! function_exists( 'mwp_get_potential_key' ) ) {
return;
}
$this->admin_bar->add_menu(
[
'parent' => 'wpaas',
'id' => 'wpaas-pro-connection-key',
'href' => '#',
'title' => sprintf(
'<span id="mwp-view-connection-key" class="wp-admin-bar-wpaas-pro-connection-key">%s</span>',
__( 'Connection Management', 'gd-system-plugin' )
),
]
);
}
/**
* Help & Support menu item
*/
private function help_and_support_menu_item() {
if ( ! is_admin() ) {
return;
}
$this->admin_bar->add_menu(
[
'parent' => 'wpaas',
'id' => 'wpaas-help-and-support',
'href' => $this->get_help_docs_url(),
'title' => sprintf(
'%s <span class="dashicons dashicons-external"></span>',
__( 'WordPress Help', 'gd-system-plugin' )
),
'meta' => [
'target' => '_blank',
],
]
);
}
private function whats_new_menu_item() {
if ( ! is_admin() || ! Plugin::is_gd()) {
return;
}
$dismissed = get_option( 'wpaas_whats_new_dismissed', false );
$green_dot = $dismissed ? '' : ' <span class="wpaas-green-dot"></span>';
$this->admin_bar->add_menu(
[
'id' => 'wpaas-whats-new',
'href' => 'https://www.godaddy.com/resources/news/wordpress-7-0-real-time-collaboration-arrives-in-core',
'title' => sprintf(
'%s%s <span class="dashicons dashicons-external"></span>',
__( 'What’s new', 'gd-system-plugin' ),
$green_dot
),
'meta' => [
'target' => '_blank',
],
]
);
}
/**
* Enable auto updates for plugins and themes menu item
*/
private function enable_auto_updates_menu_item() {
if ( ! is_admin() ) {
return;
}
$auto_updates_status = get_option( 'mwp_auto_updates_status', 'disabled' );
$this->admin_bar->add_menu(
[
'parent' => 'wpaas',
'id' => 'wpaas-enable-auto-updates',
'href' => Auto_Updates::get_toggle_auto_update_url( $auto_updates_status ),
'title' => $auto_updates_status === 'disabled' ? __( 'Enable auto-updates', 'gd-system-plugin' ) : __( 'Disable auto-updates', 'gd-system-plugin' ),
]
);
}
/**
* Leave feedback menu item (top-level).
*/
private function feedback_menu_item() {
$this->admin_bar->add_menu(
[
'id' => 'wpaas-leave-feedback',
'href' => '#',
'title' => sprintf(
'<span id="wpaas-leave-feedback">%s</span>',
__( 'Leave feedback', 'gd-system-plugin' )
),
]
);
}
}
Zerion Mini Shell 1.0
Custom Staffing Solutions | Beyond A Resume
Skip to content
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.
Primary Industry Experience
Healthcare and Home Healthcare
Talent Acquisition Solutions
Statement of Work Projects
Scroll To Top