component css class
This commit is contained in:
parent
f50ac6e19f
commit
ed1fcb86fd
|
|
@ -11,7 +11,7 @@ use Tps\Reklama\Models\Statistika;
|
|||
|
||||
class Advertisement extends ComponentBase
|
||||
{
|
||||
public $group;
|
||||
public $group, $css_class;
|
||||
public function componentDetails()
|
||||
{
|
||||
return [
|
||||
|
|
@ -68,9 +68,9 @@ class Advertisement extends ComponentBase
|
|||
];
|
||||
}
|
||||
|
||||
public function onRun()
|
||||
public function onRender()
|
||||
{
|
||||
parent::onRun(); // TODO: Change the autogenerated stub
|
||||
$this->css_class = $this->property('css_class');
|
||||
}
|
||||
|
||||
public function onDisplay(){
|
||||
|
|
|
|||
|
|
@ -1,11 +1,3 @@
|
|||
==
|
||||
<?php
|
||||
function onRender() {
|
||||
$css_class = $this->property('css_class');
|
||||
}
|
||||
?>
|
||||
|
||||
==
|
||||
|
||||
{% set reklama = group.adds.first %}
|
||||
<a
|
||||
|
|
|
|||
Loading…
Reference in New Issue