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.
2 theme calls to media-acquiadam-browser-asset.tpl.php
- media_acquiadam_browser_checkboxes_after_build in modules/
media_acquiadam_browser/ includes/ media_acquiadam_browser.forms.inc - Render checkboxes and radios as a list with asset thumbnails.
- media_acquiadam_browser_choose_asset_saved_landing_page in modules/
media_acquiadam_browser/ includes/ media_acquiadam_browser.pages.inc - Landing page for when someone selects assets with the browser form.
File
modules/media_acquiadam_browser/templates/media-acquiadam-browser-asset.tpl.phpView 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>