mirror of
https://github.com/e107inc/e107.git
synced 2025-08-03 13:17:24 +02:00
Fix for default email template width on mobile-devices. CLI fix for SITEURL.
This commit is contained in:
@@ -171,7 +171,7 @@ $EMAIL_TEMPLATE['default']['header'] = "<!DOCTYPE html PUBLIC \"-//W3C//DTD XHT
|
|||||||
<meta http-equiv='content-type' content='text/html; charset=utf-8' />
|
<meta http-equiv='content-type' content='text/html; charset=utf-8' />
|
||||||
<style type='text/css'>
|
<style type='text/css'>
|
||||||
body { padding:10px; background-color: #E1E1E1 }
|
body { padding:10px; background-color: #E1E1E1 }
|
||||||
div#body { padding:10px; width: 800px; background-color: #FFFFFF; border-radius: 5px; font-family: helvetica,arial }
|
div#body { padding:10px; width: 93%; max-width:800px; background-color: #FFFFFF; border-radius: 5px; font-family: helvetica,arial }
|
||||||
.video-thumbnail { max-width: 400px }
|
.video-thumbnail { max-width: 400px }
|
||||||
.media img { max-width:600px }
|
.media img { max-width:600px }
|
||||||
</style>
|
</style>
|
||||||
|
@@ -3445,7 +3445,16 @@ class e107
|
|||||||
define('ADMINDIR', $ADMIN_DIRECTORY);
|
define('ADMINDIR', $ADMIN_DIRECTORY);
|
||||||
|
|
||||||
define('SITEURLBASE', $this->HTTP_SCHEME.'://'.$_SERVER['HTTP_HOST']);
|
define('SITEURLBASE', $this->HTTP_SCHEME.'://'.$_SERVER['HTTP_HOST']);
|
||||||
define('SITEURL', SITEURLBASE.e_HTTP);
|
|
||||||
|
if(self::isCli())
|
||||||
|
{
|
||||||
|
define('SITEURL', SITEURLBASE.$_SERVER['DOMAIN'].e_HTTP);
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
define('SITEURL', SITEURLBASE.e_HTTP);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
// login/signup
|
// login/signup
|
||||||
define('e_SIGNUP', SITEURL.(file_exists(e_BASE.'customsignup.php') ? 'customsignup.php' : 'signup.php'));
|
define('e_SIGNUP', SITEURL.(file_exists(e_BASE.'customsignup.php') ? 'customsignup.php' : 'signup.php'));
|
||||||
|
Reference in New Issue
Block a user