Project

General

Profile

« Previous | Next » 

Revision a1edfba5

Added by Andreas Kohlbecker almost 3 years ago

ref #9659 more compact layout for ext_links by html5 labels

View differences:

modules/cdm_dataportal/ext_links/ext_links.module
374 374
  }
375 375

  
376 376
  $block_content = '';
377
  foreach ($ext_links_by_category as $categoryTitle => $ext_links) {
378
    $block_content .= "<div class=\"category\"><h5>" . $categoryTitle . "</h5>\n";
377
  foreach ($ext_links_by_category as $category => $ext_links) {
378
    $block_content .= "<label class=\"category-label\">" . $category . "</label><div class=\"category category-$category\">";
379 379
    foreach($ext_links as $ext_link){
380 380
      $block_content .= l($ext_link['title'], 'JavaScript:popupExternalLinks(\'' . $ext_link['url'] . '\')', ['external' => TRUE]) .'<br />';
381 381
    }

Also available in: Unified diff