You are here

media-acquiadam-browser-asset.tpl.php in Media: Acquia DAM 7

Template implementation for assets displayed within the Media Browser plugin.

Variables: $asset: The asset object being rendered. $browser_url: The current Media Browser URL. $thumbnail: The thumbnail markup to use.

File

modules/media_acquiadam_browser/templates/media-acquiadam-browser-asset.tpl.php
View source
<?php

/**
 * @file
 * Template implementation for assets displayed within the Media Browser plugin.
 *
 * Variables:
 *  $asset: The asset object being rendered.
 *  $browser_url: The current Media Browser URL.
 *  $thumbnail: The thumbnail markup to use.
 */
?>

<div class="browser-asset" <?php

print $attributes;
?>>

  <div class="preview">
    <?php

if ($asset['type'] == 'folder') {
  ?>
      <div class="folder-tab"></div>
    <?php

}
?>

    <div class="preview-body">
      <?php

if ($asset['type'] == 'folder') {
  ?>
        <a href="<?php

  print $browser_url;
  ?>"><?php

  echo $thumbnail;
  ?></a>
      <?php

}
else {
  ?>
        <?php

  echo $thumbnail;
  ?>
      <?php

}
?>
    </div>
  </div>

  <div class="label" title="<?php

echo check_plain($asset['name']);
?>">
    <?php

if ($asset['type'] == 'folder') {
  ?>
      <a href="<?php

  print $browser_url;
  ?>"><?php

  echo $asset['name'];
  ?></a>
    <?php

}
else {
  ?>
      <?php

  echo $asset['name'];
  ?>
    <?php

}
?>
  </div>

  <?php

if (!empty($jump_list)) {
  ?>
  <?php

  echo $jump_list;
  ?>
  <?php

}
?>
</div>