| 812 | | // Creation date |
| 813 | | $_title = _("Creation date"); |
| 814 | | if ($_userIsAdmin) { |
| 815 | | $_data = DateTime::getSelectDateTimeUI(new DateTime($this->getCreationDate()), "node_" . $hashed_node_id . "_creation_date", DateTime::INTERFACE_DATETIME_FIELD, "node_creation_date_input"); |
| 816 | | } else { |
| 817 | | $_data = htmlspecialchars($this->getCreationDate(), ENT_QUOTES); |
| 818 | | $_data .= InterfaceElements::generateInputHidden("node_" . $hashed_node_id . "_creation_date", $this->getCreationDate()); |
| 819 | | } |
| 820 | | $_html_node_information[] = InterfaceElements::generateAdminSectionContainer("node_creation_date", $_title, $_data); |
| 821 | | |
| 822 | | // Name |
| | 812 | //Node content |
| | 813 | $_html_content = array(); |
| | 814 | $_title = _("Node content"); |
| | 815 | $_data = Content::getLinkedContentUI("node_" . $hashed_node_id . "_content", "node_has_content", "node_id", $this->id, "portal"); |
| | 816 | $html .= InterfaceElements::generateAdminSectionContainer("node_content", $_title, $_data); |
| | 817 | |
| | 818 | // Name |
| | 822 | |
| | 823 | // Creation date |
| | 824 | $_title = _("Creation date"); |
| | 825 | if ($_userIsAdmin) { |
| | 826 | $_data = DateTime::getSelectDateTimeUI(new DateTime($this->getCreationDate()), "node_" . $hashed_node_id . "_creation_date", DateTime::INTERFACE_DATETIME_FIELD, "node_creation_date_input"); |
| | 827 | } else { |
| | 828 | $_data = htmlspecialchars($this->getCreationDate(), ENT_QUOTES); |
| | 829 | $_data .= InterfaceElements::generateInputHidden("node_" . $hashed_node_id . "_creation_date", $this->getCreationDate()); |
| | 830 | } |
| | 831 | $_html_node_information[] = InterfaceElements::generateAdminSectionContainer("node_creation_date", $_title, $_data); |
| 986 | | /* |
| 987 | | * Node content |
| 988 | | */ |
| 989 | | $_html_content = array(); |
| 990 | | |
| 991 | | // Node content |
| 992 | | $_title = _("Node content"); |
| 993 | | $_data = Content::getLinkedContentUI("node_" . $this->id . "_content", "node_has_content", "node_id", $this->id, "portal"); |
| 994 | | $_html_content[] = InterfaceElements::generateAdminSectionContainer("node_content", $_title, $_data); |
| 995 | | |
| 996 | | // Build section |
| 997 | | $html .= InterfaceElements::generateAdminSectionContainer("node_content", _("Node content"), implode(null, $_html_content)); |
| 998 | | |