From 5b8c108c8cce82e664910d2bc487c2f71b1ad6df Mon Sep 17 00:00:00 2001 From: Cameron Date: Tue, 12 May 2015 20:26:07 -0700 Subject: [PATCH] Auto-resize oversized sitebutton in signup email. --- e107_core/templates/email_template.php | 1 + e107_plugins/siteinfo/e_shortcode.php | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/e107_core/templates/email_template.php b/e107_core/templates/email_template.php index 9084f4f6f..9d1687708 100644 --- a/e107_core/templates/email_template.php +++ b/e107_core/templates/email_template.php @@ -108,6 +108,7 @@ $EMAIL_TEMPLATE['default']['header'] = " diff --git a/e107_plugins/siteinfo/e_shortcode.php b/e107_plugins/siteinfo/e_shortcode.php index 5c734d4d6..8f94b0322 100644 --- a/e107_plugins/siteinfo/e_shortcode.php +++ b/e107_plugins/siteinfo/e_shortcode.php @@ -24,10 +24,10 @@ class siteinfo_shortcodes // must match the folder name of the plugin. { $path = e107::getConfig()->get('sitebutton'); } - //TODO use CSS class? + if(!empty($path)) { - return ''.SITENAME.''; + return ''.SITENAME.''; } }