Current File : /home/pacjaorg/public_html/copp/copp/wp-content/plugins/backwpup/inc/class-help.php |
<?php
class BackWPup_Help
{
public static function help()
{
if (method_exists(get_current_screen(), 'add_help_tab')) {
get_current_screen()->add_help_tab([
'id' => 'plugininfo',
'title' => __('Plugin Info', 'backwpup'),
'content' => '<p> ' . str_replace('\"', '"', sprintf(_x('%1$s version %2$s. A project by <a href="https://wp-media.me">WP Media</a>.', 'Plugin name and link; Plugin Version', 'backwpup'), '<a href="' . esc_attr__('http://backwpup.com', 'backwpup') . '">' . BackWPup::get_plugin_data('Name') . '</a>', BackWPup::get_plugin_data('Version'))) . '</p>'
. '<p>' . esc_html__('BackWPup comes with ABSOLUTELY NO WARRANTY. This is a free software, and you are welcome to redistribute it under certain conditions.', 'backwpup') . '</p>',
]);
$text_help_sidebar = '<p><strong>' . __('For more information:', 'backwpup') . '</strong></p>';
$text_help_sidebar .= '<p><a href="' . esc_attr__('http://backwpup.com', 'backwpup') . '">' . BackWPup::get_plugin_data('Name') . '</a></p>';
$text_help_sidebar .= '<p><a href="http://wordpress.org/extend/plugins/backwpup/">' . esc_html__('Plugin on wordpress.org', 'backwpup') . '</a></p>';
$text_help_sidebar .= '<p><a href="' . esc_attr__('https://backwpup.com/docs/', 'backwpup') . '">' . esc_html__('Manual', 'backwpup') . '</a></p>';
get_current_screen()->set_help_sidebar($text_help_sidebar);
}
}
/**
* @static
*
* @param array $tab
*/
public static function add_tab($tab = [])
{
if (method_exists(get_current_screen(), 'add_help_tab')) {
get_current_screen()->add_help_tab($tab);
}
}
}