X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=plekit%2Fphp%2Fnifty.php;h=f6ce9441d6a2c7aee2c5b4c6d694c6e1c4b62fa6;hb=e51a8a29fe84ca8d51e2166ce8603037113f3ce2;hp=5aae788e59e4639642eeb669df62a36bfe8099c0;hpb=1a2eb1bf447e1e3cccf35959ad10ffaaa9790032;p=plewww.git diff --git a/plekit/php/nifty.php b/plekit/php/nifty.php index 5aae788..f6ce944 100644 --- a/plekit/php/nifty.php +++ b/plekit/php/nifty.php @@ -7,7 +7,38 @@ require_once 'prototype.php'; drupal_set_html_head(' - + '); +class PlekitNifty { + var $id; + var $class; + var $size; + + function PlekitNifty ($id,$class,$size='medium') { + $this->id = $id; + $this->class=$class; + $this->size=$size; + } + + function start () { print $this->start_html(); } + function start_html () { + $html=""; + $html .= "id) $html .= " id='$this->id'"; + $html .= " class='"; + if ($this->class) $html .= $this->class . " "; + $html .= "nifty-$this->size"; + // close the class quote + $html .= "'>"; + return $html; + } + + function end () { print $this->end_html();} + function end_html () { + return ""; + } + +} + ?>