• Welcome to the Chevereto User Community!

    Here, users from all over the world come together to learn, share, and collaborate on everything related to Chevereto. It's a place to exchange ideas, ask questions, and help improve the software.

    Please keep in mind:

    • This community is user-driven. Always be polite and respectful to others.
    • Support development by purchasing a Chevereto license, which also gives you priority support.
    • Go further by joining the Community Subscription for even faster response times and to help sustain this space
  • Chevereto Support CLST

    Support response

    Support checklist

    • Got a Something went wrong message? Read this guide and provide the actual error. Do not skip this.
    • Confirm that the server meets the System Requirements
    • Check for any available Hotfix - your issue could be already reported/fixed
    • Read documentation - It will be required to Debug and understand Errors for a faster support response

Releasing footer and user reg features

datguy

Chevereto Member
I will be releasing the following features this week. Just full optimizing them. Let me know what you think of them ( I didn't create footer, but it's open source and I optimized it for chev.) See the pics:

Footer:
XRfD1jz.png
http://i.imgur.com/XRfD1jz.png


when logged in:

roGmcWz.png


user reg

8f5Sqtk.png
 
Open app\themes\Peafowl\custom_hooks/footer.php and replace it all with:

<?php
if(!defined('access') or !access) die('This file cannot be directly accessed.');
/* Add here your custom footer code */
?>

<div class="footer">

<ul>
<li>
<p class="home">Home</p>
<a class="logo" href="#"><small><?php echo CHV\getSetting('website_name'); ?></small> <i>&copy; 2013</i></a>
</li>
<li>
<p class="services">Links</p>

<ul>
<li><a href="/page/api">Developers</a></li>
<li><a href="/page/faq">F.A.Q</a></li>
<li><a href="/page/tools">Tools</a></li>
<li><a href="/page/contact">Contact</a></li>
</ul>
</li>
<li>
<p class="reachus">Reach us</p>

<ul>
<li><a href="#">Email</a></li>
<li><a href="#">Twitter</a></li>
<li><a href="#">Facebook</a></li>
<li>555-123456789</li>
</ul>
</li>
<li>
<?php
if(CHV\Login::isLoggedUser()) {
?>
<p class="clients"><?php echo CHV\Login::getUser()["name"]; ?></p>

<?php }else{ ?>
<p class="clients">User</p>
<?php } ?>
<ul>
<?php
//check if not logged in, if not, show login and sign up links
if(!CHV\Login::isLoggedUser()) {
?>
<li><a href="/login">Login</a></li>
<li><a href="/signup">Sign Up</a></li>
<?php
}
?>
<?php
if(CHV\Login::isLoggedUser()) {
?>
<li><a href="<?php echo CHV\Login::getUser()["url"]; ?>"><?php _se('My Profile'); ?></a></li>
<li><a href="<?php echo CHV\Login::getUser()["url_albums"]; ?>"><?php _se('Albums'); ?></a></li>
<li><a href="<?php echo G\get_base_url("settings"); ?>"><?php _se('Settings'); ?></a></li>
<?php if(is_admin()) { ?>
<li><a href="<?php echo G\get_base_url("dashboard"); ?>"><?php _se('Dashboard'); ?></a></li>
<?php } ?>
<li><a href="<?php echo G\get_base_url(sprintf("logout?auth_token=%s", get_auth_token())); ?>"><?php _se('Sign out'); ?></a></li>
<?php
}
?>
</ul>
</li>
</ul>

</div>

Now add the following css in to the custom hooks style;

