Version 3.0.5
This commit is contained in:
1 parent
19b38c7c74
commit
1d4720f3e2
3755 files changed
+508378
-664541
No files matched your search
@@ -0,0 +1,70 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* Invision Power Services
|
||||
* IP.Board v3.0.5
|
||||
* Template plugin: perform macro replacement
|
||||
* Last Updated: $Date: 2009-02-04 15:03:36 -0500 (Wed, 04 Feb 2009) $
|
||||
*
|
||||
* @author $Author: bfarber $
|
||||
* @copyright (c) 2001 - 2009 Invision Power Services, Inc.
|
||||
* @license http://www.iinvisionpower.com/community/board/license.html
|
||||
* @package Invision Power Board
|
||||
* @link http://www.iinvisionpower.com
|
||||
* @since 6/24/2008
|
||||
* @version $Revision: 3887 $
|
||||
*/
|
||||
|
||||
/**
|
||||
* Main loader class
|
||||
*/
|
||||
class tp_replacement extends output implements interfaceTemplatePlugins
|
||||
{
|
||||
/**
|
||||
* Prevent our main destructor being called by this class
|
||||
*
|
||||
* @access public
|
||||
* @return void
|
||||
*/
|
||||
public function __destruct()
|
||||
{
|
||||
}
|
||||
|
||||
/**
|
||||
* Run the plug-in
|
||||
*
|
||||
* @access public
|
||||
* @author Matt Mecham
|
||||
* @param string The initial data from the tag
|
||||
* @param array Array of options
|
||||
* @return string Processed HTML
|
||||
*/
|
||||
public function runPlugin( $data, $options )
|
||||
{
|
||||
//-----------------------------------------
|
||||
// Process the tag and return the data
|
||||
//-----------------------------------------
|
||||
|
||||
$return = "\$this->registry->getClass('output')->getReplacement(\"" . $data . "\")";
|
||||
|
||||
return '" . ' . $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 array( 'name' => 'replacement',
|
||||
'author' => 'IPS, Inc.',
|
||||
'usage' => '{parse replacement="a_post"}',
|
||||
'options' => array() );
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user