Documents and articles outside the agent app read like the document page: the portal document and Help article pages, shared links and the public help center lay out what they say as on the agent document page, with a long one's Contents beside it in view as you scroll and marking the section being read, or above it on a phone; pictures open full size when clicked; a section picked from Contents stays marked, on the agent page too; 26.12.3 changelog entries

This commit is contained in:
johnnyq
2026-11-29 13:28:40 -05:00
parent fcdb014786
commit f777bb212c
10 changed files with 189 additions and 79 deletions

View File

@@ -1,9 +1,10 @@
<?php
/*
* Client Portal
* A document - what it says, as written (its tables and colours too), and
* the files that came with it: a PDF or picture shown on the page, any file
* to open or download. Printable.
* A document - what it says, as written (its tables and colours too) and laid
* out as on the agent's document page, with the Contents of a long one beside
* it (documentReadHtml()), and the files that came with it: a PDF or picture
* shown on the page, any file to open or download. Printable.
*
* SCOPING: primary and technical contacts (portalItGate()); the document must
* be the session's client's, visible to the client and not archived, and its
@@ -106,9 +107,8 @@ foreach ($files as $file) {
<?php } ?>
<?php if (!$stub && trim(strip_tags($content, '<img><table>')) !== '') { ?>
<article class="itflow-portal-panel itflow-portal-panel-body itflow-portal-document prettyContent">
<?= $content ?>
</article>
<?= documentReadHtml($content) ?>
<?php $portal_document_contents = true; ?>
<?php } elseif (!$files) { ?>
<section class="itflow-portal-panel">
<?= emptyStateHtml(['title' => 'This document is empty', 'text' => '', 'icon' => 'fa-file-alt', 'filtered' => false]) ?>