update banner for site
authorSteve Sutton <steve@gaslightmedia.com>
Wed, 21 Jun 2017 17:27:57 +0000 (13:27 -0400)
committerSteve Sutton <steve@gaslightmedia.com>
Wed, 21 Jun 2017 17:27:57 +0000 (13:27 -0400)
output the description with the banner.
This way they can put in trackingc codes.

Toolkit/Banners/HorizontalDecorator.php
Toolkit/Banners/MailerAbstract.php

index 868a681..2ae14b6 100644 (file)
@@ -110,7 +110,11 @@ class Toolkit_Banners_HorizontalDecorator
             $this->banner->getUrl(),
                        $this->banner->getExternal() ? '_blank' : '_self',
                        $img
-               );
+        );
+        $bannerDescr = $this->banner->getDescription();
+        if ( $bannerDescr ) {
+            $link .= $bannerDescr;
+        }
 
                return $link;
        }
index 587f9bd..831318c 100644 (file)
@@ -95,6 +95,7 @@ abstract class Toolkit_Banners_MailerAbstract
                array $recipients,
                Toolkit_Banners_Banner $banner
        ) {
+        return false;
                if (empty($recipients)) {
                        throw new RuntimeException('array cannot be empty');
                }