24 lines
460 B
PHP
24 lines
460 B
PHP
<?php
|
|
|
|
class ThumbnailPreview extends CWidget {
|
|
public $caption = '';
|
|
public $link = '';
|
|
public $enabled = true;
|
|
public $description = '';
|
|
public $category = '';
|
|
public $language = [];
|
|
public $starcount = 0;
|
|
public $downloads = 0;
|
|
public $date = null;
|
|
public $image = '';
|
|
public $programminglang = '???';
|
|
|
|
public function run() {
|
|
if ($this->date == null)
|
|
$this->date = new DateTime('2000-01-01');
|
|
|
|
$this->render('thumbnailPreview');
|
|
}
|
|
}
|
|
|
|
?>
|