component css class
This commit is contained in:
parent
2b83c2168e
commit
6982755930
|
|
@ -68,11 +68,6 @@ class Advertisement extends ComponentBase
|
|||
];
|
||||
}
|
||||
|
||||
public function onRender()
|
||||
{
|
||||
$this->css_class = $this->property('css_class','blat');
|
||||
}
|
||||
|
||||
public function onDisplay(){
|
||||
$random = $this->property('random');
|
||||
$this->page['group'] = $group = Group::where('code',$this->property('code'))
|
||||
|
|
@ -83,7 +78,7 @@ class Advertisement extends ComponentBase
|
|||
$query->orderBy('order');
|
||||
}])
|
||||
->first();
|
||||
|
||||
$this->page['css_class'] = $this->property('css_class','blat');
|
||||
if ($group && $group->adds){
|
||||
try {
|
||||
DB::beginTransaction();
|
||||
|
|
|
|||
|
|
@ -10,7 +10,7 @@
|
|||
target="_blank"
|
||||
{% endif %}
|
||||
{% endif %}
|
||||
class="{{ __SELF__.property('css_class') }}" data-class = "{{__SELF__.css_class}}"
|
||||
class="{{ css_class }}"
|
||||
>
|
||||
<img src="{{reklama.media|media_cdn}}" alt="{{reklama.title}}">
|
||||
</a>
|
||||
|
|
|
|||
Loading…
Reference in New Issue