9f6a886da7d05199dd89adac24ad9b0d7e4dfc86
[librarian.git] / src / librarian / elements / themes / motyw.py
1 from ..base import WLElement
2
3
4 class Motyw(WLElement):
5     ASIDE = True
6     HTML_TAG = "a"
7
8     def txt_build(self, builder):
9         pass
10
11     def html_build(self, builder):
12         if builder.with_themes:
13             super(Motyw, self).html_build(builder)
14
15     def get_html_attr(self, builder):
16         fid = self.attrib.get('id', '')[1:]
17         return {
18             "class": "theme-begin",
19             "fid": fid,
20             "name": "m" + fid,
21         }
22
23     def epub_build(self, builder):
24         pass