e107inc / e107

e107 Bootstrap CMS (Content Management System) v2 with PHP, MySQL, HTML5, jQuery and Twitter Bootstrap. Issue Discussion Room: https://gitter.im/e107inc/e107
https://e107.org
GNU General Public License v3.0
318 stars 212 forks source link

let look of login.php on theme developers #5076

Open Jimmi08 opened 9 months ago

Jimmi08 commented 9 months ago

Motivation

Now you need to use e_IFRAME constant in your theme.php what is the workaround for making a standalone login page.

What about to add $LOGIN_TEMPLATE['page']['iframe'] = FALSE;

and use it this way?

$LOGIN_TEMPLATE = e107::getCoreTemplate('login');

if (isset($LOGIN_TEMPLATE['page']['iframe']))
{
    if ($LOGIN_TEMPLATE['page']['iframe'])
    {

        if (!defined('e_IFRAME')) define('e_IFRAME', true);
    }
    else if (!defined('e_IFRAME')) define('e_IFRAME', false);
}
else if (!defined('e_IFRAME')) define('e_IFRAME', true);

Proposed Solution

the same logic could be use for signup and fpw field.

Thanks