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:
@@ -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>
|
||||
|
||||
|
@@ -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>';
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user