00001 <?php
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00035 require_once(PATH_tslib.'class.tslib_pibase.php');
00036
00037 class tx_rtehtmlarea_pi3 extends tslib_pibase {
00038
00039
00040 var $prefixId = 'tx_rtehtmlarea_pi3';
00041 var $scriptRelPath = 'pi3/class.tx_rtehtmlarea_pi3.php';
00042 var $extKey = 'rtehtmlarea';
00043 var $conf = array();
00044 var $cObj;
00045
00054 function render_clickenlarge($content,$conf) {
00055 global $TYPO3_CONF_VARS;
00056
00057 $clickenlarge = isset($this->cObj->parameters['clickenlarge']) ? $this->cObj->parameters['clickenlarge'] : 0;
00058 $file = isset($this->cObj->parameters['clickenlargesrc']) ? $this->cObj->parameters['clickenlargesrc'] : '';
00059
00060 unset($this->cObj->parameters['clickenlarge']);
00061 unset($this->cObj->parameters['clickenlargesrc']);
00062 unset($this->cObj->parameters['allParams']);
00063 $content = '<img '. t3lib_div::implodeAttributes($this->cObj->parameters, TRUE, TRUE) . ' />';
00064
00065 if ($TYPO3_CONF_VARS['EXTCONF'][$this->extKey]['enableClickEnlarge'] && $clickenlarge && is_array($conf['imageLinkWrap.'])) {
00066 $theImage = $file ? $GLOBALS['TSFE']->tmpl->getFileName($file) : '';
00067 if ($theImage) {
00068 if ($this->cObj->parameters['title']) $conf['imageLinkWrap.']['title'] = $this->cObj->parameters['title'];
00069 if ($this->cObj->parameters['alt']) $conf['imageLinkWrap.']['alt'] = $this->cObj->parameters['alt'];
00070 $content = $this->cObj->imageLinkWrap($content,$theImage,$conf['imageLinkWrap.']);
00071 }
00072 }
00073 return $content;
00074 }
00075 }
00076
00077 if (defined('TYPO3_MODE') && $TYPO3_CONF_VARS[TYPO3_MODE]['XCLASS']['ext/rtehtmlarea/pi3/class.tx_rtehtmlarea_pi3.php']) {
00078 include_once($TYPO3_CONF_VARS[TYPO3_MODE]['XCLASS']['ext/rtehtmlarea/pi3/class.tx_rtehtmlarea_pi3.php']);
00079 }
00080
00081 ?>