1
0
Fork 0
mirror of https://github.com/Oreolek/ifhub.club.git synced 2024-06-16 14:50:48 +03:00

Шаблон Synio

This commit is contained in:
Denis Shakhov 2016-09-29 15:58:46 +07:00
parent b1544b1aff
commit fecd7d2b43
23 changed files with 193 additions and 30 deletions

View file

@ -4,11 +4,9 @@
*}
{if $oUserCurrent && $oUserCurrent->isAdministrator()}
{component 'toolbar' template='item'
buttons = [[
url => {router 'admin'},
attributes => [ 'title' => {lang 'admin.title'} ],
icon => 'cog'
]]
mods = 'admin'}
{component 'toolbar.item'
icon='cog'
url={router 'admin'}
attributes=[ 'title' => {lang 'admin.title'} ]
mods='admin'}
{/if}

View file

@ -3,18 +3,14 @@
* Кнопка прокручивания к следующему/предыдущему топику
*}
{component 'toolbar' template='item'
classes = 'js-toolbar-topics'
mods = 'topic'
buttons = [
[
classes => 'toolbar-topic-prev js-toolbar-topics-prev',
attributes => [ 'title' => {lang 'toolbar.topic_nav.prev'} ],
icon => 'arrow-up'
],
[
classes => 'toolbar-topic-next js-toolbar-topics-next',
attributes => [ 'title' => {lang 'toolbar.topic_nav.next'} ],
icon => 'arrow-down'
]
]}
<div class="js-toolbar-topics">
{component 'toolbar.item'
icon='arrow-up'
classes='js-toolbar-topics-prev'
attributes=[ 'title' => {lang 'toolbar.topic_nav.prev'} ]}
{component 'toolbar.item'
icon='arrow-down'
classes='js-toolbar-topics-next'
attributes=[ 'title' => {lang 'toolbar.topic_nav.next'} ]}
</div>

View file

@ -3,10 +3,8 @@
* Кнопка прокрутки страницы вверх
*}
{component 'toolbar' template='item'
classes='ls-toolbar-item--scrollup js-toolbar-scrollup'
attributes=[ 'style' => 'display: none' ]
buttons=[[
'icon' => 'chevron-up',
'attributes' => [ 'title' => {lang 'toolbar.scrollup.title'}, 'id' => 'toolbar_scrollup' ]
]]}
{component 'toolbar.item'
icon='chevron-up'
classes='js-toolbar-scrollup'
mods='scrollup'
attributes=[ 'title' => {lang 'toolbar.scrollup.title'} ]}

View file

