diff options
author | Laria Carolin Chabowski <laria@laria.me> | 2020-04-15 22:27:19 +0200 |
---|---|---|
committer | Laria Carolin Chabowski <laria@laria.me> | 2020-04-15 22:27:19 +0200 |
commit | 96ae4646d0fb83dc37e24363e4e697b2dbdb2112 (patch) | |
tree | 54b1956929b603d35257c038c0db1aba086163ce | |
parent | 376ae23982e11b97156fdf70a4efec24a782c2ae (diff) | |
download | r7r-gravatar-96ae4646d0fb83dc37e24363e4e697b2dbdb2112.tar.gz r7r-gravatar-96ae4646d0fb83dc37e24363e4e697b2dbdb2112.tar.bz2 r7r-gravatar-96ae4646d0fb83dc37e24363e4e697b2dbdb2112.zip |
Rename plugin
-rw-r--r-- | COPYING | 2 | ||||
-rw-r--r-- | README.md | 6 | ||||
-rwxr-xr-x | build.sh | 13 | ||||
-rw-r--r-- | help.html | 4 | ||||
-rw-r--r-- | plugin.php | 8 |
5 files changed, 22 insertions, 11 deletions
@@ -1,4 +1,4 @@ -kch42_gravatar: Copyright (c) 2012 Laria Carolin Chabowski +gravatar: Copyright (c) 2012 - 2020 Laria Carolin Chabowski Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in @@ -1,4 +1,4 @@ -kch42_gravatar -============== +r7r-gravatar +============ -A Plugin for Ratatöskr that gives you [Gravatars](http://de.gravatar.com) for the comments.
\ No newline at end of file +A Plugin for Ratatöskr that gives you [Gravatars](http://de.gravatar.com) for the comments. @@ -1,3 +1,14 @@ #!/usr/bin/env bash -r7r-plugin-packer --output=kch42_gravatar.rpk --codefile=plugin.php --classname=kch42_gravatar --pluginname=kch42_gravatar --author='Laria Carolin Chabowski <laria@laria.me>' --versiontext="0.6" --versioncount=2 --api=5 --shortdesc="kch42_gravatar allows you to display [Gravatars](http://de.gravatar.com)" --helpfile=help.html --licensefile=COPYING +r7r-plugin-packer \ + --output=gravatar.rpk \ + --codefile=plugin.php \ + --classname=gravatar \ + --pluginname=gravatar \ + --author='Laria Carolin Chabowski <laria@laria.me>' \ + --versiontext="0.6.1" \ + --versioncount=3 \ + --api=5 \ + --shortdesc="This plugin allows you to display [Gravatars](http://de.gravatar.com)" \ + --helpfile=help.html \ + --licensefile=COPYING @@ -1,7 +1,7 @@ -<h2>kch42_gravatar</h2> +<h2>gravatar</h2> <p>This Plugin gives you an STE tag, which will return the <a href="http://www.gravatar.com">Gravatar</a> of the person, who written a comment.</p> -<p>This tag is: <code><ste:kch42_gravatar /></code>.</p> +<p>This tag is: <code><ste:gravatar /></code>.</p> <h3>How to use this tag</h3> @@ -1,11 +1,11 @@ <?php -class kch42_gravatar extends RatatoeskrPlugin +class gravatar extends RatatoeskrPlugin { - public function ste_tag_kch42_gravatar($ste, $params, $sub) + public function ste_tag_gravatar($ste, $params, $sub) { if(!isset($params["comment"])) - throw new \ste\RuntimeError("ste:kch42_gravatar needs the comment parameter."); + throw new \ste\RuntimeError("ste:gravatar needs the comment parameter."); $ste_comment = $ste->get_var_by_name($params["comment"]); @@ -35,6 +35,6 @@ class kch42_gravatar extends RatatoeskrPlugin public function init() { - $this->ste->register_tag("kch42_gravatar", array($this, "ste_tag_kch42_gravatar")); + $this->ste->register_tag("gravatar", array($this, "ste_tag_gravatar")); } } |