📄 testscript_ext.php
字号:
<?php# TYPO3 CVS ID: $Id: testscript_EXT.php 141 2004-03-22 15:46:24Z typo3 $if (!is_object($TSFE)) die ('Error: No parent object present.');/** * Printing current time dynamically * * @param string Content (ignore) * @param array TypoScript configuration passed * @return string Current time wrapped in <font> tags with red color */function user_printTimeExt($content,$conf) { return '<font color="red">Dynamic time: '.date('H:i:s').'</font><br />';}?>This is output from an external script!<br /><br />You can get the content of the record, that included this script in $REC:<br /><br /><?php debug($REC); ?><br /><br />The configuration for the script is in the array, $CONF:<br /><br /><?phpdebug($CONF);?><br /><br />These are global variables!<br /><br />Good luck....BTW: The time:<?php if ($CONF['showTime']) {echo user_printTimeExt('','');} ?><br /><br /><?php$content = '(This is returned in the variable, $content, which is another option...';?><hr />
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -