Fix: move common templates in core directory
Fix: rename canvas in templates
This commit is contained in:
parent
2571bc130f
commit
3e00c223c1
@ -49,7 +49,6 @@ encoding//htdocs/includes/menus/barre_left/eldy_frontoffice.php=ISO-8859-1
|
|||||||
encoding//htdocs/includes/menus/barre_top/empty.php=ISO-8859-1
|
encoding//htdocs/includes/menus/barre_top/empty.php=ISO-8859-1
|
||||||
encoding//htdocs/includes/menus/barre_top/rodolphe.php=ISO-8859-1
|
encoding//htdocs/includes/menus/barre_top/rodolphe.php=ISO-8859-1
|
||||||
encoding//htdocs/includes/modules/DolibarrModules.class.php=ISO-8859-1
|
encoding//htdocs/includes/modules/DolibarrModules.class.php=ISO-8859-1
|
||||||
encoding//htdocs/includes/modules/facture/pdf_crabe.modules.php=ISO-8859-1
|
|
||||||
encoding//htdocs/includes/modules/modAdherent.class.php=ISO-8859-1
|
encoding//htdocs/includes/modules/modAdherent.class.php=ISO-8859-1
|
||||||
encoding//htdocs/includes/modules/modBanque.class.php=ISO-8859-1
|
encoding//htdocs/includes/modules/modBanque.class.php=ISO-8859-1
|
||||||
encoding//htdocs/includes/modules/modCategorie.class.php=ISO-8859-1
|
encoding//htdocs/includes/modules/modCategorie.class.php=ISO-8859-1
|
||||||
@ -619,14 +618,14 @@ encoding//htdocs/lib/product.lib.php=ISO-8859-1
|
|||||||
encoding//htdocs/main.inc.php=ISO-8859-1
|
encoding//htdocs/main.inc.php=ISO-8859-1
|
||||||
encoding//htdocs/master.inc.php=ISO-8859-1
|
encoding//htdocs/master.inc.php=ISO-8859-1
|
||||||
encoding//htdocs/paiement.class.php=ISO-8859-1
|
encoding//htdocs/paiement.class.php=ISO-8859-1
|
||||||
encoding//htdocs/product/canvas/livre/liste.tpl=UTF-8
|
encoding//htdocs/product/templates/livre/liste.tpl=UTF-8
|
||||||
encoding//htdocs/product/canvas/livre/livre-create.tpl=UTF-8
|
encoding//htdocs/product/templates/livre/livre-create.tpl=UTF-8
|
||||||
encoding//htdocs/product/canvas/livre/livre-edit.tpl=UTF-8
|
encoding//htdocs/product/templates/livre/livre-edit.tpl=UTF-8
|
||||||
encoding//htdocs/product/canvas/livre/livre-view.tpl=UTF-8
|
encoding//htdocs/product/templates/livre/livre-view.tpl=UTF-8
|
||||||
encoding//htdocs/product/canvas/livrecontrat/livrecontrat-edit.tpl=UTF-8
|
encoding//htdocs/product/templates/livrecontrat/livrecontrat-edit.tpl=UTF-8
|
||||||
encoding//htdocs/product/canvas/livrecontrat/livrecontrat-view.tpl=UTF-8
|
encoding//htdocs/product/templates/livrecontrat/livrecontrat-view.tpl=UTF-8
|
||||||
encoding//htdocs/product/canvas/livrecouverture/livrecouverture-edit.tpl=UTF-8
|
encoding//htdocs/product/templates/livrecouverture/livrecouverture-edit.tpl=UTF-8
|
||||||
encoding//htdocs/product/canvas/livrecouverture/livrecouverture-view.tpl=UTF-8
|
encoding//htdocs/product/templates/livrecouverture/livrecouverture-view.tpl=UTF-8
|
||||||
encoding//htdocs/product/fiche.php=ISO-8859-1
|
encoding//htdocs/product/fiche.php=ISO-8859-1
|
||||||
encoding//htdocs/product/reassort.php=ISO-8859-1
|
encoding//htdocs/product/reassort.php=ISO-8859-1
|
||||||
encoding//htdocs/product/stats/fiche.php=ISO-8859-1
|
encoding//htdocs/product/stats/fiche.php=ISO-8859-1
|
||||||
|
|||||||
@ -306,7 +306,7 @@ if ($conf->global->PRODUCT_CANVAS_ABILITY)
|
|||||||
print " <td width=\"80\"> </td></tr>\n";
|
print " <td width=\"80\"> </td></tr>\n";
|
||||||
|
|
||||||
require_once(DOL_DOCUMENT_ROOT . "/product.class.php");
|
require_once(DOL_DOCUMENT_ROOT . "/product.class.php");
|
||||||
$dir = DOL_DOCUMENT_ROOT . "/product/canvas/";
|
$dir = DOL_DOCUMENT_ROOT . "/product/templates/";
|
||||||
|
|
||||||
if ($conf->global->PRODUCT_CANVAS_ABILITY)
|
if ($conf->global->PRODUCT_CANVAS_ABILITY)
|
||||||
{
|
{
|
||||||
|
|||||||
@ -67,7 +67,7 @@ class pdf_courrier_droit_editeur
|
|||||||
|
|
||||||
require_once(FPDF_PATH.'fpdf.php');
|
require_once(FPDF_PATH.'fpdf.php');
|
||||||
require_once(DOL_DOCUMENT_ROOT."/product.class.php");
|
require_once(DOL_DOCUMENT_ROOT."/product.class.php");
|
||||||
require_once(DOL_DOCUMENT_ROOT."/product/canvas/product.livre.class.php");
|
require_once(DOL_DOCUMENT_ROOT."/product/templates/product.livre.class.php");
|
||||||
$error = 0;
|
$error = 0;
|
||||||
$year = strftime("%Y", time());
|
$year = strftime("%Y", time());
|
||||||
|
|
||||||
|
|||||||
@ -17,7 +17,7 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* \file htdocs/multicompany/canvas/multicompany.class.php
|
* \file htdocs/multicompany/multicompany.class.php
|
||||||
* \ingroup multicompany
|
* \ingroup multicompany
|
||||||
* \brief File Class multicompany
|
* \brief File Class multicompany
|
||||||
* \version $Id$
|
* \version $Id$
|
||||||
|
|||||||
@ -572,7 +572,7 @@ if ($_GET["action"] == 'create' && ($user->rights->produit->creer || $user->righ
|
|||||||
{
|
{
|
||||||
if (! isset($product))
|
if (! isset($product))
|
||||||
{
|
{
|
||||||
$filecanvas=DOL_DOCUMENT_ROOT.'/product/canvas/product.'.$_GET["canvas"].'.class.php';
|
$filecanvas=DOL_DOCUMENT_ROOT.'/product/templates/product.'.$_GET["canvas"].'.class.php';
|
||||||
if ($_GET["canvas"] && file_exists($filecanvas) )
|
if ($_GET["canvas"] && file_exists($filecanvas) )
|
||||||
{
|
{
|
||||||
$class = 'Product'.ucfirst($_GET["canvas"]);
|
$class = 'Product'.ucfirst($_GET["canvas"]);
|
||||||
@ -759,7 +759,7 @@ if ($_GET["action"] == 'create' && ($user->rights->produit->creer || $user->righ
|
|||||||
// On assigne les valeurs meme en creation car elles sont definies si
|
// On assigne les valeurs meme en creation car elles sont definies si
|
||||||
// on revient en erreur
|
// on revient en erreur
|
||||||
//
|
//
|
||||||
$smarty->template_dir = DOL_DOCUMENT_ROOT.'/product/canvas/'.$_GET["canvas"].'/';
|
$smarty->template_dir = DOL_DOCUMENT_ROOT.'/product/templates/'.$_GET["canvas"].'/';
|
||||||
$tvaarray = load_tva($db,"tva_tx",$conf->defaulttx,$mysoc,'');
|
$tvaarray = load_tva($db,"tva_tx",$conf->defaulttx,$mysoc,'');
|
||||||
$smarty->assign('tva_taux_value', $tvaarray['value']);
|
$smarty->assign('tva_taux_value', $tvaarray['value']);
|
||||||
$smarty->assign('tva_taux_libelle', $tvaarray['label']);
|
$smarty->assign('tva_taux_libelle', $tvaarray['label']);
|
||||||
@ -797,7 +797,7 @@ if ($_GET["id"] || $_GET["ref"])
|
|||||||
|
|
||||||
$result = $product->FetchCanvas($_GET["id"],'',$_GET["action"]);
|
$result = $product->FetchCanvas($_GET["id"],'',$_GET["action"]);
|
||||||
|
|
||||||
$smarty->template_dir = DOL_DOCUMENT_ROOT.'/product/canvas/'.$product->canvas.'/';
|
$smarty->template_dir = DOL_DOCUMENT_ROOT.'/product/templates/'.$product->canvas.'/';
|
||||||
|
|
||||||
$product->assign_smarty_values($smarty,$_GET["action"]);
|
$product->assign_smarty_values($smarty,$_GET["action"]);
|
||||||
}
|
}
|
||||||
|
|||||||
@ -213,15 +213,15 @@ if ($resql)
|
|||||||
$template = $_GET["canvas"].'/liste.tpl';
|
$template = $_GET["canvas"].'/liste.tpl';
|
||||||
}
|
}
|
||||||
// Check if a default template is present
|
// Check if a default template is present
|
||||||
else if (file_exists(DOL_DOCUMENT_ROOT . '/product/canvas/'.$_GET["canvas"].'/liste.tpl'))
|
else if (file_exists(DOL_DOCUMENT_ROOT . '/product/templates/'.$_GET["canvas"].'/liste.tpl'))
|
||||||
{
|
{
|
||||||
$smarty->template_dir = DOL_DOCUMENT_ROOT . '/product/canvas/';
|
$smarty->template_dir = DOL_DOCUMENT_ROOT . '/product/templates/';
|
||||||
$template = $_GET["canvas"].'/liste.tpl';
|
$template = $_GET["canvas"].'/liste.tpl';
|
||||||
}
|
}
|
||||||
// Error template
|
// Error template
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
$smarty->template_dir = DOL_DOCUMENT_ROOT . '/theme/common/templates/';
|
$smarty->template_dir = DOL_DOCUMENT_ROOT . '/core/templates/';
|
||||||
$template = 'error.tpl';
|
$template = 'error.tpl';
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -50,7 +50,7 @@ function llxHeader($head = "", $urlp = "", $title="")
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Produit specifique
|
// Produit specifique
|
||||||
$dir = DOL_DOCUMENT_ROOT . "/product/canvas/";
|
$dir = DOL_DOCUMENT_ROOT . "/product/templates/";
|
||||||
if(is_dir($dir) && ! empty($conf->global->PRODUCT_CANVAS_ABILITY))
|
if(is_dir($dir) && ! empty($conf->global->PRODUCT_CANVAS_ABILITY))
|
||||||
{
|
{
|
||||||
if ($handle = opendir($dir))
|
if ($handle = opendir($dir))
|
||||||
|
|||||||
@ -18,13 +18,13 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* \file htdocs/product/canvas/product.livre.class.php
|
* \file htdocs/product/templates/product.livre.class.php
|
||||||
* \ingroup produit
|
* \ingroup produit
|
||||||
* \brief Fichier de la classe des produits specifiques de type livre
|
* \brief Fichier de la classe des produits specifiques de type livre
|
||||||
* \version $Id$
|
* \version $Id$
|
||||||
*/
|
*/
|
||||||
|
|
||||||
require_once(DOL_DOCUMENT_ROOT.'/product/canvas/product.livrecontrat.class.php');
|
require_once(DOL_DOCUMENT_ROOT.'/product/templates/product.livrecontrat.class.php');
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -18,13 +18,13 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
/**
|
/**
|
||||||
\file htdocs/product/canvas/product.livre.class.php
|
\file htdocs/product/templates/product.livre.class.php
|
||||||
\ingroup produit
|
\ingroup produit
|
||||||
\brief Fichier de la classe des produits specifiques de type livre
|
\brief Fichier de la classe des produits specifiques de type livre
|
||||||
\version $Id$
|
\version $Id$
|
||||||
*/
|
*/
|
||||||
|
|
||||||
require_once(DOL_DOCUMENT_ROOT.'/product/canvas/product.livre.class.php');
|
require_once(DOL_DOCUMENT_ROOT.'/product/templates/product.livre.class.php');
|
||||||
|
|
||||||
/**
|
/**
|
||||||
\class ProductLivreContrat
|
\class ProductLivreContrat
|
||||||
@ -17,13 +17,13 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
/**
|
/**
|
||||||
\file htdocs/product/canvas/product.livre.class.php
|
\file htdocs/product/templates/product.livre.class.php
|
||||||
\ingroup produit
|
\ingroup produit
|
||||||
\brief Fichier de la classe des produits specifiques de type livre
|
\brief Fichier de la classe des produits specifiques de type livre
|
||||||
\version $Id$
|
\version $Id$
|
||||||
*/
|
*/
|
||||||
|
|
||||||
require_once(DOL_DOCUMENT_ROOT.'/product/canvas/product.livre.class.php');
|
require_once(DOL_DOCUMENT_ROOT.'/product/templates/product.livre.class.php');
|
||||||
|
|
||||||
/**
|
/**
|
||||||
\class ProductLivreCouverture
|
\class ProductLivreCouverture
|
||||||
3
htdocs/theme/auguria/templates/README
Normal file
3
htdocs/theme/auguria/templates/README
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
README (english)
|
||||||
|
|
||||||
|
This directory is used to store custom templates. (system core and modules)
|
||||||
0
htdocs/theme/auguria/templates/index.php
Normal file
0
htdocs/theme/auguria/templates/index.php
Normal file
3
htdocs/theme/bluelagoon/templates/README
Normal file
3
htdocs/theme/bluelagoon/templates/README
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
README (english)
|
||||||
|
|
||||||
|
This directory is used to store custom templates. (system core and modules)
|
||||||
0
htdocs/theme/bluelagoon/templates/index.php
Normal file
0
htdocs/theme/bluelagoon/templates/index.php
Normal file
3
htdocs/theme/freelug/templates/README
Normal file
3
htdocs/theme/freelug/templates/README
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
README (english)
|
||||||
|
|
||||||
|
This directory is used to store custom templates. (system core and modules)
|
||||||
0
htdocs/theme/freelug/templates/index.php
Normal file
0
htdocs/theme/freelug/templates/index.php
Normal file
3
htdocs/theme/rodolphe/templates/README
Normal file
3
htdocs/theme/rodolphe/templates/README
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
README (english)
|
||||||
|
|
||||||
|
This directory is used to store custom templates. (system core and modules)
|
||||||
0
htdocs/theme/rodolphe/templates/index.php
Normal file
0
htdocs/theme/rodolphe/templates/index.php
Normal file
3
htdocs/theme/yellow/templates/README
Normal file
3
htdocs/theme/yellow/templates/README
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
README (english)
|
||||||
|
|
||||||
|
This directory is used to store custom templates. (system core and modules)
|
||||||
0
htdocs/theme/yellow/templates/index.php
Normal file
0
htdocs/theme/yellow/templates/index.php
Normal file
@ -28,7 +28,7 @@
|
|||||||
require_once("../../htdocs/master.inc.php");
|
require_once("../../htdocs/master.inc.php");
|
||||||
require_once(FPDF_PATH.'fpdf.php');
|
require_once(FPDF_PATH.'fpdf.php');
|
||||||
require_once(DOL_DOCUMENT_ROOT."/product.class.php");
|
require_once(DOL_DOCUMENT_ROOT."/product.class.php");
|
||||||
require_once(DOL_DOCUMENT_ROOT."/product/canvas/product.livre.class.php");
|
require_once(DOL_DOCUMENT_ROOT."/product/templates/product.livre.class.php");
|
||||||
|
|
||||||
$error = 0;
|
$error = 0;
|
||||||
$year = strftime("%Y", time());
|
$year = strftime("%Y", time());
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user