. */ /** * Textpattern configured Textile wrapper. * * @since 4.7.2 * @package Textile */ namespace Textpattern\Textile; /** * Textile restricted parser. * * @since 4.7.2 * @package Textile */ class RestrictedParser extends Parser { public function __construct($doctype = null) { parent::__construct($doctype); $this ->setRestricted(true) ->setLite(!get_pref('comments_use_fat_textile', 1)) ->setImages((bool) get_pref('comments_disallow_images', 1)); if (get_pref('comment_nofollow', 1)) { $this->setLinkRelationShip('nofollow'); } } }