+* change multiple-attachment to a field which tells it is used for a image gallery
* minimal theme
** https://watercss.kognise.dev/
* create a real fallback theme, which does not depend on any styling/css
--- /dev/null
+<h3><a href="index.php?p=collections&collection=<?php echo Summoner::ifset($TemplateData['loadedCollection'], 'id'); ?>"><?php echo Summoner::ifset($TemplateData['loadedCollection'], 'name'); ?></a></h3>
+<article>
+ <?php if($TemplateData['showEdit'] === true) { ?>
+ <p><a href="index.php?p=manageentry&collection=<?php echo Summoner::ifset($TemplateData['loadedCollection'], 'id'); ?>&id=<?php echo $TemplateData['entry']['id']; ?>">EDIT</a></p>
+ <?php
+ }
+
+ if(isset($TemplateData['entry']['fields'])) {
+ foreach($TemplateData['entry']['fields'] as $field) {
+
+ $_fieldViewSpecial = Summoner::themefile('entry/field-'.$field['type'].'-'.$field['identifier'].'.html', UI_THEME);
+ $_fieldView = Summoner::themefile('entry/field-'.$field['type'].'.html', UI_THEME);
+ if(file_exists($_fieldViewSpecial)) {
+ require $_fieldViewSpecial;
+ }
+ elseif(file_exists($_fieldView)) {
+ require $_fieldView;
+ }
+ else {
+ require $TemplateData['fieldViewDefault'];
+ }
+ }
+ }
+ ?>
+
+</article>
--- /dev/null
+<p data-field-name="date" data-field-id="<?php echo $field['identifier']; ?>">
+ <?php echo $field['displayname']; ?>:
+ <a href="index.php?p=collections&collection='.$TemplateData['loadedCollection']['id'].'&fid='.$field['identifier'].'&fv='.urlencode(Summoner::ifset($field, 'value')).'"><?php echo Summoner::ifset($field, 'value'); ?></a>
+</p>
--- /dev/null
+<p data-field-name="lookupmultiple" data-field-id="<?php echo $field['identifier']; ?>">
+ <?php echo $field['displayname']; ?>:
+ <?php
+ foreach($field['value'] as $_fv) {
+ echo '<a href="index.php?p=collections&collection='.$TemplateData['loadedCollection']['id'].'&fid='.$field['identifier'].'&fv='.urlencode($_fv).'">'.$_fv.'</a>, ';
+ }
+ ?>
+</p>
--- /dev/null
+<p data-field-name="number" data-field-id="<?php echo $field['identifier']; ?>">
+ <?php echo $field['displayname']; ?>:
+ <a href="index.php?p=collections&collection=<?php echo $TemplateData['loadedCollection']['id']; ?>&fid=<?php echo $field['identifier']; ?>&fv=<?php echo urlencode(Summoner::ifset($field, 'value')); ?>"><?php echo Summoner::ifset($field, 'value'); ?></a>
+</p>
--- /dev/null
+<p data-field-name="selection" data-field-id="<?php echo $field['identifier']; ?>">
+ <?php echo $field['displayname']; ?>:
+ <a href="index.php?p=collections&collection=<?php echo $TemplateData['loadedCollection']['id']; ?>&fid=<?php echo $field['identifier']; ?>&fv=<?php echo urlencode(Summoner::ifset($field, 'value')); ?>"><?php echo Summoner::ifset($field, 'value'); ?></a>
+</p>
--- /dev/null
+<h1 data-field-name="text-title" data-field-id="<?php echo $field['identifier']; ?>"><?php echo Summoner::ifset($field, 'value'); ?></h1>
--- /dev/null
+<p data-field-name="text" data-field-id="<?php echo $field['identifier']; ?>">
+ <?php echo $field['displayname']; ?>: <?php echo nl2br(Summoner::ifset($field, 'value')); ?>
+</p>
--- /dev/null
+<p data-field-name="text3-description" data-field-id="<?php echo $field['identifier']; ?>"><?php echo nl2br(Summoner::ifset($field, 'value')); ?></p>
--- /dev/null
+<p data-field-name="text3" data-field-id="<?php echo $field['identifier']; ?>">
+ <?php echo $field['displayname']; ?>: <?php echo nl2br(Summoner::ifset($field, 'value')); ?>
+</p>
--- /dev/null
+<p data-field-name="textarea-content" data-field-id="<?php echo $field['identifier']; ?>"><?php echo nl2br(Summoner::ifset($field, 'value')); ?></p>
--- /dev/null
+<p data-field-name="textarea" data-field-id="<?php echo $field['identifier']; ?>"><?php echo $field['displayname']; ?>: <?php echo nl2br(Summoner::ifset($field, 'value')); ?></p>
--- /dev/null
+<p>Missing template for: <?php echo $field['identifier']; ?></p>
--- /dev/null
+<div data-field-name="upload-coverimage">
+ <img src="<?php echo $TemplateData['storagePath'].'/'.Summoner::ifset($field, 'value'); ?>"
+ title="<?php echo Summoner::ifset($field, 'value'); ?>"
+ width="500px"
+ />
+</div>
--- /dev/null
+<p data-field-name="upload" data-field-id="<?php echo $field['identifier']; ?>"><?php echo $field['displayname']; ?>:
+ <a href="<?php echo $TemplateData['storagePath'].'/'.Summoner::ifset($field, 'value'); ?>" target="_blank"><?php echo Summoner::ifset($field, 'value'); ?></a>
+</p>
--- /dev/null
+<p data-field-name="upload_multiple-attachment" data-field-id="<?php echo $field['identifier']; ?>"><?php echo $field['displayname']; ?>:
+<ul>
+ <?php foreach ($field['value'] as $_uEntry) { ?>
+ <li><a href="<?php echo $TemplateData['storagePath'].'/'.$_uEntry; ?>" target="_blank"><?php echo $_uEntry; ?></a></li>
+ <?php } ?>
+</ul>
+</p>
--- /dev/null
+<p data-field-name="upload_multiple" data-field-id="<?php echo $field['identifier']; ?>"><?php echo $field['displayname']; ?>:
+ <ul>
+ <?php foreach ($field['value'] as $_uEntry) { ?>
+ <li><a href="<?php echo $TemplateData['storagePath'].'/'.$_uEntry; ?>" target="_blank"><?php echo $_uEntry; ?></a></li>
+ <?php } ?>
+ </ul>
+</p>
--- /dev/null
+<p data-field-name="year" data-field-id="<?php echo $field['identifier']; ?>">
+ <?php echo $field['displayname']; ?>:
+ <a href="index.php?p=collections&collection=<?php echo $TemplateData['loadedCollection']['id']; ?>&fid=<?php echo $field['identifier']; ?>&fv=<?php echo urlencode(Summoner::ifset($field, 'value')); ?>"><?php echo Summoner::ifset($field, 'value'); ?></a>
+</p>