Fix: Missing right and left init
This commit is contained in:
parent
5401ff66fd
commit
da7eeb713c
@ -20,17 +20,21 @@
|
|||||||
* \brief Fichier de style CSS du theme Smartphone default
|
* \brief Fichier de style CSS du theme Smartphone default
|
||||||
*/
|
*/
|
||||||
|
|
||||||
if (! defined('NOTOKENRENEWAL')) define('NOTOKENRENEWAL','1'); // Disables token renewal
|
//if (! defined('NOREQUIREUSER')) define('NOREQUIREUSER','1'); // Not disabled cause need to load personalized language
|
||||||
if (! defined('NOREQUIREMENU')) define('NOREQUIREMENU','1');
|
//if (! defined('NOREQUIREDB')) define('NOREQUIREDB','1'); // Not disabled to increase speed. Language code is found on url.
|
||||||
if (! defined('NOREQUIREHTML')) define('NOREQUIREHTML','1');
|
|
||||||
if (! defined('NOREQUIREAJAX')) define('NOREQUIREAJAX','1');
|
|
||||||
if (! defined('NOREQUIRESOC')) define('NOREQUIRESOC','1');
|
if (! defined('NOREQUIRESOC')) define('NOREQUIRESOC','1');
|
||||||
//if (! defined('NOREQUIRETRAN')) define('NOREQUIRETRAN','1'); // We need to use translation files to know direction
|
//if (! defined('NOREQUIRETRAN')) define('NOREQUIRETRAN','1'); // Not disabled cause need to do translations
|
||||||
if (! defined('NOREQUIREDB')) define('NOREQUIREDB','1');
|
if (! defined('NOCSRFCHECK')) define('NOCSRFCHECK',1);
|
||||||
|
if (! defined('NOTOKENRENEWAL')) define('NOTOKENRENEWAL',1);
|
||||||
|
if (! defined('NOLOGIN')) define('NOLOGIN',1);
|
||||||
|
if (! defined('NOREQUIREMENU')) define('NOREQUIREMENU',1);
|
||||||
|
if (! defined('NOREQUIREHTML')) define('NOREQUIREHTML',1);
|
||||||
|
if (! defined('NOREQUIREAJAX')) define('NOREQUIREAJAX','1');
|
||||||
|
|
||||||
session_cache_limiter( FALSE );
|
session_cache_limiter( FALSE );
|
||||||
|
|
||||||
require_once("../../../../../master.inc.php");
|
require_once("../../../../../main.inc.php");
|
||||||
|
require_once(DOL_DOCUMENT_ROOT."/lib/functions.lib.php");
|
||||||
|
|
||||||
// Define css type
|
// Define css type
|
||||||
header('Content-type: text/css');
|
header('Content-type: text/css');
|
||||||
@ -39,6 +43,15 @@ header('Content-type: text/css');
|
|||||||
if (empty($dolibarr_nocache)) header('Cache-Control: max-age=3600, public, must-revalidate');
|
if (empty($dolibarr_nocache)) header('Cache-Control: max-age=3600, public, must-revalidate');
|
||||||
else header('Cache-Control: no-cache');
|
else header('Cache-Control: no-cache');
|
||||||
|
|
||||||
|
// On the fly GZIP compression for all pages (if browser support it). Must set the bit 3 of constant to 1.
|
||||||
|
if (isset($conf->global->MAIN_OPTIMIZE_SPEED) && ($conf->global->MAIN_OPTIMIZE_SPEED & 0x04)) { ob_start("ob_gzhandler"); }
|
||||||
|
|
||||||
|
if (GETPOST('lang')) $langs->setDefaultLang(GETPOST('lang')); // If language was forced on URL
|
||||||
|
if (GETPOST('theme')) $conf->theme=GETPOST('theme'); // If theme was forced on URL
|
||||||
|
$langs->load("main",0,1);
|
||||||
|
$right=($langs->trans("DIRECTION")=='rtl'?'left':'right');
|
||||||
|
$left=($langs->trans("DIRECTION")=='rtl'?'right':'left');
|
||||||
|
|
||||||
?>
|
?>
|
||||||
.ui-mobile-viewport {
|
.ui-mobile-viewport {
|
||||||
/*width:600px;
|
/*width:600px;
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user