]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
License link, no title
authorEvan Prodromou <evan@controlyourself.ca>
Fri, 15 May 2009 22:16:32 +0000 (18:16 -0400)
committerEvan Prodromou <evan@controlyourself.ca>
Fri, 15 May 2009 22:17:12 +0000 (18:17 -0400)
plugins/WikiHashtagsPlugin.php

index 4d386e19860184f9299d4e25c5159a6a34a5f45c..141cb07d2aa75bb813d5585d6b09be60c1e29824 100644 (file)
@@ -82,13 +82,20 @@ class WikiHashtagsPlugin extends Plugin
 
                 $action->elementStart('div', array('id' => 'wikihashtags', 'class' => 'section'));
 
-                $action->element('h2', null, _('WikiHashtags'));
-
                 if (!empty($html)) {
-                    $action->element('style', null, 'span.editsection { display: none }');
+                    $action->element('style', null,
+                                     "span.editsection { display: none }\n".
+                                     "table.toc { display: none }");
                     $action->raw($html);
-                    $action->element('a', array('href' => $editurl),
+                    $action->elementStart('p');
+                    $action->element('a', array('href' => $editurl,
+                                                'title' => sprintf(_('Edit the article for #%s on WikiHashtags'), $tag)),
                                      _('Edit'));
+                    $action->element('a', array('href' => 'http://www.gnu.org/copyleft/fdl.html',
+                                                'title' => _('Shared under the terms of the GNU Free Documentation License'),
+                                                'rel' => 'license'),
+                                     'GNU FDL');
+                    $action->elementEnd('p');
                 } else {
                     $action->element('a', array('href' => $editurl),
                                      sprintf(_('Start the article for #%s on WikiHashtags'), $tag));