Project

General

Profile

« Previous | Next » 

Revision f19f47fa

Added by Andreas Kohlbecker over 9 years ago

basic implementation of #4314 (taxon page: display of bibliography in a block on the taxon page)

View differences:

7.x/themes/garland_cichorieae/template.php
18 18
    $description = str_replace("\n", "<br/>", $element->multilanguageText_L10n->text);
19 19
  }
20 20
  $sourceRefs = '';
21
  $result = array();
22
  $res_author;
23
  $res_date;
24 21
  $do_links = TRUE;
25 22
  $default_theme = variable_get('theme_default', 'garland_cichorieae');
26 23

  
......
99 96
      }
100 97
      elseif ($asListElement) {
101 98

  
102
        $out = '<li class="descriptionText DescriptionElement">';

103
        // Adding ":" if necessary.

104
        if (!empty($name_used_in_source_link_to_show)) {

105
          if ( (!empty($description)|| !empty($sourceRefs)) && $feature_uuid != UUID_CHROMOSOMES_NUMBERS) {

106
            $out .= $name_used_in_source_link_to_show . ': ';

107
          } else {

108
            $out .= $name_used_in_source_link_to_show . ' ';

109
          }

99
        $out = '<li class="descriptionText DescriptionElement">';
100
        // Adding ":" if necessary.
101
        if (!empty($name_used_in_source_link_to_show)) {
102
          if ( (!empty($description)|| !empty($sourceRefs)) && $feature_uuid != UUID_CHROMOSOMES_NUMBERS) {
103
            $out .= $name_used_in_source_link_to_show . ': ';
104
          } else {
105
            $out .= $name_used_in_source_link_to_show . ' ';
106
          }
110 107
        }
111 108

  
112 109
        $out .= $description . $sourceRefs . theme('cdm_annotations_as_footnotekeys', array(
......
132 129
        if (!isset($annotation_fkeys)) {
133 130
            $annotation_fkeys = '';
134 131
        }
135
        $out = '<span class="' . html_class_atttibute_ref($element) . '"> ' . $description . $sourceRefs . $name_used_in_source_link_to_show . $annotation_fkeys . '</span>';
132
        $out = '<span class="' . html_class_attribute_ref($element) . '"> ' . $description . $sourceRefs . $name_used_in_source_link_to_show . $annotation_fkeys . '</span>';
136 133
      }
137 134
    }
138 135
  }
139 136

  
140 137
  // If no sources, print the description.
141 138
  if (!isset($out)) {
142
    $out = '<span class="' . html_class_atttibute_ref($element) . '"> ' . $description . $annotation_fkeys . '</span>';
139
    $out = '<span class="' . html_class_attribute_ref($element) . '"> ' . $description . $annotation_fkeys . '</span>';
143 140
  }
144 141

  
145 142
  /* Dead code:
......
413 410

  
414 411
  // Only select the user selected theme if it is available in the
415 412
  // list of enabled themes.
413
  $themes = list_themes();
416 414
  $theme = $user->theme && $themes[$user->theme]->status ? $user->theme : variable_get('theme_default', 'garland');
417 415

  
418 416
  // Allow modules to override the present theme... only select custom theme

Also available in: Unified diff