$doi = '10254/' . $tconfig->get('doi_prefix') . $this->model->resource->id . '.' . $this->model->resource->doi_label; } } if ($doi) { $cite->doi = $doi; } $revision = isset($this->model->resource->revision) ? $this->model->resource->revision : ''; } if ($this->model->params->get('show_citation') == 2) { $citations = ''; } } else { $cite = null; } $citeinstruct = \Components\Resources\Helpers\Html::citation($this->option, $cite, $this->model->resource->id, $citations, $this->model->resource->type, $revision); $citeinstruct .= \Components\Resources\Helpers\Html::citationCOins($cite, $this->model); ?> <?php if ($this->model->params->get('show_citation') == 3) { ?> <h4><?php echo isset($citations) && ($citations != NULL || $citations != '') ? Lang::txt('PLG_RESOURCES_ABOUT_CITE_THIS') : ''; ?> </h4> <div class="resource-content"> <?php echo isset($citations) && ($citations != NULL || $citations != '') ? $citeinstruct : ''; ?> </div>