SproutCMS

This is the code documentation for the SproutCMS project

class ContentReplace

No description yet.

Source code (15 results)

/skin/default/home.php   Highlighted file source

Line 2: use Sprout\Helpers\ContentReplace;
Line 12: $page['text'] = ContentReplace::executeChain('main_content', $page['text']);

/skin/default/inner.php   Highlighted file source

Line 2: use Sprout\Helpers\ContentReplace;
Line 17: $main_content = ContentReplace::executeChain('main_content', $main_content);

/skin/default/wide.php   Highlighted file source

Line 2: use Sprout\Helpers\ContentReplace;
Line 16: $main_content = ContentReplace::executeChain('main_content', $main_content);

/skin/harbor/home.php   Highlighted file source

Line 2: use Sprout\Helpers\ContentReplace;
Line 12: $page['text'] = ContentReplace::executeChain('main_content', $page['text']);

/skin/harbor/inner.php   Highlighted file source

Line 2: use Sprout\Helpers\ContentReplace;
Line 11: $main_content = ContentReplace::executeChain('main_content', $main_content);

/skin/sprout_load.php   Highlighted file source

Line 7: Register::contentReplace('main_content', ['Sprout\\Helpers\\ContentReplace', 'fileDownload']);
Line 10: Register::contentReplace('main_content', ['Sprout\\Helpers\\Sprout', 'specialFileLinks']);
Line 13: Register::contentReplace('inner_html', function($html) {

/sprout/Controllers/PageController.php   Highlighted file source

Line 23: use Sprout\Helpers\ContentReplace;
Line 360: $text = ContentReplace::intlinks($text);
Line 361: $text = ContentReplace::embedWidgets($text, 'page', $page_id);
Line 362: $text = ContentReplace::localanchor($text);

/sprout/Helpers/ContentReplace.php   Highlighted file source

Line 24: class ContentReplace
Line 35: * $html = ContentReplace::executeChain('inner_html', $html);
Line 42: $methods = Register::getContentReplaceMethods($chain);
Line 257: return preg_replace_callback('!<p>(?:<code>)?\(\(WIDGET [a-zA-Z]*? ?([0-9A-Za-z]+)\)\)(?:</code>)?</p>!', array('Sprout\Helpers\ContentReplace', '_email_widgets'), $text);
Line 308: return preg_replace_callback('!<table[^>]*?>(.*?)</table>!s', array('Sprout\Helpers\ContentReplace', '_empty_tables'), $text);

/sprout/Helpers/Needs.php   Highlighted file source

Line 369: Event::$data = ContentReplace::intlinks(Event::$data);

/sprout/Helpers/Page.php   Highlighted file source

Line 247: return ContentReplace::html($text);

/sprout/Helpers/Register.php   Highlighted file source

Line 505: * Register::contentReplace('inner_html', ['Sprout\\Helpers\\ContentReplace', 'intlinks']);
Line 508: * $new_html = ContentReplace::executeChain('inner_html', $old_html);
Line 513: public static function contentReplace($chain, callable $func)
Line 528: public static function getContentReplaceMethods($chain)

/sprout/Helpers/SproutVariable.php   Highlighted file source

Line 63: $this->replace = new ContentReplace();

/sprout/sprout_load.php   Highlighted file source

Line 50: Register::contentReplace('inner_html', ['Sprout\\Helpers\\ContentReplace', 'intlinks']);
Line 51: Register::contentReplace('inner_html', ['Sprout\\Helpers\\ContentReplace', 'localAnchor']);
Line 53: Register::contentReplace('main_content', ['Sprout\\Widgets\\ImageGalleryWidget', 'contentReplace']);

/sprout/tests/content_replaceTest.php   Highlighted file source

Line 14: use Sprout\Helpers\ContentReplace;
Line 107: $this->assertEquals($expected, ContentReplace::expandolink($html, $replacement));

/sprout/Widgets/RichTextWidget.php   Highlighted file source

Line 18: use Sprout\Helpers\ContentReplace;
Line 39: return ContentReplace::html($this->settings['text']) . '<div class="clear"></div>';

A total of 36 lines in 15 files were found