Update, Christian has added the banner to the pumbaa site http://pumbaa.documentfoundation.org:7780
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 <[email protected]> wrote: > Hi Matt, > > On Tue, Feb 15, 2011 at 4:59 PM, Matt Sturgeon <[email protected]> wrote: >> >> The donations banner is ready for implimentation. > > Added it (for testing layout, etc, thus only static version for a > start) to http://pumbaa.documentfoundation.org:7780 > > > For reference: > templates/Includes/Banner.ss > <% control Banner %> > <% require themedCSS(banner) %> > <!--donation meter begin--> > <a class="banner1" href="http://challenge.documentfoundation.org" > 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> > </div> > <h2 id="countdown">$Bannertext</h2> > </div> > </a> > <!--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 Page.ss 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 %> > </div> > > I.e. the Banner.ss 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. > > ciao > Christian > On 15 February 2011 17:18, Christian Lohmaier <[email protected]> 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 > site... > > ciao > Christian -- Unsubscribe instructions: E-mail to [email protected] List archive: http://listarchives.libreoffice.org/www/website/ *** All posts to this list are publicly archived for eternity ***