@ -0,0 +1,46 @@
/**
* Админка
*
* @license GNU General Public License, version 2
* @copyright 2013 OOO "ЛС-СОФТ" {@link http://livestreetcms.com}
* @author Denis Shakhov <denis.shakhov@gmail.com>
*/
/**
* Управление плагинами
*
* @template plugins.tpl
*/
.admin-plugins h3 {
font-weight: bold;
font-size: 17px;
line-height: 20px;
margin-bottom: 7px;
}
.admin-plugins p {
margin-bottom: 15px;
}
.admin-plugins td {
vertical-align: top;
}
.admin-plugins-actions li {
margin-bottom: 5px;
text-align: right;
}
.admin-plugins-actions li:last-child {
margin-bottom: 0;
}
.ls-toolbar-item--admin .ls-toolbar-icon {
display: block;
width: 19px;
height: 18px;
background: url(../images/cog.png) no-repeat;
transition: background .2s;
}
.ls-toolbar-item--admin .ls-toolbar-icon:hover {
background-image: url(../images/cog-hover.png);
}
.ls-toolbar-item--admin .ls-toolbar-icon:active {
background-image: url(../images/cog-active.png);
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.4 KiB

View file

@ -0,0 +1,12 @@
{**
* Тулбар
* Кнопка перехода в админку
*}
{if $oUserCurrent && $oUserCurrent->isAdministrator()}
{component 'toolbar.item'
html='<i class="ls-toolbar-icon"></i>'
url={router 'admin'}
attributes=[ 'title' => {lang 'admin.title'} ]
mods='admin'}
{/if}

View file

@ -0,0 +1,36 @@
/**
* Кнопка навигации по топикам
*/
.ls-toolbar-item--topic a.ls-toolbar-topic-prev {
border-bottom: 1px solid #eee;
}
.ls-toolbar-item--topic i {
display: block;
width: 19px;
height: 32px;
transition: background .2s;
background-repeat: no-repeat;
cursor: pointer;
}
.ls-toolbar-item--topic .ls-toolbar-icon-prev {
background-image: url(../images/prev.png);
}
.ls-toolbar-item--topic .ls-toolbar-icon-prev:hover {
background-image: url(../images/prev-hover.png);
}
.ls-toolbar-item--topic .ls-toolbar-icon-prev:active {
background-image: url(../images/prev-active.png);
}
.ls-toolbar-item--topic .ls-toolbar-icon-next {
background-image: url(../images/next.png);
}
.ls-toolbar-item--topic .ls-toolbar-icon-next:hover {
background-image: url(../images/next-hover.png);
}
.ls-toolbar-item--topic .ls-toolbar-icon-next:active {
background-image: url(../images/next-active.png);
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.3 KiB

View file

@ -0,0 +1,14 @@
{**
* Тулбар
* Кнопка прокручивания к следующему/предыдущему топику
*}
{capture toolbar_scroll_nav}
<i class="ls-toolbar-icon-prev js-toolbar-topics-prev" title="{lang 'toolbar.topic_nav.prev'}"></i>
<i class="ls-toolbar-icon-next js-toolbar-topics-next" title="{lang 'toolbar.topic_nav.next'}"></i>
{/capture}
{component 'toolbar.item'
html=$smarty.capture.toolbar_scroll_nav
classes='js-toolbar-topics'
mods='topic'}

View file

@ -0,0 +1,29 @@
/**
* Кнопка прокрутки вверх
*/
.ls-toolbar-item.ls-toolbar-item--scrollup {
display: none;
padding: 8px;
width: 25px;
}
.ls-toolbar-item--scrollup.active .ls-toolbar-icon {
-webkit-transform: rotate(180deg);
transform: rotate(180deg);
}
.ls-toolbar-item--scrollup .ls-toolbar-icon {
display: block;
width: 25px;
height: 25px;
background: url(../images/scroll.png) no-repeat;
transition: background .2s;
cursor: pointer;
}
.ls-toolbar-item--scrollup .ls-toolbar-icon:hover {
background-image: url(../images/scroll-hover.png);
}
.ls-toolbar-item--scrollup .ls-toolbar-icon:active {
background-image: url(../images/scroll-active.png);
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.3 KiB

View file

@ -0,0 +1,9 @@
{**
* Тулбар
* Кнопка прокрутки страницы вверх
*}
{component 'toolbar.item'
html='<i class="ls-toolbar-icon"></i>'
classes='js-toolbar-scrollup'
mods='scrollup'}

View file

@ -0,0 +1,25 @@
/**
* Toolbar
*
* @license GNU General Public License, version 2
* @copyright 2013 OOO "ЛС-СОФТ" {@link http://livestreetcms.com}
* @author Denis Shakhov <denis.shakhov@gmail.com>
*/
.ls-toolbar {
position: fixed;
z-index: 100;
display: inline-block;
}
.ls-toolbar-item {
display: block;
background: #fff;
color: #222;
padding: 11px;
width: 19px;
font-size: 19px;
text-align: center;
box-shadow: 0 1px 5px rgba(0,0,0,.07);
margin-bottom: 10px;
border-radius: 10px;
}

@ -1 +1 @@
Subproject commit 8a4d3efa29f006390c9d068d3590e4e9c26a98d2
Subproject commit 188e358959c3afba177f29ccd670d3624b6e3bde