From db209fc7db018ef38d1dd14dd9609237472b4762 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jean-Philippe=20Gu=C3=A9rard?= Date: Fri, 30 Dec 2011 03:34:02 +0100 Subject: [PATCH 1/3] Removal of the hard-wired Framadate logo An option is now available to replace the text title by an image. --- bandeaux.php | 13 +++++++++++-- variables.php.template | 4 ++++ 2 files changed, 15 insertions(+), 2 deletions(-) diff --git a/bandeaux.php b/bandeaux.php index f7d9f27..1d97cb4 100644 --- a/bandeaux.php +++ b/bandeaux.php @@ -81,7 +81,16 @@ function logo () #le bandeau principal function bandeau_tete() { - echo '
'.NOMAPPLICATION.'
'."\n"; + if ( IMAGE_TITRE ) { + + echo '
'.NOMAPPLICATION.'
'."\n"; + + } else { + + echo '
'.NOMAPPLICATION.'">
'."\n"; + + } ; + } @@ -188,4 +197,4 @@ function bandeau_pied_mobile() liste_lang() . ''. '' . "\n"; gAnalytics(); -} \ No newline at end of file +} diff --git a/variables.php.template b/variables.php.template index e37ef0b..b27f59e 100644 --- a/variables.php.template +++ b/variables.php.template @@ -75,6 +75,10 @@ define('LOGOBANDEAU', ''); +// Nom et emplacement du fichier image contenant le titre +//define('IMAGE_TITRE', ''); +define('IMAGE_TITRE', 'images/logo-framadate.png'); + // Activation des URL propre (true pour activer, false sinon) define('URL_PROPRE', false); From dda612cc699222c449b211d60a0b9d116a303d68 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jean-Philippe=20Gu=C3=A9rard?= Date: Fri, 30 Dec 2011 03:38:13 +0100 Subject: [PATCH 2/3] Remove 2 extraneous characters --- bandeaux.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bandeaux.php b/bandeaux.php index 1d97cb4..7f2af3e 100644 --- a/bandeaux.php +++ b/bandeaux.php @@ -87,7 +87,7 @@ function bandeau_tete() } else { - echo ''."\n"; + echo ''."\n"; } ; From 93e2d59457864bda3732cdc378f40475509a6954 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jean-Philippe=20Gu=C3=A9rard?= Date: Tue, 10 Jan 2012 01:10:06 +0100 Subject: [PATCH 3/3] =?UTF-8?q?Fix=20PDF=C2=A0script=20path?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- exportpdf.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/exportpdf.php b/exportpdf.php index 1731f2c..68d5edf 100644 --- a/exportpdf.php +++ b/exportpdf.php @@ -39,7 +39,7 @@ session_start(); -require_once('fpdf/phpToPDF.php'); +require_once('php2pdf/phpToPDF.php'); include_once('fonctions.php'); $dsondage = get_sondage_from_id($_POST['numsondage']); @@ -81,4 +81,4 @@ $PDF->SetFont('Arial','B',8); $PDF->Text(35,275,"Cette lettre de convocation a été générée automatiquement par ".NOMAPPLICATION." sur ".get_server_name()); //Sortie -$PDF->Output(); \ No newline at end of file +$PDF->Output();