isDuplicatorPage()) { return; } $colorScheme = self::getCurrentColorScheme(); $primaryButtonColor = self::getPrimaryButtonColorByScheme(); ?> name); switch ($name) { case 'blue': return '#e3af55'; case 'light': case 'midnight': return $colorScheme->colors[3]; case 'ocean': case 'ectoplasm': case 'coffee': case 'sunrise': case 'default': default: return $colorScheme->colors[2]; } } /** * * @global object[] $_wp_admin_css_colors * @return object */ public static function getCurrentColorScheme() { global $_wp_admin_css_colors; $colorScheme = get_user_option('admin_color'); if (isset($_wp_admin_css_colors[$colorScheme])) { return $_wp_admin_css_colors[$colorScheme]; } else { return $_wp_admin_css_colors[DupProSnapLibUtil::arrayKeyFirst($_wp_admin_css_colors)]; } } /** * Get the help support tab view content shown in the help system * * @param string $guide The target URL to navigate to on the online user guide * @param string $faq The target URL to navigate to on the online user tech FAQ * * @return null */ public function getSupportTab($guide, $faq) { $content = DUP_PRO_U::__("Need Help? Please check out these resources:" . ""); $this->screen->add_help_tab(array( 'id' => 'dpro_help_tab_callback', 'title' => DUP_PRO_U::esc_html__('Support'), 'content' => "

{$content}

" ) ); } public static function getHelpSidebarBaseItems() { ob_start(); ?>