Removed "powered by" sitewide footer link

pull/58/head
Rodolfo Berrios 2019-10-14 21:02:23 -03:00
parent 0779e72a16
commit be25cec8ba
2 changed files with 44 additions and 40 deletions

View File

@ -1,7 +1,6 @@
<?php if (!defined('access') or !access) { <?php if (!defined('access') or !access) {
die('This file cannot be directly accessed.'); die('This file cannot be directly accessed.');
} ?> } ?>
<div id="powered-by" class="footer">Powered by <a href="https://chevereto.com" rel="generator">Chevereto</a> image hosting</div>
<?php if (!is_maintenance()) { <?php if (!is_maintenance()) {
G\Render\include_theme_file('snippets/embed_tpl'); G\Render\include_theme_file('snippets/embed_tpl');

View File

@ -1,38 +1,41 @@
<?php if(!defined('access') or !access) die('This file cannot be directly accessed.'); ?> <?php if (!defined('access') or !access) {
die('This file cannot be directly accessed.');
} ?>
<?php G\Render\include_theme_header(); ?> <?php G\Render\include_theme_header(); ?>
<?php <?php
if(CHV\Settings::get('homepage_style') == 'split') { if (CHV\Settings::get('homepage_style') == 'split') {
CHV\Render\show_theme_inline_code('snippets/index.js'); CHV\Render\show_theme_inline_code('snippets/index.js');
} }
?> ?>
<div id="home-cover" data-content="follow-scroll-opacity"> <div id="home-cover" data-content="follow-scroll-opacity">
<div id="home-cover-slideshow"> <div id="home-cover-slideshow">
<?php <?php
$i = 0; $i = 0;
foreach(CHV\getSetting('homepage_cover_images_shuffled') as $k => $v) { foreach (CHV\getSetting('homepage_cover_images_shuffled') as $k => $v) {
if($i > 1 && is_mobile_device()) break; if ($i > 1 && is_mobile_device()) {
?> break;
} ?>
<div class="home-cover-img" data-src="<?php echo $v['url']; ?>"></div> <div class="home-cover-img" data-src="<?php echo $v['url']; ?>"></div>
<?php <?php
$i++; $i++;
} }
?> ?>
</div> </div>
<div id="home-cover-content" class="c20 fluid-column center-box padding-left-10 padding-right-10"> <div id="home-cover-content" class="c20 fluid-column center-box padding-left-10 padding-right-10">
<h1><?php echo CHV\getSetting('homepage_title_html') ?: _s('Upload and share your images.'); ?></h1> <h1><?php echo CHV\getSetting('homepage_title_html') ?: _s('Upload and share your images.'); ?></h1>
<p class="c20 center-box text-align-center phone-hide phablet-hide"><?php echo CHV\getSetting('homepage_paragraph_html') ?: _s('Drag and drop anywhere you want and start uploading your images now. %s limit. Direct image links, BBCode and HTML thumbnails.', G\format_bytes(G\get_bytes(CHV\getSetting('upload_max_filesize_mb').'MB'))); ?></p> <p class="c20 center-box text-align-center phone-hide phablet-hide"><?php echo CHV\getSetting('homepage_paragraph_html') ?: _s('Drag and drop anywhere you want and start uploading your images now. %s limit. Direct image links, BBCode and HTML thumbnails.', G\format_bytes(G\get_bytes(CHV\getSetting('upload_max_filesize_mb').'MB'))); ?></p>
<div class="home-buttons"> <div class="home-buttons">
<?php <?php
$homepage_cta = [ $homepage_cta = [
'<a', '<a',
CHV\getSetting('homepage_cta_fn') == 'cta-upload' ? 'data-trigger="anywhere-upload-input"' : 'href="'.CHV\getSetting('homepage_cta_fn_extra').'"', CHV\getSetting('homepage_cta_fn') == 'cta-upload' ? 'data-trigger="anywhere-upload-input"' : 'href="'.CHV\getSetting('homepage_cta_fn_extra').'"',
(CHV\getSetting('homepage_cta_fn') == 'cta-upload' and !CHV\getSetting('guest_uploads')) ? 'data-login-needed="true"' : NULL, (CHV\getSetting('homepage_cta_fn') == 'cta-upload' and !CHV\getSetting('guest_uploads')) ? 'data-login-needed="true"' : null,
'class="btn btn-big ' . CHV\getSetting('homepage_cta_color') . (CHV\getSetting('homepage_cta_outline') ? ' outline' : NULL) . '">' . (CHV\getSetting('homepage_cta_html') ?: _s('Start uploading')) . '</a>' 'class="btn btn-big ' . CHV\getSetting('homepage_cta_color') . (CHV\getSetting('homepage_cta_outline') ? ' outline' : null) . '">' . (CHV\getSetting('homepage_cta_html') ?: _s('Start uploading')) . '</a>'
]; ];
echo join(' ', $homepage_cta) echo join(' ', $homepage_cta)
?> ?>
</div> </div>
</div> </div>
</div> </div>
@ -41,12 +44,12 @@
<div class="content-width"> <div class="content-width">
<?php <?php
$list = get_list(); $list = get_list();
if(is_admin()) { if (is_admin()) {
G\Render\include_theme_file("snippets/user_items_editor"); G\Render\include_theme_file("snippets/user_items_editor");
} }
if(is_admin()) { if (is_admin()) {
?> ?>
<div class="header header-tabs margin-bottom-10"> <div class="header header-tabs margin-bottom-10">
<h1><strong><?php $home_user ? _se("%s's Images", $home_user['name_short']) : _se('Most recent'); ?></strong></h1> <h1><strong><?php $home_user ? _se("%s's Images", $home_user['name_short']) : _se('Most recent'); ?></strong></h1>
<div class="header-content-right phone-float-none"> <div class="header-content-right phone-float-none">
@ -54,43 +57,45 @@
</div> </div>
</div> </div>
<?php <?php
} }
?> ?>
<div id="home-pics-feature" class="<?php echo count($list->output) == 0 ? 'empty' : 'filled'; ?>"> <div id="home-pics-feature" class="<?php echo count($list->output) == 0 ? 'empty' : 'filled'; ?>">
<div id="content-listing-tabs" class="tabbed-listing"> <div id="content-listing-tabs" class="tabbed-listing">
<?php if(count($list->output) > 0) { ?><div id="home-pics-feature-overlay"></div><?php } ?> <?php if (count($list->output) > 0) { ?><div id="home-pics-feature-overlay"></div><?php } ?>
<?php <?php
if(count($list->output) == 0 and is_admin()) { if (count($list->output) == 0 and is_admin()) {
?> ?>
<div class="content-empty"> <div class="content-empty">
<span class="icon icon-drawer"></span> <span class="icon icon-drawer"></span>
<p><?php $home_user ? _se( "Fill this section uploading pictures to %s account.<br>You can edit the target user in your dashboard settings.", $home_user['name_short']) : _se("There's nothing to show here."); ?></p> <p><?php $home_user ? _se("Fill this section uploading pictures to %s account.<br>You can edit the target user in your dashboard settings.", $home_user['name_short']) : _se("There's nothing to show here."); ?></p>
</div> </div>
<?php <?php
} else { } else {
G\Render\include_theme_file("snippets/listing"); G\Render\include_theme_file("snippets/listing");
} }
?> ?>
</div> </div>
</div> </div>
<?php CHV\Render\show_banner('home_after_listing', get_list()->sfw); ?> <?php CHV\Render\show_banner('home_after_listing', get_list()->sfw); ?>
<?php <?php
if(!get_logged_user() and CHV\getSetting('enable_signups')) { if (!get_logged_user() and CHV\getSetting('enable_signups')) {
?> ?>
<div id="home-join" class="c20 fluid-column center-box text-align-center"> <div id="home-join" class="c20 fluid-column center-box text-align-center">
<h1><?php _se('Sign up to unlock all the features'); ?></h1> <h1><?php _se('Sign up to unlock all the features'); ?></h1>
<p><?php _se('Manage your content, create private albums, customize your profile and more.'); ?></p> <p><?php _se('Manage your content, create private albums, customize your profile and more.'); ?></p>
<div class="home-buttons"><a href="<?php echo G\get_base_url('signup'); ?>" class="btn btn-big blue"><?php _se('Create account'); ?></a></div> <div class="home-buttons"><a href="<?php echo G\get_base_url('signup'); ?>" class="btn btn-big blue"><?php _se('Create account'); ?></a></div>
</div> </div>
<?php <?php
} }
?> ?>
</div> </div>
<?php } ?> <?php } ?>
<div class="footer"><?php _se('Powered by'); ?> <a href="https://chevereto.com" rel="generator">Chevereto</a></div>
<?php G\Render\include_theme_footer(); ?> <?php G\Render\include_theme_footer(); ?>