NAVIGATION
This shows you the differences between two versions of the page.
|
english:phpwcms_replacer_rts:frontend_render:wrap_show_content [2011/01/20 13:56] Knut Heermann (flip-flop) |
english:phpwcms_replacer_rts:frontend_render:wrap_show_content [2018/06/03 18:09] (current) |
||
|---|---|---|---|
| Line 9: | Line 9: | ||
| **- 04.04.2010 KH:** Improvement over the original: [PHP-Code] in articles/CPs can be addressed with this tag. \\ | **- 04.04.2010 KH:** Improvement over the original: [PHP-Code] in articles/CPs can be addressed with this tag. \\ | ||
| **- 19.01.2011 KH:** Parsing of all system RTs, spam-mailto: Conversion for JS-email address is included.\\ | **- 19.01.2011 KH:** Parsing of all system RTs, spam-mailto: Conversion for JS-email address is included.\\ | ||
| - | **- 19.01.2011 KH:** Parsing of SHOW_CONTENT when in a embedded CP this RT appears a second time. | + | **- 19.01.2011 KH:** Parsing of SHOW_CONTENT when in embedded CPs this RT appears a second time. |
| E.g.: \\ | E.g.: \\ | ||
| Line 68: | Line 68: | ||
| // +KH 19.01.11 parse SHOW_CONTENT a second time | // +KH 19.01.11 parse SHOW_CONTENT a second time | ||
| - | if (strpos($string, '{SHOW_CONTENT:') != false) | + | while (strpos($string, '{SHOW_CONTENT:') != false) |
| $string = preg_replace('/\{SHOW_CONTENT:(.*?)\}/e', 'showSelectedContent("$1");', $string); | $string = preg_replace('/\{SHOW_CONTENT:(.*?)\}/e', 'showSelectedContent("$1");', $string); | ||
| // include external PHP script (also normal HTML snippets) or return PHP var value +KH: 04.04.2010 | // include external PHP script (also normal HTML snippets) or return PHP var value +KH: 04.04.2010 | ||
| - | if(!empty($phpwcms["allow_cntPHP_rt"])) | + | if (!empty($phpwcms["allow_cntPHP_rt"])) |
| $string = render_PHPcode($string); | $string = render_PHPcode($string); | ||