wCMF 4.1
Guides
Getting started
Architecture
Model
Persistence
Presentation
Configuration
Security
I18n & l10n
Tests
Versions
4.1.x
4.0.x
API
Classes
Hierarchy
Code
Support
home
travis
build
iherwig
wcmf
src
wcmf
application
views
plugins
prefilter.removeprids.php
1
<?php
2
/**
3
* wCMF - wemove Content Management Framework
4
* Copyright (C) 2005-2020 wemove digital solutions GmbH
5
*
6
* Licensed under the terms of the MIT License.
7
*
8
* See the LICENSE file distributed with this work for
9
* additional information.
10
*/
11
12
/**
13
* Remove protected region ids (used by wCMFGenerator).
14
*
15
* @param $output
16
* @param $template Smarty_Internal_Template
17
* @return String
18
*/
19
function
smarty_prefilter_removeprids($output, Smarty_Internal_Template $template) {
20
// remove protected regions
21
$output = preg_replace(
"/<!-- PROTECTED REGION .*? -->/U"
,
""
, $output);
22
23
// remove any wCMFGenerator generated comments
24
return
preg_replace(
"/<!--.*?ChronosGenerator.*?-->/s"
,
""
, $output);
25
}
26
?>