contributions/text.placeholders/start.inc.php
Go to the documentation of this file.00001 <?php 00002 /** 00003 * @defgroup Palceholders 00004 * @ingroup Text 00005 * 00006 * Allows use of placehodlers in user entered text. Placeholders get replaced by arbitrary complex dynamic content. 00007 * 00008 * @section Usage Usage 00009 * 00010 * A placeholder can look like this: 00011 * 00012 * @code 00013 * <a href="posts:5:view">my recent musings on this topic</a> 00014 * @endcode 00015 * 00016 * The placeholder "posts:5:view" would get expanded to the path of action "view" of post with id 5. 00017 */ 00018 define ('CONVERTER_TEXTPLACEHOLDERS', 'textplaceholders'); 00019 00020 require_once dirname(__FILE__) . '/lib/helpers/converters/textplaceholders.converter.php'; 00021 ConverterFactory::register_converter(CONVERTER_TEXTPLACEHOLDERS, new ConverterTextPlaceholders()); 00022 00023 if (Load::is_module_loaded('text.html')) { 00024 HtmlText::add_conversion(HtmlText::OUTPUT, CONVERTER_TEXTPLACEHOLDERS); 00025 } 00026 00027 Load::directories('behaviour/textplaceholders'); 00028 00029