aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLaria Carolin Chabowski <laria@laria.me>2020-04-15 22:27:19 +0200
committerLaria Carolin Chabowski <laria@laria.me>2020-04-15 22:27:19 +0200
commit96ae4646d0fb83dc37e24363e4e697b2dbdb2112 (patch)
tree54b1956929b603d35257c038c0db1aba086163ce
parent376ae23982e11b97156fdf70a4efec24a782c2ae (diff)
downloadr7r-gravatar-96ae4646d0fb83dc37e24363e4e697b2dbdb2112.tar.gz
r7r-gravatar-96ae4646d0fb83dc37e24363e4e697b2dbdb2112.tar.bz2
r7r-gravatar-96ae4646d0fb83dc37e24363e4e697b2dbdb2112.zip
Rename plugin
-rw-r--r--COPYING2
-rw-r--r--README.md6
-rwxr-xr-xbuild.sh13
-rw-r--r--help.html4
-rw-r--r--plugin.php8
5 files changed, 22 insertions, 11 deletions
diff --git a/COPYING b/COPYING
index 74bfdda..6687b2e 100644
--- a/COPYING
+++ b/COPYING
@@ -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
diff --git a/README.md b/README.md
index a2ecd7f..dc277f8 100644
--- a/README.md
+++ b/README.md
@@ -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.
diff --git a/build.sh b/build.sh
index 9388fa5..f5f2e7f 100755
--- a/build.sh
+++ b/build.sh
@@ -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
diff --git a/help.html b/help.html
index 74a0b56..9e04ba6 100644
--- a/help.html
+++ b/help.html
@@ -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>&lt;ste:kch42_gravatar /&gt;</code>.</p>
+<p>This tag is: <code>&lt;ste:gravatar /&gt;</code>.</p>
<h3>How to use this tag</h3>
diff --git a/plugin.php b/plugin.php
index 96afab1..5cd982b 100644
--- a/plugin.php
+++ b/plugin.php
@@ -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"));
}
}