diff options
| author | Tristan Zur <tzur@webserver.ccwn.org> | 2015-06-10 20:55:53 +0200 |
|---|---|---|
| committer | Tristan Zur <tzur@webserver.ccwn.org> | 2015-06-10 20:55:53 +0200 |
| commit | 406abd7c4df1ace2cd3e4e17159e8941a2e8c0c4 (patch) | |
| tree | a324be16021f44f2fd6d55e609f47024e945b1db /modules/akismet/views | |
Initial import
Diffstat (limited to 'modules/akismet/views')
| -rw-r--r-- | modules/akismet/views/admin_akismet.html.php | 18 | ||||
| -rw-r--r-- | modules/akismet/views/admin_akismet_stats.html.php | 11 |
2 files changed, 29 insertions, 0 deletions
diff --git a/modules/akismet/views/admin_akismet.html.php b/modules/akismet/views/admin_akismet.html.php new file mode 100644 index 0000000..399053d --- /dev/null +++ b/modules/akismet/views/admin_akismet.html.php @@ -0,0 +1,18 @@ +<?php defined("SYSPATH") or die("No direct script access.") ?> +<div id="g-admin-akismet" class="g-block"> + <h1> <?= t("Akismet spam filtering") ?> </h1> + <p> + <?= t("Akismet is a free, automated spam filtering service. In order to use it, you need to sign up for a <a href=\"%api_key_url\">Wordpress.com API Key</a>, which is also free. Your comments will be automatically relayed to <a href=\"%akismet_url\">Akismet.com</a> where they'll be scanned for spam. Spam messages will be flagged accordingly and hidden from your vistors until you approve or delete them.", + array("api_key_url" => "http://wordpress.com/api-keys", + "akismet_url" => "http://akismet.com")) ?> + </p> + <div class="g-block-content"> + <? if ($valid_key): ?> + <div class="g-module-status g-success"> + <?= t("Your API key is valid. Your comments will be filtered!") ?> + </div> + <? endif ?> + + <?= $form ?> + </div> +</div> diff --git a/modules/akismet/views/admin_akismet_stats.html.php b/modules/akismet/views/admin_akismet_stats.html.php new file mode 100644 index 0000000..32908ba --- /dev/null +++ b/modules/akismet/views/admin_akismet_stats.html.php @@ -0,0 +1,11 @@ +<?php defined("SYSPATH") or die("No direct script access.") ?> +<script type="text/javscript"> + $(document).ready(function() { + $("#g-akismet-external-stats").css("height", "600"); + }); +</script> +<div id="g-akismet-stats"> + <iframe id="g-akismet-external-stats" width="100%" height="500" frameborder="0" + src="http://<?= $api_key ?>.web.akismet.com/1.0/user-stats.php?blog=<?= urlencode($blog_url) ?>"> + </iframe> +</div> |
