server before new theme

This commit is contained in:
root 2021-05-10 06:43:50 +00:00
parent b924518a69
commit cb22cc8afb
5 changed files with 39 additions and 24 deletions

View File

@ -11,7 +11,8 @@ use Tps\Reklama\Models\Statistika;
class Advertisement extends ComponentBase
{
public $group, $css_class;
public $random, $group, $css_class;
public function componentDetails()
{
return [
@ -68,6 +69,7 @@ class Advertisement extends ComponentBase
];
}
public function onDisplay(){
$random = input('random');
$this->page['group'] = $group = Group::where('code',$this->property('code'))

View File

@ -1,4 +1,3 @@
<div id="{{__SELF__}}" class="{{__SELF__.property('css_class')}}"></div>
{% put scripts %}
<script>

View File

@ -442,4 +442,5 @@
'Backend\\Widgets\\Table\\ClientMemoryDataSource' => 'modules/backend/widgets/table/ClientMemoryDataSource.php',
'Indikator\\DevTools\\FormWidgets\\Help' => 'plugins/indikator/devtools/formwidgets/Help.php',
'Backend\\Traits\\SearchableWidget' => 'modules/backend/traits/SearchableWidget.php',
'Backend\\Widgets\\Table\\ServerEventDataSource' => 'modules/backend/widgets/table/ServerEventDataSource.php',
);

View File

@ -52,7 +52,7 @@ items:
cssClass: ''
isExternal: '0'
-
title: 'New menu item'
title: Фото
nesting: 0
type: blog-category
code: ''
@ -67,6 +67,22 @@ items:
isHidden: '0'
cssClass: ''
isExternal: '0'
-
title: Видео
nesting: 0
type: blog-category
code: ''
reference: '7'
cmsPage: category
replace: 0
viewBag:
locale:
en:
title: Video
url: ''
isHidden: '0'
cssClass: ''
isExternal: '0'
-
title: 'Static Pages(About and Contact)'
nesting: null

View File

@ -18,44 +18,44 @@ code = "media"
type = "carousel"
random = 0
[adverts adv_bank]
code = "bank"
type = "slider"
random = 0
[adverts samsung]
code = "samsung"
type = "single"
random = 0
[adverts adv_bottom]
[adverts adv_center_1]
code = "bank"
type = "slider"
random = 0
[adverts adv_center_2]
code = "bottom"
type = "slider"
random = 0
[adverts adv_bottom_2]
[adverts adv_center_3]
code = "cnpc"
type = "slider"
random = 0
[adverts adv_bottom_3]
[adverts adv_center_4]
code = "china-daily"
type = "single"
type = "slider"
random = 0
[adverts right_top]
code = "right-top"
type = "single"
type = "slider"
random = 0
[adverts right_middle]
code = "right-middle"
type = "single"
type = "slider"
random = 0
[adverts right_bottom]
code = "right-bottom"
type = "single"
type = "slider"
random = 0
==
{% partial 'slider' %}
@ -82,7 +82,7 @@ random = 0
<div class="main__inner">
<div class="main__content">
<div class="main__banner">
{% component 'adv_bank' %}
{% component 'adv_center_1' %}
</div>
<div class="main__body">
<div class="main__body-row">
@ -91,7 +91,7 @@ random = 0
</div>
</div>
<div class="main__banner">
{% component 'adv_bottom' %}
{% component 'adv_center_2' %}
</div>
<div class="main__body">
<div class="main__body-row">
@ -100,7 +100,7 @@ random = 0
</div>
</div>
<div class="main__banner">
{% component 'adv_bottom_2' %}
{% component 'adv_center_3' %}
</div>
<div class="main__body">
<div class="main__body-row">
@ -109,17 +109,14 @@ random = 0
</div>
</div>
<div class="main__banner">
{% component 'adv_bottom_3' %}
{% component 'adv_center_4' %}
</div>
{% partial 'index/partner_news'%}
</div>
<div class="main__sidebar">
<div class="main__sidebar-title">
ИНТЕРЕСНЫЕ ССЫЛКИ
</div>
{% component 'right_top' css_class = 'primary progressive replace' %}
{% component 'right_top' %}
{% component 'right_middle' css_class = 'primary progressive replace' %}
{% component 'right_bottom' css_class = 'primary progressive replace' %}
{% component 'right_bottom' %}
{% partial 'tags' %}
{% partial 'calendar' %}
</div>