mirror of
https://github.com/Dolibarr/dolibarr.git
synced 2025-02-20 13:46:52 +01:00
Reorganise how theme works. Style sheet must be named style.css.php.
This commit is contained in:
parent
2c0e55e701
commit
7d447588cc
|
|
@ -348,7 +348,7 @@ class Conf
|
|||
// $this->theme et $this->css
|
||||
if (empty($this->global->MAIN_THEME)) $this->global->MAIN_THEME="eldy";
|
||||
$this->theme=$this->global->MAIN_THEME;
|
||||
$this->css = "/theme/".$this->theme."/".$this->theme.".css.php";
|
||||
$this->css = "/theme/".$this->theme."/style.css.php";
|
||||
|
||||
// $this->email_from = email pour envoi par dolibarr des mails automatiques
|
||||
$this->email_from = "dolibarr-robot@domain.com";
|
||||
|
|
|
|||
|
|
@ -43,9 +43,9 @@ class modWorkflow extends DolibarrModules
|
|||
* \param DB handler d'acces base
|
||||
*/
|
||||
function modWorkflow($DB)
|
||||
{
|
||||
{
|
||||
$this->db = $DB ;
|
||||
|
||||
|
||||
// Id for module (must be unique).
|
||||
// Use here a free id (See in Home -> System information -> Dolibarr for list of used modules id).
|
||||
$this->numero = 6000 ;
|
||||
|
|
@ -67,16 +67,16 @@ class modWorkflow extends DolibarrModules
|
|||
// If file is in theme/yourtheme/img directory under name object_pictovalue.png, use this->picto='pictovalue'
|
||||
// If file is in module/img directory under name object_pictovalue.png, use this->picto='pictovalue@module'
|
||||
$this->picto='workflow@workflow';
|
||||
|
||||
|
||||
// Defined if the directory /mymodule/inc/triggers/ contains triggers or not
|
||||
$this->triggers = 1;
|
||||
|
||||
// Data directories to create when module is enabled
|
||||
$this->dirs = array("/workflow/temp");
|
||||
|
||||
|
||||
// Relative path to module style sheet if exists. Example: '/mymodule/mycss.css'.
|
||||
//$this->style_sheet = '/workflow/css/workflow.css.php';
|
||||
|
||||
$this->style_sheet = '';
|
||||
|
||||
// Config pages. Put here list of php page names stored in admmin directory used to setup module.
|
||||
$this->config_page_url = 'workflow.php@workflow';
|
||||
|
||||
|
|
@ -109,7 +109,7 @@ class modWorkflow extends DolibarrModules
|
|||
$this->rights[$r][3] = 1; // La permission est-elle une permission par defaut
|
||||
$this->rights[$r][4] = 'read';
|
||||
*/
|
||||
|
||||
|
||||
// Main menu entries
|
||||
$this->menus = array(); // List of menus to add
|
||||
$r=0;
|
||||
|
|
@ -127,7 +127,7 @@ class modWorkflow extends DolibarrModules
|
|||
'target'=>'',
|
||||
'user'=>0);
|
||||
$r++;
|
||||
|
||||
|
||||
$this->menu[$r]=array( 'fk_menu'=>'r=0',
|
||||
'type'=>'left',
|
||||
'titre'=>'Workflow',
|
||||
|
|
@ -149,7 +149,7 @@ class modWorkflow extends DolibarrModules
|
|||
* Definit egalement les repertoires de donnees a creer pour ce module.
|
||||
*/
|
||||
function init()
|
||||
{
|
||||
{
|
||||
//$result=$this->load_tables();
|
||||
|
||||
return $this->_init($sql);
|
||||
|
|
@ -165,7 +165,7 @@ class modWorkflow extends DolibarrModules
|
|||
|
||||
return $this->_remove($sql);
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* \brief Create tables and keys required by module
|
||||
* This function is called by this->init.
|
||||
|
|
|
|||
|
|
@ -76,7 +76,7 @@ function dol_loginfunction($langs,$conf,$mysoc)
|
|||
}
|
||||
}
|
||||
|
||||
$conf->css = "/theme/".$conf->theme."/".$conf->theme.".css.php?lang=".$langs->defaultlang;
|
||||
$conf->css = "/theme/".$conf->theme."/style.css.php?lang=".$langs->defaultlang;
|
||||
$conf_css = DOL_URL_ROOT.$conf->css;
|
||||
|
||||
// Set cookie for timeout management
|
||||
|
|
|
|||
|
|
@ -583,7 +583,7 @@ if (! defined('NOLOGIN'))
|
|||
if (isset($user->conf->MAIN_THEME) && $user->conf->MAIN_THEME)
|
||||
{
|
||||
$conf->theme=$user->conf->MAIN_THEME;
|
||||
$conf->css = "/theme/".$conf->theme."/".$conf->theme.".css.php";
|
||||
$conf->css = "/theme/".$conf->theme."/style.css.php";
|
||||
}
|
||||
// Set javascript option
|
||||
if (! empty($user->conf->MAIN_DISABLE_JAVASCRIPT))
|
||||
|
|
@ -618,7 +618,7 @@ if (! defined('NOREQUIRETRAN'))
|
|||
if (! empty($_GET["theme"]))
|
||||
{
|
||||
$conf->theme=$_GET["theme"];
|
||||
$conf->css = "/theme/".$conf->theme."/".$conf->theme.".css.php";
|
||||
$conf->css = "/theme/".$conf->theme."/style.css.php";
|
||||
}
|
||||
|
||||
// Define menu manager to use
|
||||
|
|
@ -745,7 +745,7 @@ function top_htmlhead($head, $title='', $disablejs=0, $disablehead=0, $arrayofjs
|
|||
{
|
||||
global $user, $conf, $langs, $db;
|
||||
|
||||
if (empty($conf->css)) $conf->css = '/theme/eldy/eldy.css.php';
|
||||
if (empty($conf->css)) $conf->css = '/theme/eldy/style.css.php'; // If not defined, eldy by default
|
||||
|
||||
//header("Content-type: text/html; charset=UTF-8");
|
||||
header("Content-type: text/html; charset=".$conf->file->character_set_client);
|
||||
|
|
|
|||
|
|
@ -76,7 +76,7 @@ function llxHeaderVierge($title, $head = "")
|
|||
print '<meta name="keywords" content="dolibarr,demo,online,demonstration,example,test,web,erp,crm,demos,online">'."\n";
|
||||
print '<meta name="description" content="Dolibarr simple ERP/CRM demo. You can test here several profiles of Dolibarr ERP/CRM demos.">'."\n";
|
||||
print "<title>".$title."</title>\n";
|
||||
print '<link rel="stylesheet" type="text/css" href="'.DOL_URL_ROOT.'/theme/eldy/eldy.css.php?lang='.$langs->defaultlang.'">'."\n";
|
||||
print '<link rel="stylesheet" type="text/css" href="'.DOL_URL_ROOT.'/theme/eldy/style.css.php?lang='.$langs->defaultlang.'">'."\n";
|
||||
if ($head) print $head."\n";
|
||||
print '<style type="text/css">';
|
||||
print '.CTableRow1 { margin: 1px; padding: 3px; font: 12px verdana,arial; background: #e6E6eE; color: #000000; -moz-border-radius-topleft:6px; -moz-border-radius-topright:6px; -moz-border-radius-bottomleft:6px; -moz-border-radius-bottomright:6px;}';
|
||||
|
|
|
|||
|
|
@ -18,7 +18,7 @@
|
|||
*/
|
||||
|
||||
/**
|
||||
* \file htdocs/theme/auguria/auguria.css.php
|
||||
* \file htdocs/theme/auguria/style.css.php
|
||||
* \brief Fichier de style CSS du theme Auguria
|
||||
* \version $Id$
|
||||
*/
|
||||
|
|
@ -19,7 +19,7 @@
|
|||
*/
|
||||
|
||||
/**
|
||||
* \file htdocs/theme/bluelagoon/bluelagoon.css.php
|
||||
* \file htdocs/theme/bluelagoon/style.css.php
|
||||
* \brief Fichier de style CSS du theme Blue lagoon
|
||||
* \version $Id$
|
||||
*/
|
||||
Binary file not shown.
|
Before Width: | Height: | Size: 1.8 KiB After Width: | Height: | Size: 1.7 KiB |
|
|
@ -19,7 +19,7 @@
|
|||
*/
|
||||
|
||||
/**
|
||||
* \file htdocs/theme/eldy/eldy.css.php
|
||||
* \file htdocs/theme/eldy/style.css.php
|
||||
* \brief Fichier de style CSS du theme Eldy
|
||||
* \version $Id$
|
||||
*/
|
||||
|
|
@ -316,12 +316,10 @@ div.mainmenu.commercial {
|
|||
|
||||
div.mainmenu.accountancy {
|
||||
background-image: url(<?php echo DOL_URL_ROOT.'/theme/eldy/img/menus/money.png' ?>);
|
||||
height:24px;
|
||||
}
|
||||
|
||||
div.mainmenu.project {
|
||||
background-image: url(<?php echo DOL_URL_ROOT.'/theme/eldy/img/menus/project.png' ?>);
|
||||
height:27px;
|
||||
}
|
||||
|
||||
div.mainmenu.tools {
|
||||
|
|
@ -18,7 +18,7 @@
|
|||
*/
|
||||
|
||||
/**
|
||||
* \file htdocs/theme/freelug/freelug.css.php
|
||||
* \file htdocs/theme/freelug/style.css.php
|
||||
* \brief Fichier de style CSS du theme Freelug
|
||||
* \version $Id$
|
||||
*/
|
||||
|
|
@ -19,7 +19,7 @@
|
|||
*/
|
||||
|
||||
/**
|
||||
* \file htdocs/theme/rodolphe/rodoplhe.css.php
|
||||
* \file htdocs/theme/rodolphe/style.css.php
|
||||
* \brief Fichier de style CSS du theme Rodolphe
|
||||
* \version $Id$
|
||||
*/
|
||||
|
|
@ -18,7 +18,7 @@
|
|||
*/
|
||||
|
||||
/**
|
||||
* \file htdocs/theme/yellow/yellow.css
|
||||
* \file htdocs/theme/yellow/style.css
|
||||
* \brief Fichier de style CSS du theme Yellow
|
||||
* \version $Id$
|
||||
*/
|
||||
|
|
@ -167,7 +167,7 @@ else
|
|||
}
|
||||
}
|
||||
|
||||
$conf->css = "/theme/".$conf->theme."/".$conf->theme.".css.php?lang=".$langs->defaultlang;
|
||||
$conf->css = "/theme/".$conf->theme."/style.css.php?lang=".$langs->defaultlang;
|
||||
$conf_css = DOL_URL_ROOT.$conf->css;
|
||||
|
||||
if (file_exists(DOL_DOCUMENT_ROOT.'/theme/'.$conf->theme.'/img/login_background.png'))
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user