示例#1
0
 /**
  * Attach the scripts necessary for clickenlarge
  *
  * @return void
  */
 protected function addScript()
 {
     $script = "function fedImgXL(parent, filename) { document.getElementById(parent).src = filename; };";
     $this->documentHead->includeHeader($script, 'js');
 }
 /**
  * Injects $code in header data
  * DEPRECATED: moved to Tx_Nbogallery_Utility_DocumentHead which is injected at
  * $this->documentHead
  *
  * @param string $code A rendered tag suitable for <head>
  * @param string $type Optional, if left out we assume the code is already wrapped
  * @param string $key Optional key for referencing later through $GLOBALS['TSFE']->additionalHeaderData, defaults to md5 cheksum of tag
  * @deprecated
  */
 public function includeHeader($code, $type = NULL, $key = NULL)
 {
     $this->documentHead->includeHeader($code, $type, $key);
 }