Date: prev next · Thread: first prev next last
2011 Archives by date, by thread · List index

Update, Christian has added the banner to the pumbaa site

He also made a few changes (I think to integrate with SilverStripe),
for those interested I have quoted his email below (since it wasn't
CC'd to the list).

On 15 February 2011 21:14, Christian Lohmaier
<> wrote:
Hi Matt,

On Tue, Feb 15, 2011 at 4:59 PM, Matt Sturgeon <> wrote:

The donations banner is ready for implimentation.

Added it (for testing layout, etc, thus only static version for a
start) to

For reference:
<% control Banner %>
<% require themedCSS(banner) %>
<!--donation meter begin-->
<a class="banner1" href="";
title="Go to the donations page to find out more">
 <div id="banner1">
 <p id="marker-text">$Metertext</p>
 <div id="marker1">
  <div id="marker2" style="width:{$Meterwidth}px;"></div>
 <h2 id="countdown">$Bannertext</h2>
<!--donation meter end-->
<% end_control %>

corresponding php
       function Banner() {
               $vars = new DataObjectSet();
 ...your logic goes here - note that I just hardcoded values, your
logic isn't active yet...
               $vars->push(new ArrayData(array(
                       "Metertext"  => $amounttext,
                       "Meterwidth" => $barwidth,
                       "Bannertext" => $daysleft)));
               return $vars;

And actually using it by adding it to the template:
<div id="TopHeader">
 <a id="Logo" href="<% control Page(/) %>$Link" title=<%
sprintf(_t('Navigation.GOTOPAGE','"Go to the %s page"'),$Title.XML)
%><% end_control %>></a>
 <p id="HeaderTagLine">$SiteConfig.Tagline</p>
 <% include Banner %>

I.e. the gets included, that calls the Banner function of
the controller (the php) and puts in the values.

Also don't forget to <link> the CSS stylesheet, and include(); the PHP script

Oh, and upload the images - and correct any paths (URL/URI's) in any
of the text ofcourse

Yes, those didn't match :-) - I don't include the css here, as apart
from the image-fixes, I only added p#HeaderTagLine {display:none;}
(instead of omitting it.


On 15 February 2011 17:18, Christian Lohmaier
<> wrote:
Hi Matt,

well, sorry for not being able to reply to each and every mail, it's
not that I can read my 24hours a day :-)

Regarding (shell) access to the testing server: Send me your ssh key
(and a preferred login name, otherwise I would just use "matt") and I
can create an account for you.

regarding integrating the banner: I'll take care of that later this
day, first on pumbaa, and if everything is OK, wait for the "go" by
Florian (there is no point in adding the banner when the site with the
explanations, detailed info isn't ready) and send it to the live


Unsubscribe instructions: E-mail to
List archive:
*** All posts to this list are publicly archived for eternity ***


Privacy Policy | Impressum (Legal Info) | Copyright information: Unless otherwise specified, all text and images on this website are licensed under the Creative Commons Attribution-Share Alike 3.0 License. This does not include the source code of LibreOffice, which is licensed under the Mozilla Public License (MPLv2). "LibreOffice" and "The Document Foundation" are registered trademarks of their corresponding registered owners or are in actual use as trademarks in one or more countries. Their respective logos and icons are also subject to international copyright laws. Use thereof is explained in our trademark policy.