Skip to content

Instantly share code, notes, and snippets.

@luniki
Forked from tleilax/addPlainText.php
Last active August 29, 2015 14:14
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save luniki/2ca7d97317c697702795 to your computer and use it in GitHub Desktop.
Save luniki/2ca7d97317c697702795 to your computer and use it in GitHub Desktop.
<?php
class Foo
{
// ...
/**
* Setzt den Helpbar-Inhalt für die Funktionen des Plugins
*/
protected function getHelpbarContent($key)
{
if ($id === 'protect') {
$tip = _('Die Auflistung der Veranstaltungen kann je nach Menge sehr lange dauern.');
$hint = _('Beachten Sie, dass beim Schützen der Veranstaltungen das Datum der letzten Aktivität auf den heutigen Tag gesetzt wird und dies nicht rückgängig gemacht werden kann.');
Helpbar::get()->addPlainText(_('Hinweis'), $tip, 'icons/16/white/date.png');
Helpbar::get()->addPlainText(_('Achtung'), $hint, 'icons/16/white/info-circle.png');
} elseif ($id === 'list') {
$description = _('Wählen Sie das Semester aus.') . ' ';
$description .= _('Die anderen Parameter kommen aus der Konfiguration der automatischen Archivierung.') . ' ';
$description .= _('Sie erhalten dann eine Liste aller Veranstaltungen, die diese Kriterien erfüllen.');
$tip = _('Die Auflistung der Veranstaltungen kann unter Umständen sehr lange dauern.');
Helpbar::get()->addPlainText(_('Information'), $description, 'icons/16/white/info-circle.png');
Helpbar::get()->addPlainText(_('Hinweis'), $tip, 'icons/16/white/info-circle.png');
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment