diff options
| author | Nigel Osborne <kiwi3685@me.com> | 2010-09-12 05:36:56 +0000 |
|---|---|---|
| committer | Nigel Osborne <kiwi3685@me.com> | 2010-09-12 05:36:56 +0000 |
| commit | 4dc22b8a645c3188d57d95b992622d0ae19b9c34 (patch) | |
| tree | d17f4e3db1d7b8e42667d6bdc9700074a50118d4 | |
| parent | e8b6bb6f7c9cb9b3c7c189c04622bfeea2c57857 (diff) | |
| download | webtrees-4dc22b8a645c3188d57d95b992622d0ae19b9c34.tar.gz webtrees-4dc22b8a645c3188d57d95b992622d0ae19b9c34.tar.bz2 webtrees-4dc22b8a645c3188d57d95b992622d0ae19b9c34.zip | |
Make two list images themable
| -rw-r--r-- | includes/functions/functions_print_lists.php | 18 | ||||
| -rw-r--r-- | themes/clouds/theme.php | 2 | ||||
| -rw-r--r-- | themes/colors/theme.php | 3 | ||||
| -rw-r--r-- | themes/fab/theme.php | 2 | ||||
| -rw-r--r-- | themes/minimal/theme.php | 2 | ||||
| -rw-r--r-- | themes/webtrees/theme.php | 2 | ||||
| -rw-r--r-- | themes/xenea/theme.php | 2 |
7 files changed, 21 insertions, 10 deletions
diff --git a/includes/functions/functions_print_lists.php b/includes/functions/functions_print_lists.php index bedc295735..40be0e4c14 100644 --- a/includes/functions/functions_print_lists.php +++ b/includes/functions/functions_print_lists.php @@ -114,11 +114,11 @@ function print_indi_table($datalist, $legend="", $option="") { echo "<th class=\"list_label\" style=\"display:none\">SURN</th>"; if ($option=="sosa") echo "<th class=\"list_label\">Sosa</th>"; echo "<th class=\"list_label\">", translate_fact('BIRT'), "</th>"; - if ($tiny) echo "<td class=\"list_label\"><img src=\"./images/reminder.gif\" alt=\"", i18n::translate('Anniversary'), "\" title=\"", i18n::translate('Anniversary'), "\" border=\"0\" /></td>"; + if ($tiny) echo "<td class=\"list_label\"><img src=\"".$WT_IMAGES["reminder"]."\" alt=\"", i18n::translate('Anniversary'), "\" title=\"", i18n::translate('Anniversary'), "\" border=\"0\" /></td>"; echo "<th class=\"list_label\">", translate_fact('PLAC'), "</th>"; - if ($tiny) echo "<th class=\"list_label\"><img src=\"./images/children.gif\" alt=\"", i18n::translate('Children'), "\" title=\"", i18n::translate('Children'), "\" border=\"0\" /></th>"; + if ($tiny) echo "<th class=\"list_label\"><img src=\"".$WT_IMAGES["children"]."\" alt=\"", i18n::translate('Children'), "\" title=\"", i18n::translate('Children'), "\" border=\"0\" /></th>"; echo "<th class=\"list_label\">", translate_fact('DEAT'), "</th>"; - if ($tiny) echo "<td class=\"list_label\"><img src=\"./images/reminder.gif\" alt=\"", i18n::translate('Anniversary'), "\" title=\"", i18n::translate('Anniversary'), "\" border=\"0\" /></td>"; + if ($tiny) echo "<td class=\"list_label\"><img src=\"".$WT_IMAGES["reminder"]."\" alt=\"", i18n::translate('Anniversary'), "\" title=\"", i18n::translate('Anniversary'), "\" border=\"0\" /></td>"; echo "<th class=\"list_label\">", translate_fact('AGE'), "</th>"; echo "<th class=\"list_label\">", translate_fact('PLAC'), "</th>"; if ($tiny && $SHOW_LAST_CHANGE) echo "<th class=\"list_label rela\">", translate_fact('CHAN'), "</th>"; @@ -490,9 +490,9 @@ function print_fam_table($datalist, $legend="", $option="") { echo "<th style=\"display:none\">WIFE:GIVN</th>"; echo "<th class=\"list_label\">", translate_fact('AGE'), "</th>"; echo "<th class=\"list_label\">", translate_fact('MARR'), "</th>"; - if ($tiny) echo "<td class=\"list_label\"><img src=\"./images/reminder.gif\" alt=\"", i18n::translate('Anniversary'), "\" title=\"", i18n::translate('Anniversary'), "\" border=\"0\" /></td>"; + if ($tiny) echo "<td class=\"list_label\"><img src=\"".$WT_IMAGES["reminder"]."\" alt=\"", i18n::translate('Anniversary'), "\" title=\"", i18n::translate('Anniversary'), "\" border=\"0\" /></td>"; echo "<th class=\"list_label\">", translate_fact('PLAC'), "</th>"; - if ($tiny) echo "<th class=\"list_label\"><img src=\"./images/children.gif\" alt=\"", i18n::translate('Children'), "\" title=\"", i18n::translate('Children'), "\" border=\"0\" /></th>"; + if ($tiny) echo "<th class=\"list_label\"><img src=\"".$WT_IMAGES["children"]."\" alt=\"", i18n::translate('Children'), "\" title=\"", i18n::translate('Children'), "\" border=\"0\" /></th>"; if ($tiny && $SHOW_LAST_CHANGE) echo "<th class=\"list_label rela\">", translate_fact('CHAN'), "</th>"; echo "<th style=\"display:none\">MARR</th>"; echo "<th style=\"display:none\">DEAT</th>"; @@ -1079,7 +1079,7 @@ function print_media_table($datalist, $legend="") { echo "<td class=\"list_value_wrap\" align=\"", get_align($name), "\">"; echo "<a href=\"", encode_url($media->getLinkUrl()), "\" class=\"list_item name2\">"; if ($media->canDisplayDetails()) - echo '<img src="', thumbnail_file($media->file, false), '" height="15" /> '; + echo '<img src=', thumbnail_file($media->file, false), ' height="15" /> '; echo PrintReady($name), "</a>"; if ($SHOW_MEDIA_FILENAME || WT_USER_IS_ADMIN) echo "<br /><a href=\"", encode_url($media->getLinkUrl()), "\">", basename($media->file), "</a>"; @@ -1321,7 +1321,7 @@ function format_surname_list($surnames, $style, $totals) { $newcol=ceil($count/$col); $html2 ='<table class="list_table"><tr>'; $html2.='<td class="list_value" style="padding: 14px;">'; - + foreach ($html as $surn=>$surns) { $html2.= $surns.'<br />'; $i++; @@ -1331,7 +1331,7 @@ function format_surname_list($surnames, $style, $totals) { } } $html2.='</td></tr></table>'; - + return $html2; } } @@ -1483,7 +1483,7 @@ function print_events_table($startjd, $endjd, $events='BIRT MARR DEAT', $only_li $return .= "<th class=\"list_label\">".i18n::translate('Record')."</th>"; $return .= "<th style=\"display:none\">GIVN</th>"; $return .= "<th class=\"list_label\">".translate_fact('DATE')."</th>"; - $return .= "<th class=\"list_label\"><img src=\"./images/reminder.gif\" alt=\"".i18n::translate('Anniversary')."\" title=\"".i18n::translate('Anniversary')."\" border=\"0\" /></th>"; + $return .= "<th class=\"list_label\"><img src=\"".$WT_IMAGES["reminder"]."\" alt=\"".i18n::translate('Anniversary')."\" title=\"".i18n::translate('Anniversary')."\" border=\"0\" /></th>"; $return .= "<th class=\"list_label\">".translate_fact('EVEN')."</th>"; $return .= "</tr>\n"; } diff --git a/themes/clouds/theme.php b/themes/clouds/theme.php index 4543135e7f..b52f00dbab 100644 --- a/themes/clouds/theme.php +++ b/themes/clouds/theme.php @@ -172,6 +172,8 @@ $WT_IMAGES['default_image_F'] = WT_THEME_DIR.'images/silhouette_female.gif'; $WT_IMAGES['default_image_U'] = WT_THEME_DIR.'images/silhouette_unknown.gif'; $WT_IMAGES['slide_open'] = WT_THEME_DIR.'images/open.png'; $WT_IMAGES['slide_close'] = WT_THEME_DIR.'images/close.png'; +$WT_IMAGES['reminder'] = 'images/reminder.gif'; +$WT_IMAGES['children'] = 'images/children.gif'; // - lifespan chart arrows $WT_IMAGES['lsltarrow'] = WT_THEME_DIR.'images/lsltarrow.gif'; diff --git a/themes/colors/theme.php b/themes/colors/theme.php index 711cebf17c..2dea3f1d5e 100644 --- a/themes/colors/theme.php +++ b/themes/colors/theme.php @@ -231,7 +231,8 @@ $WT_IMAGES['vline'] = WT_THEME_DIR.'images/vline.gif'; $WT_IMAGES['webtrees'] = WT_THEME_DIR.'images/webtrees.png'; $WT_IMAGES['zoomin'] = WT_THEME_DIR.'images/zoomin.gif'; $WT_IMAGES['zoomout'] = WT_THEME_DIR.'images/zoomout.gif'; - +$WT_IMAGES['reminder'] = 'images/reminder.gif'; +$WT_IMAGES['children'] = 'images/children.gif'; // - lifespan chart arrows $WT_IMAGES['lsltarrow'] = WT_THEME_DIR.'images/lsltarrow.gif'; diff --git a/themes/fab/theme.php b/themes/fab/theme.php index d9ce3ea73a..3fa9b84dbc 100644 --- a/themes/fab/theme.php +++ b/themes/fab/theme.php @@ -160,6 +160,8 @@ $WT_IMAGES['default_image_F'] = WT_THEME_DIR.'images/silhouette_female.gif'; $WT_IMAGES['default_image_U'] = WT_THEME_DIR.'images/silhouette_unknown.gif'; $WT_IMAGES['slide_open'] = WT_THEME_DIR.'images/open.png'; $WT_IMAGES['slide_close'] = WT_THEME_DIR.'images/close.png'; +$WT_IMAGES['reminder'] = 'images/reminder.gif'; +$WT_IMAGES['children'] = 'images/children.gif'; //-- Variables for the Fan chart $fanChart = array( diff --git a/themes/minimal/theme.php b/themes/minimal/theme.php index cc05a54f84..5198a780bb 100644 --- a/themes/minimal/theme.php +++ b/themes/minimal/theme.php @@ -134,6 +134,8 @@ $WT_IMAGES['default_image_F'] = WT_THEME_DIR.'images/silhouette_female.gif'; $WT_IMAGES['default_image_U'] = WT_THEME_DIR.'images/silhouette_unknown.gif'; $WT_IMAGES['slide_open'] = WT_THEME_DIR.'images/open.png'; $WT_IMAGES['slide_close'] = WT_THEME_DIR.'images/close.png'; +$WT_IMAGES['reminder'] = 'images/reminder.gif'; +$WT_IMAGES['children'] = 'images/children.gif'; // - lifespan chart arrows $WT_IMAGES['lsltarrow'] = WT_THEME_DIR.'images/lsltarrow.gif'; diff --git a/themes/webtrees/theme.php b/themes/webtrees/theme.php index 9b71eaa5bd..e1ef784d75 100644 --- a/themes/webtrees/theme.php +++ b/themes/webtrees/theme.php @@ -162,6 +162,8 @@ $WT_IMAGES['default_image_F'] = WT_THEME_DIR.'images/silhouette_female.gif'; $WT_IMAGES['default_image_U'] = WT_THEME_DIR.'images/silhouette_unknown.gif'; $WT_IMAGES['slide_open'] = WT_THEME_DIR.'images/open.png'; $WT_IMAGES['slide_close'] = WT_THEME_DIR.'images/close.png'; +$WT_IMAGES['reminder'] = 'images/reminder.gif'; +$WT_IMAGES['children'] = 'images/children.gif'; // - lifespan chart arrows $WT_IMAGES['lsltarrow'] = WT_THEME_DIR.'images/lsltarrow.gif'; diff --git a/themes/xenea/theme.php b/themes/xenea/theme.php index 76d278df44..db26335240 100644 --- a/themes/xenea/theme.php +++ b/themes/xenea/theme.php @@ -161,6 +161,8 @@ $WT_IMAGES['default_image_F'] = WT_THEME_DIR.'images/silhouette_female.gif'; $WT_IMAGES['default_image_U'] = WT_THEME_DIR.'images/silhouette_unknown.gif'; $WT_IMAGES['slide_open'] = WT_THEME_DIR.'images/open.png'; $WT_IMAGES['slide_close'] = WT_THEME_DIR.'images/close.png'; +$WT_IMAGES['reminder'] = 'images/reminder.gif'; +$WT_IMAGES['children'] = 'images/children.gif'; // - lifespan chart arrows $WT_IMAGES['lsltarrow'] = WT_THEME_DIR.'images/lsltarrow.gif'; |
