entry.html 1005 B

1234567891011121314151617181920212223242526
  1. <h3><a href="index.php?p=collections&collection=<?php echo $TemplateData['loadedCollection']['id'] ?? ''; ?>"><?php echo $TemplateData['loadedCollection']['name'] ?? ''; ?></a></h3>
  2. <article>
  3. <?php if($TemplateData['showEdit'] === true) { ?>
  4. <p><a href="index.php?p=manageentry&collection=<?php echo $TemplateData['loadedCollection']['id'] ?? ''; ?>&id=<?php echo $TemplateData['entry']['id'] ?? ''; ?>"><?php echo $I18n->t('global.edit'); ?></a></p>
  5. <?php
  6. }
  7. if(isset($TemplateData['entry']['fields'])) {
  8. foreach($TemplateData['entry']['fields'] as $field) {
  9. $_fieldViewSpecial = Summoner::themefile('entry/field-'.$field['type'].'-'.$field['identifier'].'.html', UI_THEME);
  10. $_fieldView = Summoner::themefile('entry/field-'.$field['type'].'.html', UI_THEME);
  11. if(file_exists($_fieldViewSpecial)) {
  12. require $_fieldViewSpecial;
  13. }
  14. elseif(file_exists($_fieldView)) {
  15. require $_fieldView;
  16. }
  17. else {
  18. require $TemplateData['fieldViewDefault'];
  19. }
  20. }
  21. }
  22. ?>
  23. </article>