diff options
author | Igor <pashev.igor@gmail.com> | 2010-10-31 20:23:13 +0300 |
---|---|---|
committer | Igor <pashev.igor@gmail.com> | 2010-10-31 20:23:13 +0300 |
commit | f6e436bb1c5f6875923c9350eaaf9f877d05b5a2 (patch) | |
tree | 9d864695c76b83b2562a7053eb029d08daae8d0c | |
parent | 550e0062508de14939dd518c5b7d6efefaf5b655 (diff) | |
download | dokuwiki-plugin-papers-f6e436bb1c5f6875923c9350eaaf9f877d05b5a2.tar.gz |
Valid XHTML
-rw-r--r-- | README | 9 | ||||
-rw-r--r-- | syntax.php | 11 |
2 files changed, 16 insertions, 4 deletions
@@ -11,9 +11,18 @@ It introduces two syntax extentions for Dokuwiki: Raw BiBTeX data </bibtex> +1.1 Notes + +For final output to be valid XHTML +no empty line are allowed before </bibtex> + + + 2. Publications selected from <bibtex> by some attributes. +(Not implemented yet) + <papers> author = pashev, year = 2005 @@ -26,7 +26,7 @@ class syntax_plugin_papers extends DokuWiki_Syntax_Plugin { function getType() { return 'protected'; } - function getPType() { return 'stack'; } + function getPType() { return 'block'; } // http://www.dokuwiki.org/devel:syntax_plugins#ptype function getSort() { return 102; } @@ -113,7 +113,9 @@ class syntax_plugin_papers extends DokuWiki_Syntax_Plugin $year_prev = $year; $type_prev = ''; - $res .= $this->wikirender('===== ' . $year . ' ' . $this->getLang('year') . ' ====='); + //$res .= $this->wikirender('===== ' . $year . ' ' . $this->getLang('year') . ' ====='); + $res .= "<h2 class=\"sectionedit2\">$year " + . $this->getLang('year') . "</h2>\n"; } $type = $entry['entry']; @@ -121,12 +123,13 @@ class syntax_plugin_papers extends DokuWiki_Syntax_Plugin { if ($in_list) { - $res .= "</ol>\n"; + $res .= "</ol>\n\n\n"; $in_list = false; } $type_prev = $type; - $res .= $this->wikirender('==== ' . $this->getLang($type) . ' ===='); + //$res .= $this->wikirender('==== ' . $this->getLang($type) . ' ===='); + $res .= '<h3 class="sectionedit3">' . $this->getLang($type) . "</h3>\n"; } if (!$in_list) |