Source for file LThickboxImage.php
Documentation is available at LThickboxImage.php
* @license http://opensource.org/licenses/mozilla1.1.php Mozilla Public License
* @copyright 2005, diemeisterei GmbH. All rights reserved.
* @author $Author: schmunk $
* @version $Revision: 1 $ $Date: 2006-06-01 15:11:24 +0000 (Do, 01 Jun 2006) $
* @package Phundament.Components
* @subpackage WebControls
* @package System.Web.UI.WebControls
$this->setViewState('NavigateUrl', $value);
return $this->getViewState('NavigateUrl', null);
$this->setViewState('Group', $value);
return $this->getViewState('Group', null);
$this->setViewState('Title', $value);
return $this->getViewState('Title', null);
$this->setViewState('Text', $value);
return $this->getViewState('Text', null);
TWebControl::renderChildren($writer);
$isEnabled= $this->getEnabled(true);
parent::addAttributesToRender($writer);
$writer->addAttribute('href',$this->ImageUrl);
$writer->addAttribute('rel',$this->Group);
$writer->addAttribute('title',$this->Title);
public function onInit($param)
$jQueryJs = $this->publishAsset("LImage/support/jquery-1.0.2-JQ.js");
$thickboxJs = $this->publishAsset("LImage/support/thickbox-JQ.js");
$thickboxCss = $this->publishAsset("LImage/support/thickbox.css");
$scriptMgr = $this->getPage()->getClientScript();
$scriptMgr->registerScriptFile('LThickBoxLink:jQueryJs', $jQueryJs);
$scriptMgr->registerScriptFile('LThickBoxLink:thickboxJs', $thickboxJs);
$scriptMgr->registerStyleSheetFile('LThickBox:Css', $thickboxCss);
$this->setCssClass("thickbox ". $this->CssClass);
parent::onPreRender($param);
$this->Style->setStyleField("width","auto");
$this->Style->setStyleField("height","auto");
if (!count($this->Controls)) $this->Controls[] = $this->Text;
|