From 5f1460757a0d07ee238d0995c2fca47544fa968d Mon Sep 17 00:00:00 2001 From: Uwe Steinmann Date: Mon, 12 Jul 2021 19:44:25 +0200 Subject: [PATCH] add new method printAttribute(), just like in class.ViewDocument.php --- views/bootstrap/class.ViewFolder.php | 23 ++++++++++++++++------- 1 file changed, 16 insertions(+), 7 deletions(-) diff --git a/views/bootstrap/class.ViewFolder.php b/views/bootstrap/class.ViewFolder.php index 0a09b9095..6f8ed0722 100644 --- a/views/bootstrap/class.ViewFolder.php +++ b/views/bootstrap/class.ViewFolder.php @@ -98,6 +98,21 @@ class SeedDMS_View_ViewFolder extends SeedDMS_Theme_Style { } } /* }}} */ + /** + * Output a single attribute in the document info section + * + * @param object $attribute attribute + */ + protected function printAttribute($attribute) { /* {{{ */ + $attrdef = $attribute->getAttributeDefinition(); +?> + + getName()); ?>: + getAttributeValue($attribute); ?> + +params['user']; $node = $this->params['node']; @@ -307,13 +322,7 @@ $('body').on('click', '.order-btn', function(ev) { } elseif(is_string($arr)) { echo $arr; } else { - $attrdef = $attribute->getAttributeDefinition(); - ?> - - getName()); ?>: - getAttributeValue($attribute); ?> - -printAttribute($attribute); } } }