changeset 333:a82e059e4477

text_x_arnica: applied patch for new flag show_title to control visibility of the album title by Johannes Berg
author Reimar Bauer <rb.proj AT googlemail DOT com>
date Tue, 20 Jan 2009 19:27:21 +0100
parents a944836db9bb
children ff4d2f96a36b
files data/plugin/parser/text_x_arnica.py
diffstat 1 files changed, 3 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/data/plugin/parser/text_x_arnica.py	Tue Jan 20 19:13:20 2009 +0100
+++ b/data/plugin/parser/text_x_arnica.py	Tue Jan 20 19:27:21 2009 +0100
@@ -26,7 +26,7 @@
 
 def arnica_settings(target_page=u'', columns=4, file_regex=u'.',
                     image_for_webnail=False,
-                    show_text=True, show_date=True, show_tools=False,
+                    show_text=True, show_date=True, show_tools=False, show_title=True,
                     sort_by=("name", "date", "alias"),
                     reverse_sort=False,
                     only_items=False, template_itemlist=False,
@@ -40,6 +40,7 @@
     @param file_regex: regex for selecting images
     @param image_for_webnail if set then the image is shown instead of the webnail
     @param show_text: default shows description
+    @param show_title: show album title
     @param show_date: default shows date from exif header, if available
     @param show_tools: default does not show the icon toolbar
     @param sort_by: default, sorts images by name, optional by date or by alias
@@ -219,7 +220,7 @@
         @param selected_images: ordered list of selected images
         """
         title = ""
-        if self.album:
+        if self.album and self.show_title:
             title = '<div class="title">%(n)d images (%(album_title)s)</div>' % {"n": len(self.arnica_image),
                                                         "album_title": self.album_title or self.pagename}
         html = """