bit longer author field
[librarian.git] / src / librarian / elements / themes / motyw.py
1 # This file is part of Librarian, licensed under GNU Affero GPLv3 or later.
2 # Copyright © Fundacja Wolne Lektury. See NOTICE for more information.
3 #
4 from ..base import WLElement
5
6
7 class Motyw(WLElement):
8     ASIDE = True
9     HTML_TAG = "a"
10
11     def txt_build(self, builder):
12         pass
13
14     def html_build(self, builder):
15         if builder.with_themes:
16             super(Motyw, self).html_build(builder)
17
18     def get_html_attr(self, builder):
19         fid = self.attrib.get('id', '')[1:]
20         return {
21             "class": "theme-begin",
22             "fid": fid,
23             "name": "m" + fid,
24         }
25
26     def epub_build(self, builder):
27         pass