/var/www/(Del)hsihk.com/wp-content/plugins/woocommerce/includes/admin/class-wc-admin-help.php


1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
<?php
/**
 * Add some content to the help tab.
 *
 * @author         WooThemes
 * @category     Admin
 * @package     WooCommerce/Admin
 * @version     2.1.0
 */

if ( ! defined'ABSPATH' ) ) {
    exit; 
// Exit if accessed directly
}

if ( ! 
class_exists'WC_Admin_Help' ) ) :

/**
 * WC_Admin_Help Class
 */
class WC_Admin_Help {

    
/**
     * Hook in tabs.
     */
    
public function __construct() {
        
add_action"current_screen", array( $this'add_tabs' ), 50 );
    }

    
/**
     * Add Contextual help tabs
     */
    
public function add_tabs() {
        
$screen get_current_screen();

        if ( ! 
in_array$screen->idwc_get_screen_ids() ) )
            return;

        
$screen->add_help_tab( array(
            
'id'        => 'woocommerce_docs_tab',
            
'title'        => __'Documentation''woocommerce' ),
            
'content'    =>

                
'<p>' __'Thank you for using WooCommerce :) Should you need help using or extending WooCommerce please read the documentation.''woocommerce' ) . '</p>' .

                
'<p><a href="' 'http://docs.woothemes.com/documentation/plugins/woocommerce/' '" class="button button-primary">' __'WooCommerce Documentation''woocommerce' ) . '</a> <a href="' 'http://docs.woothemes.com/wc-apidocs/' '" class="button">' __'Developer API Docs''woocommerce' ) . '</a></p>'

        
) );

        
$screen->add_help_tab( array(
            
'id'        => 'woocommerce_support_tab',
            
'title'        => __'Support''woocommerce' ),
            
'content'    =>

                
'<p>' sprintf__'After %sreading the documentation%s, for further assistance you can use our %scommunity forum%s if you get stuck. For help with premium add-ons from WooThemes, or if you are a WooThemes customer, you can %suse our helpdesk%s.''woocommerce' ), '<a href="http://docs.woothemes.com/documentation/plugins/woocommerce/">''</a>''<a href="https://support.woothemes.com/hc/communities/public/topics">''</a>''<a href="http://support.woothemes.com">''</a>' ) . '</p>' .

                
'<p>' __'Before asking for help we recommend checking the status page to identify any problems with your configuration.''woocommerce' ) . '</p>' .

                
'<p><a href="' admin_url('admin.php?page=wc-status') . '" class="button button-primary">' __'System Status''woocommerce' ) . '</a> <a href="' 'https://support.woothemes.com/hc/communities/public/topics' '" class="button">' __'WooThemes Community Support''woocommerce' ) . '</a> <a href="' 'http://support.woothemes.com' '" class="button">' __'WooThemes Customer Support''woocommerce' ) . '</a></p>'

        
) );

        
$screen->add_help_tab( array(
            
'id'        => 'woocommerce_bugs_tab',
            
'title'        => __'Found a bug?''woocommerce' ),
            
'content'    =>

                
'<p>' sprintf__'If you find a bug within WooCommerce core you can create a ticket via <a href="%s">Github issues</a>. Ensure you read the <a href="%s">contribution guide</a> prior to submitting your report. Be as descriptive as possible and please include your <a href="%s">system status report</a>.''woocommerce' ), 'https://github.com/woothemes/woocommerce/issues?state=open''https://github.com/woothemes/woocommerce/blob/master/CONTRIBUTING.md'admin_url'admin.php?page=wc-status' ) ) . '</p>' .

                
'<p><a href="' 'https://github.com/woothemes/woocommerce/issues?state=open' '" class="button button-primary">' __'Report a bug''woocommerce' ) . '</a> <a href="' admin_url('admin.php?page=wc-status') . '" class="button">' __'System Status''woocommerce' ) . '</a></p>'

        
) );

        
$screen->set_help_sidebar(
            
'<p><strong>' __'For more information:''woocommerce' ) . '</strong></p>' .
            
'<p><a href="' 'http://www.woothemes.com/woocommerce/' '" target="_blank">' __'About WooCommerce''woocommerce' ) . '</a></p>' .
            
'<p><a href="' 'http://wordpress.org/extend/plugins/woocommerce/' '" target="_blank">' __'WordPress.org Project''woocommerce' ) . '</a></p>' .
            
'<p><a href="' 'https://github.com/woothemes/woocommerce' '" target="_blank">' __'Github Project''woocommerce' ) . '</a></p>' .
            
'<p><a href="' 'http://www.woothemes.com/product-category/themes/woocommerce/' '" target="_blank">' __'Official Themes''woocommerce' ) . '</a></p>' .
            
'<p><a href="' 'http://www.woothemes.com/product-category/woocommerce-extensions/' '" target="_blank">' __'Official Extensions''woocommerce' ) . '</a></p>'
        
);
    }

}

endif;

return new 
WC_Admin_Help();