sterzycom/panel/app/fields/filename/filename.php

19 lines
286 B
PHP
Raw Normal View History

<?php
class FilenameField extends TextField {
public $extension = null;
public $icon = true;
public function icon() {
$icon = new Brick('div');
$icon->addClass('field-icon');
$icon->append('<span>.' . $this->extension . '</span>');
return $icon;
}
}