31 lines
915 B
PHP
Executable File
31 lines
915 B
PHP
Executable File
<?php
|
|
|
|
namespace Enlighter\Admin;
|
|
|
|
class ContextualHelp{
|
|
|
|
// Setup Help Screen
|
|
public static function settings(){
|
|
// load screen
|
|
$screen = get_current_screen();
|
|
|
|
$screen->add_help_tab(array(
|
|
'id' => 'enlighter_ch_tutorials',
|
|
'title' => __('Tutorials'),
|
|
'callback' => function(){
|
|
include(ENLIGHTER_PLUGIN_PATH.'/views/contextualhelp/'.'tutorials.en_EN.phtml');
|
|
}
|
|
));
|
|
|
|
$screen->add_help_tab(array(
|
|
'id' => 'enlighter_ch_usage',
|
|
'title' => __('General Usage'),
|
|
'callback' => function(){
|
|
include(ENLIGHTER_PLUGIN_PATH.'/views/contextualhelp/'.'usage.en_EN.phtml');
|
|
}
|
|
));
|
|
|
|
// sidebar
|
|
$screen->set_help_sidebar(file_get_contents(ENLIGHTER_PLUGIN_PATH.'/views/contextualhelp/'.'sidebar.en_EN.html'));
|
|
}
|
|
} |