summaryrefslogtreecommitdiff
path: root/includes/classes
diff options
context:
space:
mode:
authorŁukasz Wilenski <wooc@gazeta.pl>2010-12-27 21:34:15 +0000
committerŁukasz Wilenski <wooc@gazeta.pl>2010-12-27 21:34:15 +0000
commit229f98006995e762e4dd82861031212793c9d0e1 (patch)
tree2a9f2484304f00c39095b3fdce4c28d56364c938 /includes/classes
parent5c5e72e9f5d2d4339bbbbed6b58015dc48d92a98 (diff)
downloadwebtrees-229f98006995e762e4dd82861031212793c9d0e1.tar.gz
webtrees-229f98006995e762e4dd82861031212793c9d0e1.tar.bz2
webtrees-229f98006995e762e4dd82861031212793c9d0e1.zip
fix some source bugs
don't display IDs add new reports
Diffstat (limited to 'includes/classes')
-rw-r--r--includes/classes/class_reporthtml.php4
-rw-r--r--includes/classes/class_reportpdf.php11
2 files changed, 11 insertions, 4 deletions
diff --git a/includes/classes/class_reporthtml.php b/includes/classes/class_reporthtml.php
index 40b8b09f5e..0a9eb909e6 100644
--- a/includes/classes/class_reporthtml.php
+++ b/includes/classes/class_reporthtml.php
@@ -630,6 +630,8 @@ class CellHTML extends Cell {
return;
}
$temptext = str_replace("#PAGENUM#", $html->PageNo(), $this->text);
+ // underline title part of Source item
+ $temptext = str_replace(array('', ''), array('<u>', '</u>'), $temptext);
// Setup the style name
if ($html->getCurrentStyle() != $this->styleName) {
@@ -1147,6 +1149,8 @@ class TextHTML extends Text {
$html->setCurrentStyle($this->styleName);
}
$temptext = str_replace("#PAGENUM#", $html->PageNo(), $this->text);
+ // underline title part of Source item
+ $temptext = str_replace(array('', ''), array('<u>', '</u>'), $temptext);
// If any text at all
if (!empty($temptext)) {
diff --git a/includes/classes/class_reportpdf.php b/includes/classes/class_reportpdf.php
index ed441fc2fa..ce6ee6e503 100644
--- a/includes/classes/class_reportpdf.php
+++ b/includes/classes/class_reportpdf.php
@@ -661,7 +661,8 @@ class CellPDF extends Cell {
$pdf->setCurrentStyle($this->styleName);
}
$temptext = str_replace("#PAGENUM#", $pdf->PageNo(), $this->text);
-
+ // underline «title» part of Source item
+ $temptext = str_replace(array('«', '»'), array('<u>', '</u>'), $temptext);
$match = array();
// Indicates if the cell background must be painted (1) or transparent (0)
if ($this->fill == 1) {
@@ -1143,7 +1144,9 @@ class TextPDF extends Text {
$pdf->setCurrentStyle($this->styleName);
}
$temptext = str_replace("#PAGENUM#", $pdf->PageNo(), $this->text);
-
+ // underline «title» part of Source item
+ $temptext = str_replace(array('«', '»'), array('<u>', '</u>'), $temptext);
+
// Paint the text color or they might use inherited colors by the previous function
$match = array();
if (preg_match("/#?(..)(..)(..)/", $this->color, $match)) {
@@ -1288,8 +1291,8 @@ class FootnotePDF extends Footnote {
$pdf->setCurrentStyle($this->styleName);
}
$temptext = str_replace("#PAGENUM#", $pdf->PageNo(), $this->text);
- // underline title part of Source item
- $temptext = str_replace(array('', ''), array('<u>', '</u>'), $temptext);
+ // underline «title» part of Source item
+ $temptext = str_replace(array('«', '»'), array('<u>', '</u>'), $temptext);
// Set the link to this y/page position
$pdf->SetLink($this->addlink, -1, -1);
// Print first the source number