From: R. Steve McKown Date: Mon, 13 Aug 2012 03:43:26 +0000 (-0600) Subject: Add pull quote macro X-Git-Url: https://oss.titaniummirror.com/gitweb?a=commitdiff_plain;h=cc515e469104b362dd366b2445126cb8179767f5;p=oss-web.git Add pull quote macro To use: [[!pquote text="This is the text of the pull quote"]] --- diff --git a/in/style/default.css b/in/style/default.css index a143429..204210a 100644 --- a/in/style/default.css +++ b/in/style/default.css @@ -670,3 +670,24 @@ hr { font-style: normal; font-weight: bold; } + +/* ============================================= + Pull Quotes (pquote) +================================================ */ + +.pquote { + float: right; + width: 8em; + background: url(pquote.gif) top left no-repeat; + color: #030; + font-size: 2em; + line-height: 0.9; + font-style: italic; + padding: 0.5em; + margin: 0; +} + +.pquote p:first-letter { + font-size: 1.5em; + font-weight: bold; +} diff --git a/in/style/pquote.gif b/in/style/pquote.gif new file mode 100644 index 0000000..1a573e5 Binary files /dev/null and b/in/style/pquote.gif differ diff --git a/in/webber.conf b/in/webber.conf index c0eba32..d02eaf2 100644 --- a/in/webber.conf +++ b/in/webber.conf @@ -5,6 +5,7 @@ date_format: "%Y-%m-%d %H:%M:%S" input_encoding: "iso-8859-1" output_encoding: "iso-8859-1" plugins: [ + "pquote", "skeleton", "hierarchy", "link", diff --git a/plugins/pquote.py b/plugins/pquote.py new file mode 100644 index 0000000..ffbf978 --- /dev/null +++ b/plugins/pquote.py @@ -0,0 +1,8 @@ +# -*- coding: iso-8859-1 -*- +from webber import * + +@set_macro("pquote") +def pquote_macro(params): + if cfg.test_verbose: + print "in macro skeleton.pull_quote_macro, params:", params + return "

" + params['text'] + "

"