예제 #1
0
?>
			<h5 class="element-title"><?php 
echo $this->manifest->label;
?>
</h5>
			    <?php 
if ($this->name == 'curator') {
    $this->pub->_curationModel->drawCurationNotice($curatorStatus, $props, 'curator', $elName);
}
?>
			<?php 
if ($value) {
    // Parse editor text
    if ($editor) {
        $model = new \Components\Publications\Models\Publication($this->pub);
        $value = $model->parse($aliasmap, $field, 'parsed');
    }
    ?>
				<div class="element-value"><?php 
    echo $value;
    ?>
</div>
			<?php 
} else {
    ?>
				<p class="noresults">No user input</p>
				<?php 
    if (!$this->pub->isPublished() && ($this->status->getError() || $required && !$complete)) {
        ?>
					<p class="witherror"><?php 
        echo $this->status->getError() ? $this->status->getError() : Lang::txt('Missing required input');
예제 #2
0
?>
" class="edit-element" id="<?php 
echo $elName;
?>
-edit"><?php 
echo Lang::txt('[edit]');
?>
</a></span>
			</h5>
			<?php 
if (!$coming && $value) {
    // Parse editor text
    $val = $value;
    if ($editor) {
        $model = new \Components\Publications\Models\Publication($this->pub);
        $val = $model->parse($aliasmap, $this->manifest->params->field, 'parsed');
    }
    ?>
				<div class="element-value"><?php 
    echo $val;
    ?>
</div>
			<?php 
}
?>
		</div>
	</div>
	<!-- Active editing -->
	<div class="element_editing<?php 
if (!$active) {
    echo ' hidden';