mirror of
https://github.com/Oreolek/ifhub.club.git
synced 2024-06-27 20:15:02 +03:00
Merge branch 'master' of https://github.com/livestreet/livestreet
This commit is contained in:
commit
88098cd0d6
|
@ -1,6 +1,6 @@
|
||||||
Исходный код ifhub.ru
|
Исходный код ifhub.ru
|
||||||
|
|
||||||
На основе [LiveStreet CMS](http://livestreetcms.ru) 2.0.0.dev
|
На основе [LiveStreet CMS](http://livestreetcms.ru) 2.0.1.dev
|
||||||
|
|
||||||
### Лицензия
|
### Лицензия
|
||||||
|
|
||||||
|
@ -8,3 +8,8 @@ LiveStreet - open-source проект под лицензией [GPL-2.0](http:/
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
Readme
|
||||||
|
-------------
|
||||||
|
|
||||||
|
* [English README](https://github.com/livestreet/livestreet/blob/master/Readme.EN.txt)
|
||||||
|
* [Russian README](https://github.com/livestreet/livestreet/blob/master/Readme.RU.txt)
|
||||||
|
|
|
@ -21,7 +21,7 @@
|
||||||
* Ничего не изменяйте в этом файле!
|
* Ничего не изменяйте в этом файле!
|
||||||
* Все изменения нужно вносить в файл config/config.local.php
|
* Все изменения нужно вносить в файл config/config.local.php
|
||||||
*/
|
*/
|
||||||
define('LS_VERSION', '2.0.0');
|
define('LS_VERSION', '2.0.1');
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Основные настройки путей
|
* Основные настройки путей
|
||||||
|
|
|
@ -86,6 +86,21 @@ return array(
|
||||||
array('title' => '#text')
|
array('title' => '#text')
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
|
// Теги с обязательными параметрами
|
||||||
|
'cfgSetTagParamDefault' => array(
|
||||||
|
array(
|
||||||
|
'a',
|
||||||
|
'target',
|
||||||
|
'_blank',
|
||||||
|
true
|
||||||
|
),
|
||||||
|
array(
|
||||||
|
'a',
|
||||||
|
'rel',
|
||||||
|
'noreferrer noopener',
|
||||||
|
true
|
||||||
|
),
|
||||||
|
),
|
||||||
'cfgSetTagCallbackFull' => array(
|
'cfgSetTagCallbackFull' => array(
|
||||||
array(
|
array(
|
||||||
'ls',
|
'ls',
|
||||||
|
|
|
@ -42,7 +42,8 @@
|
||||||
filter: alpha(opacity=100);
|
filter: alpha(opacity=100);
|
||||||
}
|
}
|
||||||
|
|
||||||
.ls-comment.ls-comment--deleted { background: #efd5d5; }
|
.ls-comment--deleted .ls-comment-content { background: #efd5d5; }
|
||||||
|
.ls-comment--deleted .ls-comment-content:after { border-top-color: #efd5d5; }
|
||||||
.ls-user-role-not-admin .ls-comment.ls-comment--deleted {
|
.ls-user-role-not-admin .ls-comment.ls-comment--deleted {
|
||||||
padding: 10px 15px;
|
padding: 10px 15px;
|
||||||
min-height: 0;
|
min-height: 0;
|
||||||
|
|
|
@ -12,16 +12,17 @@
|
||||||
{component_define_params params=[ 'showRating', 'target', 'isLocked', 'useAbstain', 'mods', 'classes', 'attributes' ]}
|
{component_define_params params=[ 'showRating', 'target', 'isLocked', 'useAbstain', 'mods', 'classes', 'attributes' ]}
|
||||||
|
|
||||||
{* Параметры для тестирования *}
|
{* Параметры для тестирования *}
|
||||||
{component_define_params params=[ 'isVoted', 'targetId', 'rating', 'direction' ]}
|
{component_define_params params=[ 'targetId', 'rating']}
|
||||||
|
|
||||||
{* Установка дефолтных значений *}
|
{* Установка дефолтных значений *}
|
||||||
{$showRating = $showRating|default:true}
|
{$showRating = $showRating|default:true}
|
||||||
|
|
||||||
{* Рейтинг *}
|
{* Рейтинг *}
|
||||||
{$rating = $rating|default:$target->getRating()}
|
{$rating = $rating|default:$target->getRating()}
|
||||||
{$_direction = $direction|default:$target->getDirection()}
|
|
||||||
{$_id = $targetId|default:$target->getId()}
|
{$_id = $targetId|default:$target->getId()}
|
||||||
{$_isVoted = $isVoted|default:$target->getVote()}
|
{$_vote = $target->getVote()}
|
||||||
|
{$_direction = ($_vote) ? $_vote->getDirection() : 0}
|
||||||
|
|
||||||
|
|
||||||
{* Получаем модификаторы *}
|
{* Получаем модификаторы *}
|
||||||
{if $showRating}
|
{if $showRating}
|
||||||
|
@ -34,7 +35,7 @@
|
||||||
{/if}
|
{/if}
|
||||||
{/if}
|
{/if}
|
||||||
|
|
||||||
{if $_isVoted}
|
{if $_vote}
|
||||||
{$mods = "$mods voted"}
|
{$mods = "$mods voted"}
|
||||||
|
|
||||||
{if $_direction > 0}
|
{if $_direction > 0}
|
||||||
|
@ -76,15 +77,15 @@
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
{* Нравится *}
|
{* Нравится *}
|
||||||
<div class="{$component}-item {$component}-item-up js-vote-item" {if ! $_isVoted}title="{$aLang.$component.up}"{/if} data-vote-value="1"></div>
|
<div class="{$component}-item {$component}-item-up js-vote-item" {if ! $_vote}title="{$aLang.$component.up}"{/if} data-vote-value="1"></div>
|
||||||
|
|
||||||
{* Воздержаться *}
|
{* Воздержаться *}
|
||||||
{if $useAbstain}
|
{if $useAbstain}
|
||||||
<div class="{$component}-item {$component}-item-abstain js-vote-item" {if ! $_isVoted}title="{$aLang.$component.abstain}"{/if} data-vote-value="0"></div>
|
<div class="{$component}-item {$component}-item-abstain js-vote-item" {if ! $_vote}title="{$aLang.$component.abstain}"{/if} data-vote-value="0"></div>
|
||||||
{/if}
|
{/if}
|
||||||
|
|
||||||
{* Не нравится *}
|
{* Не нравится *}
|
||||||
<div class="{$component}-item {$component}-item-down js-vote-item" {if ! $_isVoted}title="{$aLang.$component.down}"{/if} data-vote-value="-1"></div>
|
<div class="{$component}-item {$component}-item-down js-vote-item" {if ! $_vote}title="{$aLang.$component.down}"{/if} data-vote-value="-1"></div>
|
||||||
{/block}
|
{/block}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
|
@ -1 +1 @@
|
||||||
Subproject commit fe79575fa28c116d7392c8028df0c1404f2b246d
|
Subproject commit 4c8a63b376ce5f3daaecc88584f6aa6ce589b080
|
Loading…
Reference in a new issue