/** * Produce publication package * * @return boolean */ public function showPackageContents() { if (!$this->_pub) { return false; } // Get elements $prime = $this->getElements(1); $second = $this->getElements(2); $gallery = $this->getElements(3); $elements = array_merge($prime, $second, $gallery); // Do we have items to package? if (!$elements) { return '<p class="witherror">' . Lang::txt('COM_PUBLICATIONS_CURATION_PACKAGE_ERROR_NO_FILES') . '</p>'; } // Get attachment type model $attModel = new Attachments($this->_db); $contents = '<ul class="filelist">'; $contents .= $attModel->showPackagedItems($elements, $this->_pub); // Custom license to be included in LICENSE.txt if ($this->_pub->license_text) { $contents .= '<li>' . \Components\Projects\Models\File::drawIcon('txt') . ' LICENSE.txt</li>'; } $contents .= '<li>' . \Components\Projects\Models\File::drawIcon('txt') . ' README.txt</li>'; $contents .= '</ul>'; return $contents; }