Example #1
0
$modelAttach = new \Components\Publications\Models\Attachments($this->database);
// Get handler model
$modelHandler = new \Components\Publications\Models\Handlers($this->database);
// Is there handler choice?
$handlers = $this->manifest->params->typeParams->handlers;
// Is there handler assigned?
$handler = $this->manifest->params->typeParams->handler;
$useHandles = $handlers || $handler ? true : false;
if ($handler) {
    // Load handler
    $handler = $modelHandler->ini($handler);
}
$multiZip = isset($this->manifest->params->typeParams->multiZip) && $this->manifest->params->typeParams->multiZip == 0 ? false : true;
$complete = $curatorStatus->status == 1 && $required ? $curatorStatus->status : $complete;
$updated = $curatorStatus->updated && ($curatorStatus->status == 3 && !$complete || $curatorStatus->status == 1 || $curatorStatus->status == 0) ? true : false;
$handlerOptions = count($this->attachments) > 0 && $useHandles ? $modelHandler->showHandlers($this->pub, $this->elementId, $handlers, $handler, $this->attachments, $props) : NULL;
$elementUrl = Route::url($this->pub->link('editversion') . '&section=' . $this->master->block . '&step=' . $this->master->blockId . '&move=continue' . '&el=' . $this->elementId . '#' . $elName);
?>

<div id="<?php 
echo $elName;
?>
" class="blockelement <?php 
echo $required ? ' el-required' : ' el-optional';
echo $complete == 1 ? ' el-complete' : ' el-incomplete';
?>
 <?php 
if ($coming) {
    echo ' el-coming';
}
?>