mirror of
https://github.com/e107inc/e107.git
synced 2025-08-03 05:07:27 +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 }
|
.video-thumbnail { max-width: 400px }
|
||||||
.media img { max-width:600px }
|
.media img { max-width:600px }
|
||||||
.unsubscribe { font-size:11px; color:#aaaaaa; margin-top:20px; padding:20px 0; border-top:solid 1px #e5e5e5; }
|
.unsubscribe { font-size:11px; color:#aaaaaa; margin-top:20px; padding:20px 0; border-top:solid 1px #e5e5e5; }
|
||||||
|
.sitebutton img { max-height: 100px }
|
||||||
</style>
|
</style>
|
||||||
</head>
|
</head>
|
||||||
|
|
||||||
|
@@ -24,10 +24,10 @@ class siteinfo_shortcodes // must match the folder name of the plugin.
|
|||||||
{
|
{
|
||||||
$path = e107::getConfig()->get('sitebutton');
|
$path = e107::getConfig()->get('sitebutton');
|
||||||
}
|
}
|
||||||
//TODO use CSS class?
|
|
||||||
if(!empty($path))
|
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