Added Widget to msmain/index: "ExpandedLogHeader"
This commit is contained in:
15
www/protected/components/widgets/ExpandedLogHeader.php
Normal file
15
www/protected/components/widgets/ExpandedLogHeader.php
Normal file
@@ -0,0 +1,15 @@
|
||||
<?php
|
||||
|
||||
class ExpandedLogHeader extends CWidget {
|
||||
public $date;
|
||||
public $caption = '';
|
||||
public $link = '';
|
||||
public $content = '';
|
||||
|
||||
public function run() {
|
||||
if ($this->date == null)
|
||||
$this->date = new DateTime('2000-01-01');
|
||||
|
||||
$this->render('expandedLogHeader');
|
||||
}
|
||||
}
|
||||
@@ -11,6 +11,4 @@ class FullProgPreview extends CWidget {
|
||||
public function run() {
|
||||
$this->render('fullProgPreview');
|
||||
}
|
||||
}
|
||||
|
||||
?>
|
||||
}
|
||||
@@ -19,6 +19,4 @@ class ThumbnailProgPreview extends CWidget {
|
||||
|
||||
$this->render('thumbnailProgPreview');
|
||||
}
|
||||
}
|
||||
|
||||
?>
|
||||
}
|
||||
14
www/protected/components/widgets/views/expandedLogHeader.php
Normal file
14
www/protected/components/widgets/views/expandedLogHeader.php
Normal file
@@ -0,0 +1,14 @@
|
||||
<?php
|
||||
/* @var $this ExpandedLogHeader */
|
||||
?>
|
||||
|
||||
<div class="expCollHeader">
|
||||
|
||||
<?php echo MsHtml::collapsedHeader($this->date, $this->caption, $this->link); ?>
|
||||
|
||||
<div class="expCollContent">
|
||||
<p>
|
||||
<?php echo $this->content; ?>
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
Reference in New Issue
Block a user