Worked on Programs/Index page
This commit is contained in:
20
www/protected/components/ThumbnailPreview.php
Normal file
20
www/protected/components/ThumbnailPreview.php
Normal file
@@ -0,0 +1,20 @@
|
||||
<?php
|
||||
|
||||
class ThumbnailPreview extends CWidget {
|
||||
public $caption = '';
|
||||
public $description = '';
|
||||
public $category = '';
|
||||
public $language = [];
|
||||
public $starcount = 0;
|
||||
public $downloads = 0;
|
||||
public $date = null;
|
||||
public $image = '';
|
||||
|
||||
public function run() {
|
||||
if ($this->date == null)
|
||||
$this->date = new DateTime('2000-01-01');
|
||||
$this->render('thumbnailPreview');
|
||||
}
|
||||
}
|
||||
|
||||
?>
|
||||
Reference in New Issue
Block a user