summaryrefslogtreecommitdiff
path: root/library/WT/Fact.php
diff options
context:
space:
mode:
Diffstat (limited to 'library/WT/Fact.php')
-rw-r--r--library/WT/Fact.php21
1 files changed, 1 insertions, 20 deletions
diff --git a/library/WT/Fact.php b/library/WT/Fact.php
index 508b5df85e..a56535e7f9 100644
--- a/library/WT/Fact.php
+++ b/library/WT/Fact.php
@@ -1,6 +1,6 @@
<?php
// webtrees: Web based Family History software
-// Copyright (C) 2014 webtrees development team.
+// Copyright (C) 2015 webtrees development team.
//
// Derived from PhpGedView
// Copyright (C) 2008 PGV Development Team. All rights reserved.
@@ -407,25 +407,6 @@ class WT_Fact {
}
/**
- * Display an icon for this fact.
- * Icons are held in a theme subfolder. Not all themes provide icons.
- *
- * @return string
- */
- public function icon() {
- $icon = 'images/facts/' . $this->getTag() . '.png';
- $dir = substr(WT_CSS_URL, strlen(WT_STATIC_URL));
- if (file_exists($dir . $icon)) {
- return '<img src="' . WT_CSS_URL . $icon . '" title="' . WT_Gedcom_Tag::getLabel($this->getTag()) . '">';
- } elseif (file_exists($dir . 'images/facts/NULL.png')) {
- // Spacer image - for alignment - until we move to a sprite.
- return '<img src="' . WT_CSS_URL . 'images/facts/NULL.png">';
- } else {
- return '';
- }
- }
-
- /**
* Static Helper functions to sort events
*
* @param WT_Fact $a Fact one