Project

General

Profile

« Previous | Next » 

Revision 40360e37

Added by Andreas Kohlbecker almost 5 years ago

adapting tests to modified portal code

View differences:

modules/cdm_dataportal/theme/cdm_dataportal.references.theme
65 65
  }
66 66

  
67 67
  $citation = trim($citation);
68
  if((isset($doIconLink) && $doIconLink === TRUE)) {
69
    $iconlink = l(custom_icon_font_markup('icon-interal-link-alt-solid', array('class' => array('superscript'))), path_to_reference($reference->uuid), array('html' => true));
70
  }
68 71
  if (isset($doTextLink) && $doTextLink === TRUE) {
69 72
    $out = '<span class="reference">';
70 73
    $out .= l($citation, path_to_reference($reference->uuid), array(
......
74 77
      'absolute' => TRUE,
75 78
      'html' => TRUE,
76 79
    ));
77
    $out .= '</span>';
80
    $out .= $iconlink . '</span>';
78 81
  }
79 82
  else {
80
    $out = '<span class="reference">' . $citation . '</span>';
81
  }
82
  if((isset($doIconLink) && $doIconLink === TRUE)) {
83
    $out .= l(custom_icon_font_markup('icon-interal-link-alt-solid', array('class' => array('superscript'))), path_to_reference($reference->uuid), array('html' => true));
83
    $out = '<span class="reference">' . $citation . $iconlink . '</span>';
84 84
  }
85 85

  
86 86
  if (!empty($microReference)) {

Also available in: Unified diff