Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /**
- * Plugin 'TKS Infobox' for the 'tks_infobox' extension.
- *
- * @author Jan Hangebrauck <>
- * @package TYPO3
- * @subpackage tx_tksinfobox
- */
- class tx_tksinfobox_pi1 extends tslib_pibase {
- var $prefixId = 'tx_tksinfobox_pi1'; // Same as class name
- var $scriptRelPath = 'pi1/class.tx_tksinfobox_pi1.php'; // Path to this script relative to the extension dir.
- var $extKey = 'tks_infobox'; // The extension key.
- var $pi_checkCHash = true;
- /**
- * The main method of the PlugIn
- *
- * @param string $content: The PlugIn content
- * @param array $conf: The PlugIn configuration
- * @return The content that is displayed on the website
- */
- function main($content, $conf) {
- $content = '<h1>'.$this->cObj->data['header'].'</h1>';
- $content.= '<p>'.$this->cObj->data['bodytext'].'</p>';
- return $content;
- }
- }
- if (defined('TYPO3_MODE') && $TYPO3_CONF_VARS[TYPO3_MODE]['XCLASS']['ext/tks_infobox/pi1/class.tx_tksinfobox_pi1.php']) {
- include_once($TYPO3_CONF_VARS[TYPO3_MODE]['XCLASS']['ext/tks_infobox/pi1/class.tx_tksinfobox_pi1.php']);
- }
- ?>
- ########### CREATES ###############
- <!-- CONTENT ELEMENT, uid:30/tks_infobox_pi1 [begin] -->
- <a id="c30"></a>
- <!-- Header: [begin] -->
- <div class="csc-header csc-header-n1"><h1 class="csc-firstHeader">Bla</h1></div>
- <!-- Header: [end] -->
- <h1>Bla</h1><p>Und der Text... TESTTESTTEST!</p>
- <!-- CONTENT ELEMENT, uid:30/tks_infobox_pi1 [end] -->
Add Comment
Please, Sign In to add comment