Version 0.9 ()
------------------------------------------------------------------------
+ * Give HTML Nugget the option for a second "description" attribute
+ that is used in the Plugin Configuration section, so that HTML
+ nuggets with an empty title still display additional information
+ to distinct multiple nuggets from another (garvinhicking)
+
* New entryproperties plugin option: Hide an entry from the frontpage
(garvinhicking)
function introspect(&$propbag)
{
$this->title = $this->get_config('title', $this->title);
+ $subtitle = $this->get_config('backend_title', '');
+ if (!empty($subtitle)) {
+ $desc = '(' . $subtitle . ') ' . HOLDS_A_BLAHBLAH;
+ } else {
+ $desc = HOLDS_A_BLAHBLAH;
+ }
+
$propbag->add('name', HTML_NUGGET);
- $propbag->add('description', HOLDS_A_BLAHBLAH);
+ $propbag->add('description', $desc);
$propbag->add('stackable', true);
$propbag->add('author', 'Serendipity Team');
$propbag->add('version', '1.0');
$propbag->add('configuration', array(
'title',
+ 'backend_title',
'content',
'markup',
'show_where'
$propbag->add('default', '');
break;
+ case 'backend_title':
+ $propbag->add('type', 'string');
+ $propbag->add('name', BACKEND_TITLE);
+ $propbag->add('description', BACKEND_TITLE_FOR_NUGGET);
+ $propbag->add('default', '');
+ break;
+
case 'content':
$propbag->add('type', 'html');
$propbag->add('name', CONTENT);
{
global $serendipity;
- $title = $this->get_config('title');
+ $title = $this->get_config('title') . '!';
$show_where = $this->get_config('show_where', 'both');
if ($show_where == 'extended' && (!isset($serendipity['GET']['id']) || !is_numeric($serendipity['GET']['id']))) {
@define('DELETE_HOTLINK_FILE', 'Deleted the hotlinked file entitled <b>%s</b>'); // Translate
@define('SYNDICATION_PLUGIN_SHOW_MAIL', 'Show E-Mail addresses?');
@define('IMAGE_MORE_INPUT', 'Add more images'); // Translate
+@define('BACKEND_TITLE', 'Additional information in Plugin Configuration screen'); // Translate
+@define('BACKEND_TITLE_FOR_NUGGET', 'Here you can define a custom string which is displayed in the Plugin Configuration screen together with the description of the HTML Nugget plugin. If you have multiple HTML nuggets with an empty title, this helps to distinct the plugins from another.'); // Translate
+
/* vim: set sts=4 ts=4 expandtab : */
?>
\ No newline at end of file
@define('DELETE_HOTLINK_FILE', 'Deleted the hotlinked file entitled <b>%s</b>'); // Translate
@define('SYNDICATION_PLUGIN_SHOW_MAIL', 'Show E-Mail addresses?');
@define('IMAGE_MORE_INPUT', 'Add more images'); // Translate
+@define('BACKEND_TITLE', 'Additional information in Plugin Configuration screen'); // Translate
+@define('BACKEND_TITLE_FOR_NUGGET', 'Here you can define a custom string which is displayed in the Plugin Configuration screen together with the description of the HTML Nugget plugin. If you have multiple HTML nuggets with an empty title, this helps to distinct the plugins from another.'); // Translate
/* vim: set sts=4 ts=4 expandtab : */
?>
\ No newline at end of file
@define('DELETE_HOTLINK_FILE', 'Vymazán odkazovaný soubor <b>%s</b>');
@define('SYNDICATION_PLUGIN_SHOW_MAIL', 'Show E-Mail addresses?');
@define('IMAGE_MORE_INPUT', 'Add more images'); // Translate
+@define('BACKEND_TITLE', 'Additional information in Plugin Configuration screen'); // Translate
+@define('BACKEND_TITLE_FOR_NUGGET', 'Here you can define a custom string which is displayed in the Plugin Configuration screen together with the description of the HTML Nugget plugin. If you have multiple HTML nuggets with an empty title, this helps to distinct the plugins from another.'); // Translate
/* vim: set sts=4 ts=4 expandtab : */
?>
\ No newline at end of file
@define('DELETE_HOTLINK_FILE', 'Vymazán odkazovaný soubor <b>%s</b>');
@define('SYNDICATION_PLUGIN_SHOW_MAIL', 'Show E-Mail addresses?');
@define('IMAGE_MORE_INPUT', 'Add more images'); // Translate
+@define('BACKEND_TITLE', 'Additional information in Plugin Configuration screen'); // Translate
+@define('BACKEND_TITLE_FOR_NUGGET', 'Here you can define a custom string which is displayed in the Plugin Configuration screen together with the description of the HTML Nugget plugin. If you have multiple HTML nuggets with an empty title, this helps to distinct the plugins from another.'); // Translate
/* vim: set sts=4 ts=4 expandtab : */
?>
\ No newline at end of file
@define('DELETE_HOTLINK_FILE', 'Slet den hotlinked fil ved navn <b>%s</b>');
@define('SYNDICATION_PLUGIN_SHOW_MAIL', 'Vis E-Mail adresser?');
@define('IMAGE_MORE_INPUT', 'Add more images'); // Translate
+@define('BACKEND_TITLE', 'Additional information in Plugin Configuration screen'); // Translate
+@define('BACKEND_TITLE_FOR_NUGGET', 'Here you can define a custom string which is displayed in the Plugin Configuration screen together with the description of the HTML Nugget plugin. If you have multiple HTML nuggets with an empty title, this helps to distinct the plugins from another.'); // Translate
/* vim: set sts=4 ts=4 expandtab : */
?>
@define('SYNDICATION_PLUGIN_SHOW_MAIL', 'E-Mail Adressen einbinden?');
@define('IMAGE_MORE_INPUT', 'Mehr Bilder hinzufügen');
+@define('BACKEND_TITLE', 'Additional information in Plugin Configuration screen'); // Translate
+@define('BACKEND_TITLE_FOR_NUGGET', 'Here you can define a custom string which is displayed in the Plugin Configuration screen together with the description of the HTML Nugget plugin. If you have multiple HTML nuggets with an empty title, this helps to distinct the plugins from another.'); // Translate
+
/* vim: set sts=4 ts=4 expandtab : */
?>
\ No newline at end of file
@define('DELETE_HOTLINK_FILE', 'Deleted the hotlinked file entitled <b>%s</b>'); // Translate
@define('SYNDICATION_PLUGIN_SHOW_MAIL', 'Show E-Mail addresses?');
@define('IMAGE_MORE_INPUT', 'Add more images');
+@define('BACKEND_TITLE', 'Additional information in Plugin Configuration screen'); // Translate
+@define('BACKEND_TITLE_FOR_NUGGET', 'Here you can define a custom string which is displayed in the Plugin Configuration screen together with the description of the HTML Nugget plugin. If you have multiple HTML nuggets with an empty title, this helps to distinct the plugins from another.'); // Translate
/* vim: set sts=4 ts=4 expandtab : */
?>
\ No newline at end of file
@define('DELETE_HOTLINK_FILE', 'Borrado el recurso enlazado externamente con el nombre <b>%s</b>');
@define('SYNDICATION_PLUGIN_SHOW_MAIL', 'Show E-Mail addresses?');
@define('IMAGE_MORE_INPUT', 'Add more images'); // Translate
+@define('BACKEND_TITLE', 'Additional information in Plugin Configuration screen'); // Translate
+@define('BACKEND_TITLE_FOR_NUGGET', 'Here you can define a custom string which is displayed in the Plugin Configuration screen together with the description of the HTML Nugget plugin. If you have multiple HTML nuggets with an empty title, this helps to distinct the plugins from another.'); // Translate
/* vim: set sts=4 ts=4 expandtab : */
?>
\ No newline at end of file
@define('DELETE_HOTLINK_FILE', 'لینک فایل <b>%s</b> حذف شد');
@define('SYNDICATION_PLUGIN_SHOW_MAIL', 'آیا آدرس ایمیل ها دیده شود؟');
@define('IMAGE_MORE_INPUT', 'Add more images'); // Translate
+@define('BACKEND_TITLE', 'Additional information in Plugin Configuration screen'); // Translate
+@define('BACKEND_TITLE_FOR_NUGGET', 'Here you can define a custom string which is displayed in the Plugin Configuration screen together with the description of the HTML Nugget plugin. If you have multiple HTML nuggets with an empty title, this helps to distinct the plugins from another.'); // Translate
/* vim: set sts=4 ts=4 expandtab : */
?>
\ No newline at end of file
@define('DELETE_HOTLINK_FILE', 'Deleted the hotlinked file entitled <b>%s</b>'); // Translate
@define('SYNDICATION_PLUGIN_SHOW_MAIL', 'Show E-Mail addresses?');
@define('IMAGE_MORE_INPUT', 'Add more images'); // Translate
+@define('BACKEND_TITLE', 'Additional information in Plugin Configuration screen'); // Translate
+@define('BACKEND_TITLE_FOR_NUGGET', 'Here you can define a custom string which is displayed in the Plugin Configuration screen together with the description of the HTML Nugget plugin. If you have multiple HTML nuggets with an empty title, this helps to distinct the plugins from another.'); // Translate
/* vim: set sts=4 ts=4 expandtab : */
?>
\ No newline at end of file
@define('FETCH_METHOD_HOTLINK', 'Établir un hotlink au serveur');
@define('DELETE_HOTLINK_FILE', 'Effacer le fichier par hotlink nommé <b>%s</b>');
@define('SYNDICATION_PLUGIN_SHOW_MAIL', 'Afficher les adresses E-Mail?');
+@define('BACKEND_TITLE', 'Additional information in Plugin Configuration screen'); // Translate
+@define('BACKEND_TITLE_FOR_NUGGET', 'Here you can define a custom string which is displayed in the Plugin Configuration screen together with the description of the HTML Nugget plugin. If you have multiple HTML nuggets with an empty title, this helps to distinct the plugins from another.'); // Translate
-@define('IMAGE_MORE_INPUT', 'Add more images'); // Translate
/* vim: set sts=4 ts=4 expandtab : */
?>
\ No newline at end of file
@define('DELETE_HOTLINK_FILE', 'Eyddi hotlinkaðri skrá, nefnd <b>%s</b>');
@define('SYNDICATION_PLUGIN_SHOW_MAIL', 'Sýna netföng?');
@define('IMAGE_MORE_INPUT', 'Add more images'); // Translate
+@define('BACKEND_TITLE', 'Additional information in Plugin Configuration screen'); // Translate
+@define('BACKEND_TITLE_FOR_NUGGET', 'Here you can define a custom string which is displayed in the Plugin Configuration screen together with the description of the HTML Nugget plugin. If you have multiple HTML nuggets with an empty title, this helps to distinct the plugins from another.'); // Translate
/* vim: set sts=4 ts=4 expandtab : */
?>
\ No newline at end of file
@define('DELETE_HOTLINK_FILE', 'Deleted the hotlinked file entitled <b>%s</b>'); // Translate
@define('SYNDICATION_PLUGIN_SHOW_MAIL', 'Show E-Mail addresses?');
@define('IMAGE_MORE_INPUT', 'Add more images'); // Translate
+@define('BACKEND_TITLE', 'Additional information in Plugin Configuration screen'); // Translate
+@define('BACKEND_TITLE_FOR_NUGGET', 'Here you can define a custom string which is displayed in the Plugin Configuration screen together with the description of the HTML Nugget plugin. If you have multiple HTML nuggets with an empty title, this helps to distinct the plugins from another.'); // Translate
/* vim: set sts=4 ts=4 expandtab : */
?>
\ No newline at end of file
@define('DELETE_HOTLINK_FILE', 'Deleted the hotlinked file entitled <b>%s</b>'); // Translate
@define('SYNDICATION_PLUGIN_SHOW_MAIL', '電子メールアドレスを表示しますか?');
@define('IMAGE_MORE_INPUT', 'Add more images'); // Translate
+@define('BACKEND_TITLE', 'Additional information in Plugin Configuration screen'); // Translate
+@define('BACKEND_TITLE_FOR_NUGGET', 'Here you can define a custom string which is displayed in the Plugin Configuration screen together with the description of the HTML Nugget plugin. If you have multiple HTML nuggets with an empty title, this helps to distinct the plugins from another.'); // Translate
/* vim: set sts=4 ts=4 expandtab : */
?>
@define('DELETE_HOTLINK_FILE', 'Deleted the hotlinked file entitled <b>%s</b>'); // Translate
@define('SYNDICATION_PLUGIN_SHOW_MAIL', 'Show E-Mail addresses?');
@define('IMAGE_MORE_INPUT', 'Add more images'); // Translate
+@define('BACKEND_TITLE', 'Additional information in Plugin Configuration screen'); // Translate
+@define('BACKEND_TITLE_FOR_NUGGET', 'Here you can define a custom string which is displayed in the Plugin Configuration screen together with the description of the HTML Nugget plugin. If you have multiple HTML nuggets with an empty title, this helps to distinct the plugins from another.'); // Translate
/* vim: set sts=4 ts=4 expandtab : */
?>
\ No newline at end of file
@define('DELETE_HOTLINK_FILE', 'Deleted the hotlinked file entitled <b>%s</b>'); // Translate
@define('SYNDICATION_PLUGIN_SHOW_MAIL', 'Show E-Mail addresses?');
@define('IMAGE_MORE_INPUT', 'Add more images'); // Translate
+@define('BACKEND_TITLE', 'Additional information in Plugin Configuration screen'); // Translate
+@define('BACKEND_TITLE_FOR_NUGGET', 'Here you can define a custom string which is displayed in the Plugin Configuration screen together with the description of the HTML Nugget plugin. If you have multiple HTML nuggets with an empty title, this helps to distinct the plugins from another.'); // Translate
/* vim: set sts=4 ts=4 expandtab : */
?>
\ No newline at end of file
@define('DELETE_HOTLINK_FILE', 'Deleted the hotlinked file entitled <b>%s</b>'); // Translate
@define('SYNDICATION_PLUGIN_SHOW_MAIL', 'Show E-Mail addresses?');
@define('IMAGE_MORE_INPUT', 'Add more images'); // Translate
+@define('BACKEND_TITLE', 'Additional information in Plugin Configuration screen'); // Translate
+@define('BACKEND_TITLE_FOR_NUGGET', 'Here you can define a custom string which is displayed in the Plugin Configuration screen together with the description of the HTML Nugget plugin. If you have multiple HTML nuggets with an empty title, this helps to distinct the plugins from another.'); // Translate
?>
\ No newline at end of file
@define('DELETE_HOTLINK_FILE', 'Deleted the hotlinked file entitled <b>%s</b>'); // Translate
@define('SYNDICATION_PLUGIN_SHOW_MAIL', 'Show E-Mail addresses?');
@define('IMAGE_MORE_INPUT', 'Add more images'); // Translate
+@define('BACKEND_TITLE', 'Additional information in Plugin Configuration screen'); // Translate
+@define('BACKEND_TITLE_FOR_NUGGET', 'Here you can define a custom string which is displayed in the Plugin Configuration screen together with the description of the HTML Nugget plugin. If you have multiple HTML nuggets with an empty title, this helps to distinct the plugins from another.'); // Translate
/* vim: set sts=4 ts=4 expandtab : */
?>
\ No newline at end of file
@define('FETCH_METHOD_HOTLINK', 'Leagă direct către server'); // Translate
@define('DELETE_HOTLINK_FILE', 'Am şters fişierul legat direct cu numele <b>%s</b>'); // Translate
@define('SYNDICATION_PLUGIN_SHOW_MAIL', 'Arată adresele de email?');
-
@define('IMAGE_MORE_INPUT', 'Add more images'); // Translate
+@define('BACKEND_TITLE', 'Additional information in Plugin Configuration screen'); // Translate
+@define('BACKEND_TITLE_FOR_NUGGET', 'Here you can define a custom string which is displayed in the Plugin Configuration screen together with the description of the HTML Nugget plugin. If you have multiple HTML nuggets with an empty title, this helps to distinct the plugins from another.'); // Translate
/* vim: set sts=4 ts=4 expandtab : */
?>
\ No newline at end of file
@define('DELETE_HOTLINK_FILE', 'Deleted the hotlinked file entitled <b>%s</b>'); // Translate
@define('SYNDICATION_PLUGIN_SHOW_MAIL', 'Show E-Mail addresses?');
@define('IMAGE_MORE_INPUT', 'Add more images'); // Translate
+@define('BACKEND_TITLE', 'Additional information in Plugin Configuration screen'); // Translate
+@define('BACKEND_TITLE_FOR_NUGGET', 'Here you can define a custom string which is displayed in the Plugin Configuration screen together with the description of the HTML Nugget plugin. If you have multiple HTML nuggets with an empty title, this helps to distinct the plugins from another.'); // Translate
/* vim: set sts=4 ts=4 expandtab : */
?>
\ No newline at end of file
@define('DELETE_HOTLINK_FILE', '刪除盜連的檔案 <b>%s</b>');
@define('SYNDICATION_PLUGIN_SHOW_MAIL', '顯示電子郵件嗎?');
@define('IMAGE_MORE_INPUT', 'Add more images'); // Translate
+@define('BACKEND_TITLE', 'Additional information in Plugin Configuration screen'); // Translate
+@define('BACKEND_TITLE_FOR_NUGGET', 'Here you can define a custom string which is displayed in the Plugin Configuration screen together with the description of the HTML Nugget plugin. If you have multiple HTML nuggets with an empty title, this helps to distinct the plugins from another.'); // Translate
/* vim: set sts=4 ts=4 expandtab : */
?>
\ No newline at end of file
@define('DELETE_HOTLINK_FILE', '§R°£µs³sªºÀÉ®× <b>%s</b>');
@define('SYNDICATION_PLUGIN_SHOW_MAIL', 'Åã¥Ü¹q¤l¶l¥ó¶Ü?');
@define('IMAGE_MORE_INPUT', 'Add more images'); // Translate
+@define('BACKEND_TITLE', 'Additional information in Plugin Configuration screen'); // Translate
+@define('BACKEND_TITLE_FOR_NUGGET', 'Here you can define a custom string which is displayed in the Plugin Configuration screen together with the description of the HTML Nugget plugin. If you have multiple HTML nuggets with an empty title, this helps to distinct the plugins from another.'); // Translate
/* vim: set sts=4 ts=4 expandtab : */
?>
\ No newline at end of file
@define('DELETE_HOTLINK_FILE', 'Deleted the hotlinked file entitled <b>%s</b>'); // Translate
@define('SYNDICATION_PLUGIN_SHOW_MAIL', 'Show E-Mail addresses?');
@define('IMAGE_MORE_INPUT', 'Add more images'); // Translate
+@define('BACKEND_TITLE', 'Additional information in Plugin Configuration screen'); // Translate
+@define('BACKEND_TITLE_FOR_NUGGET', 'Here you can define a custom string which is displayed in the Plugin Configuration screen together with the description of the HTML Nugget plugin. If you have multiple HTML nuggets with an empty title, this helps to distinct the plugins from another.'); // Translate
/* vim: set sts=4 ts=4 expandtab : */
?>
\ No newline at end of file