NAVIGATION
This shows you the differences between two versions of the page.
|
english:phpwcms_replacer_rts:frontend_init:cp_trigger:cp-comment-output [2011/02/20 09:27] Knut Heermann (flip-flop) created |
english:phpwcms_replacer_rts:frontend_init:cp_trigger:cp-comment-output [2018/06/03 18:09] (current) |
||
|---|---|---|---|
| Line 6: | Line 6: | ||
| ===== Description: ===== | ===== Description: ===== | ||
| + | |||
| + | If the TAG **{CPCOMMENT}** is set in CP text or template, at this point the content of the associated comment field is displayed. | ||
| I have set the class %%<span="cpcomment"> .... </span>%% as a wrapper for the comment output. | I have set the class %%<span="cpcomment"> .... </span>%% as a wrapper for the comment output. | ||
| Line 51: | Line 53: | ||
| // ------------------------------------------------------------------------------------------- | // ------------------------------------------------------------------------------------------- | ||
| // | // | ||
| - | // 20.02.11 KH (flip-flop) Out of the comment field by TAG | + | // 20.02.11 KH (flip-flop) Out of the comment field by TAG {CPCOMMENT} |
| // ------------------------------------------------------------------------------------------- | // ------------------------------------------------------------------------------------------- | ||
| Line 81: | Line 83: | ||
| if( in_array($data['acontent_id'], array(10,6,14,29)) ) { // is used only when the CP-filter is needed. | if( in_array($data['acontent_id'], array(10,6,14,29)) ) { // is used only when the CP-filter is needed. | ||
| - | // Replace the TAG and put a class around it. | + | // Replaces the TAG and put a class around it. |
| $text = str_replace("{CPCOMMENT}", '<span class="cpcomment">'.$data['acontent_comment'].'</span>', $text); // replace cp Comment | $text = str_replace("{CPCOMMENT}", '<span class="cpcomment">'.$data['acontent_comment'].'</span>', $text); // replace cp Comment | ||