Welcome, Guest. Please login or register.
Did you miss your activation email?
May 27, 2012, 05:08:50 AM

Login with username, password and session length
Search:     Advanced search
Wollen Sie dem WebsiteBaker Team beitreten?
Nähere Informationen finden Sie unter hier und auf unserer neuen Webseite.
155555 Posts in 21715 Topics by 7737 Members
Latest Member: gx-world
* Home Help Search Login Register
Pages: [1]   Go Down
Print
Author Topic: Landzilla tweaks  (Read 735 times)
DomBonj

Offline Offline

Posts: 2


« on: December 02, 2007, 01:06:48 PM »

After using the Landzilla template for a couple of months, I noticed there are two differences between the w-b template and the original Landzilla design (as published on http://www.perun.net/download/landzilla-2.x.zip):

1. one is in the location of the 'footer' div which should not be nested inside the 'inhalt' div
2. one is the location of the <h2> titles of both the search and the login forms (which translates into slightly narrower dark green bars)

The fixes are the following:
1. replace around line 56 of index.php
Code:
<?php page_content(); ?>
        </div>
        <div id="footer">
            <p>Powered by&nbsp;<a href="http://www.websitebaker.org/" target="_blank">websitebaker</a>&nbsp;-&nbsp;&copy;&nbsp;<?php page_title('','[WEBSITE_TITLE]'); ?></p>
        </div>
    </div>
with the following:
Code:
<?php page_content(); ?>
        </div>
    </div>
    <div id="footer">
            <p>Powered by&nbsp;<a href="http://www.websitebaker.org/" target="_blank">websitebaker</a>&nbsp;-&nbsp;&copy;&nbsp;<?php page_title('','[WEBSITE_TITLE]'); ?></p>
    </div>

2. replace around line 31 of index.php:
Code:
<form name="login" action="<?php echo LOGIN_URL?>" method="post">
            <h2><?php echo $TEXT['LOGIN']; ?></h2>
with the following:
Code:
<h2><?php echo $TEXT['LOGIN']; ?></h2>
<form name="login" action="<?php echo LOGIN_URL?>" method="post">

and replace around line 44 of index.php
Code:
<form name="logout" action="<?php echo LOGOUT_URL?>" method="post">
            <h2><?php echo $TEXT['LOGGED_IN']; ?></h2>
with the following:
Code:
<h2><?php echo $TEXT['LOGGED_IN']; ?></h2>
<form name="logout" action="<?php echo LOGOUT_URL?>" method="post">

Otherwise, all I can say is that website-baker is a wonderful and smartly-designed tool.
Congratulations to the project team and thanks for this fine piece of work!
Logged
ruebenwurzel
WebsiteBaker Org e.V.

Offline Offline

Posts: 7973



WWW
« Reply #1 on: December 02, 2007, 01:51:55 PM »

Hello,

thanks for this hints. Indeed you are right. Will add your fixes to the template.

working with this template found another issue wich makes the template not XHTML valid. In index.php

Code:
<hr>
schould be replaced with
Code:
<hr />

And last but not least i add two new WB features:

1.) Posibility to print css files from modules in the head section. This is introduced in WB 2.6.7 and as soon as a modul has a frontend.css in the modules dir it is displayed in head section. For this simply one line is needed at the bottom of head section:

Code:
<?php if(function_exists('register_frontend_modfiles')) { register_frontend_modfiles('css'); } ?>

2.) Also to get the search result highlighting function wich is introduced with WB 2.6.7 you need a additional class in the style.css.

Code:
.highlight {
    background-color: #759D00;
}

All this fixes and addition are now in the Landzilla Template wich can be downloaded from our Addons Page.

Have fun

Matthias
Logged
Pages: [1]   Go Up
Print
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.16 | SMF © 2011, Simple Machines Valid XHTML 1.0! Valid CSS!