registry->getClass('output')->addToDocumentHead( 'javascript', \"" .$data . '" )' . ' . "'; break; case 'inlinecss': return '" . ' . "\$this->registry->getClass('output')->addToDocumentHead( 'inlinecss', \"" .$data . '" )' . ' . "'; break; case 'importcss': return '" . ' . "\$this->registry->getClass('output')->addToDocumentHead( 'importcss', \"" .$data . '" )' . ' . "'; break; case 'raw': return '" . ' . "\$this->registry->getClass('output')->addToDocumentHead( 'raw', \"" .$data . '" )' . ' . "'; break; } return ''; } /** * Return information about this modifier * * It MUST contain an array of available options in 'options'. If there are no allowed options, then use an empty array. * Failure to keep this up to date will most likely break your template tag. * * @access public * @author Matt Mecham * @return array */ public function getPluginInfo() { //----------------------------------------- // Return the data, it's that simple... //----------------------------------------- return array( 'name' => 'addtohead', 'author' => 'IPS, Inc.', 'usage' => '{parse addtohead="{$this->settings[\'public_dir\']}js/myJS.js" type="javascript"}', 'options' => array( 'type' ) ); } }