mirror of
https://github.com/itflow-org/itflow
synced 2026-12-02 00:59:03 +00:00
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:
@@ -1,8 +1,10 @@
|
||||
<?php
|
||||
/*
|
||||
* Client Portal
|
||||
* A Help article - what it says, as written (its tables and colours too),
|
||||
* with a way to ask about it and the others in its category. Printable.
|
||||
* A Help article - 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()), a way to ask about it and the others in its
|
||||
* category. Printable.
|
||||
*
|
||||
* SCOPING: any contact who can sign in; the article must be one kbClientSql()
|
||||
* lets $session_client_id read - published, not archived, and shared with
|
||||
@@ -79,9 +81,8 @@ if ($category_id) {
|
||||
</div>
|
||||
|
||||
<?php if (trim(strip_tags($content, '<img><table>')) !== '') { ?>
|
||||
<article class="itflow-portal-panel itflow-portal-panel-body itflow-portal-document prettyContent mb-4">
|
||||
<?= $content ?>
|
||||
</article>
|
||||
<?= documentReadHtml($content) ?>
|
||||
<?php $portal_document_contents = true; ?>
|
||||
<?php } else { ?>
|
||||
<section class="itflow-portal-panel mb-4">
|
||||
<?= emptyStateHtml(['title' => 'This article is empty', 'text' => '', 'icon' => 'fa-book', 'filtered' => false]) ?>
|
||||
|
||||
Reference in New Issue
Block a user