Version 5.0.0 beta 6
This commit is contained in:
1 parent
57d9db6ce2
commit
fa2a720105
115 files changed
+1823
-1147
No files matched your search
@@ -816,36 +816,36 @@ data-view-tracking-data="{expression="base64_encode(json_encode( $comment->getVi
|
||||
</article>]]></template>
|
||||
<template template_key="database_display_comments" template_title="comments" template_desc="" template_location="database" template_group="display" template_params="$record" template_app="" template_type="template"><![CDATA[<div data-controller='core.front.core.commentFeed, core.front.core.ignoredComments' {{if settings.auto_polling_enabled}}data-autoPoll{{endif}} data-commentsType='comments' data-baseURL='{$record->url()}' {{if $record->isLastPage()}}data-lastPage{{endif}} data-feedID='{$record->feedId}' id='comments'>
|
||||
|
||||
{template="featuredComments" group="global" app="core" params="$record->featuredComments(), $record->url()->setQueryString('tab', 'comments')->setQueryString('recommended', 'comments')"}
|
||||
|
||||
{{if $record->commentPageCount() > 1}}
|
||||
<div class='ipsButtonBar'>
|
||||
{template="featuredComments" group="global" app="core" params="$record->featuredComments(), $record->url()->setQueryString('tab', 'comments')->setQueryString('recommended', 'comments'), 'recommended_replies', '__defart_comment', false"}
|
||||
|
||||
<div class='ipsButtonBar ipsButtonBar--top'>
|
||||
{{if $record->commentPageCount() > 1}}
|
||||
<div class='ipsButtonBar__pagination'>{$record->commentPagination( array('tab') )|raw}</div>
|
||||
<div class='ipsButtonBar__end'>{template="commentMultimodHeader" app="core" group="global" params="$record, '#comments'"}</div>
|
||||
</div>
|
||||
{{endif}}
|
||||
{{endif}}
|
||||
<div class='ipsButtonBar__end'>{template="commentMultimodHeader" app="core" group="global" params="$record, '#comments'"}</div>
|
||||
</div>
|
||||
|
||||
<div data-role='commentFeed' data-controller='core.front.core.moderation'>
|
||||
<form action="{$record->url()->csrf()->setQueryString( 'do', 'multimodComment' )->setPage('page',\IPS\Request::i()->page)}" method="post" data-ipsPageAction data-role='moderationTools'>
|
||||
{{if \count( $record->comments( NULL, NULL, 'date', 'asc', NULL, NULL, NULL, NULL, FALSE, isset( \IPS\Request::i()->showDeleted ) ) )}}
|
||||
<form action="{$record->url()->csrf()->setQueryString( 'do', 'multimodComment' )->setPage('page',\IPS\Request::i()->page)}" method="post" data-ipsPageAction data-role='moderationTools'>
|
||||
{{if \count( $record->comments( NULL, NULL, 'date', 'asc', NULL, NULL, NULL, NULL, FALSE, isset( \IPS\Request::i()->showDeleted ) ) )}}
|
||||
|
||||
{{$commentCount=0; $timeLastRead = $record->timeLastRead(); $lined = FALSE;}}
|
||||
{{foreach $record->comments( NULL, NULL, 'date', 'asc', NULL, NULL, NULL, NULL, FALSE, isset( \IPS\Request::i()->showDeleted ) ) as $comment}}
|
||||
{{if !$lined and $timeLastRead and $timeLastRead->getTimestamp() < $comment->mapped('date')}}
|
||||
{{if $lined = TRUE and $commentCount}}
|
||||
<hr class="ipsUnreadBar">
|
||||
{{$commentCount=0; $timeLastRead = $record->timeLastRead(); $lined = FALSE;}}
|
||||
{{foreach $record->comments( NULL, NULL, 'date', 'asc', NULL, NULL, NULL, NULL, FALSE, isset( \IPS\Request::i()->showDeleted ) ) as $comment}}
|
||||
{{if !$lined and $timeLastRead and $timeLastRead->getTimestamp() < $comment->mapped('date')}}
|
||||
{{if $lined = TRUE and $commentCount}}
|
||||
<hr class="ipsUnreadBar">
|
||||
{{endif}}
|
||||
{{endif}}
|
||||
{{endif}}
|
||||
{{$commentCount++;}}
|
||||
{$comment->html()|raw}
|
||||
{{endforeach}}
|
||||
{{$commentCount++;}}
|
||||
{$comment->html()|raw}
|
||||
{{endforeach}}
|
||||
|
||||
|
||||
{{else}}
|
||||
<p class='ipsEmptyMessage' data-role='noComments'>{lang="no_comments"}</p>
|
||||
{{endif}}
|
||||
{template="commentMultimod" app="core" group="global" params="$record"}
|
||||
</form>
|
||||
{{else}}
|
||||
<p class='ipsEmptyMessage' data-role='noComments'>{lang="no_comments"}</p>
|
||||
{{endif}}
|
||||
{template="commentMultimod" app="core" group="global" params="$record"}
|
||||
</form>
|
||||
</div>
|
||||
{{if $record->commentPageCount() > 1}}
|
||||
<div class='ipsButtonBar ipsButtonBar--bottom'>
|
||||
@@ -880,7 +880,7 @@ data-view-tracking-data="{expression="base64_encode(json_encode( $comment->getVi
|
||||
<p>{$line|raw}</p>
|
||||
{{endforeach}}]]></template>
|
||||
<template template_key="database_display_record" template_title="record" template_desc="" template_location="database" template_group="display" template_params="$record, $commentsAndReviews, $updateForm=NULL, $nextUnread=NULL" template_app="" template_type="template"><![CDATA[{template="assignmentHeader" app="core" group="global" params="$record"}
|
||||
<div class="ipsBox ipsPull">
|
||||
<section class="ipsBox ipsBox--record ipsPull">
|
||||
<header class="ipsPageHeader ipsPageHeader--database-record">
|
||||
{{if $record->showRecordImage()}}
|
||||
{$record->coverPhoto()|raw}
|
||||
@@ -1000,9 +1000,9 @@ data-view-tracking-data="{expression="base64_encode(json_encode( $comment->getVi
|
||||
{{endif}}
|
||||
</div>
|
||||
</article>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
<div class='ipsBox i-padding_2 ipsPull ipsResponsive_showPhone'>
|
||||
<section class='ipsBox ipsBox--pageActions i-padding_2 ipsPull ipsResponsive_showPhone'>
|
||||
<div class='ipsPageActions'>
|
||||
{{if !$record->container()->disable_sharelinks}}
|
||||
{template="shareButton" app="core" group="sharelinks" params="$record"}
|
||||
@@ -1010,12 +1010,11 @@ data-view-tracking-data="{expression="base64_encode(json_encode( $comment->getVi
|
||||
{{if \IPS\Application::appIsEnabled('cloud')}}
|
||||
{template="spam" app="cloud" group="spam" params="$record"}
|
||||
{{endif}}
|
||||
|
||||
{template="follow" app="core" group="global" params="'cms', 'records'.$record::$customDatabaseId, $record->primary_id_field, $record->followersCount()"}
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
<div class='ipsPager'>
|
||||
<nav class='ipsPager'>
|
||||
<div class="ipsPager_prev">
|
||||
{{if $record::database()->use_categories}}
|
||||
<a href="{$record->container()->url()}" title="{lang="cms_back_to_category_with_title" sprintf="$record->container()->_title"}" rel="up">
|
||||
@@ -1035,17 +1034,17 @@ data-view-tracking-data="{expression="base64_encode(json_encode( $comment->getVi
|
||||
</a>
|
||||
</div>
|
||||
{{endif}}
|
||||
</div>
|
||||
</nav>
|
||||
|
||||
{{if $commentsAndReviews}}
|
||||
<h2 class='ipsHide'>{lang="user_feedback"}</h2>
|
||||
<div class='ipsBox ipsPull' id="replies">
|
||||
<div class='ipsBox ipsBox--commentsAndReviews ipsPull' id="replies">
|
||||
{$commentsAndReviews|raw}
|
||||
</div>
|
||||
{{endif}}
|
||||
|
||||
{{if $updateForm}}
|
||||
<div class='ipsBox ipsPull'>
|
||||
<div class='ipsBox ipsBox--updateForm ipsPull'>
|
||||
<h2 class='ipsBox__header'>{lang="cms_front_update_fields" sprintf="$record::database()->recordWord( 1 )"}</h2>
|
||||
{$updateForm|raw}
|
||||
</div>
|
||||
@@ -1270,11 +1269,13 @@ data-view-tracking-data="{expression="base64_encode(json_encode( $review->getVie
|
||||
{{endif}}]]></template>
|
||||
<template template_key="database_display_reviews" template_title="reviews" template_desc="" template_location="database" template_group="display" template_params="$record" template_app="" template_type="template"><![CDATA[<div data-controller='core.front.core.commentFeed' {{if settings.auto_polling_enabled}}data-autoPoll{{endif}} data-commentsType='reviews' data-baseURL='{$record->url()}' {{if $record->isLastPage('reviews')}}data-lastPage{{endif}} data-feedID='{$record->reviewFeedId}' id='reviews'>
|
||||
{{if $record->reviewForm()}}
|
||||
{{if $record->locked()}}
|
||||
<strong class='i-color_warning'><i class='fa-solid fa-circle-info'></i> {lang="item_locked_can_review"}</strong>
|
||||
{{endif}}
|
||||
<div id='elRecordReviewForm'>
|
||||
{$record->reviewForm()|raw}
|
||||
<div class="ipsComposeAreaWrapper">
|
||||
{{if $record->locked()}}
|
||||
<strong class='i-color_warning'><i class='fa-solid fa-circle-info'></i> {lang="item_locked_can_review"}</strong>
|
||||
{{endif}}
|
||||
<div id='elRecordReviewForm'>
|
||||
{$record->reviewForm()|raw}
|
||||
</div>
|
||||
</div>
|
||||
{{else}}
|
||||
{{if $record->hasReviewed()}}
|
||||
|
||||
Reference in new issue
Block a user