From 0fe37dd93d4cb5cdc51ae5cc597ec21b028496d8 Mon Sep 17 00:00:00 2001 From: saschaleib Date: Wed, 19 Apr 2023 22:45:03 +0200 Subject: [PATCH] Ready for new release --- helper.php | 8 +++----- plugin.info.txt | 2 +- syntax/a.php | 4 ++-- 3 files changed, 6 insertions(+), 8 deletions(-) diff --git a/helper.php b/helper.php index d1a8d62..4e783f5 100644 --- a/helper.php +++ b/helper.php @@ -3,8 +3,8 @@ * Helper Component for the Ad Hoc Tags Plugin * * @license GPL 2 (http://www.gnu.org/licenses/gpl.html) - * @author Anika Henke - * @author Sascha Leib + * @author Anika Henke + * @author Sascha Leib */ class helper_plugin_adhoctags extends DokuWiki_Plugin { @@ -15,9 +15,6 @@ class helper_plugin_adhoctags extends DokuWiki_Plugin { static protected $rtlscripts = array('arab','thaa','hebr','deva','shrd'); /* selection of left-to-right scripts (may override the language defaults to ltr) */ static protected $ltrscripts = array('latn','cyrl','grek','cyrs','armn'); - /* tag attributes that are always allowed: */ - static protected $globalattr = array('dir','hidden','is','itemid','itemprop','itemref','itemscope','itemtype','role','tabindex'); - /* Helper plugins should return info about the methods supported. */ public function getMethods() { @@ -122,6 +119,7 @@ function buildAttributes($data, $myObj, $addClass='', $mode='xhtml') { * get attributes (pull apart the string between '') * and identify classes, width, lang and dir * + * @author Sascha Leib * @author Anika Henke * @author Christopher Smith * (parts taken from http://www.dokuwiki.org/plugin:box) diff --git a/plugin.info.txt b/plugin.info.txt index 4f0dc04..60f352e 100644 --- a/plugin.info.txt +++ b/plugin.info.txt @@ -1,7 +1,7 @@ base adhoctags author Sascha Leib email sascha.leib(at)kolmio.com -date 2023-04-13 +date 2023-04-20 name Ad-Hoc Tags Plugin desc A secure but flexible way to insert HTML tags into DokuWiki url https://www.dokuwiki.org/plugin:adhoctags diff --git a/syntax/a.php b/syntax/a.php index 96c53f2..e69d491 100644 --- a/syntax/a.php +++ b/syntax/a.php @@ -16,7 +16,6 @@ class syntax_plugin_adhoctags_a extends syntax_plugin_adhoctags_abstractinline { /* allow link attributes: */ function allowAttribute(&$name, &$value) { - //dbg(':allowAttribute(' . $name . ', "' . $value . '")'); switch ($name) { case 'href': @@ -49,7 +48,8 @@ function allowAttribute(&$name, &$value) { return false; } } - /** + + /** * ODT Renderer Functions */ function renderODTElementOpen($renderer, $HTMLelement, $data) {