private static function make_link(\Icybee\Modules\Files\File $file, $label = null) { if (!$label) { $label = $file->label; } return '<a href="' . \ICanBoogie\escape($file->url('download')) . '">' . \ICanBoogie\escape($label) . '</a> <span class="metas">(' . $file->extension . ' – ' . \ICanBoogie\I18n\format_size($file->size) . ')</span>'; }
/** * Defaults the model to "images". * * @param string $model */ public function __construct($model = 'images') { parent::__construct($model); }