.footer{
height: 200px;
color:#ccc;
font-size:12px;
position:relative;
width:100%;
background-color:#31353a;
background-image:-webkit-linear-gradient(top, #31353a, #2f3337);
background-image:-moz-linear-gradient(top, #31353a, #2f3337);
background-image:linear-gradient(top, #31353a, #2f3337);
}
.footer > ul{
width:960px;
bottom:0;
padding-bottom: 60px;
margin-right:auto;
margin-left:auto;
padding-top: 25px;
}

.footer > ul > li{
width:25%;
float:left;
}

.footer ul{
list-style: none;
}

/* The links */

.footer > ul > li ul li{
/* margin-left:43px;*/
text-transform: uppercase;
font-weight:bold;
line-height:1.8;
}

.footer > ul > li ul li a{
text-decoration: none !important;
color:#7d8691 !important;
}

.footer > ul > li ul li a:hover{
color:#ddd !important;
}


.footer a.logo{
color: #e4e4e4 !important;
text-decoration: none !important;
font-size: 14px;
font-weight: bold;
position: relative;
text-transform: uppercase;
margin-left: 16px;
display: inline-block;
margin-top: 7px;
}

.footer a.logo i{
font-style: normal;
position: absolute;
width: 60px;
display: block;
left: 48px;
top: 18px;
font-size: 12px;
color: #999;
}

.footer a.logo:before{
content: '';
display: inline-block;
background: url('../../../../content/images/system/default/sprite.png') no-repeat -19px -70px;
width: 48px;
height: 37px;
vertical-align: text-top;
}
.footer p{
width: 90%;
margin-right: 10%;
padding: 9px 0;
line-height: 18px;
background-color: #058cc7;
font-weight: bold;
font-size: 14px;
color:#fff;
text-transform: uppercase;
text-shadow: 0 1px rgba(0,0,0,0.1);
box-shadow: 0 0 3px rgba(0,0,0,0.3);
margin-bottom: 20px;
opacity:0.9;
cursor:default;

-webkit-transition: opacity 0.4s;
-moz-transition: opacity 0.4s;
transition: opacity 0.4s;
}

.footer > ul > li:hover p{
opacity:1;
}

.footer p:before{
content: '';
display: inline-block;
background: url('../../../../content/images/system/default/sprite.png') no-repeat;
width: 16px;
height: 18px;
margin: 0 12px 0 15px;
vertical-align: text-bottom;
}
.footer p.home{
background-color: #0096d6;

background-image:-webkit-linear-gradient(top, #0096d6, #008ac6);
background-image:-moz-linear-gradient(top, #0096d6, #008ac6);
background-image:linear-gradient(top, #0096d6, #008ac6);
}

.footer p.home:before{
background-position: 0 -110px;
}

.footer p.services{
background-color: #00b274;

background-image:-webkit-linear-gradient(top, #00b274, #00a46b);
background-image:-moz-linear-gradient(top, #00b274, #00a46b);
background-image:linear-gradient(top, #00b274, #00a46b);
}

.footer p.services:before{
background-position: 0 -129px;
}

.footer p.reachus{
background-color: #d75ba2;

background-image:-webkit-linear-gradient(top, #d75ba2, #c75496);
background-image:-moz-linear-gradient(top, #d75ba2, #c75496);
background-image:linear-gradient(top, #d75ba2, #c75496);
}

.footer p.reachus:before{
background-position: 0 -89px;
}

.footer p.clients{
background-color: #e9ac40;

background-image:-webkit-linear-gradient(top, #e9ac40, #d89f3b);
background-image:-moz-linear-gradient(top, #e9ac40, #d89f3b);
background-image:linear-gradient(top, #e9ac40, #d89f3b);
}

.footer p.clients:before{
background-position: 0 -69px;
}
 
I've very quickly put it in place, and it appears to work quite well.
When I open my URL on my mobile device, it doesn't appear to be responsive though.
I might take a further look at this later and see if I can solve it.

Thank you for this.
 
I've very quickly put it in place, and it appears to work quite well.
When I open my URL on my mobile device, it doesn't appear to be responsive though.
I might take a further look at this later and see if I can solve it.

Thank you for this.
Change footer > ul width to 85% and edit the text to shrink it on mobile devices 😉
 
Back
Top