mirror of
https://github.com/Oreolek/ifhub.club.git
synced 2024-06-26 03:30:48 +03:00
commit
96b1bc2a2f
|
@ -11,8 +11,13 @@
|
||||||
|
|
||||||
{component 'activity' template='recent-item'
|
{component 'activity' template='recent-item'
|
||||||
user = $comment->getUser()
|
user = $comment->getUser()
|
||||||
|
comment = $comment
|
||||||
topic = $topic
|
topic = $topic
|
||||||
date = $comment->getDate()}
|
date = $comment->getDate()
|
||||||
|
classes = 'js-title-comment'
|
||||||
|
attributes = [
|
||||||
|
title => {$comment->getText()|strip_tags|trim|truncate:100:'...'|escape}
|
||||||
|
]}
|
||||||
{foreachelse}
|
{foreachelse}
|
||||||
{component 'blankslate' text={lang 'common.empty'} mods='no-background'}
|
{component 'blankslate' text={lang 'common.empty'} mods='no-background'}
|
||||||
{/foreach}
|
{/foreach}
|
||||||
|
|
|
@ -23,4 +23,5 @@
|
||||||
image=[
|
image=[
|
||||||
'path' => $user->getProfileAvatarPath(48),
|
'path' => $user->getProfileAvatarPath(48),
|
||||||
'url' => $user->getUserWebPath()
|
'url' => $user->getUserWebPath()
|
||||||
]}
|
]
|
||||||
|
params=$params}
|
|
@ -10,7 +10,11 @@
|
||||||
{component 'activity' template='recent-item'
|
{component 'activity' template='recent-item'
|
||||||
user = $topic->getUser()
|
user = $topic->getUser()
|
||||||
topic = $topic
|
topic = $topic
|
||||||
date = $topic->getDatePublish()}
|
date = $topic->getDatePublish()
|
||||||
|
classes = 'js-title-topic'
|
||||||
|
attributes = [
|
||||||
|
title => {$topic->getText()|strip_tags|trim|truncate:150:'...'|escape}
|
||||||
|
]}
|
||||||
{foreachelse}
|
{foreachelse}
|
||||||
{component 'blankslate' text={lang 'common.empty'} mods='no-background'}
|
{component 'blankslate' text={lang 'common.empty'} mods='no-background'}
|
||||||
{/foreach}
|
{/foreach}
|
||||||
|
|
|
@ -155,7 +155,7 @@ jQuery(document).ready(function($){
|
||||||
$('.js-popover-default').lsTooltip({
|
$('.js-popover-default').lsTooltip({
|
||||||
useAttrTitle: false,
|
useAttrTitle: false,
|
||||||
trigger: 'click',
|
trigger: 'click',
|
||||||
classes: 'tooltip-light'
|
classes: 'ls-tooltip-light'
|
||||||
});
|
});
|
||||||
|
|
||||||
if (ls.registry.get('block_stream_show_tip')) {
|
if (ls.registry.get('block_stream_show_tip')) {
|
||||||
|
@ -163,7 +163,7 @@ jQuery(document).ready(function($){
|
||||||
$(this).lsTooltip({
|
$(this).lsTooltip({
|
||||||
position: {
|
position: {
|
||||||
my: "right center",
|
my: "right center",
|
||||||
at: "left left"
|
at: "left center"
|
||||||
},
|
},
|
||||||
show: {
|
show: {
|
||||||
delay: 1500
|
delay: 1500
|
||||||
|
|
|
@ -141,15 +141,15 @@ jQuery(document).ready(function($){
|
||||||
$('.js-popover-default').lsTooltip({
|
$('.js-popover-default').lsTooltip({
|
||||||
useAttrTitle: false,
|
useAttrTitle: false,
|
||||||
trigger: 'click',
|
trigger: 'click',
|
||||||
classes: 'tooltip-light'
|
classes: 'ls-tooltip-light'
|
||||||
});
|
});
|
||||||
|
|
||||||
if (ls.registry.get('block_stream_show_tip')) {
|
if (ls.registry.get('block_stream_show_tip')) {
|
||||||
$('.js-title-comment, .js-title-topic').livequery(function () {
|
$('.js-title-comment, .js-title-topic').livequery(function () {
|
||||||
$(this).lsTooltip({
|
$(this).lsTooltip({
|
||||||
position: {
|
position: {
|
||||||
my: "right center",
|
my: "right-15 center",
|
||||||
at: "left left"
|
at: "left center"
|
||||||
},
|
},
|
||||||
show: {
|
show: {
|
||||||
delay: 1500
|
delay: 1500
|
||||||
|
|
|
@ -11,8 +11,13 @@
|
||||||
|
|
||||||
{component 'activity' template='recent-item'
|
{component 'activity' template='recent-item'
|
||||||
user = $comment->getUser()
|
user = $comment->getUser()
|
||||||
|
comment = $comment
|
||||||
topic = $topic
|
topic = $topic
|
||||||
date = $comment->getDate()}
|
date = $comment->getDate()
|
||||||
|
classes = 'js-title-comment'
|
||||||
|
attributes = [
|
||||||
|
title => {$comment->getText()|strip_tags|trim|truncate:100:'...'|escape}
|
||||||
|
]}
|
||||||
{foreachelse}
|
{foreachelse}
|
||||||
{component 'blankslate' text={lang 'common.empty'} mods='no-background'}
|
{component 'blankslate' text={lang 'common.empty'} mods='no-background'}
|
||||||
{/foreach}
|
{/foreach}
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
{component_define_params params=[ 'user', 'topic', 'date' ]}
|
{component_define_params params=[ 'user', 'topic', 'date', 'classes', 'attributes' ]}
|
||||||
|
|
||||||
<div class="ls-activity-block-recent-item">
|
<div class="ls-activity-block-recent-item {$classes}" {cattr list=$attributes}>
|
||||||
<a href="{$user->getUserWebPath()}" class="ls-activity-block-recent-user">{$user->getDisplayName()}</a>
|
<a href="{$user->getUserWebPath()}" class="ls-activity-block-recent-user">{$user->getDisplayName()}</a>
|
||||||
|
|
||||||
<time datetime="{date_format date=$date format='c'}" class="ls-activity-block-recent-date">
|
<time datetime="{date_format date=$date format='c'}" class="ls-activity-block-recent-date">
|
||||||
|
|
|
@ -10,7 +10,11 @@
|
||||||
{component 'activity' template='recent-item'
|
{component 'activity' template='recent-item'
|
||||||
user = $topic->getUser()
|
user = $topic->getUser()
|
||||||
topic = $topic
|
topic = $topic
|
||||||
date = $topic->getDatePublish()}
|
date = $topic->getDatePublish()
|
||||||
|
classes = 'js-title-topic'
|
||||||
|
attributes = [
|
||||||
|
title => {$topic->getText()|strip_tags|trim|truncate:150:'...'|escape}
|
||||||
|
]}
|
||||||
{foreachelse}
|
{foreachelse}
|
||||||
{component 'blankslate' text={lang 'common.empty'} mods='no-background'}
|
{component 'blankslate' text={lang 'common.empty'} mods='no-background'}
|
||||||
{/foreach}
|
{/foreach}
|
||||||
|
|
Loading…
Reference in a new issue