Version 3.2.3
This commit is contained in:
1 parent
ae5c01cc78
commit
78706903a2
2641 files changed
+228363
-201264
No files matched your search
@@ -5,6 +5,6 @@
|
||||
<hr>
|
||||
You have reached this page in error, please use your back button to return to the forum.
|
||||
<hr>
|
||||
<a href="http://www.invisionboard.com/">IP.Board</a>
|
||||
<a href="http://www.invisionpower.com">IP.Board</a>
|
||||
</body>
|
||||
</html>
|
||||
@@ -3,17 +3,17 @@
|
||||
/**
|
||||
* <pre>
|
||||
* Invision Power Services
|
||||
* IP.Board v3.1.4
|
||||
* IP.Board v3.2.3
|
||||
* Template Plugin: Add to head
|
||||
* Last Updated: $Date: 2010-01-15 10:18:44 -0500 (Fri, 15 Jan 2010) $
|
||||
* Last Updated: $Date: 2011-05-05 07:03:47 -0400 (Thu, 05 May 2011) $
|
||||
* </pre>
|
||||
*
|
||||
* @author $Author: bfarber $
|
||||
* @author $Author: ips_terabyte $
|
||||
* @copyright (c) 2001 - 2009 Invision Power Services, Inc.
|
||||
* @license http://www.invisionpower.com/community/board/license.html
|
||||
* @license This is NULLED!
|
||||
* @package IP.Board
|
||||
* @link http://www.invisionpower.com
|
||||
* @version $Rev: 5713 $
|
||||
* @link http://hatynka.in
|
||||
* @version $Rev: 8644 $
|
||||
*/
|
||||
|
||||
/**
|
||||
@@ -25,7 +25,7 @@ class tp_addtohead extends output implements interfaceTemplatePlugins
|
||||
* Prevent our main destructor being called by this class
|
||||
*
|
||||
* @access public
|
||||
* @return void
|
||||
* @return @e void
|
||||
*/
|
||||
public function __destruct()
|
||||
{
|
||||
|
||||
@@ -3,17 +3,17 @@
|
||||
/**
|
||||
* <pre>
|
||||
* Invision Power Services
|
||||
* IP.Board v3.1.4
|
||||
* IP.Board v3.2.3
|
||||
* Template Pluging: Currency
|
||||
* Last Updated: $Date: 2010-05-19 06:23:08 -0400 (Wed, 19 May 2010) $
|
||||
* Last Updated: $Date: 2011-05-05 07:03:47 -0400 (Thu, 05 May 2011) $
|
||||
* </pre>
|
||||
*
|
||||
* @author $Author: mark $
|
||||
* @author $Author: ips_terabyte $
|
||||
* @copyright (c) 2001 - 2009 Invision Power Services, Inc.
|
||||
* @license http://www.invisionpower.com/community/board/license.html
|
||||
* @license This is NULLED!
|
||||
* @package IP.Board
|
||||
* @link http://www.invisionpower.com
|
||||
* @version $Rev: 6317 $
|
||||
* @link http://hatynka.in
|
||||
* @version $Rev: 8644 $
|
||||
*/
|
||||
|
||||
/**
|
||||
@@ -25,7 +25,7 @@ class tp_currency extends output implements interfaceTemplatePlugins
|
||||
* Prevent our main destructor being called by this class
|
||||
*
|
||||
* @access public
|
||||
* @return void
|
||||
* @return @e void
|
||||
*/
|
||||
public function __destruct()
|
||||
{
|
||||
|
||||
@@ -3,17 +3,17 @@
|
||||
/**
|
||||
* <pre>
|
||||
* Invision Power Services
|
||||
* IP.Board v3.1.4
|
||||
* IP.Board v3.2.3
|
||||
* Template Pluging: Date
|
||||
* Last Updated: $Date: 2010-03-10 07:00:06 -0500 (Wed, 10 Mar 2010) $
|
||||
* Last Updated: $Date: 2011-05-05 07:03:47 -0400 (Thu, 05 May 2011) $
|
||||
* </pre>
|
||||
*
|
||||
* @author $Author: matt $
|
||||
* @author $Author: ips_terabyte $
|
||||
* @copyright (c) 2001 - 2009 Invision Power Services, Inc.
|
||||
* @license http://www.invisionpower.com/community/board/license.html
|
||||
* @license This is NULLED!
|
||||
* @package IP.Board
|
||||
* @link http://www.invisionpower.com
|
||||
* @version $Rev: 5932 $
|
||||
* @link http://hatynka.in
|
||||
* @version $Rev: 8644 $
|
||||
*/
|
||||
|
||||
/**
|
||||
@@ -25,7 +25,7 @@ class tp_date extends output implements interfaceTemplatePlugins
|
||||
* Prevent our main destructor being called by this class
|
||||
*
|
||||
* @access public
|
||||
* @return void
|
||||
* @return @e void
|
||||
*/
|
||||
public function __destruct()
|
||||
{
|
||||
@@ -47,8 +47,6 @@ class tp_date extends output implements interfaceTemplatePlugins
|
||||
//-----------------------------------------
|
||||
|
||||
$return = '';
|
||||
$_format = 'LONG';
|
||||
$_relative = 1;
|
||||
$timestamp = $data ? $data : "'{custom:now}'";
|
||||
|
||||
# Fix up string style dates
|
||||
@@ -67,8 +65,9 @@ class tp_date extends output implements interfaceTemplatePlugins
|
||||
}*/
|
||||
|
||||
$_relative = ( isset( $options['relative'] ) && $options['relative'] == 'false' ) ? 1 : 0;
|
||||
$_format = empty( $options['format'] ) ? 'LONG' : $options['format'];
|
||||
|
||||
$return = '$this->registry->getClass(\'class_localization\')->getDate(' . $timestamp . ',"' . $options['format'] . '", ' . $_relative . ')';
|
||||
$return = '$this->registry->getClass(\'class_localization\')->getDate(' . $timestamp . ',"' . $_format . '", ' . $_relative . ')';
|
||||
|
||||
return '" . ' . $return . ' . "';
|
||||
}
|
||||
|
||||
+26
-16
@@ -3,29 +3,29 @@
|
||||
/**
|
||||
* <pre>
|
||||
* Invision Power Services
|
||||
* IP.Board v3.1.4
|
||||
* Template Pluging: Resize images in templates proportionately
|
||||
* Last Updated: $Date: 2010-01-15 09:55:46 -0500 (Fri, 15 Jan 2010) $
|
||||
* IP.Board v3.2.3
|
||||
* Template Pluging: CCS block parsing
|
||||
* Last Updated: $Date: 2011-09-12 20:59:05 -0400 (Mon, 12 Sep 2011) $
|
||||
* </pre>
|
||||
*
|
||||
* @author $Author: bfarber $
|
||||
* @copyright (c) 2001 - 2009 Invision Power Services, Inc.
|
||||
* @license http://www.invisionpower.com/community/board/license.html
|
||||
* @license This is NULLED!
|
||||
* @package IP.Content
|
||||
* @link http://www.invisionpower.com
|
||||
* @version $Rev: 166 $
|
||||
* @link http://hatynka.in
|
||||
* @version $Rev: 9483 $
|
||||
*/
|
||||
|
||||
/**
|
||||
* Main loader class
|
||||
*/
|
||||
class tp_gallery_resize extends output implements interfaceTemplatePlugins
|
||||
class tp_editor extends output implements interfaceTemplatePlugins
|
||||
{
|
||||
/**
|
||||
* Prevent our main destructor being called by this class
|
||||
*
|
||||
* @access public
|
||||
* @return void
|
||||
* @return @e void
|
||||
*/
|
||||
public function __destruct()
|
||||
{
|
||||
@@ -35,7 +35,7 @@ class tp_gallery_resize extends output implements interfaceTemplatePlugins
|
||||
* Run the plug-in
|
||||
*
|
||||
* @access public
|
||||
* @author Matt Mecham
|
||||
* @author Brandon Farber
|
||||
* @param string The initial data from the tag
|
||||
* @param array Array of options
|
||||
* @return string Processed HTML
|
||||
@@ -45,15 +45,25 @@ class tp_gallery_resize extends output implements interfaceTemplatePlugins
|
||||
//-----------------------------------------
|
||||
// Process the tag and return the data
|
||||
//-----------------------------------------
|
||||
|
||||
if ( ! $data )
|
||||
|
||||
if( ! $data )
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
$return = '$this->registry->getClass(\'gallery\')->inlineResize( ' . $data . ",'" . trim( $options['width'] ) . "','" . trim( $options['height'] ) . '\' )';
|
||||
$_params = ( $options['options'] ) ? $options['options'] : array();
|
||||
$_content = ( $options['content'] ) ? str_replace( '\'', '\\\'', $options['content'] ) : '';
|
||||
|
||||
return '" . ' . $return . ' . "';
|
||||
$_phpCode = "<php>\n";
|
||||
$_phpCode .= "\t" . '$pluginEditorHook = IPSLib::loadLibrary( IPS_ROOT_PATH . \'sources/classes/editor/composite.php\', \'classes_editor_composite\' );' . "\n";
|
||||
$_phpCode .= "\t" . '$editor = new $pluginEditorHook();' . "\n</php>";
|
||||
$_phpCode .= '" . $editor->show(\'' . $data . '\', ' . $_params . ', "' . $_content . '") . "';
|
||||
|
||||
//-----------------------------------------
|
||||
// Process the tag and return the data
|
||||
//-----------------------------------------
|
||||
|
||||
return $_phpCode;
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -72,9 +82,9 @@ class tp_gallery_resize extends output implements interfaceTemplatePlugins
|
||||
// Return the data, it's that simple...
|
||||
//-----------------------------------------
|
||||
|
||||
return array( 'name' => 'gallery_resize',
|
||||
return array( 'name' => 'editor',
|
||||
'author' => 'Invision Power Services, Inc.',
|
||||
'usage' => '{parse gallery_resize="{$image_tag_html}" width="100" height="100"}',
|
||||
'options' => array( 'width', 'height' ) );
|
||||
'usage' => '{parse editor="FormFieldName" content="" options="array()"}',
|
||||
'options' => array('options', 'content') );
|
||||
}
|
||||
}
|
||||
@@ -3,18 +3,18 @@
|
||||
/**
|
||||
* <pre>
|
||||
* Invision Power Services
|
||||
* IP.Board v3.1.4
|
||||
* IP.Board v3.2.3
|
||||
* Template plugin: execute PHP expression
|
||||
* Last Updated: $Date: 2010-08-12 08:32:14 -0400 (Thu, 12 Aug 2010) $
|
||||
* Last Updated: $Date: 2011-05-05 07:03:47 -0400 (Thu, 05 May 2011) $
|
||||
* </pre>
|
||||
*
|
||||
* @author $Author: matt $
|
||||
* @author $Author: ips_terabyte $
|
||||
* @copyright (c) 2001 - 2009 Invision Power Services, Inc.
|
||||
* @license http://www.invisionpower.com/community/board/license.html
|
||||
* @license This is NULLED!
|
||||
* @package IP.Board
|
||||
* @link http://www.invisionpower.com
|
||||
* @link http://hatynka.in
|
||||
* @since 6/24/2008
|
||||
* @version $Revision: 6745 $
|
||||
* @version $Revision: 8644 $
|
||||
*/
|
||||
|
||||
/**
|
||||
@@ -26,7 +26,7 @@ class tp_expression extends output implements interfaceTemplatePlugins
|
||||
* Prevent our main destructor being called by this class
|
||||
*
|
||||
* @access public
|
||||
* @return void
|
||||
* @return @e void
|
||||
*/
|
||||
public function __destruct()
|
||||
{
|
||||
|
||||
@@ -3,17 +3,17 @@
|
||||
/**
|
||||
* <pre>
|
||||
* Invision Power Services
|
||||
* IP.Board v3.1.4
|
||||
* IP.Board v3.2.3
|
||||
* Template Pluging: Format Number
|
||||
* Last Updated: $Date: 2010-08-12 08:32:14 -0400 (Thu, 12 Aug 2010) $
|
||||
* Last Updated: $Date: 2011-05-05 07:03:47 -0400 (Thu, 05 May 2011) $
|
||||
* </pre>
|
||||
*
|
||||
* @author $Author: matt $
|
||||
* @author $Author: ips_terabyte $
|
||||
* @copyright (c) 2001 - 2009 Invision Power Services, Inc.
|
||||
* @license http://www.invisionpower.com/community/board/license.html
|
||||
* @license This is NULLED!
|
||||
* @package IP.Board
|
||||
* @link http://www.invisionpower.com
|
||||
* @version $Rev: 6745 $
|
||||
* @link http://hatynka.in
|
||||
* @version $Rev: 8644 $
|
||||
*/
|
||||
|
||||
/**
|
||||
@@ -25,7 +25,7 @@ class tp_format_number extends output implements interfaceTemplatePlugins
|
||||
* Prevent our main destructor being called by this class
|
||||
*
|
||||
* @access public
|
||||
* @return void
|
||||
* @return @e void
|
||||
*/
|
||||
public function __destruct()
|
||||
{
|
||||
|
||||
@@ -3,17 +3,17 @@
|
||||
/**
|
||||
* <pre>
|
||||
* Invision Power Services
|
||||
* IP.Board v3.1.4
|
||||
* IP.Board v3.2.3
|
||||
* Template Pluging: Include
|
||||
* Last Updated: $Date: 2010-08-12 08:32:14 -0400 (Thu, 12 Aug 2010) $
|
||||
* Last Updated: $Date: 2011-05-05 07:03:47 -0400 (Thu, 05 May 2011) $
|
||||
* </pre>
|
||||
*
|
||||
* @author $Author: matt $
|
||||
* @author $Author: ips_terabyte $
|
||||
* @copyright (c) 2001 - 2009 Invision Power Services, Inc.
|
||||
* @license http://www.invisionpower.com/community/board/license.html
|
||||
* @license This is NULLED!
|
||||
* @package IP.Board
|
||||
* @link http://www.invisionpower.com
|
||||
* @version $Rev: 6745 $
|
||||
* @link http://hatynka.in
|
||||
* @version $Rev: 8644 $
|
||||
*/
|
||||
|
||||
/**
|
||||
@@ -25,7 +25,7 @@ class tp_include extends output implements interfaceTemplatePlugins
|
||||
* Prevent our main destructor being called by this class
|
||||
*
|
||||
* @access public
|
||||
* @return void
|
||||
* @return @e void
|
||||
*/
|
||||
public function __destruct()
|
||||
{
|
||||
@@ -62,7 +62,7 @@ class tp_include extends output implements interfaceTemplatePlugins
|
||||
|
||||
$return = <<<EOF
|
||||
ob_start();
|
||||
include( "$data" );
|
||||
include( "$data" );/*noLibHook*/
|
||||
\$data = ob_get_contents();
|
||||
ob_end_clean();
|
||||
EOF;
|
||||
|
||||
@@ -3,17 +3,17 @@
|
||||
/**
|
||||
* <pre>
|
||||
* Invision Power Services
|
||||
* IP.Board v3.1.4
|
||||
* IP.Board v3.2.3
|
||||
* Template Pluging: JS Module
|
||||
* Last Updated: $Date: 2010-01-15 10:18:44 -0500 (Fri, 15 Jan 2010) $
|
||||
* Last Updated: $Date: 2011-05-05 07:03:47 -0400 (Thu, 05 May 2011) $
|
||||
* </pre>
|
||||
*
|
||||
* @author $Author: bfarber $
|
||||
* @author $Author: ips_terabyte $
|
||||
* @copyright (c) 2001 - 2009 Invision Power Services, Inc.
|
||||
* @license http://www.invisionpower.com/community/board/license.html
|
||||
* @license This is NULLED!
|
||||
* @package IP.Board
|
||||
* @link http://www.invisionpower.com
|
||||
* @version $Rev: 5713 $
|
||||
* @link http://hatynka.in
|
||||
* @version $Rev: 8644 $
|
||||
*/
|
||||
/**
|
||||
* Main loader class
|
||||
@@ -24,7 +24,7 @@ class tp_js_module extends output implements interfaceTemplatePlugins
|
||||
* Prevent our main destructor being called by this class
|
||||
*
|
||||
* @access public
|
||||
* @return void
|
||||
* @return @e void
|
||||
*/
|
||||
public function __destruct()
|
||||
{
|
||||
|
||||
@@ -0,0 +1,70 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* <pre>
|
||||
* Invision Power Services
|
||||
* IP.Board v3.2.3
|
||||
* Template plugin: execute PHP expression
|
||||
* Last Updated: $Date: 2011-05-25 10:30:28 -0400 (Wed, 25 May 2011) $
|
||||
* </pre>
|
||||
*
|
||||
* @author $Author: ips_terabyte $
|
||||
* @copyright (c) 2001 - 2009 Invision Power Services, Inc.
|
||||
* @license This is NULLED!
|
||||
* @package IP.Board
|
||||
* @link http://hatynka.in
|
||||
* @since 6/24/2008
|
||||
* @version $Revision: 8887 $
|
||||
*/
|
||||
|
||||
/**
|
||||
* Main loader class
|
||||
*/
|
||||
class tp_lang extends output implements interfaceTemplatePlugins
|
||||
{
|
||||
/**
|
||||
* Prevent our main destructor being called by this class
|
||||
*
|
||||
* @access public
|
||||
* @return @e 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->lang->words[\''.$data.'\'] . "';
|
||||
}
|
||||
|
||||
/**
|
||||
* 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' => 'lang',
|
||||
'author' => 'IPS, Inc.',
|
||||
'usage' => '{parse lang="some_phrase"}',
|
||||
'options' => array() );
|
||||
}
|
||||
}
|
||||
@@ -3,18 +3,18 @@
|
||||
/**
|
||||
* <pre>
|
||||
* Invision Power Services
|
||||
* IP.Board v3.1.4
|
||||
* IP.Board v3.2.3
|
||||
* Template plugin: perform macro replacement
|
||||
* Last Updated: $Date: 2010-01-15 10:18:44 -0500 (Fri, 15 Jan 2010) $
|
||||
* Last Updated: $Date: 2011-05-05 07:03:47 -0400 (Thu, 05 May 2011) $
|
||||
* </pre>
|
||||
*
|
||||
* @author $Author: bfarber $
|
||||
* @author $Author: ips_terabyte $
|
||||
* @copyright (c) 2001 - 2009 Invision Power Services, Inc.
|
||||
* @license http://www.invisionpower.com/community/board/license.html
|
||||
* @license This is NULLED!
|
||||
* @package IP.Board
|
||||
* @link http://www.invisionpower.com
|
||||
* @link http://hatynka.in
|
||||
* @since 6/24/2008
|
||||
* @version $Revision: 5713 $
|
||||
* @version $Revision: 8644 $
|
||||
*/
|
||||
|
||||
/**
|
||||
@@ -26,7 +26,7 @@ class tp_replacement extends output implements interfaceTemplatePlugins
|
||||
* Prevent our main destructor being called by this class
|
||||
*
|
||||
* @access public
|
||||
* @return void
|
||||
* @return @e void
|
||||
*/
|
||||
public function __destruct()
|
||||
{
|
||||
|
||||
@@ -3,17 +3,17 @@
|
||||
/**
|
||||
* <pre>
|
||||
* Invision Power Services
|
||||
* IP.Board v3.1.4
|
||||
* IP.Board v3.2.3
|
||||
* Template Pluging: Resize images in templates proportionately
|
||||
* Last Updated: $Date: 2010-01-15 09:55:46 -0500 (Fri, 15 Jan 2010) $
|
||||
* Last Updated: $Date: 2011-05-05 07:03:47 -0400 (Thu, 05 May 2011) $
|
||||
* </pre>
|
||||
*
|
||||
* @author $Author: bfarber $
|
||||
* @author $Author: ips_terabyte $
|
||||
* @copyright (c) 2001 - 2009 Invision Power Services, Inc.
|
||||
* @license http://www.invisionpower.com/community/board/license.html
|
||||
* @license This is NULLED!
|
||||
* @package IP.Content
|
||||
* @link http://www.invisionpower.com
|
||||
* @version $Rev: 166 $
|
||||
* @link http://hatynka.in
|
||||
* @version $Rev: 8644 $
|
||||
*/
|
||||
|
||||
/**
|
||||
@@ -25,7 +25,7 @@ class tp_resize_image extends output implements interfaceTemplatePlugins
|
||||
* Prevent our main destructor being called by this class
|
||||
*
|
||||
* @access public
|
||||
* @return void
|
||||
* @return @e void
|
||||
*/
|
||||
public function __destruct()
|
||||
{
|
||||
|
||||
@@ -3,18 +3,18 @@
|
||||
/**
|
||||
* <pre>
|
||||
* Invision Power Services
|
||||
* IP.Board v3.1.4
|
||||
* IP.Board v3.2.3
|
||||
* Template plugin: Perform row striping
|
||||
* Last Updated: $Date: 2010-01-15 10:18:44 -0500 (Fri, 15 Jan 2010) $
|
||||
* Last Updated: $Date: 2011-05-05 07:03:47 -0400 (Thu, 05 May 2011) $
|
||||
* </pre>
|
||||
*
|
||||
* @author $Author: bfarber $
|
||||
* @author $Author: ips_terabyte $
|
||||
* @copyright (c) 2001 - 2009 Invision Power Services, Inc.
|
||||
* @license http://www.invisionpower.com/community/board/license.html
|
||||
* @license This is NULLED!
|
||||
* @package IP.Board
|
||||
* @link http://www.invisionpower.com
|
||||
* @link http://hatynka.in
|
||||
* @since 6/24/2008
|
||||
* @version $Revision: 5713 $
|
||||
* @version $Revision: 8644 $
|
||||
*/
|
||||
|
||||
/**
|
||||
@@ -26,7 +26,7 @@ class tp_striping extends output implements interfaceTemplatePlugins
|
||||
* Prevent our main destructor being called by this class
|
||||
*
|
||||
* @access public
|
||||
* @return void
|
||||
* @return @e void
|
||||
*/
|
||||
public function __destruct()
|
||||
{
|
||||
|
||||
@@ -3,17 +3,17 @@
|
||||
/**
|
||||
* <pre>
|
||||
* Invision Power Services
|
||||
* IP.Board v3.1.4
|
||||
* IP.Board v3.2.3
|
||||
* Template Pluging: Template Include
|
||||
* Last Updated: $Date: 2010-08-12 08:32:14 -0400 (Thu, 12 Aug 2010) $
|
||||
* Last Updated: $Date: 2011-09-26 10:20:55 -0400 (Mon, 26 Sep 2011) $
|
||||
* </pre>
|
||||
*
|
||||
* @author $Author: matt $
|
||||
* @author $Author: mmecham $
|
||||
* @copyright (c) 2001 - 2009 Invision Power Services, Inc.
|
||||
* @license http://www.invisionpower.com/community/board/license.html
|
||||
* @license This is NULLED!
|
||||
* @package IP.Board
|
||||
* @link http://www.invisionpower.com
|
||||
* @version $Rev: 6745 $
|
||||
* @link http://hatynka.in
|
||||
* @version $Rev: 9547 $
|
||||
*/
|
||||
|
||||
/**
|
||||
@@ -25,7 +25,7 @@ class tp_template extends output implements interfaceTemplatePlugins
|
||||
* Prevent our main destructor being called by this class
|
||||
*
|
||||
* @access public
|
||||
* @return void
|
||||
* @return @e void
|
||||
*/
|
||||
public function __destruct()
|
||||
{
|
||||
@@ -56,9 +56,9 @@ class tp_template extends output implements interfaceTemplatePlugins
|
||||
$_group = str_replace( '{current_app}', "'.\$this->registry->getCurrentApplication().'", $_group );
|
||||
|
||||
$_params = $options['params'];
|
||||
|
||||
$return = "\$this->registry->getClass('output')->getTemplate('" . $_group . "')->".$data."(".$_params.")";
|
||||
|
||||
|
||||
$return = "( method_exists( \$this->registry->getClass('output')->getTemplate('" . $_group . "'), '{$data}' ) ? \$this->registry->getClass('output')->getTemplate('" . $_group . "')->".$data."(".$_params.") : '' )";
|
||||
|
||||
return '" . ' . $return . ' . "';
|
||||
}
|
||||
|
||||
|
||||
@@ -3,17 +3,17 @@
|
||||
/**
|
||||
* <pre>
|
||||
* Invision Power Services
|
||||
* IP.Board v3.1.4
|
||||
* IP.Board v3.2.3
|
||||
* Template Pluging: URL
|
||||
* Last Updated: $Date: 2010-01-15 10:18:44 -0500 (Fri, 15 Jan 2010) $
|
||||
* Last Updated: $Date: 2011-05-27 12:31:36 -0400 (Fri, 27 May 2011) $
|
||||
* </pre>
|
||||
*
|
||||
* @author $Author: bfarber $
|
||||
* @author $Author: ips_terabyte $
|
||||
* @copyright (c) 2001 - 2009 Invision Power Services, Inc.
|
||||
* @license http://www.invisionpower.com/community/board/license.html
|
||||
* @license This is NULLED!
|
||||
* @package IP.Board
|
||||
* @link http://www.invisionpower.com
|
||||
* @version $Rev: 5713 $
|
||||
* @link http://hatynka.in
|
||||
* @version $Rev: 8912 $
|
||||
*/
|
||||
|
||||
/**
|
||||
@@ -26,7 +26,7 @@ class tp_url extends output implements interfaceTemplatePlugins
|
||||
* Prevent our main destructor being called by this class
|
||||
*
|
||||
* @access public
|
||||
* @return void
|
||||
* @return @e void
|
||||
*/
|
||||
public function __destruct()
|
||||
{
|
||||
@@ -57,18 +57,19 @@ class tp_url extends output implements interfaceTemplatePlugins
|
||||
|
||||
$return = '$this->registry->getClass(\'output\')->formatUrl( $this->registry->getClass(\'output\')->buildUrl( "' . $data . '", "' . $base . '",\'' . $options['httpauth'] . '\' ), "' . $seotitle . '", "' . $template . '" )';
|
||||
|
||||
return '" . ' . $return . ' . "';
|
||||
return '" . ' . $return . ' . "';
|
||||
}
|
||||
|
||||
/**
|
||||
* Clean the data passed to this plugin
|
||||
*
|
||||
* @access private
|
||||
* @access protected
|
||||
* @param string Query string params
|
||||
* @return string Query string params (singular keys)
|
||||
* @see http://community.invisionpower.com/tracker/issue-20122-hard-coded-query-strings-in-members-list/
|
||||
* @deprecated
|
||||
*/
|
||||
private function _cleanData( $data )
|
||||
protected function _cleanData( $data )
|
||||
{
|
||||
$_return = str_replace( '&', '&', $data );
|
||||
$_pairs = array();
|
||||
|
||||
@@ -3,18 +3,18 @@
|
||||
/**
|
||||
* <pre>
|
||||
* Invision Power Services
|
||||
* IP.Board v3.1.4
|
||||
* IP.Board v3.2.3
|
||||
* Template plugin: Set and retrieve template variables
|
||||
* Last Updated: $Date: 2010-09-15 19:24:12 -0400 (Wed, 15 Sep 2010) $
|
||||
* Last Updated: $Date: 2011-05-05 07:03:47 -0400 (Thu, 05 May 2011) $
|
||||
* </pre>
|
||||
*
|
||||
* @author $Author: bfarber $
|
||||
* @author $Author: ips_terabyte $
|
||||
* @copyright (c) 2001 - 2009 Invision Power Services, Inc.
|
||||
* @license http://www.invisionpower.com/community/board/license.html
|
||||
* @license This is NULLED!
|
||||
* @package IP.Board
|
||||
* @link http://www.invisionpower.com
|
||||
* @link http://hatynka.in
|
||||
* @since 6/24/2008
|
||||
* @version $Revision: 6882 $
|
||||
* @version $Revision: 8644 $
|
||||
*/
|
||||
|
||||
/**
|
||||
@@ -26,7 +26,7 @@ class tp_variable extends output implements interfaceTemplatePlugins
|
||||
* Prevent our main destructor being called by this class
|
||||
*
|
||||
* @access public
|
||||
* @return void
|
||||
* @return @e void
|
||||
*/
|
||||
public function __destruct()
|
||||
{
|
||||
@@ -64,7 +64,7 @@ class tp_variable extends output implements interfaceTemplatePlugins
|
||||
$phpCode .= "\n" . '$this->__default__templateVars[\'' . $data . '\'] = "' . str_replace( '"', '\\"', $options['default'] ) . '";';
|
||||
}
|
||||
|
||||
if ( isset($options['oncondition']) AND $options['oncondition'] AND isset( $options['value'] ) )
|
||||
if ( !empty($options['oncondition'])AND isset( $options['value'] ) )
|
||||
{
|
||||
$phpCode .= "\nif ( {$options['oncondition']} )\n{\n\t".'$this->templateVars[\'' . $data . '\'] = "' . str_replace( '"', '\\"', $options['value'] ) . '";' . "\n}";
|
||||
$phpCode .= "\nelse {" . '$this->templateVars[\'' . $data . '\'] = $this->__default__templateVars[\'' . $data . '\']; }';
|
||||
|
||||
Reference in new issue
Block a user