From be25cec8baa9cd31461f90519af8c9968801231d Mon Sep 17 00:00:00 2001 From: Rodolfo Berrios Date: Mon, 14 Oct 2019 21:02:23 -0300 Subject: [PATCH] Removed "powered by" sitewide footer link --- app/themes/Peafowl/footer.php | 1 - app/themes/Peafowl/views/index.php | 83 ++++++++++++++++-------------- 2 files changed, 44 insertions(+), 40 deletions(-) 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