Textpattern | PHP Cross Reference | Content Management Systems |
Description: Textpattern configured Textile wrapper.
1 <?php 2 3 /* 4 * Textpattern Content Management System 5 * https://textpattern.com/ 6 * 7 * Copyright (C) 2020 The Textpattern Development Team 8 * 9 * This file is part of Textpattern. 10 * 11 * Textpattern is free software; you can redistribute it and/or 12 * modify it under the terms of the GNU General Public License 13 * as published by the Free Software Foundation, version 2. 14 * 15 * Textpattern is distributed in the hope that it will be useful, 16 * but WITHOUT ANY WARRANTY; without even the implied warranty of 17 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 18 * GNU General Public License for more details. 19 * 20 * You should have received a copy of the GNU General Public License 21 * along with Textpattern. If not, see <https://www.gnu.org/licenses/>. 22 */ 23 24 /** 25 * Textpattern configured Textile wrapper. 26 * 27 * @since 4.7.2 28 * @package Textile 29 */ 30 31 namespace Textpattern\Textile; 32 33 /** 34 * Textile restricted parser. 35 * 36 * @since 4.7.2 37 * @package Textile 38 */ 39 40 class RestrictedParser extends Parser 41 { 42 public function __construct($doctype = null) 43 { 44 parent::__construct($doctype); 45 46 $this 47 ->setRestricted(true) 48 ->setLite(!get_pref('comments_use_fat_textile', 1)) 49 ->setImages((bool) get_pref('comments_disallow_images', 1)); 50 51 if (get_pref('comment_nofollow', 1)) { 52 $this->setLinkRelationShip('nofollow'); 53 } 54 } 55 }
title
Description
Body
title
Description
Body
title
Description
Body
title
Body
title