From: Radek Czajka Date: Thu, 1 Sep 2011 10:32:46 +0000 (+0200) Subject: 1% propaganda in epubs X-Git-Tag: 1.7~199 X-Git-Url: https://git.mdrn.pl/librarian.git/commitdiff_plain/7e7eac17f776821311bdcc305052575f7994989e 1% propaganda in epubs --- diff --git a/librarian/epub.py b/librarian/epub.py index 0f23923..70403fd 100644 --- a/librarian/epub.py +++ b/librarian/epub.py @@ -397,6 +397,7 @@ def transform(provider, slug=None, file_path=None, output_file=None, output_dir= '') zip.write(get_resource('epub/style.css'), os.path.join('OPS', 'style.css')) zip.write(get_resource('res/wl-logo-small.png'), os.path.join('OPS', 'logo_wolnelektury.png')) + zip.write(get_resource('res/jedenprocent.png'), os.path.join('OPS', 'jedenprocent.png')) opf = xslt(metadata, get_resource('epub/xsltContent.xsl')) manifest = opf.find('.//' + OPFNS('manifest')) diff --git a/librarian/epub/style.css b/librarian/epub/style.css index 249ae09..2a41d9b 100644 --- a/librarian/epub/style.css +++ b/librarian/epub/style.css @@ -351,13 +351,17 @@ em.author-emphasis text-transform: uppercase; } -p.info +.info { text-align: center; margin-bottom: 1em; } +.info div +{ + text-align: center; +} -p.info img +.info img { margin: 0; margin-left: 2em; diff --git a/librarian/epub/xsltContent.xsl b/librarian/epub/xsltContent.xsl index 27a317f..6752be3 100644 --- a/librarian/epub/xsltContent.xsl +++ b/librarian/epub/xsltContent.xsl @@ -30,6 +30,7 @@ + @@ -47,4 +48,4 @@ - \ No newline at end of file + diff --git a/librarian/epub/xsltLast.xsl b/librarian/epub/xsltLast.xsl index dd44a30..67f6b0e 100644 --- a/librarian/epub/xsltLast.xsl +++ b/librarian/epub/xsltLast.xsl @@ -63,6 +63,13 @@ +
+ Logo 1% +
Przekaż 1% podatku na rozwój Wolnych Lektur.
+
Nazwa organizacji: Fundacja Nowoczesna Polska
+
KRS 0000070056
+
+

 

Plik wygenerowany dnia . diff --git a/librarian/res/jedenprocent.png b/librarian/res/jedenprocent.png new file mode 100644 index 0000000..1b88c54 Binary files /dev/null and b/librarian/res/jedenprocent.png differ