Archive

Posts Tagged ‘css’

I call it LazyLib

September 10th, 2009

You know sometimes you write code that really changes the world, and then there is LazyLib. LazyLib is my collection of web design code that makes web design, well…easier :D . I found this snippet and had a little bit of a laugh, right before I included it on the website I was building. So here is a snippet of LazyLib.

 function getCopyright($copyrightHolder){//Copyright Start Date
$buildDate = 2009;

if (date(‘Y’) > $buildDate)
{
  $copyright = ‘Copyright © ‘.$buildDate.’-’.date(‘Y’).’, ‘.$copyrightHolder.’. All rights reserved’;
}
  else
{
  $copyright = ‘Copyright © ‘.$buildDate.’, ‘.$copyrightHolder.’. All rights reserved’;
}
  return $copyright;
}

Very simple code that means on Jan 1, 2010 I won’t have to mess with this webpage. The rest of LazyLib isn’t this trivial. It actually contains everything I need to build a simple page with PHP includes. But I thought I would share.

Digg This
Reddit This
Stumble Now!
Buzz This
Vote on DZone
Share on Facebook
Bookmark this on Delicious
Kick It on DotNetKicks.com
Shout it
Share on LinkedIn
Bookmark this on Technorati
Post on Twitter
Google Buzz (aka. Google Reader)

Code , , , , ,