1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-01 20:30:39 +02:00

Auto-resize oversized sitebutton in signup email.

This commit is contained in:
Cameron
2015-05-12 20:26:07 -07:00
parent b1ba628bfa
commit 5b8c108c8c
2 changed files with 3 additions and 2 deletions

View File

@@ -108,6 +108,7 @@ $EMAIL_TEMPLATE['default']['header'] = "<!DOCTYPE html PUBLIC \"-//W3C//DTD XHT
.video-thumbnail { max-width: 400px }
.media img { max-width:600px }
.unsubscribe { font-size:11px; color:#aaaaaa; margin-top:20px; padding:20px 0; border-top:solid 1px #e5e5e5; }
.sitebutton img { max-height: 100px }
</style>
</head>

View File

@@ -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 '<a href="'.SITEURL.'"><img src="'.$path.'" alt="'.SITENAME.'" /></a>';
return '<a href="'.SITEURL.'" class="sitebutton"><img src="'.$path.'" alt="'.SITENAME.'" /></a>';
}
}