You are here

function theme_kaltura_thumbnail_default in Kaltura 7.2

Same name and namespace in other branches
  1. 7.3 plugins/field_kaltura/field_kaltura.theme.inc \theme_kaltura_thumbnail_default()
1 theme call to theme_kaltura_thumbnail_default()
field_kaltura_field_formatter_view in plugins/field_kaltura/field_kaltura.module
Implements hook_field_formatter_view().

File

plugins/field_kaltura/field_kaltura.theme.inc, line 64

Code

function theme_kaltura_thumbnail_default($vars) {
  $rot = $vars['rotate'] ? 'k-rotate' : 'k-no-rotate';
  $out = '<div class="kaltura">';
  $out .= '<h3 class="kaltura-title">' . check_plain($vars['title']) . '</h3>';
  $out .= '<div class="kaltura-thumb">' . theme('image', array(
    'path' => $vars['thub'],
    'title' => $vars['title'],
    'attributes' => array(
      'class' => $rot,
    ),
  )) . '</div>';
  $out .= '</div>';
  return $out;
}