<?php } ?> </fieldset> <?php if ($this->block == 'license') { $task = 'apply'; // Get selections $selections = NULL; $selected = NULL; $objL = new \Components\Publications\Tables\License($this->database); $selected = $objL->getPubLicense($this->publication->get('version_id')); $selections = $objL->getBlockLicenses($manifest, $selected); if (!$selections) { $selections = $objL->getDefaultLicense(); } if (!$selections) { echo '<p class="error">' . Lang::txt('PLG_PROJECTS_PUBLICATIONS_SELECTOR_ERROR_NO_SELECTIONS') . '</p>'; } else { ?> <p class="requirement" id="req"><?php echo Lang::txt('PLG_PROJECTS_PUBLICATIONS_SELECTOR_REQ_' . strtoupper($this->block)); ?> </p> <div id="content-selector" class="content-selector"> <?php // Show selection $view = new \Hubzero\Plugin\View(array('folder' => 'projects', 'element' => 'publications', 'name' => 'selector', 'layout' => $this->block)); $view->option = $this->option; $view->project = $this->project;