starting adding contextual help for wp >= 3.3, needs soe more work, started translation of options area
Dieser Commit ist enthalten in:
Ursprung
672ad385e3
Commit
5329bf5707
7 geänderte Dateien mit 228 neuen und 28 gelöschten Zeilen
|
|
@ -122,6 +122,9 @@ function semmelstatzR_help($contextual_help, $screen_id, $screen) {
|
|||
$sHelpFile = $sHelpPathDefault;
|
||||
}
|
||||
if(!empty($sHelpFile)) $semrContextHelp = file_get_contents($sHelpFile);
|
||||
} else {
|
||||
include_once SEMMELSTATZR_SRVPATH."includes/help/v33/test.php";
|
||||
return;
|
||||
}
|
||||
}
|
||||
return $semrContextHelp.$contextual_help;
|
||||
|
|
|
|||
17
includes/help/v33/test.php
Normale Datei
17
includes/help/v33/test.php
Normale Datei
|
|
@ -0,0 +1,17 @@
|
|||
<?php
|
||||
$aArgs1 = array(
|
||||
'title'=>'Options',
|
||||
'id'=>1,
|
||||
'content'=>'Dies ist ein Tescht'
|
||||
);
|
||||
$aArgs2 = array(
|
||||
'title'=>'Table Stuff',
|
||||
'id'=>2,
|
||||
'content'=>'Dies ist ein Tescht'
|
||||
);
|
||||
|
||||
if(strstr($semr_hook['options'], get_current_screen()->id)) {
|
||||
get_current_screen()->add_help_tab($aArgs1);
|
||||
get_current_screen()->add_help_tab($aArgs2);
|
||||
}
|
||||
?>
|
||||
Laden …
Tabelle hinzufügen
Einen Link hinzufügen
In neuem Issue referenzieren