Skip to content

Commit

Permalink
Merge pull request #70 from FriendsOfREDAXO/default-status
Browse files Browse the repository at this point in the history
Default-Status auf "Entwurf" + Platzhaltertext wenn keine Einträge gefunden wurden
  • Loading branch information
alxndr-w authored Jun 27, 2024
2 parents 8b307b1 + 5440c8a commit 4d08ed4
Show file tree
Hide file tree
Showing 8 changed files with 106 additions and 102 deletions.
3 changes: 1 addition & 2 deletions boot.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,21 +4,20 @@

use rex;
use rex_addon;
use rex_api_function;
use rex_be_controller;
use rex_config;
use rex_cronjob_manager;
use rex_csrf_token;
use rex_extension;
use rex_extension_point;
use rex_plugin;
use rex_api_function;
use rex_url;
use rex_yform_manager_dataset;
use rex_yform_manager_table;
use rex_yform_rest;
use rex_yform_rest_route;


if (rex_addon::get('cronjob')->isAvailable() && !rex::isSafeMode()) {
rex_cronjob_manager::registerType(rex_cronjob_neues_publish::class);
}
Expand Down
8 changes: 8 additions & 0 deletions fragments/neues/list.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,21 @@
<div class="container">
<div class="row row-cols-1 row-cols-md-2 g-3">
<?php foreach ($posts as $post) : ?>
<?php if($post) { ?>
<div class="col">
<?php
$fragment = new rex_fragment();
$fragment->setVar('post', $post);
echo $fragment->parse('neues/list-entry.php');
?>
</div>
<?php } else { ?>
<div class="placeholder">
<?php if(rex_config::get('neues', 'no_entries_placeholder')) { ?>
<p><?= rex_i18n::msg('no_entries_placeholder') ?></p>
<?php } ?>
</div>
<?php } ?>
<?php endforeach ?>
</div>
</div>
Expand Down
Loading

0 comments on commit 4d08ed4

Please sign in to comment.