File tree Expand file tree Collapse file tree 7 files changed +6
-9
lines changed Expand file tree Collapse file tree 7 files changed +6
-9
lines changed Original file line number Diff line number Diff line change 27
27
<?php if (null !== $ post ->getAuthor ()) : ?>
28
28
<?php if ('' !== $ post ->getAuthor ()->getName ()) : ?>
29
29
von <span><?= htmlspecialchars ($ post ->getAuthor ()->getName ()) ?> </span>
30
- <?php elseif (null !== $ post ->getAuthor ()->getNickname ()): ?>
30
+ <?php elseif (null !== $ post ->getAuthor ()->getNickname ()): ?>
31
31
von <span><?= htmlspecialchars ($ post ->getAuthor ()->getNickname ()) ?> </span>
32
32
<?php endif ?>
33
33
<?php endif ?>
Original file line number Diff line number Diff line change 14
14
<!-- Entry list -->
15
15
<div class="container">
16
16
<div class="row row-cols-1 row-cols-md-2 g-3">
17
- <?php if (0 < count ($ posts )) { ?>
17
+ <?php if (0 < count ($ posts )) { ?>
18
18
<?php foreach ($ posts as $ post ) : ?>
19
19
<div class="col">
20
20
<?php
26
26
<?php endforeach ?>
27
27
<?php } else { ?>
28
28
<div class="placeholder">
29
- <?php if (null !== rex_config::get ('neues ' , 'no_entries_placeholder ' )) { ?>
29
+ <?php if (null !== rex_config::get ('neues ' , 'no_entries_placeholder ' )) { ?>
30
30
<p><?= rex_i18n::msg ('no_entries_placeholder ' ) ?> </p>
31
31
<?php } ?>
32
32
</div>
Original file line number Diff line number Diff line change 42
42
</li>
43
43
44
44
<!-- Pages -->
45
- <?php for ($ i = 0 ; $ i < $ pager ->getPageCount (); ++$ i ): ?>
45
+ <?php for ($ i = 0 ; $ i < $ pager ->getPageCount (); ++$ i ): ?>
46
46
<li class="page-item">
47
47
<?php if (0 === $ page ) : ?>
48
48
<a class="page-link <?= $ currentPage === $ i ? 'active ' : '' ?> "
Original file line number Diff line number Diff line change 2
2
3
3
namespace FriendsOfRedaxo \Neues ;
4
4
5
- use FriendsOfRedaxo \Neues \Cronjob \Publish ;
6
5
use rex ;
7
6
use rex_addon ;
8
7
use rex_config ;
Original file line number Diff line number Diff line change 2
2
3
3
namespace FriendsOfRedaxo \Neues ;
4
4
5
+ use Alexplusde \ManagerResponsive \Media ;
5
6
use IntlDateFormatter ;
6
7
use rex_addon ;
7
8
use rex_config ;
11
12
use rex_formatter ;
12
13
use rex_i18n ;
13
14
use rex_media ;
14
- use Alexplusde \ManagerResponsive \Media ;
15
15
use rex_url ;
16
16
use rex_yform ;
17
17
use rex_yform_list ;
@@ -177,7 +177,7 @@ static function ($a) {
177
177
*/
178
178
public function getAuthor (): ?Author
179
179
{
180
- if ($ this ->hasValue ('author_id ' )) {
180
+ if ($ this ->hasValue ('author_id ' ) && $ this -> getValue ( ' author_id ' ) > 0 ) {
181
181
return Author::get ($ this ->getValue ('author_id ' ));
182
182
}
183
183
return null ;
Original file line number Diff line number Diff line change 2
2
3
3
namespace FriendsOfRedaxo \Neues ;
4
4
5
- use rex ;
6
5
use rex_be_controller ;
7
6
use rex_be_page ;
8
7
use rex_csrf_token ;
Original file line number Diff line number Diff line change @@ -76,7 +76,6 @@ static function (rex_extension_point $ep) {
76
76
}
77
77
78
78
if (version_compare (rex_addon::get ('yform ' )->getVersion (), '5.0.0 ' , '< ' )) {
79
-
80
79
include rex_path::plugin ('yform ' , 'manager ' , 'pages/data_edit.php ' );
81
80
} else {
82
81
include rex_path::addon ('yform ' , 'pages/manager.data_edit.php ' );
You can’t perform that action at this time.
0 commit comments