diff options
| author | fisharebest <fisharebest@gmail.com> | 2012-03-24 15:27:46 +0000 |
|---|---|---|
| committer | fisharebest <fisharebest@gmail.com> | 2012-03-24 15:27:46 +0000 |
| commit | b1f4c9ef4ca9e80f29e83d616938c6c5b223c185 (patch) | |
| tree | 0b1bf35dd285993691388d0a8a105e536a22c3eb /calendar.php | |
| parent | 9e1c860ee28d2f5a726714ba4f2c1a330a7f2ae7 (diff) | |
| download | webtrees-b1f4c9ef4ca9e80f29e83d616938c6c5b223c185.tar.gz webtrees-b1f4c9ef4ca9e80f29e83d616938c6c5b223c185.tar.bz2 webtrees-b1f4c9ef4ca9e80f29e83d616938c6c5b223c185.zip | |
Replace $WT_IMAGES array of images with CSS.
Diffstat (limited to 'calendar.php')
| -rw-r--r-- | calendar.php | 20 |
1 files changed, 8 insertions, 12 deletions
diff --git a/calendar.php b/calendar.php index 3b0391e4e0..4c9626094f 100644 --- a/calendar.php +++ b/calendar.php @@ -414,31 +414,27 @@ case 'calendar': switch ($action) { case 'year': case 'today': - echo "<table class=\"width100\"><tr>"; + echo '<table class="width100"><tr>'; // Table headings - echo "<td class=\"descriptionbox width50\">"; - if (isset($WT_IMAGES['indis'])) echo "<img id=\"calendar_img_indi\" src=\"{$WT_IMAGES['indis']}\" title=\"", WT_I18N::translate('Individuals'), "\" alt=\"", WT_I18N::translate('Individuals'), "\"> "; - echo WT_I18N::translate('Individuals'), "</td>"; - echo "<td class=\"descriptionbox center width50\">"; - if (isset($WT_IMAGES['cfamily'])) echo "<img id=\"calendar_img_fam\" src=\"{$WT_IMAGES['cfamily']}\" title=\"", WT_I18N::translate('Families'), "\" alt=\"", WT_I18N::translate('Families'), "\"> "; - echo WT_I18N::translate('Families'), "</td>"; - echo "</tr><tr>"; + echo '<td class="descriptionbox center width50"><i class="icon-indis"></i>', WT_I18N::translate('Individuals'), '</td>'; + echo '<td class="descriptionbox center width50"><i class="icon-cfamily"></i>', WT_I18N::translate('Families'), '</td>'; + echo '</tr><tr>'; // Table rows $males=0; $females=0; $numfams=0; - echo "<td class=\"optionbox wrap\">"; + echo '<td class="optionbox wrap">'; // Avoid an empty unordered list ob_start(); - echo calendar_list_text($indis, "<li>", "</li>", true); + echo calendar_list_text($indis, '<li>', '</li>', true); $content = ob_get_clean(); if (!empty($content)) { echo '<ul>', $content, '</ul>'; } echo '</td>'; - echo "<td class=\"optionbox wrap\">"; + echo '<td class="optionbox wrap">'; // Avoid an empty unordered list ob_start(); @@ -582,7 +578,7 @@ function calendar_fact_text($fact, $show_places) { // Format a list of facts for display //////////////////////////////////////////////////////////////////////////////// function calendar_list_text($list, $tag1, $tag2, $show_sex_symbols) { - global $WT_IMAGES, $males, $females; + global $males, $females; foreach ($list as $id=>$facts) { $tmp=WT_GedcomRecord::GetInstance($id); |
