/wp-content/plugins/yet-another-photoblog/lib/Savant2-2.4.3/Savant2/tests/5_filters.php
https://github.com/Mercedes/ratonesytortillas · PHP · 42 lines · 19 code · 12 blank · 11 comment · 0 complexity · a88c02cfe94eb590e231ab5cfc873a3d MD5 · raw file
- <?php
- /**
- *
- * Tests filters and plugins
- *
- * @version $Id: 5_filters.php,v 1.1 2004/10/04 01:52:24 pmjones Exp $
- *
- */
- error_reporting(E_ALL);
- require_once 'Savant2.php';
- $conf = array(
- 'template_path' => 'templates',
- 'resource_path' => 'resources'
- );
- $savant =& new Savant2($conf);
- // set up filters
- $savant->loadFilter('colorizeCode');
- $savant->loadFilter('trimwhitespace');
- $savant->loadFilter('fester', null, true);
- // run through the template
- $savant->display('filters.tpl.php');
- // do it again to test object persistence
- $savant->display('filters.tpl.php');
- // do it again to test object persistence
- $savant->display('filters.tpl.php');
- echo "<hr />\n";
- echo "<pre>";
- print_r($savant);
- echo "</pre>";
- ?>