Ejemplo n.º 1
0
 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 . ' &ndash; ' . \ICanBoogie\I18n\format_size($file->size) . ')</span>';
 }
Ejemplo n.º 2
0
 /**
  * Defaults the model to "images".
  *
  * @param string $model
  */
 public function __construct($model = 'images')
 {
     parent::__construct($model);
 }