Bug #16030 » media_path_fixes.diff
typo3/sysext/cms/tslib/class.tslib_content.php 11 Apr 2006 19:42:25 -0000 | ||
---|---|---|
if ($conf['icon_thumbSize'] || $conf['icon_thumbSize.']) { $thumbSize = '&size='.$this->stdWrap($conf['icon_thumbSize'], $conf['icon_thumbSize.']); }
|
||
$icon = 't3lib/thumbs.php?dummy='.$GLOBALS['EXEC_TIME'].'&file='.rawurlencode('../'.$theFile).$thumbSize;
|
||
} else {
|
||
$icon = t3lib_extMgm::siteRelPath('cms').'media/miscicons/notfound_thumb.gif';
|
||
$icon = t3lib_extMgm::siteRelPath('cms').'tslib/media/miscicons/notfound_thumb.gif';
|
||
}
|
||
$icon = '<img src="'.htmlspecialchars($GLOBALS['TSFE']->absRefPrefix.$icon).'"'.$this->getBorderAttr(' border="0"').''.$this->getAltParam($conf).' />';
|
||
}
|
typo3/sysext/cms/tslib/class.tslib_fe.php 11 Apr 2006 19:40:42 -0000 | ||
---|---|---|
}
|
||
|
||
/**
|
||
* Substitute the path's to files in the media/ folder like icons used in static_template of TypoScript
|
||
* Substitute the path's to files in the fileadmin/ folder like icons used in static_template of TypoScript
|
||
* Works on $this->content
|
||
*
|
||
* @return void
|
||
... | ... | |
*/
|
||
function setAbsRefPrefix() {
|
||
if ($this->absRefPrefix) {
|
||
$this->content = str_replace('"media/', '"'.$this->absRefPrefix.'media/', $this->content);
|
||
//$this->content = str_replace('"media/', '"'.$this->absRefPrefix.'media/', $this->content);
|
||
$this->content = str_replace('"fileadmin/', '"'.$this->absRefPrefix.'fileadmin/', $this->content);
|
||
}
|
||
}
|
typo3/sysext/cms/tslib/media/scripts/example_languageMenu.php 11 Apr 2006 19:45:30 -0000 | ||
---|---|---|
}
|
||
|
||
// Little red arrow, which is inserted to the left of the flag-icon if the TSFE->sys_language_uid equals the language uid (notice that 0=english, 1=danish and 2=german is SPECIFIC to this database, because these numbers refer to uid's of the table sys_language)
|
||
$pointer = '<img src="'.t3lib_extMgm::siteRelPath('cms').'media/icons_misc/content_client.gif" width="7" height="10" align="middle" alt="" />';
|
||
$pointer = '<img src="'.t3lib_extMgm::siteRelPath('cms').'tslib/media/icons_misc/content_client.gif" width="7" height="10" align="middle" alt="" />';
|
||
|
||
// Set each icon. If the language is the current, red arrow is printed to the left. If the language is NOT found (represented by a pages_language_overlay record on this page), the icon is dimmed.
|
||
$flags = array();
|
||
$flags[] = ($GLOBALS['TSFE']->sys_language_uid==0?$pointer:'').'<a href="'.htmlspecialchars('index.php?id='.$GLOBALS['TSFE']->id.'&L=0').'" target="_top"><img src="media/uploads/flag_uk.gif" width="21" height="13" hspace="5" border="0" alt="" /></a>';
|
||
$flags[] = ($GLOBALS['TSFE']->sys_language_uid==1?$pointer:'').'<a href="'.htmlspecialchars('index.php?id='.$GLOBALS['TSFE']->id.'&L=1').'" target="_top"><img src="media/uploads/flag_dk'.($langArr[1]?'':'_d').'.gif" width="21" height="13" hspace="5" border="0" alt="" /></a>';
|
||
$flags[] = ($GLOBALS['TSFE']->sys_language_uid==2?$pointer:'').'<a href="'.htmlspecialchars('index.php?id='.$GLOBALS['TSFE']->id.'&L=2').'" target="_top"><img src="media/uploads/flag_de'.($langArr[2]?'':'_d').'.gif" width="21" height="13" hspace="5" border="0" alt="" /></a>';
|
||
$flags[] = ($GLOBALS['TSFE']->sys_language_uid==0?$pointer:'').'<a href="'.htmlspecialchars('index.php?id='.$GLOBALS['TSFE']->id.'&L=0').'" target="_top"><img src="typo3/sysext/cms/tslib/media/uploads/flag_uk.gif" width="21" height="13" hspace="5" border="0" alt="" /></a>';
|
||
$flags[] = ($GLOBALS['TSFE']->sys_language_uid==1?$pointer:'').'<a href="'.htmlspecialchars('index.php?id='.$GLOBALS['TSFE']->id.'&L=1').'" target="_top"><img src="typo3/sysext/cms/tslib/media/uploads/flag_dk'.($langArr[1]?'':'_d').'.gif" width="21" height="13" hspace="5" border="0" alt="" /></a>';
|
||
$flags[] = ($GLOBALS['TSFE']->sys_language_uid==2?$pointer:'').'<a href="'.htmlspecialchars('index.php?id='.$GLOBALS['TSFE']->id.'&L=2').'" target="_top"><img src="typo3/sysext/cms/tslib/media/uploads/flag_de'.($langArr[2]?'':'_d').'.gif" width="21" height="13" hspace="5" border="0" alt="" /></a>';
|
||
|
||
// Make the little menu. Notice, the menu does ONLY transfer the page-id and the "L" variable (which is also SPECIFIC for this website because "L" has been used in the extension template used to control the language setup)
|
||
$content = '<table border="0" cellpadding="0" cellspacing="0"><tr><td><img src="clear.gif" width="30" height="1" alt="" /></td><td>'.implode('',$flags).'</td></tr></table>';
|
typo3/sysext/cms/tslib/media/scripts/gmenu_foldout.php 11 Apr 2006 19:29:52 -0000 | ||
---|---|---|
|
||
|
||
$GLOBALS['TSFE']->additionalHeaderData['gmenu_layer_shared']='<script type="text/javascript" src="'.t3lib_extMgm::siteRelPath('cms').'tslib/media/scripts/jsfunc.layermenu.js"></script>';
|
||
$GLOBALS['TSFE']->additionalHeaderData['gmenu_foldout']='<script type="text/javascript" src="'.$GLOBALS['TSFE']->absRefPrefix.'media/scripts/jsfunc.foldout.js"></script>';
|
||
$GLOBALS['TSFE']->additionalHeaderData['gmenu_foldout']='<script type="text/javascript" src="'.t3lib_extMgm::siteRelPath('cms').'tslib/media/scripts/jsfunc.foldout.js"></script>';
|
||
|
||
$GLOBALS["TSFE"]->additionalHeaderData[].= '
|
||
<style type="text/css">
|
typo3/sysext/cms/tslib/media/uploads/newsletter/template.html 11 Apr 2006 19:26:42 -0000 | ||
---|---|---|
<td valign="top"><img src="clear.gif" width="400" height="1" alt="" /><br />###CONTENT_NORMAL###</td>
|
||
<td valign="top" width="9"><table width="8" border="0">
|
||
<tr valign="top">
|
||
<td width="1"><img height="100%" src="media/uploads/newsletter/blue.gif" width="1" alt="" /></td></tr></table></td>
|
||
<td width="1"><img height="100%" src="typo3/sysext/cms/tslib/media/uploads/newsletter/blue.gif" width="1" alt="" /></td></tr></table></td>
|
||
<td valign="top" width="193">###CONTENT_MARGIN###</td>
|
||
</tr></table>
|
||
|
- « Previous
- 1
- 2
- Next »