From b1de900ce4506958f9d1fd74339bdca3e43a320f Mon Sep 17 00:00:00 2001 From: Synox Date: Fri, 19 Jan 2018 21:31:52 +0100 Subject: [PATCH] add mail counter in title --- CHANGELOG.md | 1 + src/frontend.template.php | 4 +++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index d39a3c5..a73721a 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -20,6 +20,7 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/). - Blacklist some usernames (https://github.com/synox/disposable-mailbox/issues/27) - copyToClipboard button (https://github.com/synox/disposable-mailbox/issues/30) - make all addresses lowercase (https://github.com/synox/disposable-mailbox/issues/30) +- mail counter in title ## [0.1.4] - 2017-04-15 diff --git a/src/frontend.template.php b/src/frontend.template.php index c34b7f6..35b328b 100644 --- a/src/frontend.template.php +++ b/src/frontend.template.php @@ -17,7 +17,9 @@ $purifier = new HTMLPurifier($purifier_config); - <?php echo $user->address ?> + <?php + echo $emails ? "(" . count($emails) . ") " : ""; + echo $user->address ?>