diff --git a/app/themes/Peafowl/footer.php b/app/themes/Peafowl/footer.php index a20ac19..173b641 100644 --- a/app/themes/Peafowl/footer.php +++ b/app/themes/Peafowl/footer.php @@ -1,7 +1,6 @@ - +
$v) { - if($i > 1 && is_mobile_device()) break; - ?> + $i = 0; + foreach (CHV\getSetting('homepage_cover_images_shuffled') as $k => $v) { + if ($i > 1 && is_mobile_device()) { + break; + } ?>
+ $i++; + } + ?>

' . (CHV\getSetting('homepage_cta_html') ?: _s('Start uploading')) . '' - ]; - echo join(' ', $homepage_cta) - ?> + $homepage_cta = [ + '' . (CHV\getSetting('homepage_cta_html') ?: _s('Start uploading')) . '' + ]; + echo join(' ', $homepage_cta) + ?>
@@ -41,12 +44,12 @@
+ $list = get_list(); + if (is_admin()) { + G\Render\include_theme_file("snippets/user_items_editor"); + } + if (is_admin()) { + ?>

@@ -54,43 +57,45 @@
+ } + ?>
- output) > 0) { ?>
+ output) > 0) { ?>
output) == 0 and is_admin()) { - ?> + if (count($list->output) == 0 and is_admin()) { + ?>
-

You can edit the target user in your dashboard settings.", $home_user['name_short']) : _se("There's nothing to show here."); ?>

+

You can edit the target user in your dashboard settings.", $home_user['name_short']) : _se("There's nothing to show here."); ?>

+ } else { + G\Render\include_theme_file("snippets/listing"); + } + ?>
sfw); ?> + if (!get_logged_user() and CHV\getSetting('enable_signups')) { + ?>

+ } + ?>
+ + \ No newline at end of file