?> <tr> <td class="name" <?php if (!$element['readable']) { echo 'colspan="3"'; } elseif ($element['countonly']) { echo 'colspan="2"'; } ?> title="<?php echo filetypeInfo($element['type']); ?> "> <img src="<?php echo iconDirectory(); ?> /<?php echo $element['type']; ?> .png" alt="<?php echo _('Directory'); ?> " /> <?php if (!$element['readable']) { echo imgTagIcon('locked', 'not accessible'); } ?> <a href="<?php echo $element['urlpath'];
/** * abbreviated form of <img src="index.php?icon=blablablabla... * @param string $icon * @param string $iconDesc [optional] * @return string */ function imgTagIcon($icon, $iconDesc = '') { printf('<img src="%s/%s.png" alt="%s" title="%3$s" class="%2$s" />', iconDirectory(), $icon, _($iconDesc)); }