Project

General

Profile

« Previous | Next » 

Revision a9815578

Added by Andreas Kohlbecker over 7 years ago

turning useless media related theme-functions into compose or plain markup functions

View differences:

modules/cdm_dataportal/theme/cdm_dataportal.page.theme
325 325
    $gallery_settings = getGallerySettings(CDM_DATAPORTAL_TAXON_MEDIA_GALLERY_NAME_TAB);
326 326

  
327 327
    $out = '<div class="image-gallerie">';
328
    $out .= theme('cdm_media_gallerie', array(
328
    $out .= compose_cdm_media_gallerie(array(
329 329
      'mediaList' => $media,
330 330
      'galleryName' => $gallery_name,
331 331
      'maxExtend' => $gallery_settings['cdm_dataportal_media_maxextend'],
......
605 605

  
606 606
  $out .= theme('cdm_back_to_image_gallery_button', array());
607 607
  $out .= '<div class="viewer">';
608
  $out .= theme('cdm_openlayers_image', array('mediaRepresentationPart' => $media->representations[$representationIdx]->parts[$partIdx], 'maxExtend' => $imageMaxExtend));
608
  $out .= cdm_openlayers_image($media->representations[$representationIdx]->parts[$partIdx], $imageMaxExtend);
609 609
  $out .= '</div>';
610 610

  
611 611
  // General media metadata.
612
  /*
613
  $media_metadata = cdm_ws_get(CDM_WS_MEDIA_METADATA, array($media->uuid));
614
  vardump("PRINTING MEDIA METADATA");
615
  vardump($media_metadata);
616
  vardump("PRINTING MEDIA");
617
  vardump($media);
618
  */
619 612
  $metadataToPrint = theme('cdm_media_caption', array('media' => $media));
620 613
  $out .= $metadataToPrint;
621 614

  
......
648 641
      }
649 642

  
650 643
      $out .= '</td><td><a href="' . url(path_to_media($media->uuid, $representation->uuid, $p_i)) . '">'
651
        . theme('cdm_media_gallerie_image', array('mediaRepresentationPart' => $part, 'maxExtend' => $thumbnailMaxExtend, 'addPassePartout' => TRUE));
644
        . cdm_media_gallerie_image($part, $thumbnailMaxExtend, TRUE);
652 645
      $p_i++;
653 646
    }
654 647
    $out .= '</table>';

Also available in: Unified diff