You are here

function theme_sdl_editor_legend in Scald: Media Management made easy 6

Same name and namespace in other branches
  1. 7 modules/library/scald_dnd_library/scald_dnd_library.module \theme_sdl_editor_legend()

Returns HTML for the legend of an atom, used in the Editor Representation context.

1 theme call to theme_sdl_editor_legend()
scald_dnd_library_add_item in scald_dnd_library/scald_dnd_library.module
Adds an item in the library array.

File

scald_dnd_library/scald_dnd_library.module, line 219
Scald DnD Library

Code

function theme_sdl_editor_legend($atom) {
  $informations = $atom->rendered;
  $by = isset($informations->authors[0]['link']) ? $informations->authors[0]['link'] : $informations->publisher['link'];
  $by = t('by %name', array(
    '%name' => $by,
  ));
  return "\n  <div class='meta'>\n    <!--copyright={$sid}-->{$informations->title}, {$by}<!--END copyright={$sid}-->\n  </div>\n  ";
}