# HG changeset patch # User Goffi # Date 1516606596 -3600 # Node ID 0d6c53e6c591b484f47169806d8f5fd095c15ea9 # Parent e5acc83a9d51ea7209f4f8502924a26093cf05d1 plugin blog static: added background parameter, to set an image diff -r e5acc83a9d51 -r 0d6c53e6c591 src/plugins/plugin_misc_static_blog.py --- a/src/plugins/plugin_misc_static_blog.py Sun Jan 21 20:20:38 2018 +0100 +++ b/src/plugins/plugin_misc_static_blog.py Mon Jan 22 08:36:36 2018 +0100 @@ -44,29 +44,32 @@ class StaticBlog(object): - params = """ + params = u""" - - - - - + + + + + + - """ % { - 'category_name': C.STATIC_BLOG_KEY, - 'category_label': D_(C.STATIC_BLOG_KEY), - 'title_name': C.STATIC_BLOG_PARAM_TITLE, - 'title_label': D_('Page title'), - 'banner_name': C.STATIC_BLOG_PARAM_BANNER, - 'banner_label': D_('Banner URL'), - 'keywords_name': C.STATIC_BLOG_PARAM_KEYWORDS, - 'keywords_label': D_('Keywords'), - 'description_name': C.STATIC_BLOG_PARAM_DESCRIPTION, - 'description_label': D_('Description'), - } + """.format( + category_name = C.STATIC_BLOG_KEY, + category_label = D_(C.STATIC_BLOG_KEY), + title_name = C.STATIC_BLOG_PARAM_TITLE, + title_label = D_('Page title'), + banner_name = C.STATIC_BLOG_PARAM_BANNER, + banner_label = D_('Banner URL'), + background_name = u"Background", + background_label = D_(u"Background image URL"), + keywords_name = C.STATIC_BLOG_PARAM_KEYWORDS, + keywords_label = D_('Keywords'), + description_name = C.STATIC_BLOG_PARAM_DESCRIPTION, + description_label = D_('Description'), + ) def __init__(self, host): try: # TODO: remove this attribute when all blogs can be retrieved